@quantum-hub/qhubctl 1.9.0 → 1.10.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 (152) hide show
  1. package/README.md +6 -35
  2. package/dist/commands/datapool-upload.js +7 -3
  3. package/dist/commands/list-contexts.js +1 -1
  4. package/dist/commands/services-build-status.js +1 -1
  5. package/dist/commands/set-context.js +6 -2
  6. package/dist/commands/up.js +11 -15
  7. package/dist/lib/error.js +25 -8
  8. package/dist/service/quantum-hub-service.d.ts +9 -13
  9. package/dist/service/quantum-hub-service.js +67 -139
  10. package/package.json +2 -2
  11. package/dist/client/kqh/apis/ServicePlatformApplicationsApi.d.ts +0 -89
  12. package/dist/client/kqh/apis/ServicePlatformApplicationsApi.js +0 -222
  13. package/dist/client/kqh/apis/ServicePlatformDashboardApi.d.ts +0 -44
  14. package/dist/client/kqh/apis/ServicePlatformDashboardApi.js +0 -106
  15. package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.d.ts +0 -133
  16. package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.js +0 -373
  17. package/dist/client/kqh/apis/ServicePlatformJobsApi.d.ts +0 -101
  18. package/dist/client/kqh/apis/ServicePlatformJobsApi.js +0 -261
  19. package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.d.ts +0 -48
  20. package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.js +0 -115
  21. package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.d.ts +0 -29
  22. package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.js +0 -53
  23. package/dist/client/kqh/apis/ServicePlatformServicesApi.d.ts +0 -501
  24. package/dist/client/kqh/apis/ServicePlatformServicesApi.js +0 -1472
  25. package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.d.ts +0 -66
  26. package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.js +0 -157
  27. package/dist/client/kqh/apis/TaxonomiesApi.d.ts +0 -90
  28. package/dist/client/kqh/apis/TaxonomiesApi.js +0 -272
  29. package/dist/client/kqh/apis/index.d.ts +0 -9
  30. package/dist/client/kqh/apis/index.js +0 -11
  31. package/dist/client/kqh/index.d.ts +0 -3
  32. package/dist/client/kqh/index.js +0 -5
  33. package/dist/client/kqh/models/AccessTokenDto.d.ts +0 -81
  34. package/dist/client/kqh/models/AccessTokenDto.js +0 -59
  35. package/dist/client/kqh/models/AmountMajorDto.d.ts +0 -37
  36. package/dist/client/kqh/models/AmountMajorDto.js +0 -40
  37. package/dist/client/kqh/models/ApiDto.d.ts +0 -144
  38. package/dist/client/kqh/models/ApiDto.js +0 -92
  39. package/dist/client/kqh/models/ApiOverviewDto.d.ts +0 -119
  40. package/dist/client/kqh/models/ApiOverviewDto.js +0 -83
  41. package/dist/client/kqh/models/ApplicationDto.d.ts +0 -64
  42. package/dist/client/kqh/models/ApplicationDto.js +0 -53
  43. package/dist/client/kqh/models/BuildJobDto.d.ts +0 -75
  44. package/dist/client/kqh/models/BuildJobDto.js +0 -64
  45. package/dist/client/kqh/models/CpuConfiguration.d.ts +0 -38
  46. package/dist/client/kqh/models/CpuConfiguration.js +0 -43
  47. package/dist/client/kqh/models/CreateApplicationRequest.d.ts +0 -31
  48. package/dist/client/kqh/models/CreateApplicationRequest.js +0 -38
  49. package/dist/client/kqh/models/CreateDataPoolRequest.d.ts +0 -31
  50. package/dist/client/kqh/models/CreateDataPoolRequest.js +0 -40
  51. package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.d.ts +0 -46
  52. package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.js +0 -50
  53. package/dist/client/kqh/models/CreateJobRequest.d.ts +0 -62
  54. package/dist/client/kqh/models/CreateJobRequest.js +0 -51
  55. package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.d.ts +0 -73
  56. package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.js +0 -72
  57. package/dist/client/kqh/models/CreateProductRequest.d.ts +0 -43
  58. package/dist/client/kqh/models/CreateProductRequest.js +0 -46
  59. package/dist/client/kqh/models/CreateSubscriptionRequest.d.ts +0 -37
  60. package/dist/client/kqh/models/CreateSubscriptionRequest.js +0 -44
  61. package/dist/client/kqh/models/CreateWorkflowServiceRequest.d.ts +0 -37
  62. package/dist/client/kqh/models/CreateWorkflowServiceRequest.js +0 -42
  63. package/dist/client/kqh/models/DataPoolDto.d.ts +0 -166
  64. package/dist/client/kqh/models/DataPoolDto.js +0 -98
  65. package/dist/client/kqh/models/DataPoolRef.d.ts +0 -43
  66. package/dist/client/kqh/models/DataPoolRef.js +0 -42
  67. package/dist/client/kqh/models/DataSourceDescriptorDto.d.ts +0 -89
  68. package/dist/client/kqh/models/DataSourceDescriptorDto.js +0 -62
  69. package/dist/client/kqh/models/FileDto.d.ts +0 -73
  70. package/dist/client/kqh/models/FileDto.js +0 -45
  71. package/dist/client/kqh/models/FileSource.d.ts +0 -26
  72. package/dist/client/kqh/models/FileSource.js +0 -28
  73. package/dist/client/kqh/models/GpuConfiguration.d.ts +0 -49
  74. package/dist/client/kqh/models/GpuConfiguration.js +0 -53
  75. package/dist/client/kqh/models/JobDto.d.ts +0 -117
  76. package/dist/client/kqh/models/JobDto.js +0 -75
  77. package/dist/client/kqh/models/JobOverviewDto.d.ts +0 -74
  78. package/dist/client/kqh/models/JobOverviewDto.js +0 -60
  79. package/dist/client/kqh/models/MemoryConfiguration.d.ts +0 -38
  80. package/dist/client/kqh/models/MemoryConfiguration.js +0 -43
  81. package/dist/client/kqh/models/MeteringRequest.d.ts +0 -43
  82. package/dist/client/kqh/models/MeteringRequest.js +0 -42
  83. package/dist/client/kqh/models/MeteringResponse.d.ts +0 -49
  84. package/dist/client/kqh/models/MeteringResponse.js +0 -44
  85. package/dist/client/kqh/models/MonthAmountDto.d.ts +0 -51
  86. package/dist/client/kqh/models/MonthAmountDto.js +0 -46
  87. package/dist/client/kqh/models/OwnerDto.d.ts +0 -67
  88. package/dist/client/kqh/models/OwnerDto.js +0 -50
  89. package/dist/client/kqh/models/PageDataPoolDto.d.ts +0 -94
  90. package/dist/client/kqh/models/PageDataPoolDto.js +0 -61
  91. package/dist/client/kqh/models/PageableObject.d.ts +0 -62
  92. package/dist/client/kqh/models/PageableObject.js +0 -49
  93. package/dist/client/kqh/models/PricingPlanDto.d.ts +0 -52
  94. package/dist/client/kqh/models/PricingPlanDto.js +0 -50
  95. package/dist/client/kqh/models/ProductAmountDto.d.ts +0 -38
  96. package/dist/client/kqh/models/ProductAmountDto.js +0 -41
  97. package/dist/client/kqh/models/ProductDto.d.ts +0 -83
  98. package/dist/client/kqh/models/ProductDto.js +0 -69
  99. package/dist/client/kqh/models/ProductGroupDto.d.ts +0 -45
  100. package/dist/client/kqh/models/ProductGroupDto.js +0 -44
  101. package/dist/client/kqh/models/ProductUsageDto.d.ts +0 -61
  102. package/dist/client/kqh/models/ProductUsageDto.js +0 -48
  103. package/dist/client/kqh/models/RegistrySource.d.ts +0 -52
  104. package/dist/client/kqh/models/RegistrySource.js +0 -49
  105. package/dist/client/kqh/models/RepositorySource.d.ts +0 -32
  106. package/dist/client/kqh/models/RepositorySource.js +0 -41
  107. package/dist/client/kqh/models/ResourceConfiguration.d.ts +0 -31
  108. package/dist/client/kqh/models/ResourceConfiguration.js +0 -52
  109. package/dist/client/kqh/models/ReviewDto.d.ts +0 -51
  110. package/dist/client/kqh/models/ReviewDto.js +0 -49
  111. package/dist/client/kqh/models/RuntimeConfiguration.d.ts +0 -53
  112. package/dist/client/kqh/models/RuntimeConfiguration.js +0 -49
  113. package/dist/client/kqh/models/ServiceDefinitionCommand.d.ts +0 -39
  114. package/dist/client/kqh/models/ServiceDefinitionCommand.js +0 -45
  115. package/dist/client/kqh/models/ServiceDefinitionDto.d.ts +0 -180
  116. package/dist/client/kqh/models/ServiceDefinitionDto.js +0 -101
  117. package/dist/client/kqh/models/ServiceDefinitionDtoSource.d.ts +0 -23
  118. package/dist/client/kqh/models/ServiceDefinitionDtoSource.js +0 -49
  119. package/dist/client/kqh/models/ServiceDefinitionOverviewDto.d.ts +0 -79
  120. package/dist/client/kqh/models/ServiceDefinitionOverviewDto.js +0 -64
  121. package/dist/client/kqh/models/ServiceDto.d.ts +0 -59
  122. package/dist/client/kqh/models/ServiceDto.js +0 -52
  123. package/dist/client/kqh/models/ServiceExecutionConsumerDto.d.ts +0 -67
  124. package/dist/client/kqh/models/ServiceExecutionConsumerDto.js +0 -57
  125. package/dist/client/kqh/models/ServiceExecutionDto.d.ts +0 -49
  126. package/dist/client/kqh/models/ServiceExecutionDto.js +0 -44
  127. package/dist/client/kqh/models/ServiceOverviewDto.d.ts +0 -115
  128. package/dist/client/kqh/models/ServiceOverviewDto.js +0 -85
  129. package/dist/client/kqh/models/ServiceSource.d.ts +0 -31
  130. package/dist/client/kqh/models/ServiceSource.js +0 -52
  131. package/dist/client/kqh/models/SortObject.d.ts +0 -43
  132. package/dist/client/kqh/models/SortObject.js +0 -42
  133. package/dist/client/kqh/models/SubscriptionDto.d.ts +0 -58
  134. package/dist/client/kqh/models/SubscriptionDto.js +0 -49
  135. package/dist/client/kqh/models/TaxonomyElement.d.ts +0 -43
  136. package/dist/client/kqh/models/TaxonomyElement.js +0 -42
  137. package/dist/client/kqh/models/UpdateDataPoolRequest.d.ts +0 -109
  138. package/dist/client/kqh/models/UpdateDataPoolRequest.js +0 -66
  139. package/dist/client/kqh/models/UpdateResourceConfigurationRequest.d.ts +0 -23
  140. package/dist/client/kqh/models/UpdateResourceConfigurationRequest.js +0 -49
  141. package/dist/client/kqh/models/UpdateVersionRequest.d.ts +0 -44
  142. package/dist/client/kqh/models/UpdateVersionRequest.js +0 -43
  143. package/dist/client/kqh/models/UpdateWorkflowServiceRequest.d.ts +0 -31
  144. package/dist/client/kqh/models/UpdateWorkflowServiceRequest.js +0 -27
  145. package/dist/client/kqh/models/ValidationResult.d.ts +0 -52
  146. package/dist/client/kqh/models/ValidationResult.js +0 -50
  147. package/dist/client/kqh/models/index.d.ts +0 -57
  148. package/dist/client/kqh/models/index.js +0 -59
  149. package/dist/client/kqh/runtime.d.ts +0 -181
  150. package/dist/client/kqh/runtime.js +0 -325
  151. package/dist/model/account.d.ts +0 -5
  152. package/dist/model/account.js +0 -1
