@quantum-hub/qhubctl 1.1.2 → 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.
- package/bin/dev.js +3 -1
- package/bin/run.js +1 -1
- package/dist/client/kqh/apis/ServicePlatformApplicationsApi.d.ts +2 -2
- package/dist/client/kqh/apis/ServicePlatformApplicationsApi.js +9 -46
- package/dist/client/kqh/apis/ServicePlatformDashboardApi.d.ts +2 -2
- package/dist/client/kqh/apis/ServicePlatformDashboardApi.js +5 -42
- package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.d.ts +2 -2
- package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.js +11 -48
- package/dist/client/kqh/apis/ServicePlatformJobsApi.d.ts +2 -2
- package/dist/client/kqh/apis/ServicePlatformJobsApi.js +9 -46
- package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.d.ts +2 -2
- package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.js +5 -42
- package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.d.ts +2 -2
- package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.js +5 -42
- package/dist/client/kqh/apis/ServicePlatformServicesApi.d.ts +2 -2
- package/dist/client/kqh/apis/ServicePlatformServicesApi.js +34 -71
- package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.d.ts +2 -2
- package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.js +7 -44
- package/dist/client/kqh/apis/TaxonomiesApi.d.ts +2 -2
- package/dist/client/kqh/apis/TaxonomiesApi.js +12 -49
- package/dist/client/kqh/apis/index.d.ts +9 -9
- package/dist/client/kqh/apis/index.js +9 -25
- package/dist/client/kqh/index.d.ts +3 -3
- package/dist/client/kqh/index.js +3 -19
- package/dist/client/kqh/models/AccessTokenDto.js +5 -12
- package/dist/client/kqh/models/AmountMajorDto.js +4 -10
- package/dist/client/kqh/models/ApiDto.d.ts +2 -2
- package/dist/client/kqh/models/ApiDto.js +13 -20
- package/dist/client/kqh/models/ApiOverviewDto.d.ts +1 -1
- package/dist/client/kqh/models/ApiOverviewDto.js +10 -17
- package/dist/client/kqh/models/ApplicationDto.js +5 -12
- package/dist/client/kqh/models/BuildJobDto.d.ts +1 -1
- package/dist/client/kqh/models/BuildJobDto.js +9 -16
- package/dist/client/kqh/models/CpuConfiguration.d.ts +1 -1
- package/dist/client/kqh/models/CpuConfiguration.js +7 -13
- package/dist/client/kqh/models/CreateApplicationRequest.js +4 -10
- package/dist/client/kqh/models/CreateDataPoolRequest.js +4 -10
- package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.d.ts +1 -1
- package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.js +8 -15
- package/dist/client/kqh/models/CreateJobRequest.d.ts +1 -1
- package/dist/client/kqh/models/CreateJobRequest.js +9 -15
- package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.js +6 -13
- package/dist/client/kqh/models/CreateProductRequest.js +4 -10
- package/dist/client/kqh/models/CreateSubscriptionRequest.js +4 -10
- package/dist/client/kqh/models/CreateWorkflowServiceRequest.js +4 -10
- package/dist/client/kqh/models/DataPoolDto.d.ts +3 -3
- package/dist/client/kqh/models/DataPoolDto.js +21 -28
- package/dist/client/kqh/models/DataPoolRef.js +4 -10
- package/dist/client/kqh/models/DataSourceDescriptorDto.d.ts +1 -1
- package/dist/client/kqh/models/DataSourceDescriptorDto.js +8 -15
- package/dist/client/kqh/models/FileDto.js +4 -10
- package/dist/client/kqh/models/FileSource.d.ts +1 -1
- package/dist/client/kqh/models/FileSource.js +4 -10
- package/dist/client/kqh/models/GpuConfiguration.d.ts +1 -1
- package/dist/client/kqh/models/GpuConfiguration.js +8 -15
- package/dist/client/kqh/models/JobDto.d.ts +2 -2
- package/dist/client/kqh/models/JobDto.js +13 -20
- package/dist/client/kqh/models/JobOverviewDto.d.ts +1 -1
- package/dist/client/kqh/models/JobOverviewDto.js +8 -15
- package/dist/client/kqh/models/MemoryConfiguration.d.ts +1 -1
- package/dist/client/kqh/models/MemoryConfiguration.js +7 -13
- package/dist/client/kqh/models/MeteringRequest.js +4 -10
- package/dist/client/kqh/models/MeteringResponse.js +4 -10
- package/dist/client/kqh/models/MonthAmountDto.d.ts +2 -2
- package/dist/client/kqh/models/MonthAmountDto.js +10 -16
- package/dist/client/kqh/models/OwnerDto.js +4 -10
- package/dist/client/kqh/models/PageDataPoolDto.d.ts +3 -3
- package/dist/client/kqh/models/PageDataPoolDto.js +13 -19
- package/dist/client/kqh/models/PageableObject.d.ts +1 -1
- package/dist/client/kqh/models/PageableObject.js +7 -13
- package/dist/client/kqh/models/PricingPlanDto.d.ts +1 -1
- package/dist/client/kqh/models/PricingPlanDto.js +8 -15
- package/dist/client/kqh/models/ProductAmountDto.d.ts +1 -1
- package/dist/client/kqh/models/ProductAmountDto.js +7 -13
- package/dist/client/kqh/models/ProductDto.js +5 -12
- package/dist/client/kqh/models/ProductGroupDto.d.ts +2 -2
- package/dist/client/kqh/models/ProductGroupDto.js +10 -16
- package/dist/client/kqh/models/ProductUsageDto.js +4 -10
- package/dist/client/kqh/models/RegistrySource.d.ts +1 -1
- package/dist/client/kqh/models/RegistrySource.js +7 -13
- package/dist/client/kqh/models/RepositorySource.d.ts +1 -1
- package/dist/client/kqh/models/RepositorySource.js +7 -13
- package/dist/client/kqh/models/ResourceConfiguration.js +10 -16
- package/dist/client/kqh/models/ReviewDto.js +5 -12
- package/dist/client/kqh/models/RuntimeConfiguration.js +5 -12
- package/dist/client/kqh/models/ServiceDefinitionCommand.js +5 -12
- package/dist/client/kqh/models/ServiceDefinitionDto.d.ts +5 -5
- package/dist/client/kqh/models/ServiceDefinitionDto.js +21 -28
- package/dist/client/kqh/models/ServiceDefinitionDtoSource.d.ts +3 -3
- package/dist/client/kqh/models/ServiceDefinitionDtoSource.js +18 -23
- package/dist/client/kqh/models/ServiceDefinitionOverviewDto.js +6 -13
- package/dist/client/kqh/models/ServiceDto.d.ts +1 -1
- package/dist/client/kqh/models/ServiceDto.js +8 -15
- package/dist/client/kqh/models/ServiceExecutionConsumerDto.js +5 -12
- package/dist/client/kqh/models/ServiceExecutionDto.js +4 -10
- package/dist/client/kqh/models/ServiceOverviewDto.js +8 -15
- package/dist/client/kqh/models/ServiceSource.js +10 -16
- package/dist/client/kqh/models/SortObject.js +4 -10
- package/dist/client/kqh/models/SubscriptionDto.d.ts +3 -3
- package/dist/client/kqh/models/SubscriptionDto.js +13 -19
- package/dist/client/kqh/models/TaxonomyElement.js +4 -10
- package/dist/client/kqh/models/UpdateDataPoolRequest.js +4 -10
- package/dist/client/kqh/models/UpdateResourceConfigurationRequest.d.ts +3 -3
- package/dist/client/kqh/models/UpdateResourceConfigurationRequest.js +18 -23
- package/dist/client/kqh/models/UpdateVersionRequest.d.ts +1 -1
- package/dist/client/kqh/models/UpdateVersionRequest.js +7 -13
- package/dist/client/kqh/models/UpdateWorkflowServiceRequest.js +4 -10
- package/dist/client/kqh/models/ValidationResult.js +5 -12
- package/dist/client/kqh/models/index.d.ts +57 -57
- package/dist/client/kqh/models/index.js +57 -73
- package/dist/client/kqh/runtime.js +17 -32
- package/dist/client/users/apis/AuthenticationApi.d.ts +2 -2
- package/dist/client/users/apis/AuthenticationApi.js +4 -41
- package/dist/client/users/apis/ExpertsApi.d.ts +2 -2
- package/dist/client/users/apis/ExpertsApi.js +5 -42
- package/dist/client/users/apis/SearchApi.d.ts +2 -2
- package/dist/client/users/apis/SearchApi.js +5 -42
- package/dist/client/users/apis/UserSettingsApi.d.ts +2 -2
- package/dist/client/users/apis/UserSettingsApi.js +11 -48
- package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.d.ts +2 -2
- package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.js +7 -44
- package/dist/client/users/apis/UsersApi.d.ts +2 -2
- package/dist/client/users/apis/UsersApi.js +4 -41
- package/dist/client/users/apis/index.d.ts +6 -6
- package/dist/client/users/apis/index.js +6 -22
- package/dist/client/users/index.d.ts +3 -3
- package/dist/client/users/index.js +3 -19
- package/dist/client/users/models/AccessTokenCreateRequest.js +5 -12
- package/dist/client/users/models/AccessTokenDto.js +5 -12
- package/dist/client/users/models/AccessTokensResponse.d.ts +1 -1
- package/dist/client/users/models/AccessTokensResponse.js +7 -13
- package/dist/client/users/models/DefaultAccessTokenResponse.js +4 -10
- package/dist/client/users/models/Language.js +4 -10
- package/dist/client/users/models/PageUserDto.d.ts +3 -3
- package/dist/client/users/models/PageUserDto.js +13 -19
- package/dist/client/users/models/Pageable.js +4 -10
- package/dist/client/users/models/PageableObject.d.ts +1 -1
- package/dist/client/users/models/PageableObject.js +7 -13
- package/dist/client/users/models/PersonalAccessTokenPrincipal.d.ts +1 -1
- package/dist/client/users/models/PersonalAccessTokenPrincipal.js +7 -13
- package/dist/client/users/models/Skill.js +4 -10
- package/dist/client/users/models/SortObject.js +4 -10
- package/dist/client/users/models/UpdateUserRequest.js +4 -10
- package/dist/client/users/models/UserDto.d.ts +2 -2
- package/dist/client/users/models/UserDto.js +10 -16
- package/dist/client/users/models/UserOverviewDto.js +4 -10
- package/dist/client/users/models/index.d.ts +14 -14
- package/dist/client/users/models/index.js +14 -30
- package/dist/client/users/runtime.js +17 -32
- package/dist/commands/compress/index.d.ts +1 -1
- package/dist/commands/compress/index.js +13 -19
- package/dist/commands/datapool/upload.d.ts +4 -4
- package/dist/commands/datapool/upload.js +24 -30
- package/dist/commands/get-context/index.d.ts +1 -1
- package/dist/commands/get-context/index.js +2 -5
- package/dist/commands/init/index.d.ts +3 -3
- package/dist/commands/init/index.js +30 -36
- package/dist/commands/list-contexts/index.d.ts +2 -2
- package/dist/commands/list-contexts/index.js +11 -17
- package/dist/commands/login/index.d.ts +3 -3
- package/dist/commands/login/index.js +16 -22
- package/dist/commands/logout/index.d.ts +1 -1
- package/dist/commands/logout/index.js +7 -10
- package/dist/commands/openapi/index.d.ts +7 -7
- package/dist/commands/openapi/index.js +81 -87
- package/dist/commands/run/index.d.ts +6 -6
- package/dist/commands/run/index.js +43 -48
- package/dist/commands/serve/index.d.ts +3 -3
- package/dist/commands/serve/index.js +31 -37
- package/dist/commands/services/index.d.ts +5 -5
- package/dist/commands/services/index.js +17 -23
- package/dist/commands/set-context/index.d.ts +4 -4
- package/dist/commands/set-context/index.js +13 -19
- package/dist/commands/up/index.d.ts +5 -5
- package/dist/commands/up/index.js +51 -57
- package/dist/index.js +1 -4
- package/dist/lib/command.js +5 -10
- package/dist/lib/debug.js +1 -5
- package/dist/lib/entrypoint-resolver.js +3 -7
- package/dist/lib/error.js +8 -12
- package/dist/lib/fetch.js +4 -10
- package/dist/lib/init-user-input.d.ts +1 -1
- package/dist/lib/init-user-input.js +16 -20
- package/dist/lib/random-name.js +1 -5
- package/dist/lib/random-string.js +1 -5
- package/dist/lib/repository.js +9 -17
- package/dist/lib/stream-to-blob.d.ts +1 -1
- package/dist/lib/stream-to-blob.js +1 -5
- package/dist/lib/up/get-description.js +9 -15
- package/dist/lib/up/ignore.js +9 -15
- package/dist/lib/up/zip.js +18 -24
- package/dist/model/account.js +1 -2
- package/dist/model/command.d.ts +2 -2
- package/dist/model/command.js +11 -19
- package/dist/model/managed-service-config.js +4 -7
- package/dist/model/user-config.js +3 -6
- package/dist/service/auth-service.d.ts +3 -3
- package/dist/service/auth-service.js +8 -14
- package/dist/service/command-service.d.ts +2 -2
- package/dist/service/command-service.js +1 -5
- package/dist/service/quantum-hub-service.d.ts +10 -10
- package/dist/service/quantum-hub-service.js +21 -24
- package/dist/service/service-config-service.d.ts +1 -1
- package/dist/service/service-config-service.js +14 -21
- package/dist/service/user-config-service.d.ts +1 -1
- package/dist/service/user-config-service.js +14 -21
- package/dist/service/user-service.d.ts +2 -2
- package/dist/service/user-service.js +8 -11
- package/oclif.manifest.json +119 -119
- package/package.json +4 -2
package/bin/dev.js
CHANGED
|
@@ -10,6 +10,8 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
|
|
10
10
|
process.env.QHUBCTL_FORCE_VERSION_CACHE_UPDATE = 'true';
|
|
11
11
|
|
|
12
12
|
(async () => {
|
|
13
|
+
const {settings} = await import('@oclif/core')
|
|
14
|
+
settings.enableAutoTranspile = false
|
|
13
15
|
const oclif = await import('@oclif/core')
|
|
14
|
-
await oclif.execute({ development: true, dir:
|
|
16
|
+
await oclif.execute({ development: true, dir: import.meta.url })
|
|
15
17
|
})()
|
package/bin/run.js
CHANGED
|
@@ -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 { AccessTokenDto, ApplicationDto, CreateApplicationRequest, SubscriptionDto } from '../models/index';
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import type { AccessTokenDto, ApplicationDto, CreateApplicationRequest, SubscriptionDto } from '../models/index.js';
|
|
14
14
|
export interface CreateApplicationOperationRequest {
|
|
15
15
|
createApplicationRequest: CreateApplicationRequest;
|
|
16
16
|
xOrganizationId?: 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
|
-
|
|
16
|
-
|
|
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.ServicePlatformApplicationsApi = void 0;
|
|
50
|
-
const runtime = __importStar(require("../runtime"));
|
|
51
|
-
const index_1 = require("../models/index");
|
|
14
|
+
import * as runtime from '../runtime.js';
|
|
15
|
+
import { AccessTokenDtoFromJSON, ApplicationDtoFromJSON, CreateApplicationRequestToJSON, SubscriptionDtoFromJSON, } from '../models/index.js';
|
|
52
16
|
/**
|
|
53
17
|
*
|
|
54
18
|
*/
|
|
55
|
-
class ServicePlatformApplicationsApi extends runtime.BaseAPI {
|
|
19
|
+
export class ServicePlatformApplicationsApi extends runtime.BaseAPI {
|
|
56
20
|
/**
|
|
57
21
|
* Creates a new application within your organization or for yourself.
|
|
58
22
|
*/
|
|
@@ -78,9 +42,9 @@ class ServicePlatformApplicationsApi extends runtime.BaseAPI {
|
|
|
78
42
|
method: 'POST',
|
|
79
43
|
headers: headerParameters,
|
|
80
44
|
query: queryParameters,
|
|
81
|
-
body:
|
|
45
|
+
body: CreateApplicationRequestToJSON(requestParameters['createApplicationRequest']),
|
|
82
46
|
}, initOverrides);
|
|
83
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
47
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDtoFromJSON(jsonValue));
|
|
84
48
|
}
|
|
85
49
|
/**
|
|
86
50
|
* Creates a new application within your organization or for yourself.
|
|
@@ -147,7 +111,7 @@ class ServicePlatformApplicationsApi extends runtime.BaseAPI {
|
|
|
147
111
|
headers: headerParameters,
|
|
148
112
|
query: queryParameters,
|
|
149
113
|
}, initOverrides);
|
|
150
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
114
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccessTokenDtoFromJSON(jsonValue));
|
|
151
115
|
}
|
|
152
116
|
/**
|
|
153
117
|
* Gets the access token for your application. The access token must be used to authenticate execution requests to subscribed services.
|
|
@@ -181,7 +145,7 @@ class ServicePlatformApplicationsApi extends runtime.BaseAPI {
|
|
|
181
145
|
headers: headerParameters,
|
|
182
146
|
query: queryParameters,
|
|
183
147
|
}, initOverrides);
|
|
184
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDtoFromJSON(jsonValue));
|
|
185
149
|
}
|
|
186
150
|
/**
|
|
187
151
|
* Gets an specific application and its basic properties.
|
|
@@ -215,7 +179,7 @@ class ServicePlatformApplicationsApi extends runtime.BaseAPI {
|
|
|
215
179
|
headers: headerParameters,
|
|
216
180
|
query: queryParameters,
|
|
217
181
|
}, initOverrides);
|
|
218
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
182
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SubscriptionDtoFromJSON));
|
|
219
183
|
}
|
|
220
184
|
/**
|
|
221
185
|
* Gets a list of all subscriptions of an application. This information concerns the services this application is subscribe to, either internal or public (through the marketplace API) subscriptions.
|
|
@@ -246,7 +210,7 @@ class ServicePlatformApplicationsApi extends runtime.BaseAPI {
|
|
|
246
210
|
headers: headerParameters,
|
|
247
211
|
query: queryParameters,
|
|
248
212
|
}, initOverrides);
|
|
249
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
213
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApplicationDtoFromJSON));
|
|
250
214
|
}
|
|
251
215
|
/**
|
|
252
216
|
* Gets a list of all applications.
|
|
@@ -256,4 +220,3 @@ class ServicePlatformApplicationsApi extends runtime.BaseAPI {
|
|
|
256
220
|
return await response.value();
|
|
257
221
|
}
|
|
258
222
|
}
|
|
259
|
-
exports.ServicePlatformApplicationsApi = ServicePlatformApplicationsApi;
|
|
@@ -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 { MonthAmountDto } from '../models/index';
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import type { MonthAmountDto } from '../models/index.js';
|
|
14
14
|
export interface GetCostsByMonthRequest {
|
|
15
15
|
year: number;
|
|
16
16
|
month: number;
|
|
@@ -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
|
-
|
|
16
|
-
|
|
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.ServicePlatformDashboardApi = void 0;
|
|
50
|
-
const runtime = __importStar(require("../runtime"));
|
|
51
|
-
const index_1 = require("../models/index");
|
|
14
|
+
import * as runtime from '../runtime.js';
|
|
15
|
+
import { MonthAmountDtoFromJSON, } from '../models/index.js';
|
|
52
16
|
/**
|
|
53
17
|
*
|
|
54
18
|
*/
|
|
55
|
-
class ServicePlatformDashboardApi extends runtime.BaseAPI {
|
|
19
|
+
export class ServicePlatformDashboardApi extends runtime.BaseAPI {
|
|
56
20
|
/**
|
|
57
21
|
* Returns the cost report for a given month.
|
|
58
22
|
*/
|
|
@@ -87,7 +51,7 @@ class ServicePlatformDashboardApi extends runtime.BaseAPI {
|
|
|
87
51
|
headers: headerParameters,
|
|
88
52
|
query: queryParameters,
|
|
89
53
|
}, initOverrides);
|
|
90
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MonthAmountDtoFromJSON(jsonValue));
|
|
91
55
|
}
|
|
92
56
|
/**
|
|
93
57
|
* Returns the cost report for a given month.
|
|
@@ -130,7 +94,7 @@ class ServicePlatformDashboardApi extends runtime.BaseAPI {
|
|
|
130
94
|
headers: headerParameters,
|
|
131
95
|
query: queryParameters,
|
|
132
96
|
}, initOverrides);
|
|
133
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MonthAmountDtoFromJSON(jsonValue));
|
|
134
98
|
}
|
|
135
99
|
/**
|
|
136
100
|
* Returns the revenue report for a given month.
|
|
@@ -140,4 +104,3 @@ class ServicePlatformDashboardApi extends runtime.BaseAPI {
|
|
|
140
104
|
return await response.value();
|
|
141
105
|
}
|
|
142
106
|
}
|
|
143
|
-
exports.ServicePlatformDashboardApi = ServicePlatformDashboardApi;
|
|
@@ -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 { CreateDataPoolRequest, DataPoolDto, DataSourceDescriptorDto, PageDataPoolDto, UpdateDataPoolRequest } from '../models/index';
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import type { CreateDataPoolRequest, DataPoolDto, DataSourceDescriptorDto, PageDataPoolDto, UpdateDataPoolRequest } from '../models/index.js';
|
|
14
14
|
export interface CreateDataPoolOperationRequest {
|
|
15
15
|
createDataPoolRequest: CreateDataPoolRequest;
|
|
16
16
|
xOrganizationId?: 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
|
-
|
|
16
|
-
|
|
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.ServicePlatformDataPoolsApi = void 0;
|
|
50
|
-
const runtime = __importStar(require("../runtime"));
|
|
51
|
-
const index_1 = require("../models/index");
|
|
14
|
+
import * as runtime from '../runtime.js';
|
|
15
|
+
import { CreateDataPoolRequestToJSON, DataPoolDtoFromJSON, DataSourceDescriptorDtoFromJSON, PageDataPoolDtoFromJSON, UpdateDataPoolRequestToJSON, } from '../models/index.js';
|
|
52
16
|
/**
|
|
53
17
|
*
|
|
54
18
|
*/
|
|
55
|
-
class ServicePlatformDataPoolsApi extends runtime.BaseAPI {
|
|
19
|
+
export class ServicePlatformDataPoolsApi extends runtime.BaseAPI {
|
|
56
20
|
/**
|
|
57
21
|
* Creates a new data pool. The user will be the owner of the data pool.
|
|
58
22
|
*/
|
|
@@ -78,9 +42,9 @@ class ServicePlatformDataPoolsApi extends runtime.BaseAPI {
|
|
|
78
42
|
method: 'POST',
|
|
79
43
|
headers: headerParameters,
|
|
80
44
|
query: queryParameters,
|
|
81
|
-
body:
|
|
45
|
+
body: CreateDataPoolRequestToJSON(requestParameters['createDataPoolRequest']),
|
|
82
46
|
}, initOverrides);
|
|
83
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
47
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataPoolDtoFromJSON(jsonValue));
|
|
84
48
|
}
|
|
85
49
|
/**
|
|
86
50
|
* Creates a new data pool. The user will be the owner of the data pool.
|
|
@@ -136,7 +100,7 @@ class ServicePlatformDataPoolsApi extends runtime.BaseAPI {
|
|
|
136
100
|
query: queryParameters,
|
|
137
101
|
body: formParams,
|
|
138
102
|
}, initOverrides);
|
|
139
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
103
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataSourceDescriptorDtoFromJSON(jsonValue));
|
|
140
104
|
}
|
|
141
105
|
/**
|
|
142
106
|
* Uploads a file to a data pool. It creates a data source containing one file. The user must have the permission to modify the data pool.
|
|
@@ -239,7 +203,7 @@ class ServicePlatformDataPoolsApi extends runtime.BaseAPI {
|
|
|
239
203
|
headers: headerParameters,
|
|
240
204
|
query: queryParameters,
|
|
241
205
|
}, initOverrides);
|
|
242
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
206
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataPoolDtoFromJSON(jsonValue));
|
|
243
207
|
}
|
|
244
208
|
/**
|
|
245
209
|
* Gets a data pool by its id. The user must have access to the data pool.
|
|
@@ -282,7 +246,7 @@ class ServicePlatformDataPoolsApi extends runtime.BaseAPI {
|
|
|
282
246
|
headers: headerParameters,
|
|
283
247
|
query: queryParameters,
|
|
284
248
|
}, initOverrides);
|
|
285
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
249
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PageDataPoolDtoFromJSON(jsonValue));
|
|
286
250
|
}
|
|
287
251
|
/**
|
|
288
252
|
* Gets a list of all data pools the user has access to. The result is paginated according to the given parameters.
|
|
@@ -316,7 +280,7 @@ class ServicePlatformDataPoolsApi extends runtime.BaseAPI {
|
|
|
316
280
|
headers: headerParameters,
|
|
317
281
|
query: queryParameters,
|
|
318
282
|
}, initOverrides);
|
|
319
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
283
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DataSourceDescriptorDtoFromJSON));
|
|
320
284
|
}
|
|
321
285
|
/**
|
|
322
286
|
* Retrieves all data sources of an existing data pool. The user must have the permission to view the data pool.
|
|
@@ -395,9 +359,9 @@ class ServicePlatformDataPoolsApi extends runtime.BaseAPI {
|
|
|
395
359
|
method: 'PUT',
|
|
396
360
|
headers: headerParameters,
|
|
397
361
|
query: queryParameters,
|
|
398
|
-
body:
|
|
362
|
+
body: UpdateDataPoolRequestToJSON(requestParameters['updateDataPoolRequest']),
|
|
399
363
|
}, initOverrides);
|
|
400
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
364
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataPoolDtoFromJSON(jsonValue));
|
|
401
365
|
}
|
|
402
366
|
/**
|
|
403
367
|
* Updates an existing data pool. The user must have access to the data pool.
|
|
@@ -407,4 +371,3 @@ class ServicePlatformDataPoolsApi extends runtime.BaseAPI {
|
|
|
407
371
|
return await response.value();
|
|
408
372
|
}
|
|
409
373
|
}
|
|
410
|
-
exports.ServicePlatformDataPoolsApi = ServicePlatformDataPoolsApi;
|
|
@@ -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 { CreateJobRequest, JobDto, JobOverviewDto, ProductUsageDto } from '../models/index';
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import type { CreateJobRequest, JobDto, JobOverviewDto, ProductUsageDto } from '../models/index.js';
|
|
14
14
|
export interface CancelJobRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
xOrganizationId?: 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
|
-
|
|
16
|
-
|
|
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.ServicePlatformJobsApi = void 0;
|
|
50
|
-
const runtime = __importStar(require("../runtime"));
|
|
51
|
-
const index_1 = require("../models/index");
|
|
14
|
+
import * as runtime from '../runtime.js';
|
|
15
|
+
import { CreateJobRequestToJSON, JobDtoFromJSON, JobOverviewDtoFromJSON, ProductUsageDtoFromJSON, } from '../models/index.js';
|
|
52
16
|
/**
|
|
53
17
|
*
|
|
54
18
|
*/
|
|
55
|
-
class ServicePlatformJobsApi extends runtime.BaseAPI {
|
|
19
|
+
export class ServicePlatformJobsApi extends runtime.BaseAPI {
|
|
56
20
|
/**
|
|
57
21
|
* Cancels a given job.
|
|
58
22
|
*/
|
|
@@ -78,7 +42,7 @@ class ServicePlatformJobsApi extends runtime.BaseAPI {
|
|
|
78
42
|
headers: headerParameters,
|
|
79
43
|
query: queryParameters,
|
|
80
44
|
}, initOverrides);
|
|
81
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
|
|
82
46
|
}
|
|
83
47
|
/**
|
|
84
48
|
* Cancels a given job.
|
|
@@ -112,9 +76,9 @@ class ServicePlatformJobsApi extends runtime.BaseAPI {
|
|
|
112
76
|
method: 'POST',
|
|
113
77
|
headers: headerParameters,
|
|
114
78
|
query: queryParameters,
|
|
115
|
-
body:
|
|
79
|
+
body: CreateJobRequestToJSON(requestParameters['createJobRequest']),
|
|
116
80
|
}, initOverrides);
|
|
117
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
81
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
|
|
118
82
|
}
|
|
119
83
|
/**
|
|
120
84
|
* Creates a new job execution for one of your services.
|
|
@@ -181,7 +145,7 @@ class ServicePlatformJobsApi extends runtime.BaseAPI {
|
|
|
181
145
|
headers: headerParameters,
|
|
182
146
|
query: queryParameters,
|
|
183
147
|
}, initOverrides);
|
|
184
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
|
|
185
149
|
}
|
|
186
150
|
/**
|
|
187
151
|
* Retrieves a given job.
|
|
@@ -215,7 +179,7 @@ class ServicePlatformJobsApi extends runtime.BaseAPI {
|
|
|
215
179
|
headers: headerParameters,
|
|
216
180
|
query: queryParameters,
|
|
217
181
|
}, initOverrides);
|
|
218
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
182
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProductUsageDtoFromJSON));
|
|
219
183
|
}
|
|
220
184
|
/**
|
|
221
185
|
* Retrieves estimated costs for a finished job.
|
|
@@ -285,7 +249,7 @@ class ServicePlatformJobsApi extends runtime.BaseAPI {
|
|
|
285
249
|
headers: headerParameters,
|
|
286
250
|
query: queryParameters,
|
|
287
251
|
}, initOverrides);
|
|
288
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
252
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(JobOverviewDtoFromJSON));
|
|
289
253
|
}
|
|
290
254
|
/**
|
|
291
255
|
* Retrieves a list of executed jobs.
|
|
@@ -295,4 +259,3 @@ class ServicePlatformJobsApi extends runtime.BaseAPI {
|
|
|
295
259
|
return await response.value();
|
|
296
260
|
}
|
|
297
261
|
}
|
|
298
|
-
exports.ServicePlatformJobsApi = ServicePlatformJobsApi;
|
|
@@ -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 { ApiDto, ApiOverviewDto } from '../models/index';
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import type { ApiDto, ApiOverviewDto } from '../models/index.js';
|
|
14
14
|
export interface FindServiceRequest {
|
|
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
|
-
|
|
16
|
-
|
|
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.ServicePlatformMarketplaceApi = void 0;
|
|
50
|
-
const runtime = __importStar(require("../runtime"));
|
|
51
|
-
const index_1 = require("../models/index");
|
|
14
|
+
import * as runtime from '../runtime.js';
|
|
15
|
+
import { ApiDtoFromJSON, ApiOverviewDtoFromJSON, } from '../models/index.js';
|
|
52
16
|
/**
|
|
53
17
|
*
|
|
54
18
|
*/
|
|
55
|
-
class ServicePlatformMarketplaceApi extends runtime.BaseAPI {
|
|
19
|
+
export class ServicePlatformMarketplaceApi extends runtime.BaseAPI {
|
|
56
20
|
/**
|
|
57
21
|
* Gets a specific publicly published service and its basic properties.
|
|
58
22
|
*/
|
|
@@ -75,7 +39,7 @@ class ServicePlatformMarketplaceApi extends runtime.BaseAPI {
|
|
|
75
39
|
headers: headerParameters,
|
|
76
40
|
query: queryParameters,
|
|
77
41
|
}, initOverrides);
|
|
78
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
42
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiDtoFromJSON(jsonValue));
|
|
79
43
|
}
|
|
80
44
|
/**
|
|
81
45
|
* Gets a specific publicly published service and its basic properties.
|
|
@@ -103,7 +67,7 @@ class ServicePlatformMarketplaceApi extends runtime.BaseAPI {
|
|
|
103
67
|
headers: headerParameters,
|
|
104
68
|
query: queryParameters,
|
|
105
69
|
}, initOverrides);
|
|
106
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
70
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiOverviewDtoFromJSON));
|
|
107
71
|
}
|
|
108
72
|
/**
|
|
109
73
|
* Gets a list of all publicly published service on the Quantum Platform.
|
|
@@ -149,4 +113,3 @@ class ServicePlatformMarketplaceApi extends runtime.BaseAPI {
|
|
|
149
113
|
return await response.value();
|
|
150
114
|
}
|
|
151
115
|
}
|
|
152
|
-
exports.ServicePlatformMarketplaceApi = ServicePlatformMarketplaceApi;
|
|
@@ -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 { MeteringRequest, MeteringResponse } from '../models/index';
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import type { MeteringRequest, MeteringResponse } from '../models/index.js';
|
|
14
14
|
export interface MeteringOperationRequest {
|
|
15
15
|
meteringRequest: MeteringRequest;
|
|
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
|
-
|
|
16
|
-
|
|
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.ServicePlatformMeteringAPIApi = void 0;
|
|
50
|
-
const runtime = __importStar(require("../runtime"));
|
|
51
|
-
const index_1 = require("../models/index");
|
|
14
|
+
import * as runtime from '../runtime.js';
|
|
15
|
+
import { MeteringRequestToJSON, MeteringResponseFromJSON, } from '../models/index.js';
|
|
52
16
|
/**
|
|
53
17
|
*
|
|
54
18
|
*/
|
|
55
|
-
class ServicePlatformMeteringAPIApi extends runtime.BaseAPI {
|
|
19
|
+
export class ServicePlatformMeteringAPIApi extends runtime.BaseAPI {
|
|
56
20
|
/**
|
|
57
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.
|
|
58
22
|
*/
|
|
@@ -75,9 +39,9 @@ class ServicePlatformMeteringAPIApi extends runtime.BaseAPI {
|
|
|
75
39
|
method: 'POST',
|
|
76
40
|
headers: headerParameters,
|
|
77
41
|
query: queryParameters,
|
|
78
|
-
body:
|
|
42
|
+
body: MeteringRequestToJSON(requestParameters['meteringRequest']),
|
|
79
43
|
}, initOverrides);
|
|
80
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
44
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MeteringResponseFromJSON(jsonValue));
|
|
81
45
|
}
|
|
82
46
|
/**
|
|
83
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.
|
|
@@ -87,4 +51,3 @@ class ServicePlatformMeteringAPIApi extends runtime.BaseAPI {
|
|
|
87
51
|
return await response.value();
|
|
88
52
|
}
|
|
89
53
|
}
|
|
90
|
-
exports.ServicePlatformMeteringAPIApi = ServicePlatformMeteringAPIApi;
|