@quantum-hub/qhubctl 1.1.1 → 1.1.3

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 (211) hide show
  1. package/README.md +1 -1
  2. package/bin/dev.js +3 -1
  3. package/bin/run.js +1 -1
  4. package/dist/client/kqh/apis/ServicePlatformApplicationsApi.d.ts +2 -2
  5. package/dist/client/kqh/apis/ServicePlatformApplicationsApi.js +9 -46
  6. package/dist/client/kqh/apis/ServicePlatformDashboardApi.d.ts +2 -2
  7. package/dist/client/kqh/apis/ServicePlatformDashboardApi.js +5 -42
  8. package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.d.ts +2 -2
  9. package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.js +11 -48
  10. package/dist/client/kqh/apis/ServicePlatformJobsApi.d.ts +2 -2
  11. package/dist/client/kqh/apis/ServicePlatformJobsApi.js +9 -46
  12. package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.d.ts +2 -2
  13. package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.js +5 -42
  14. package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.d.ts +2 -2
  15. package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.js +5 -42
  16. package/dist/client/kqh/apis/ServicePlatformServicesApi.d.ts +2 -2
  17. package/dist/client/kqh/apis/ServicePlatformServicesApi.js +34 -71
  18. package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.d.ts +2 -2
  19. package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.js +7 -44
  20. package/dist/client/kqh/apis/TaxonomiesApi.d.ts +2 -2
  21. package/dist/client/kqh/apis/TaxonomiesApi.js +12 -49
  22. package/dist/client/kqh/apis/index.d.ts +9 -9
  23. package/dist/client/kqh/apis/index.js +9 -25
  24. package/dist/client/kqh/index.d.ts +3 -3
  25. package/dist/client/kqh/index.js +3 -19
  26. package/dist/client/kqh/models/AccessTokenDto.js +5 -12
  27. package/dist/client/kqh/models/AmountMajorDto.js +4 -10
  28. package/dist/client/kqh/models/ApiDto.d.ts +2 -2
  29. package/dist/client/kqh/models/ApiDto.js +13 -20
  30. package/dist/client/kqh/models/ApiOverviewDto.d.ts +1 -1
  31. package/dist/client/kqh/models/ApiOverviewDto.js +10 -17
  32. package/dist/client/kqh/models/ApplicationDto.js +5 -12
  33. package/dist/client/kqh/models/BuildJobDto.d.ts +1 -1
  34. package/dist/client/kqh/models/BuildJobDto.js +9 -16
  35. package/dist/client/kqh/models/CpuConfiguration.d.ts +1 -1
  36. package/dist/client/kqh/models/CpuConfiguration.js +7 -13
  37. package/dist/client/kqh/models/CreateApplicationRequest.js +4 -10
  38. package/dist/client/kqh/models/CreateDataPoolRequest.js +4 -10
  39. package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.d.ts +1 -1
  40. package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.js +8 -15
  41. package/dist/client/kqh/models/CreateJobRequest.d.ts +1 -1
  42. package/dist/client/kqh/models/CreateJobRequest.js +9 -15
  43. package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.js +6 -13
  44. package/dist/client/kqh/models/CreateProductRequest.js +4 -10
  45. package/dist/client/kqh/models/CreateSubscriptionRequest.js +4 -10
  46. package/dist/client/kqh/models/CreateWorkflowServiceRequest.js +4 -10
  47. package/dist/client/kqh/models/DataPoolDto.d.ts +3 -3
  48. package/dist/client/kqh/models/DataPoolDto.js +21 -28
  49. package/dist/client/kqh/models/DataPoolRef.js +4 -10
  50. package/dist/client/kqh/models/DataSourceDescriptorDto.d.ts +1 -1
  51. package/dist/client/kqh/models/DataSourceDescriptorDto.js +8 -15
  52. package/dist/client/kqh/models/FileDto.js +4 -10
  53. package/dist/client/kqh/models/FileSource.d.ts +1 -1
  54. package/dist/client/kqh/models/FileSource.js +4 -10
  55. package/dist/client/kqh/models/GpuConfiguration.d.ts +1 -1
  56. package/dist/client/kqh/models/GpuConfiguration.js +8 -15
  57. package/dist/client/kqh/models/JobDto.d.ts +2 -2
  58. package/dist/client/kqh/models/JobDto.js +13 -20
  59. package/dist/client/kqh/models/JobOverviewDto.d.ts +1 -1
  60. package/dist/client/kqh/models/JobOverviewDto.js +8 -15
  61. package/dist/client/kqh/models/MemoryConfiguration.d.ts +1 -1
  62. package/dist/client/kqh/models/MemoryConfiguration.js +7 -13
  63. package/dist/client/kqh/models/MeteringRequest.js +4 -10
  64. package/dist/client/kqh/models/MeteringResponse.js +4 -10
  65. package/dist/client/kqh/models/MonthAmountDto.d.ts +2 -2
  66. package/dist/client/kqh/models/MonthAmountDto.js +10 -16
  67. package/dist/client/kqh/models/OwnerDto.js +4 -10
  68. package/dist/client/kqh/models/PageDataPoolDto.d.ts +3 -3
  69. package/dist/client/kqh/models/PageDataPoolDto.js +13 -19
  70. package/dist/client/kqh/models/PageableObject.d.ts +1 -1
  71. package/dist/client/kqh/models/PageableObject.js +7 -13
  72. package/dist/client/kqh/models/PricingPlanDto.d.ts +1 -1
  73. package/dist/client/kqh/models/PricingPlanDto.js +8 -15
  74. package/dist/client/kqh/models/ProductAmountDto.d.ts +1 -1
  75. package/dist/client/kqh/models/ProductAmountDto.js +7 -13
  76. package/dist/client/kqh/models/ProductDto.js +5 -12
  77. package/dist/client/kqh/models/ProductGroupDto.d.ts +2 -2
  78. package/dist/client/kqh/models/ProductGroupDto.js +10 -16
  79. package/dist/client/kqh/models/ProductUsageDto.js +4 -10
  80. package/dist/client/kqh/models/RegistrySource.d.ts +1 -1
  81. package/dist/client/kqh/models/RegistrySource.js +7 -13
  82. package/dist/client/kqh/models/RepositorySource.d.ts +1 -1
  83. package/dist/client/kqh/models/RepositorySource.js +7 -13
  84. package/dist/client/kqh/models/ResourceConfiguration.js +10 -16
  85. package/dist/client/kqh/models/ReviewDto.js +5 -12
  86. package/dist/client/kqh/models/RuntimeConfiguration.js +5 -12
  87. package/dist/client/kqh/models/ServiceDefinitionCommand.js +5 -12
  88. package/dist/client/kqh/models/ServiceDefinitionDto.d.ts +5 -5
  89. package/dist/client/kqh/models/ServiceDefinitionDto.js +21 -28
  90. package/dist/client/kqh/models/ServiceDefinitionDtoSource.d.ts +3 -3
  91. package/dist/client/kqh/models/ServiceDefinitionDtoSource.js +18 -23
  92. package/dist/client/kqh/models/ServiceDefinitionOverviewDto.js +6 -13
  93. package/dist/client/kqh/models/ServiceDto.d.ts +1 -1
  94. package/dist/client/kqh/models/ServiceDto.js +8 -15
  95. package/dist/client/kqh/models/ServiceExecutionConsumerDto.js +5 -12
  96. package/dist/client/kqh/models/ServiceExecutionDto.js +4 -10
  97. package/dist/client/kqh/models/ServiceOverviewDto.js +8 -15
  98. package/dist/client/kqh/models/ServiceSource.js +10 -16
  99. package/dist/client/kqh/models/SortObject.js +4 -10
  100. package/dist/client/kqh/models/SubscriptionDto.d.ts +3 -3
  101. package/dist/client/kqh/models/SubscriptionDto.js +13 -19
  102. package/dist/client/kqh/models/TaxonomyElement.js +4 -10
  103. package/dist/client/kqh/models/UpdateDataPoolRequest.js +4 -10
  104. package/dist/client/kqh/models/UpdateResourceConfigurationRequest.d.ts +3 -3
  105. package/dist/client/kqh/models/UpdateResourceConfigurationRequest.js +18 -23
  106. package/dist/client/kqh/models/UpdateVersionRequest.d.ts +1 -1
  107. package/dist/client/kqh/models/UpdateVersionRequest.js +7 -13
  108. package/dist/client/kqh/models/UpdateWorkflowServiceRequest.js +4 -10
  109. package/dist/client/kqh/models/ValidationResult.js +5 -12
  110. package/dist/client/kqh/models/index.d.ts +57 -57
  111. package/dist/client/kqh/models/index.js +57 -73
  112. package/dist/client/kqh/runtime.js +17 -32
  113. package/dist/client/users/apis/AuthenticationApi.d.ts +2 -2
  114. package/dist/client/users/apis/AuthenticationApi.js +4 -41
  115. package/dist/client/users/apis/ExpertsApi.d.ts +2 -2
  116. package/dist/client/users/apis/ExpertsApi.js +5 -42
  117. package/dist/client/users/apis/SearchApi.d.ts +2 -2
  118. package/dist/client/users/apis/SearchApi.js +5 -42
  119. package/dist/client/users/apis/UserSettingsApi.d.ts +2 -2
  120. package/dist/client/users/apis/UserSettingsApi.js +11 -48
  121. package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.d.ts +2 -2
  122. package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.js +7 -44
  123. package/dist/client/users/apis/UsersApi.d.ts +2 -2
  124. package/dist/client/users/apis/UsersApi.js +4 -41
  125. package/dist/client/users/apis/index.d.ts +6 -6
  126. package/dist/client/users/apis/index.js +6 -22
  127. package/dist/client/users/index.d.ts +3 -3
  128. package/dist/client/users/index.js +3 -19
  129. package/dist/client/users/models/AccessTokenCreateRequest.js +5 -12
  130. package/dist/client/users/models/AccessTokenDto.js +5 -12
  131. package/dist/client/users/models/AccessTokensResponse.d.ts +1 -1
  132. package/dist/client/users/models/AccessTokensResponse.js +7 -13
  133. package/dist/client/users/models/DefaultAccessTokenResponse.js +4 -10
  134. package/dist/client/users/models/Language.js +4 -10
  135. package/dist/client/users/models/PageUserDto.d.ts +3 -3
  136. package/dist/client/users/models/PageUserDto.js +13 -19
  137. package/dist/client/users/models/Pageable.js +4 -10
  138. package/dist/client/users/models/PageableObject.d.ts +1 -1
  139. package/dist/client/users/models/PageableObject.js +7 -13
  140. package/dist/client/users/models/PersonalAccessTokenPrincipal.d.ts +1 -1
  141. package/dist/client/users/models/PersonalAccessTokenPrincipal.js +7 -13
  142. package/dist/client/users/models/Skill.js +4 -10
  143. package/dist/client/users/models/SortObject.js +4 -10
  144. package/dist/client/users/models/UpdateUserRequest.js +4 -10
  145. package/dist/client/users/models/UserDto.d.ts +2 -2
  146. package/dist/client/users/models/UserDto.js +10 -16
  147. package/dist/client/users/models/UserOverviewDto.js +4 -10
  148. package/dist/client/users/models/index.d.ts +14 -14
  149. package/dist/client/users/models/index.js +14 -30
  150. package/dist/client/users/runtime.js +17 -32
  151. package/dist/commands/compress/index.d.ts +1 -1
  152. package/dist/commands/compress/index.js +13 -19
  153. package/dist/commands/datapool/upload.d.ts +4 -4
  154. package/dist/commands/datapool/upload.js +24 -30
  155. package/dist/commands/get-context/index.d.ts +1 -1
  156. package/dist/commands/get-context/index.js +2 -5
  157. package/dist/commands/init/index.d.ts +3 -3
  158. package/dist/commands/init/index.js +30 -36
  159. package/dist/commands/list-contexts/index.d.ts +2 -2
  160. package/dist/commands/list-contexts/index.js +11 -17
  161. package/dist/commands/login/index.d.ts +3 -3
  162. package/dist/commands/login/index.js +16 -22
  163. package/dist/commands/logout/index.d.ts +1 -1
  164. package/dist/commands/logout/index.js +7 -10
  165. package/dist/commands/openapi/index.d.ts +7 -7
  166. package/dist/commands/openapi/index.js +81 -87
  167. package/dist/commands/run/index.d.ts +6 -6
  168. package/dist/commands/run/index.js +43 -48
  169. package/dist/commands/serve/index.d.ts +3 -3
  170. package/dist/commands/serve/index.js +31 -37
  171. package/dist/commands/services/index.d.ts +5 -5
  172. package/dist/commands/services/index.js +17 -23
  173. package/dist/commands/set-context/index.d.ts +4 -4
  174. package/dist/commands/set-context/index.js +13 -19
  175. package/dist/commands/up/index.d.ts +5 -5
  176. package/dist/commands/up/index.js +51 -57
  177. package/dist/index.js +1 -4
  178. package/dist/lib/command.js +5 -10
  179. package/dist/lib/debug.js +1 -5
  180. package/dist/lib/entrypoint-resolver.js +3 -7
  181. package/dist/lib/error.js +8 -12
  182. package/dist/lib/fetch.js +4 -10
  183. package/dist/lib/init-user-input.d.ts +1 -1
  184. package/dist/lib/init-user-input.js +16 -20
  185. package/dist/lib/random-name.js +1 -5
  186. package/dist/lib/random-string.js +1 -5
  187. package/dist/lib/repository.js +9 -17
  188. package/dist/lib/stream-to-blob.d.ts +1 -1
  189. package/dist/lib/stream-to-blob.js +1 -5
  190. package/dist/lib/up/get-description.js +9 -15
  191. package/dist/lib/up/ignore.js +9 -15
  192. package/dist/lib/up/zip.js +18 -24
  193. package/dist/model/account.js +1 -2
  194. package/dist/model/command.d.ts +2 -2
  195. package/dist/model/command.js +11 -19
  196. package/dist/model/managed-service-config.js +4 -7
  197. package/dist/model/user-config.js +3 -6
  198. package/dist/service/auth-service.d.ts +3 -3
  199. package/dist/service/auth-service.js +8 -14
  200. package/dist/service/command-service.d.ts +2 -2
  201. package/dist/service/command-service.js +1 -5
  202. package/dist/service/quantum-hub-service.d.ts +10 -10
  203. package/dist/service/quantum-hub-service.js +21 -24
  204. package/dist/service/service-config-service.d.ts +1 -1
  205. package/dist/service/service-config-service.js +14 -21
  206. package/dist/service/user-config-service.d.ts +1 -1
  207. package/dist/service/user-config-service.js +14 -21
  208. package/dist/service/user-service.d.ts +2 -2
  209. package/dist/service/user-service.js +8 -11
  210. package/oclif.manifest.json +170 -170
  211. package/package.json +4 -2
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,13 +11,8 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- 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;
17
- exports.querystring = querystring;
18
- exports.mapValues = mapValues;
19
- exports.canConsumeForm = canConsumeForm;
20
- exports.BASE_PATH = "https://34.90.225.20.nip.io/qc-catalog".replace(/\/+$/, "");
21
- class Configuration {
14
+ export const BASE_PATH = "https://34.90.225.20.nip.io/qc-catalog".replace(/\/+$/, "");
15
+ export class Configuration {
22
16
  configuration;
23
17
  constructor(configuration = {}) {
24
18
  this.configuration = configuration;
@@ -27,7 +21,7 @@ class Configuration {
27
21
  this.configuration = configuration;
28
22
  }
29
23
  get basePath() {
30
- return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH;
24
+ return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
31
25
  }
32
26
  get fetchApi() {
33
27
  return this.configuration.fetchApi;
@@ -65,16 +59,15 @@ class Configuration {
65
59
  return this.configuration.credentials;
66
60
  }
67
61
  }
68
- exports.Configuration = Configuration;
69
- exports.DefaultConfig = new Configuration();
62
+ export const DefaultConfig = new Configuration();
70
63
  /**
71
64
  * This is the base class for all generated API classes.
72
65
  */
73
- class BaseAPI {
66
+ export class BaseAPI {
74
67
  configuration;
75
68
  static jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
76
69
  middleware;
77
- constructor(configuration = exports.DefaultConfig) {
70
+ constructor(configuration = DefaultConfig) {
78
71
  this.configuration = configuration;
79
72
  this.middleware = configuration.middleware;
80
73
  }
@@ -217,7 +210,6 @@ class BaseAPI {
217
210
  return next;
218
211
  }
219
212
  }
220
- exports.BaseAPI = BaseAPI;
221
213
  ;
222
214
  function isBlob(value) {
223
215
  return typeof Blob !== 'undefined' && value instanceof Blob;
@@ -225,7 +217,7 @@ function isBlob(value) {
225
217
  function isFormData(value) {
226
218
  return typeof FormData !== "undefined" && value instanceof FormData;
227
219
  }
228
- class ResponseError extends Error {
220
+ export class ResponseError extends Error {
229
221
  response;
230
222
  name = "ResponseError";
231
223
  constructor(response, msg) {
@@ -233,8 +225,7 @@ class ResponseError extends Error {
233
225
  this.response = response;
234
226
  }
235
227
  }
236
- exports.ResponseError = ResponseError;
237
- class FetchError extends Error {
228
+ export class FetchError extends Error {
238
229
  cause;
239
230
  name = "FetchError";
240
231
  constructor(cause, msg) {
@@ -242,8 +233,7 @@ class FetchError extends Error {
242
233
  this.cause = cause;
243
234
  }
244
235
  }
245
- exports.FetchError = FetchError;
246
- class RequiredError extends Error {
236
+ export class RequiredError extends Error {
247
237
  field;
248
238
  name = "RequiredError";
249
239
  constructor(field, msg) {
@@ -251,14 +241,13 @@ class RequiredError extends Error {
251
241
  this.field = field;
252
242
  }
253
243
  }
254
- exports.RequiredError = RequiredError;
255
- exports.COLLECTION_FORMATS = {
244
+ export const COLLECTION_FORMATS = {
256
245
  csv: ",",
257
246
  ssv: " ",
258
247
  tsv: "\t",
259
248
  pipes: "|",
260
249
  };
261
- function querystring(params, prefix = '') {
250
+ export function querystring(params, prefix = '') {
262
251
  return Object.keys(params)
263
252
  .map(key => querystringSingleKey(key, params[key], prefix))
264
253
  .filter(part => part.length > 0)
@@ -283,10 +272,10 @@ function querystringSingleKey(key, value, keyPrefix = '') {
283
272
  }
284
273
  return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
285
274
  }
286
- function mapValues(data, fn) {
275
+ export function mapValues(data, fn) {
287
276
  return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
288
277
  }
289
- function canConsumeForm(consumes) {
278
+ export function canConsumeForm(consumes) {
290
279
  for (const consume of consumes) {
291
280
  if ('multipart/form-data' === consume.contentType) {
292
281
  return true;
@@ -294,7 +283,7 @@ function canConsumeForm(consumes) {
294
283
  }
295
284
  return false;
296
285
  }
297
- class JSONApiResponse {
286
+ export class JSONApiResponse {
298
287
  raw;
299
288
  transformer;
300
289
  constructor(raw, transformer = (jsonValue) => jsonValue) {
@@ -305,8 +294,7 @@ class JSONApiResponse {
305
294
  return this.transformer(await this.raw.json());
306
295
  }
307
296
  }
308
- exports.JSONApiResponse = JSONApiResponse;
309
- class VoidApiResponse {
297
+ export class VoidApiResponse {
310
298
  raw;
311
299
  constructor(raw) {
312
300
  this.raw = raw;
@@ -315,8 +303,7 @@ class VoidApiResponse {
315
303
  return undefined;
316
304
  }
317
305
  }
318
- exports.VoidApiResponse = VoidApiResponse;
319
- class BlobApiResponse {
306
+ export class BlobApiResponse {
320
307
  raw;
321
308
  constructor(raw) {
322
309
  this.raw = raw;
@@ -326,8 +313,7 @@ class BlobApiResponse {
326
313
  }
327
314
  ;
328
315
  }
329
- exports.BlobApiResponse = BlobApiResponse;
330
- class TextApiResponse {
316
+ export class TextApiResponse {
331
317
  raw;
332
318
  constructor(raw) {
333
319
  this.raw = raw;
@@ -337,4 +323,3 @@ class TextApiResponse {
337
323
  }
338
324
  ;
339
325
  }
340
- exports.TextApiResponse = TextApiResponse;
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import * as runtime from '../runtime';
13
- import type { PersonalAccessTokenPrincipal } from '../models/index';
12
+ import * as runtime from '../runtime.js';
13
+ import type { PersonalAccessTokenPrincipal } from '../models/index.js';
14
14
  export interface AuthorizeUserRequest {
15
15
  xAuthToken?: string;
16
16
  }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,47 +11,12 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
- Object.defineProperty(o, "default", { enumerable: true, value: v });
28
- }) : function(o, v) {
29
- o["default"] = v;
30
- });
31
- var __importStar = (this && this.__importStar) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
37
- };
38
- return ownKeys(o);
39
- };
40
- return function (mod) {
41
- if (mod && mod.__esModule) return mod;
42
- var result = {};
43
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
- __setModuleDefault(result, mod);
45
- return result;
46
- };
47
- })();
48
- Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.AuthenticationApi = void 0;
50
- const runtime = __importStar(require("../runtime"));
51
- const index_1 = require("../models/index");
14
+ import * as runtime from '../runtime.js';
15
+ import { PersonalAccessTokenPrincipalFromJSON, } from '../models/index.js';
52
16
  /**
53
17
  *
54
18
  */
55
- class AuthenticationApi extends runtime.BaseAPI {
19
+ export class AuthenticationApi extends runtime.BaseAPI {
56
20
  /**
57
21
  * Checks the given personal access token and returns the user details.
58
22
  * Checks the given personal access token and returns the user details.
@@ -69,7 +33,7 @@ class AuthenticationApi extends runtime.BaseAPI {
69
33
  headers: headerParameters,
70
34
  query: queryParameters,
71
35
  }, initOverrides);
72
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PersonalAccessTokenPrincipalFromJSON)(jsonValue));
36
+ return new runtime.JSONApiResponse(response, (jsonValue) => PersonalAccessTokenPrincipalFromJSON(jsonValue));
73
37
  }
74
38
  /**
75
39
  * Checks the given personal access token and returns the user details.
@@ -80,4 +44,3 @@ class AuthenticationApi extends runtime.BaseAPI {
80
44
  return await response.value();
81
45
  }
82
46
  }
83
- exports.AuthenticationApi = AuthenticationApi;
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import * as runtime from '../runtime';
13
- import type { PageUserDto, Pageable, UserDto } from '../models/index';
12
+ import * as runtime from '../runtime.js';
13
+ import type { PageUserDto, Pageable, UserDto } from '../models/index.js';
14
14
  export interface FindExpertByIdRequest {
15
15
  id: string;
16
16
  }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,47 +11,12 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
- Object.defineProperty(o, "default", { enumerable: true, value: v });
28
- }) : function(o, v) {
29
- o["default"] = v;
30
- });
31
- var __importStar = (this && this.__importStar) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
37
- };
38
- return ownKeys(o);
39
- };
40
- return function (mod) {
41
- if (mod && mod.__esModule) return mod;
42
- var result = {};
43
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
- __setModuleDefault(result, mod);
45
- return result;
46
- };
47
- })();
48
- Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.ExpertsApi = void 0;
50
- const runtime = __importStar(require("../runtime"));
51
- const index_1 = require("../models/index");
14
+ import * as runtime from '../runtime.js';
15
+ import { PageUserDtoFromJSON, UserDtoFromJSON, } from '../models/index.js';
52
16
  /**
53
17
  *
54
18
  */
55
- class ExpertsApi extends runtime.BaseAPI {
19
+ export class ExpertsApi extends runtime.BaseAPI {
56
20
  /**
57
21
  * Returns the expert details with the given id.
58
22
  * Returns the expert details with the given id.
@@ -69,7 +33,7 @@ class ExpertsApi extends runtime.BaseAPI {
69
33
  headers: headerParameters,
70
34
  query: queryParameters,
71
35
  }, initOverrides);
72
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserDtoFromJSON)(jsonValue));
36
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue));
73
37
  }
74
38
  /**
75
39
  * Returns the expert details with the given id.
@@ -98,7 +62,7 @@ class ExpertsApi extends runtime.BaseAPI {
98
62
  headers: headerParameters,
99
63
  query: queryParameters,
100
64
  }, initOverrides);
101
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PageUserDtoFromJSON)(jsonValue));
65
+ return new runtime.JSONApiResponse(response, (jsonValue) => PageUserDtoFromJSON(jsonValue));
102
66
  }
103
67
  /**
104
68
  * Lists all experts.
@@ -109,4 +73,3 @@ class ExpertsApi extends runtime.BaseAPI {
109
73
  return await response.value();
110
74
  }
111
75
  }
112
- exports.ExpertsApi = ExpertsApi;
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import * as runtime from '../runtime';
13
- import type { PageUserDto, UserDto } from '../models/index';
12
+ import * as runtime from '../runtime.js';
13
+ import type { PageUserDto, UserDto } from '../models/index.js';
14
14
  export interface FindByLastname11Request {
15
15
  lastname: string;
16
16
  firstname: string;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,47 +11,12 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
- Object.defineProperty(o, "default", { enumerable: true, value: v });
28
- }) : function(o, v) {
29
- o["default"] = v;
30
- });
31
- var __importStar = (this && this.__importStar) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
37
- };
38
- return ownKeys(o);
39
- };
40
- return function (mod) {
41
- if (mod && mod.__esModule) return mod;
42
- var result = {};
43
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
- __setModuleDefault(result, mod);
45
- return result;
46
- };
47
- })();
48
- Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.SearchApi = void 0;
50
- const runtime = __importStar(require("../runtime"));
51
- const index_1 = require("../models/index");
14
+ import * as runtime from '../runtime.js';
15
+ import { PageUserDtoFromJSON, UserDtoFromJSON, } from '../models/index.js';
52
16
  /**
53
17
  *
54
18
  */
55
- class SearchApi extends runtime.BaseAPI {
19
+ export class SearchApi extends runtime.BaseAPI {
56
20
  /**
57
21
  * Search for users based on the given query parameter.
58
22
  * Search for users based on the given query parameter.
@@ -91,7 +55,7 @@ class SearchApi extends runtime.BaseAPI {
91
55
  headers: headerParameters,
92
56
  query: queryParameters,
93
57
  }, initOverrides);
94
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.UserDtoFromJSON));
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserDtoFromJSON));
95
59
  }
96
60
  /**
97
61
  * Search for users based on the given query parameter.
@@ -120,7 +84,7 @@ class SearchApi extends runtime.BaseAPI {
120
84
  headers: headerParameters,
121
85
  query: queryParameters,
122
86
  }, initOverrides);
123
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PageUserDtoFromJSON)(jsonValue));
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => PageUserDtoFromJSON(jsonValue));
124
88
  }
125
89
  /**
126
90
  * Search for experts based on the given query parameter.
@@ -131,4 +95,3 @@ class SearchApi extends runtime.BaseAPI {
131
95
  return await response.value();
132
96
  }
133
97
  }
134
- exports.SearchApi = SearchApi;
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import * as runtime from '../runtime';
13
- import type { Language, Skill, UpdateUserRequest, UserDto } from '../models/index';
12
+ import * as runtime from '../runtime.js';
13
+ import type { Language, Skill, UpdateUserRequest, UserDto } from '../models/index.js';
14
14
  export interface AddLanguageRequest {
15
15
  language: Language;
16
16
  }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,47 +11,12 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
- Object.defineProperty(o, "default", { enumerable: true, value: v });
28
- }) : function(o, v) {
29
- o["default"] = v;
30
- });
31
- var __importStar = (this && this.__importStar) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
37
- };
38
- return ownKeys(o);
39
- };
40
- return function (mod) {
41
- if (mod && mod.__esModule) return mod;
42
- var result = {};
43
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
- __setModuleDefault(result, mod);
45
- return result;
46
- };
47
- })();
48
- Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.UserSettingsApi = void 0;
50
- const runtime = __importStar(require("../runtime"));
51
- const index_1 = require("../models/index");
14
+ import * as runtime from '../runtime.js';
15
+ import { LanguageToJSON, SkillToJSON, UpdateUserRequestToJSON, UserDtoFromJSON, } from '../models/index.js';
52
16
  /**
53
17
  *
54
18
  */
55
- class UserSettingsApi extends runtime.BaseAPI {
19
+ export class UserSettingsApi extends runtime.BaseAPI {
56
20
  /**
57
21
  * Adds a new language to the currently logged-in user\'s profile.
58
22
  * Adds a new language to the currently logged-in user\'s profile.
@@ -76,9 +40,9 @@ class UserSettingsApi extends runtime.BaseAPI {
76
40
  method: 'POST',
77
41
  headers: headerParameters,
78
42
  query: queryParameters,
79
- body: (0, index_1.LanguageToJSON)(requestParameters['language']),
43
+ body: LanguageToJSON(requestParameters['language']),
80
44
  }, initOverrides);
81
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserDtoFromJSON)(jsonValue));
45
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue));
82
46
  }
83
47
  /**
84
48
  * Adds a new language to the currently logged-in user\'s profile.
@@ -111,9 +75,9 @@ class UserSettingsApi extends runtime.BaseAPI {
111
75
  method: 'POST',
112
76
  headers: headerParameters,
113
77
  query: queryParameters,
114
- body: (0, index_1.SkillToJSON)(requestParameters['skill']),
78
+ body: SkillToJSON(requestParameters['skill']),
115
79
  }, initOverrides);
116
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserDtoFromJSON)(jsonValue));
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue));
117
81
  }
118
82
  /**
119
83
  * Adds a new skill to the currently logged-in user\'s profile.
@@ -236,7 +200,7 @@ class UserSettingsApi extends runtime.BaseAPI {
236
200
  headers: headerParameters,
237
201
  query: queryParameters,
238
202
  }, initOverrides);
239
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserDtoFromJSON)(jsonValue));
203
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue));
240
204
  }
241
205
  /**
242
206
  * Returns the user details of the currently logged-in user.
@@ -317,7 +281,7 @@ class UserSettingsApi extends runtime.BaseAPI {
317
281
  headers: headerParameters,
318
282
  query: queryParameters,
319
283
  }, initOverrides);
320
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserDtoFromJSON)(jsonValue));
284
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue));
321
285
  }
322
286
  /**
323
287
  * Updates the notification settings of the currently logged-in user.
@@ -401,9 +365,9 @@ class UserSettingsApi extends runtime.BaseAPI {
401
365
  method: 'PUT',
402
366
  headers: headerParameters,
403
367
  query: queryParameters,
404
- body: (0, index_1.UpdateUserRequestToJSON)(requestParameters['updateUserRequest']),
368
+ body: UpdateUserRequestToJSON(requestParameters['updateUserRequest']),
405
369
  }, initOverrides);
406
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserDtoFromJSON)(jsonValue));
370
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue));
407
371
  }
408
372
  /**
409
373
  * Updates the user details of the currently logged-in user.
@@ -414,4 +378,3 @@ class UserSettingsApi extends runtime.BaseAPI {
414
378
  return await response.value();
415
379
  }
416
380
  }
417
- exports.UserSettingsApi = UserSettingsApi;
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import * as runtime from '../runtime';
13
- import type { AccessTokenCreateRequest, AccessTokenDto, AccessTokensResponse, DefaultAccessTokenResponse } from '../models/index';
12
+ import * as runtime from '../runtime.js';
13
+ import type { AccessTokenCreateRequest, AccessTokenDto, AccessTokensResponse, DefaultAccessTokenResponse } from '../models/index.js';
14
14
  export interface CreateAccessTokenRequest {
15
15
  accessTokenCreateRequest: AccessTokenCreateRequest;
16
16
  }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,47 +11,12 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
- Object.defineProperty(o, "default", { enumerable: true, value: v });
28
- }) : function(o, v) {
29
- o["default"] = v;
30
- });
31
- var __importStar = (this && this.__importStar) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
37
- };
38
- return ownKeys(o);
39
- };
40
- return function (mod) {
41
- if (mod && mod.__esModule) return mod;
42
- var result = {};
43
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
- __setModuleDefault(result, mod);
45
- return result;
46
- };
47
- })();
48
- Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.UserSettingsPersonalAccessTokensApi = void 0;
50
- const runtime = __importStar(require("../runtime"));
51
- const index_1 = require("../models/index");
14
+ import * as runtime from '../runtime.js';
15
+ import { AccessTokenCreateRequestToJSON, AccessTokenDtoFromJSON, AccessTokensResponseFromJSON, DefaultAccessTokenResponseFromJSON, } from '../models/index.js';
52
16
  /**
53
17
  *
54
18
  */
55
- class UserSettingsPersonalAccessTokensApi extends runtime.BaseAPI {
19
+ export class UserSettingsPersonalAccessTokensApi extends runtime.BaseAPI {
56
20
  /**
57
21
  * Creates a new personal access token for the current user.
58
22
  * Creates a new personal access token for the current user.
@@ -76,9 +40,9 @@ class UserSettingsPersonalAccessTokensApi extends runtime.BaseAPI {
76
40
  method: 'POST',
77
41
  headers: headerParameters,
78
42
  query: queryParameters,
79
- body: (0, index_1.AccessTokenCreateRequestToJSON)(requestParameters['accessTokenCreateRequest']),
43
+ body: AccessTokenCreateRequestToJSON(requestParameters['accessTokenCreateRequest']),
80
44
  }, initOverrides);
81
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccessTokenDtoFromJSON)(jsonValue));
45
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccessTokenDtoFromJSON(jsonValue));
82
46
  }
83
47
  /**
84
48
  * Creates a new personal access token for the current user.
@@ -140,7 +104,7 @@ class UserSettingsPersonalAccessTokensApi extends runtime.BaseAPI {
140
104
  headers: headerParameters,
141
105
  query: queryParameters,
142
106
  }, initOverrides);
143
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccessTokensResponseFromJSON)(jsonValue));
107
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccessTokensResponseFromJSON(jsonValue));
144
108
  }
145
109
  /**
146
110
  * Returns the personal access tokens of the current user.
@@ -170,7 +134,7 @@ class UserSettingsPersonalAccessTokensApi extends runtime.BaseAPI {
170
134
  headers: headerParameters,
171
135
  query: queryParameters,
172
136
  }, initOverrides);
173
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DefaultAccessTokenResponseFromJSON)(jsonValue));
137
+ return new runtime.JSONApiResponse(response, (jsonValue) => DefaultAccessTokenResponseFromJSON(jsonValue));
174
138
  }
175
139
  /**
176
140
  * Updates the default personal access token of the current user.
@@ -181,4 +145,3 @@ class UserSettingsPersonalAccessTokensApi extends runtime.BaseAPI {
181
145
  return await response.value();
182
146
  }
183
147
  }
184
- exports.UserSettingsPersonalAccessTokensApi = UserSettingsPersonalAccessTokensApi;
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import * as runtime from '../runtime';
13
- import type { UserOverviewDto } from '../models/index';
12
+ import * as runtime from '../runtime.js';
13
+ import type { UserOverviewDto } from '../models/index.js';
14
14
  export interface ExistsByIdRequest {
15
15
  id: string;
16
16
  }