@@ -1,261 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Platform API
5
- * Part of the OpenAPI specification for the Quantum Platform.
6
- *
7
- * The version of the OpenAPI document: v1
8
- * Contact: info@anaqor.io
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import * as runtime from '../runtime.js';
15
- import { CreateJobRequestToJSON, JobDtoFromJSON, JobOverviewDtoFromJSON, ProductUsageDtoFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class ServicePlatformJobsApi extends runtime.BaseAPI {
20
- /**
21
- * Cancels a given job.
22
- */
23
- async cancelJobRaw(requestParameters, initOverrides) {
24
- if (requestParameters['id'] == null) {
25
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling cancelJob().');
26
- }
27
- const queryParameters = {};
28
- const headerParameters = {};
29
- if (requestParameters['xOrganizationId'] != null) {
30
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
31
- }
32
- if (this.configuration && this.configuration.apiKey) {
33
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
34
- }
35
- if (this.configuration && this.configuration.accessToken) {
36
- // oauth required
37
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
38
- }
39
- const response = await this.request({
40
- path: `/jobs/{id}/cancel`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
41
- method: 'PUT',
42
- headers: headerParameters,
43
- query: queryParameters,
44
- }, initOverrides);
45
- return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
46
- }
47
- /**
48
- * Cancels a given job.
49
- */
50
- async cancelJob(requestParameters, initOverrides) {
51
- const response = await this.cancelJobRaw(requestParameters, initOverrides);
52
- return await response.value();
53
- }
54
- /**
55
- * Creates a new job execution for one of your services.
56
- */
57
- async createJobRaw(requestParameters, initOverrides) {
58
- if (requestParameters['createJobRequest'] == null) {
59
- throw new runtime.RequiredError('createJobRequest', 'Required parameter "createJobRequest" was null or undefined when calling createJob().');
60
- }
61
- const queryParameters = {};
62
- const headerParameters = {};
63
- headerParameters['Content-Type'] = 'application/json';
64
- if (requestParameters['xOrganizationId'] != null) {
65
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
66
- }
67
- if (this.configuration && this.configuration.apiKey) {
68
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
69
- }
70
- if (this.configuration && this.configuration.accessToken) {
71
- // oauth required
72
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
73
- }
74
- const response = await this.request({
75
- path: `/jobs`,
76
- method: 'POST',
77
- headers: headerParameters,
78
- query: queryParameters,
79
- body: CreateJobRequestToJSON(requestParameters['createJobRequest']),
80
- }, initOverrides);
81
- return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
82
- }
83
- /**
84
- * Creates a new job execution for one of your services.
85
- */
86
- async createJob(requestParameters, initOverrides) {
87
- const response = await this.createJobRaw(requestParameters, initOverrides);
88
- return await response.value();
89
- }
90
- /**
91
- * Deletes a given job.
92
- */
93
- async deleteJobRaw(requestParameters, initOverrides) {
94
- if (requestParameters['id'] == null) {
95
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteJob().');
96
- }
97
- const queryParameters = {};
98
- const headerParameters = {};
99
- if (requestParameters['xOrganizationId'] != null) {
100
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
101
- }
102
- if (this.configuration && this.configuration.apiKey) {
103
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
104
- }
105
- if (this.configuration && this.configuration.accessToken) {
106
- // oauth required
107
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
108
- }
109
- const response = await this.request({
110
- path: `/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
111
- method: 'DELETE',
112
- headers: headerParameters,
113
- query: queryParameters,
114
- }, initOverrides);
115
- return new runtime.VoidApiResponse(response);
116
- }
117
- /**
118
- * Deletes a given job.
119
- */
120
- async deleteJob(requestParameters, initOverrides) {
121
- await this.deleteJobRaw(requestParameters, initOverrides);
122
- }
123
- /**
124
- * Retrieves a given job.
125
- */
126
- async getJobRaw(requestParameters, initOverrides) {
127
- if (requestParameters['id'] == null) {
128
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getJob().');
129
- }
130
- const queryParameters = {};
131
- const headerParameters = {};
132
- if (requestParameters['xOrganizationId'] != null) {
133
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
134
- }
135
- if (this.configuration && this.configuration.apiKey) {
136
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
137
- }
138
- if (this.configuration && this.configuration.accessToken) {
139
- // oauth required
140
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
141
- }
142
- const response = await this.request({
143
- path: `/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
144
- method: 'GET',
145
- headers: headerParameters,
146
- query: queryParameters,
147
- }, initOverrides);
148
- return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
149
- }
150
- /**
151
- * Retrieves a given job.
152
- */
153
- async getJob(requestParameters, initOverrides) {
154
- const response = await this.getJobRaw(requestParameters, initOverrides);
155
- return await response.value();
156
- }
157
- /**
158
- * Retrieves estimated costs for a finished job.
159
- */
160
- async getJobCostsRaw(requestParameters, initOverrides) {
161
- if (requestParameters['id'] == null) {
162
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getJobCosts().');
163
- }
164
- const queryParameters = {};
165
- const headerParameters = {};
166
- if (requestParameters['xOrganizationId'] != null) {
167
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
168
- }
169
- if (this.configuration && this.configuration.apiKey) {
170
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
171
- }
172
- if (this.configuration && this.configuration.accessToken) {
173
- // oauth required
174
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
175
- }
176
- const response = await this.request({
177
- path: `/jobs/{id}/costs`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
178
- method: 'GET',
179
- headers: headerParameters,
180
- query: queryParameters,
181
- }, initOverrides);
182
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProductUsageDtoFromJSON));
183
- }
184
- /**
185
- * Retrieves estimated costs for a finished job.
186
- */
187
- async getJobCosts(requestParameters, initOverrides) {
188
- const response = await this.getJobCostsRaw(requestParameters, initOverrides);
189
- return await response.value();
190
- }
191
- /**
192
- * Retrieves logs of a given job.
193
- */
194
- async getJobLogsRaw(requestParameters, initOverrides) {
195
- if (requestParameters['id'] == null) {
196
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getJobLogs().');
197
- }
198
- const queryParameters = {};
199
- const headerParameters = {};
200
- if (requestParameters['xOrganizationId'] != null) {
201
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
202
- }
203
- if (this.configuration && this.configuration.apiKey) {
204
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
205
- }
206
- if (this.configuration && this.configuration.accessToken) {
207
- // oauth required
208
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
209
- }
210
- const response = await this.request({
211
- path: `/jobs/{id}/logs`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
212
- method: 'GET',
213
- headers: headerParameters,
214
- query: queryParameters,
215
- }, initOverrides);
216
- if (this.isJsonMime(response.headers.get('content-type'))) {
217
- return new runtime.JSONApiResponse(response);
218
- }
219
- else {
220
- return new runtime.TextApiResponse(response);
221
- }
222
- }
223
- /**
224
- * Retrieves logs of a given job.
225
- */
226
- async getJobLogs(requestParameters, initOverrides) {
227
- const response = await this.getJobLogsRaw(requestParameters, initOverrides);
228
- return await response.value();
229
- }
230
- /**
231
- * Retrieves a list of executed jobs.
232
- */
233
- async getJobsRaw(requestParameters, initOverrides) {
234
- const queryParameters = {};
235
- const headerParameters = {};
236
- if (requestParameters['xOrganizationId'] != null) {
237
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
238
- }
239
- if (this.configuration && this.configuration.apiKey) {
240
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
241
- }
242
- if (this.configuration && this.configuration.accessToken) {
243
- // oauth required
244
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
245
- }
246
- const response = await this.request({
247
- path: `/jobs`,
248
- method: 'GET',
249
- headers: headerParameters,
250
- query: queryParameters,
251
- }, initOverrides);
252
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(JobOverviewDtoFromJSON));
253
- }
254
- /**
255
- * Retrieves a list of executed jobs.
256
- */
257
- async getJobs(requestParameters = {}, initOverrides) {
258
- const response = await this.getJobsRaw(requestParameters, initOverrides);
259
- return await response.value();
260
- }
261
- }
@@ -1,48 +0,0 @@
1
- /**
2
- * Quantum Platform API
3
- * Part of the OpenAPI specification for the Quantum Platform.
4
- *
5
- * The version of the OpenAPI document: v1
6
- * Contact: info@anaqor.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime.js';
13
- import type { ApiDto, ApiOverviewDto } from '../models/index.js';
14
- export interface FindServiceRequest {
15
- id: string;
16
- }
17
- export interface GetLogoRequest {
18
- id: string;
19
- }
20
- /**
21
- *
22
- */
23
- export declare class ServicePlatformMarketplaceApi extends runtime.BaseAPI {
24
- /**
25
- * Gets a specific publicly published service and its basic properties.
26
- */
27
- findServiceRaw(requestParameters: FindServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiDto>>;
28
- /**
29
- * Gets a specific publicly published service and its basic properties.
30
- */
31
- findService(requestParameters: FindServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiDto>;
32
- /**
33
- * Gets a list of all publicly published service on the Quantum Platform.
34
- */
35
- findServicesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiOverviewDto>>>;
36
- /**
37
- * Gets a list of all publicly published service on the Quantum Platform.
38
- */
39
- findServices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiOverviewDto>>;
40
- /**
41
- * Retrieves the logo of an API.
42
- */
43
- getLogoRaw(requestParameters: GetLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
44
- /**
45
- * Retrieves the logo of an API.
46
- */
47
- getLogo(requestParameters: GetLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
48
- }
@@ -1,115 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Platform API
5
- * Part of the OpenAPI specification for the Quantum Platform.
6
- *
7
- * The version of the OpenAPI document: v1
8
- * Contact: info@anaqor.io
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import * as runtime from '../runtime.js';
15
- import { ApiDtoFromJSON, ApiOverviewDtoFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class ServicePlatformMarketplaceApi extends runtime.BaseAPI {
20
- /**
21
- * Gets a specific publicly published service and its basic properties.
22
- */
23
- async findServiceRaw(requestParameters, initOverrides) {
24
- if (requestParameters['id'] == null) {
25
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling findService().');
26
- }
27
- const queryParameters = {};
28
- const headerParameters = {};
29
- if (this.configuration && this.configuration.apiKey) {
30
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
31
- }
32
- if (this.configuration && this.configuration.accessToken) {
33
- // oauth required
34
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
35
- }
36
- const response = await this.request({
37
- path: `/v2/apis/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
38
- method: 'GET',
39
- headers: headerParameters,
40
- query: queryParameters,
41
- }, initOverrides);
42
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiDtoFromJSON(jsonValue));
43
- }
44
- /**
45
- * Gets a specific publicly published service and its basic properties.
46
- */
47
- async findService(requestParameters, initOverrides) {
48
- const response = await this.findServiceRaw(requestParameters, initOverrides);
49
- return await response.value();
50
- }
51
- /**
52
- * Gets a list of all publicly published service on the Quantum Platform.
53
- */
54
- async findServicesRaw(initOverrides) {
55
- const queryParameters = {};
56
- const headerParameters = {};
57
- if (this.configuration && this.configuration.apiKey) {
58
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
59
- }
60
- if (this.configuration && this.configuration.accessToken) {
61
- // oauth required
62
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
63
- }
64
- const response = await this.request({
65
- path: `/v2/apis`,
66
- method: 'GET',
67
- headers: headerParameters,
68
- query: queryParameters,
69
- }, initOverrides);
70
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiOverviewDtoFromJSON));
71
- }
72
- /**
73
- * Gets a list of all publicly published service on the Quantum Platform.
74
- */
75
- async findServices(initOverrides) {
76
- const response = await this.findServicesRaw(initOverrides);
77
- return await response.value();
78
- }
79
- /**
80
- * Retrieves the logo of an API.
81
- */
82
- async getLogoRaw(requestParameters, initOverrides) {
83
- if (requestParameters['id'] == null) {
84
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getLogo().');
85
- }
86
- const queryParameters = {};
87
- const headerParameters = {};
88
- if (this.configuration && this.configuration.apiKey) {
89
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
90
- }
91
- if (this.configuration && this.configuration.accessToken) {
92
- // oauth required
93
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
94
- }
95
- const response = await this.request({
96
- path: `/v2/apis/{id}/logo`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
97
- method: 'GET',
98
- headers: headerParameters,
99
- query: queryParameters,
100
- }, initOverrides);
101
- if (this.isJsonMime(response.headers.get('content-type'))) {
102
- return new runtime.JSONApiResponse(response);
103
- }
104
- else {
105
- return new runtime.TextApiResponse(response);
106
- }
107
- }
108
- /**
109
- * Retrieves the logo of an API.
110
- */
111
- async getLogo(requestParameters, initOverrides) {
112
- const response = await this.getLogoRaw(requestParameters, initOverrides);
113
- return await response.value();
114
- }
115
- }
@@ -1,29 +0,0 @@
1
- /**
2
- * Quantum Platform API
3
- * Part of the OpenAPI specification for the Quantum Platform.
4
- *
5
- * The version of the OpenAPI document: v1
6
- * Contact: info@anaqor.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime.js';
13
- import type { MeteringRequest, MeteringResponse } from '../models/index.js';
14
- export interface MeteringOperationRequest {
15
- meteringRequest: MeteringRequest;
16
- }
17
- /**
18
- *
19
- */
20
- export declare class ServicePlatformMeteringAPIApi extends runtime.BaseAPI {
21
- /**
22
- * This endpoint is used to report the usage of your external service. The request body must contain a correlationId, which is forwarded by the Platform API Gateway upon service execution. The Quantum Platform then logs a usage event for the corresponding product item (productId) and the submitted count. The correlationId is needed to correlate your reported usage to the corresponding user of your service. You can obtain the correlation id from the x-correlation-id header of the request that was forwarded by our API Gateway to your service. The productId is the id of the product you want to report. You can find the id of your product in the pricing plan table on the service details page. The count is the quantity of units you want to report.
23
- */
24
- meteringRaw(requestParameters: MeteringOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MeteringResponse>>;
25
- /**
26
- * This endpoint is used to report the usage of your external service. The request body must contain a correlationId, which is forwarded by the Quantum Platform API Gateway upon service execution. The Quantum Platform then logs a usage event for the corresponding product item (productId) and the submitted count. The correlationId is needed to correlate your reported usage to the corresponding user of your service. You can obtain the correlation id from the x-correlation-id header of the request that was forwarded by our API Gateway to your service. The productId is the id of the product you want to report. You can find the id of your product in the pricing plan table on the service details page. The count is the quantity of units you want to report.
27
- */
28
- metering(requestParameters: MeteringOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MeteringResponse>;
29
- }
@@ -1,53 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Platform API
5
- * Part of the OpenAPI specification for the Quantum Platform.
6
- *
7
- * The version of the OpenAPI document: v1
8
- * Contact: info@anaqor.io
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import * as runtime from '../runtime.js';
15
- import { MeteringRequestToJSON, MeteringResponseFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class ServicePlatformMeteringAPIApi extends runtime.BaseAPI {
20
- /**
21
- * This endpoint is used to report the usage of your external service. The request body must contain a correlationId, which is forwarded by the Platform API Gateway upon service execution. The Quantum Platform then logs a usage event for the corresponding product item (productId) and the submitted count. The correlationId is needed to correlate your reported usage to the corresponding user of your service. You can obtain the correlation id from the x-correlation-id header of the request that was forwarded by our API Gateway to your service. The productId is the id of the product you want to report. You can find the id of your product in the pricing plan table on the service details page. The count is the quantity of units you want to report.
22
- */
23
- async meteringRaw(requestParameters, initOverrides) {
24
- if (requestParameters['meteringRequest'] == null) {
25
- throw new runtime.RequiredError('meteringRequest', 'Required parameter "meteringRequest" was null or undefined when calling metering().');
26
- }
27
- const queryParameters = {};
28
- const headerParameters = {};
29
- headerParameters['Content-Type'] = 'application/json';
30
- if (this.configuration && this.configuration.apiKey) {
31
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
32
- }
33
- if (this.configuration && this.configuration.accessToken) {
34
- // oauth required
35
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
36
- }
37
- const response = await this.request({
38
- path: `/external-services/metering`,
39
- method: 'POST',
40
- headers: headerParameters,
41
- query: queryParameters,
42
- body: MeteringRequestToJSON(requestParameters['meteringRequest']),
43
- }, initOverrides);
44
- return new runtime.JSONApiResponse(response, (jsonValue) => MeteringResponseFromJSON(jsonValue));
45
- }
46
- /**
47
- * This endpoint is used to report the usage of your external service. The request body must contain a correlationId, which is forwarded by the Quantum Platform API Gateway upon service execution. The Quantum Platform then logs a usage event for the corresponding product item (productId) and the submitted count. The correlationId is needed to correlate your reported usage to the corresponding user of your service. You can obtain the correlation id from the x-correlation-id header of the request that was forwarded by our API Gateway to your service. The productId is the id of the product you want to report. You can find the id of your product in the pricing plan table on the service details page. The count is the quantity of units you want to report.
48
- */
49
- async metering(requestParameters, initOverrides) {
50
- const response = await this.meteringRaw(requestParameters, initOverrides);
51
- return await response.value();
52
- }
53
- }