@quantum-hub/qhubctl 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +41 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +15 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +12 -0
- package/dist/client/kqh/apis/ServicePlatformApplicationsApi.d.ts +89 -0
- package/dist/client/kqh/apis/ServicePlatformApplicationsApi.js +259 -0
- package/dist/client/kqh/apis/ServicePlatformDashboardApi.d.ts +44 -0
- package/dist/client/kqh/apis/ServicePlatformDashboardApi.js +143 -0
- package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.d.ts +133 -0
- package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.js +410 -0
- package/dist/client/kqh/apis/ServicePlatformJobsApi.d.ts +101 -0
- package/dist/client/kqh/apis/ServicePlatformJobsApi.js +298 -0
- package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.d.ts +48 -0
- package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.js +152 -0
- package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.d.ts +29 -0
- package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.js +90 -0
- package/dist/client/kqh/apis/ServicePlatformServicesApi.d.ts +501 -0
- package/dist/client/kqh/apis/ServicePlatformServicesApi.js +1509 -0
- package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.d.ts +66 -0
- package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.js +194 -0
- package/dist/client/kqh/apis/TaxonomiesApi.d.ts +90 -0
- package/dist/client/kqh/apis/TaxonomiesApi.js +309 -0
- package/dist/client/kqh/apis/index.d.ts +9 -0
- package/dist/client/kqh/apis/index.js +27 -0
- package/dist/client/kqh/index.d.ts +3 -0
- package/dist/client/kqh/index.js +21 -0
- package/dist/client/kqh/models/AccessTokenDto.d.ts +81 -0
- package/dist/client/kqh/models/AccessTokenDto.js +66 -0
- package/dist/client/kqh/models/AmountMajorDto.d.ts +37 -0
- package/dist/client/kqh/models/AmountMajorDto.js +46 -0
- package/dist/client/kqh/models/ApiDto.d.ts +144 -0
- package/dist/client/kqh/models/ApiDto.js +99 -0
- package/dist/client/kqh/models/ApiOverviewDto.d.ts +119 -0
- package/dist/client/kqh/models/ApiOverviewDto.js +90 -0
- package/dist/client/kqh/models/ApplicationDto.d.ts +64 -0
- package/dist/client/kqh/models/ApplicationDto.js +60 -0
- package/dist/client/kqh/models/BuildJobDto.d.ts +75 -0
- package/dist/client/kqh/models/BuildJobDto.js +71 -0
- package/dist/client/kqh/models/CpuConfiguration.d.ts +38 -0
- package/dist/client/kqh/models/CpuConfiguration.js +49 -0
- package/dist/client/kqh/models/CreateApplicationRequest.d.ts +31 -0
- package/dist/client/kqh/models/CreateApplicationRequest.js +44 -0
- package/dist/client/kqh/models/CreateDataPoolRequest.d.ts +31 -0
- package/dist/client/kqh/models/CreateDataPoolRequest.js +46 -0
- package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.d.ts +46 -0
- package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.js +57 -0
- package/dist/client/kqh/models/CreateJobRequest.d.ts +62 -0
- package/dist/client/kqh/models/CreateJobRequest.js +57 -0
- package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.d.ts +73 -0
- package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.js +79 -0
- package/dist/client/kqh/models/CreateProductRequest.d.ts +43 -0
- package/dist/client/kqh/models/CreateProductRequest.js +52 -0
- package/dist/client/kqh/models/CreateSubscriptionRequest.d.ts +37 -0
- package/dist/client/kqh/models/CreateSubscriptionRequest.js +50 -0
- package/dist/client/kqh/models/CreateWorkflowServiceRequest.d.ts +37 -0
- package/dist/client/kqh/models/CreateWorkflowServiceRequest.js +48 -0
- package/dist/client/kqh/models/DataPoolDto.d.ts +166 -0
- package/dist/client/kqh/models/DataPoolDto.js +105 -0
- package/dist/client/kqh/models/DataPoolRef.d.ts +43 -0
- package/dist/client/kqh/models/DataPoolRef.js +48 -0
- package/dist/client/kqh/models/DataSourceDescriptorDto.d.ts +89 -0
- package/dist/client/kqh/models/DataSourceDescriptorDto.js +69 -0
- package/dist/client/kqh/models/FileDto.d.ts +73 -0
- package/dist/client/kqh/models/FileDto.js +51 -0
- package/dist/client/kqh/models/FileSource.d.ts +26 -0
- package/dist/client/kqh/models/FileSource.js +34 -0
- package/dist/client/kqh/models/GpuConfiguration.d.ts +49 -0
- package/dist/client/kqh/models/GpuConfiguration.js +60 -0
- package/dist/client/kqh/models/JobDto.d.ts +117 -0
- package/dist/client/kqh/models/JobDto.js +82 -0
- package/dist/client/kqh/models/JobOverviewDto.d.ts +74 -0
- package/dist/client/kqh/models/JobOverviewDto.js +67 -0
- package/dist/client/kqh/models/MemoryConfiguration.d.ts +38 -0
- package/dist/client/kqh/models/MemoryConfiguration.js +49 -0
- package/dist/client/kqh/models/MeteringRequest.d.ts +43 -0
- package/dist/client/kqh/models/MeteringRequest.js +48 -0
- package/dist/client/kqh/models/MeteringResponse.d.ts +49 -0
- package/dist/client/kqh/models/MeteringResponse.js +50 -0
- package/dist/client/kqh/models/MonthAmountDto.d.ts +51 -0
- package/dist/client/kqh/models/MonthAmountDto.js +52 -0
- package/dist/client/kqh/models/OwnerDto.d.ts +67 -0
- package/dist/client/kqh/models/OwnerDto.js +56 -0
- package/dist/client/kqh/models/PageDataPoolDto.d.ts +94 -0
- package/dist/client/kqh/models/PageDataPoolDto.js +67 -0
- package/dist/client/kqh/models/PageableObject.d.ts +62 -0
- package/dist/client/kqh/models/PageableObject.js +55 -0
- package/dist/client/kqh/models/PricingPlanDto.d.ts +52 -0
- package/dist/client/kqh/models/PricingPlanDto.js +57 -0
- package/dist/client/kqh/models/ProductAmountDto.d.ts +38 -0
- package/dist/client/kqh/models/ProductAmountDto.js +47 -0
- package/dist/client/kqh/models/ProductDto.d.ts +83 -0
- package/dist/client/kqh/models/ProductDto.js +76 -0
- package/dist/client/kqh/models/ProductGroupDto.d.ts +45 -0
- package/dist/client/kqh/models/ProductGroupDto.js +50 -0
- package/dist/client/kqh/models/ProductUsageDto.d.ts +61 -0
- package/dist/client/kqh/models/ProductUsageDto.js +54 -0
- package/dist/client/kqh/models/RegistrySource.d.ts +52 -0
- package/dist/client/kqh/models/RegistrySource.js +55 -0
- package/dist/client/kqh/models/RepositorySource.d.ts +32 -0
- package/dist/client/kqh/models/RepositorySource.js +47 -0
- package/dist/client/kqh/models/ResourceConfiguration.d.ts +31 -0
- package/dist/client/kqh/models/ResourceConfiguration.js +58 -0
- package/dist/client/kqh/models/ReviewDto.d.ts +51 -0
- package/dist/client/kqh/models/ReviewDto.js +56 -0
- package/dist/client/kqh/models/RuntimeConfiguration.d.ts +53 -0
- package/dist/client/kqh/models/RuntimeConfiguration.js +56 -0
- package/dist/client/kqh/models/ServiceDefinitionCommand.d.ts +39 -0
- package/dist/client/kqh/models/ServiceDefinitionCommand.js +52 -0
- package/dist/client/kqh/models/ServiceDefinitionDto.d.ts +180 -0
- package/dist/client/kqh/models/ServiceDefinitionDto.js +108 -0
- package/dist/client/kqh/models/ServiceDefinitionDtoSource.d.ts +23 -0
- package/dist/client/kqh/models/ServiceDefinitionDtoSource.js +54 -0
- package/dist/client/kqh/models/ServiceDefinitionOverviewDto.d.ts +79 -0
- package/dist/client/kqh/models/ServiceDefinitionOverviewDto.js +71 -0
- package/dist/client/kqh/models/ServiceDto.d.ts +59 -0
- package/dist/client/kqh/models/ServiceDto.js +59 -0
- package/dist/client/kqh/models/ServiceExecutionConsumerDto.d.ts +67 -0
- package/dist/client/kqh/models/ServiceExecutionConsumerDto.js +64 -0
- package/dist/client/kqh/models/ServiceExecutionDto.d.ts +49 -0
- package/dist/client/kqh/models/ServiceExecutionDto.js +50 -0
- package/dist/client/kqh/models/ServiceOverviewDto.d.ts +115 -0
- package/dist/client/kqh/models/ServiceOverviewDto.js +92 -0
- package/dist/client/kqh/models/ServiceSource.d.ts +31 -0
- package/dist/client/kqh/models/ServiceSource.js +58 -0
- package/dist/client/kqh/models/SortObject.d.ts +43 -0
- package/dist/client/kqh/models/SortObject.js +48 -0
- package/dist/client/kqh/models/SubscriptionDto.d.ts +58 -0
- package/dist/client/kqh/models/SubscriptionDto.js +55 -0
- package/dist/client/kqh/models/TaxonomyElement.d.ts +43 -0
- package/dist/client/kqh/models/TaxonomyElement.js +48 -0
- package/dist/client/kqh/models/UpdateDataPoolRequest.d.ts +109 -0
- package/dist/client/kqh/models/UpdateDataPoolRequest.js +72 -0
- package/dist/client/kqh/models/UpdateResourceConfigurationRequest.d.ts +23 -0
- package/dist/client/kqh/models/UpdateResourceConfigurationRequest.js +54 -0
- package/dist/client/kqh/models/UpdateVersionRequest.d.ts +44 -0
- package/dist/client/kqh/models/UpdateVersionRequest.js +49 -0
- package/dist/client/kqh/models/UpdateWorkflowServiceRequest.d.ts +31 -0
- package/dist/client/kqh/models/UpdateWorkflowServiceRequest.js +44 -0
- package/dist/client/kqh/models/ValidationResult.d.ts +52 -0
- package/dist/client/kqh/models/ValidationResult.js +57 -0
- package/dist/client/kqh/models/index.d.ts +57 -0
- package/dist/client/kqh/models/index.js +75 -0
- package/dist/client/kqh/runtime.d.ts +181 -0
- package/dist/client/kqh/runtime.js +340 -0
- package/dist/client/users/apis/AuthenticationApi.d.ts +31 -0
- package/dist/client/users/apis/AuthenticationApi.js +83 -0
- package/dist/client/users/apis/ExpertsApi.d.ts +44 -0
- package/dist/client/users/apis/ExpertsApi.js +112 -0
- package/dist/client/users/apis/SearchApi.d.ts +46 -0
- package/dist/client/users/apis/SearchApi.js +134 -0
- package/dist/client/users/apis/UserSettingsApi.d.ts +139 -0
- package/dist/client/users/apis/UserSettingsApi.js +417 -0
- package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.d.ts +64 -0
- package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.js +184 -0
- package/dist/client/users/apis/UsersApi.d.ts +70 -0
- package/dist/client/users/apis/UsersApi.js +170 -0
- package/dist/client/users/apis/index.d.ts +6 -0
- package/dist/client/users/apis/index.js +24 -0
- package/dist/client/users/index.d.ts +3 -0
- package/dist/client/users/index.js +21 -0
- package/dist/client/users/models/AccessTokenCreateRequest.d.ts +51 -0
- package/dist/client/users/models/AccessTokenCreateRequest.js +60 -0
- package/dist/client/users/models/AccessTokenDto.d.ts +75 -0
- package/dist/client/users/models/AccessTokenDto.js +68 -0
- package/dist/client/users/models/AccessTokensResponse.d.ts +38 -0
- package/dist/client/users/models/AccessTokensResponse.js +47 -0
- package/dist/client/users/models/DefaultAccessTokenResponse.d.ts +31 -0
- package/dist/client/users/models/DefaultAccessTokenResponse.js +44 -0
- package/dist/client/users/models/Language.d.ts +31 -0
- package/dist/client/users/models/Language.js +44 -0
- package/dist/client/users/models/PageUserDto.d.ts +94 -0
- package/dist/client/users/models/PageUserDto.js +67 -0
- package/dist/client/users/models/Pageable.d.ts +43 -0
- package/dist/client/users/models/Pageable.js +48 -0
- package/dist/client/users/models/PageableObject.d.ts +62 -0
- package/dist/client/users/models/PageableObject.js +55 -0
- package/dist/client/users/models/PersonalAccessTokenPrincipal.d.ts +38 -0
- package/dist/client/users/models/PersonalAccessTokenPrincipal.js +47 -0
- package/dist/client/users/models/Skill.d.ts +31 -0
- package/dist/client/users/models/Skill.js +44 -0
- package/dist/client/users/models/SortObject.d.ts +43 -0
- package/dist/client/users/models/SortObject.js +48 -0
- package/dist/client/users/models/UpdateUserRequest.d.ts +61 -0
- package/dist/client/users/models/UpdateUserRequest.js +54 -0
- package/dist/client/users/models/UserDto.d.ts +111 -0
- package/dist/client/users/models/UserDto.js +72 -0
- package/dist/client/users/models/UserOverviewDto.d.ts +67 -0
- package/dist/client/users/models/UserOverviewDto.js +56 -0
- package/dist/client/users/models/index.d.ts +14 -0
- package/dist/client/users/models/index.js +32 -0
- package/dist/client/users/runtime.d.ts +181 -0
- package/dist/client/users/runtime.js +340 -0
- package/dist/commands/compress/index.d.ts +6 -0
- package/dist/commands/compress/index.js +31 -0
- package/dist/commands/datapool/upload.d.ts +23 -0
- package/dist/commands/datapool/upload.js +266 -0
- package/dist/commands/get-context/index.d.ts +6 -0
- package/dist/commands/get-context/index.js +13 -0
- package/dist/commands/init/index.d.ts +10 -0
- package/dist/commands/init/index.js +81 -0
- package/dist/commands/list-contexts/index.d.ts +9 -0
- package/dist/commands/list-contexts/index.js +36 -0
- package/dist/commands/login/index.d.ts +10 -0
- package/dist/commands/login/index.js +68 -0
- package/dist/commands/logout/index.d.ts +6 -0
- package/dist/commands/logout/index.js +21 -0
- package/dist/commands/openapi/index.d.ts +26 -0
- package/dist/commands/openapi/index.js +313 -0
- package/dist/commands/run/index.d.ts +18 -0
- package/dist/commands/run/index.js +155 -0
- package/dist/commands/serve/index.d.ts +13 -0
- package/dist/commands/serve/index.js +93 -0
- package/dist/commands/services/index.d.ts +14 -0
- package/dist/commands/services/index.js +71 -0
- package/dist/commands/set-context/index.d.ts +17 -0
- package/dist/commands/set-context/index.js +69 -0
- package/dist/commands/up/index.d.ts +19 -0
- package/dist/commands/up/index.js +196 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/lib/command.d.ts +6 -0
- package/dist/lib/command.js +21 -0
- package/dist/lib/debug.d.ts +1 -0
- package/dist/lib/debug.js +5 -0
- package/dist/lib/entrypoint-resolver.d.ts +52 -0
- package/dist/lib/entrypoint-resolver.js +125 -0
- package/dist/lib/error.d.ts +1 -0
- package/dist/lib/error.js +20 -0
- package/dist/lib/fetch.d.ts +7 -0
- package/dist/lib/fetch.js +43 -0
- package/dist/lib/init-user-input.d.ts +18 -0
- package/dist/lib/init-user-input.js +87 -0
- package/dist/lib/random-name.d.ts +1 -0
- package/dist/lib/random-name.js +161 -0
- package/dist/lib/random-string.d.ts +1 -0
- package/dist/lib/random-string.js +12 -0
- package/dist/lib/repository.d.ts +3 -0
- package/dist/lib/repository.js +51 -0
- package/dist/lib/stream-to-blob.d.ts +2 -0
- package/dist/lib/stream-to-blob.js +27 -0
- package/dist/lib/up/get-description.d.ts +1 -0
- package/dist/lib/up/get-description.js +29 -0
- package/dist/lib/up/ignore.d.ts +1 -0
- package/dist/lib/up/ignore.js +21 -0
- package/dist/lib/up/zip.d.ts +1 -0
- package/dist/lib/up/zip.js +40 -0
- package/dist/model/account.d.ts +5 -0
- package/dist/model/account.js +2 -0
- package/dist/model/command.d.ts +12 -0
- package/dist/model/command.js +55 -0
- package/dist/model/managed-service-config.d.ts +28 -0
- package/dist/model/managed-service-config.js +16 -0
- package/dist/model/user-config.d.ts +22 -0
- package/dist/model/user-config.js +8 -0
- package/dist/service/auth-service.d.ts +9 -0
- package/dist/service/auth-service.js +38 -0
- package/dist/service/command-service.d.ts +9 -0
- package/dist/service/command-service.js +14 -0
- package/dist/service/quantum-hub-service.d.ts +24 -0
- package/dist/service/quantum-hub-service.js +222 -0
- package/dist/service/service-config-service.d.ts +3 -0
- package/dist/service/service-config-service.js +26 -0
- package/dist/service/user-config-service.d.ts +3 -0
- package/dist/service/user-config-service.js +26 -0
- package/dist/service/user-service.d.ts +9 -0
- package/dist/service/user-service.js +35 -0
- package/oclif.manifest.json +530 -0
- package/package.json +107 -0
|
@@ -0,0 +1,44 @@
|
|
|
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';
|
|
13
|
+
import type { MonthAmountDto } from '../models/index';
|
|
14
|
+
export interface GetCostsByMonthRequest {
|
|
15
|
+
year: number;
|
|
16
|
+
month: number;
|
|
17
|
+
xOrganizationId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GetRevenueByMonthRequest {
|
|
20
|
+
year: number;
|
|
21
|
+
month: number;
|
|
22
|
+
xOrganizationId?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class ServicePlatformDashboardApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Returns the cost report for a given month.
|
|
30
|
+
*/
|
|
31
|
+
getCostsByMonthRaw(requestParameters: GetCostsByMonthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MonthAmountDto>>;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the cost report for a given month.
|
|
34
|
+
*/
|
|
35
|
+
getCostsByMonth(requestParameters: GetCostsByMonthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MonthAmountDto>;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the revenue report for a given month.
|
|
38
|
+
*/
|
|
39
|
+
getRevenueByMonthRaw(requestParameters: GetRevenueByMonthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MonthAmountDto>>;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the revenue report for a given month.
|
|
42
|
+
*/
|
|
43
|
+
getRevenueByMonth(requestParameters: GetRevenueByMonthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MonthAmountDto>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Quantum Platform API
|
|
6
|
+
* Part of the OpenAPI specification for the Quantum Platform.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
* Contact: info@anaqor.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __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.ServicePlatformDashboardApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class ServicePlatformDashboardApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Returns the cost report for a given month.
|
|
58
|
+
*/
|
|
59
|
+
async getCostsByMonthRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['year'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('year', 'Required parameter "year" was null or undefined when calling getCostsByMonth().');
|
|
62
|
+
}
|
|
63
|
+
if (requestParameters['month'] == null) {
|
|
64
|
+
throw new runtime.RequiredError('month', 'Required parameter "month" was null or undefined when calling getCostsByMonth().');
|
|
65
|
+
}
|
|
66
|
+
const queryParameters = {};
|
|
67
|
+
if (requestParameters['year'] != null) {
|
|
68
|
+
queryParameters['year'] = requestParameters['year'];
|
|
69
|
+
}
|
|
70
|
+
if (requestParameters['month'] != null) {
|
|
71
|
+
queryParameters['month'] = requestParameters['month'];
|
|
72
|
+
}
|
|
73
|
+
const headerParameters = {};
|
|
74
|
+
if (requestParameters['xOrganizationId'] != null) {
|
|
75
|
+
headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
|
|
76
|
+
}
|
|
77
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
78
|
+
headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
|
|
79
|
+
}
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
// oauth required
|
|
82
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
|
|
83
|
+
}
|
|
84
|
+
const response = await this.request({
|
|
85
|
+
path: `/dashboard/costs`,
|
|
86
|
+
method: 'GET',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MonthAmountDtoFromJSON)(jsonValue));
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Returns the cost report for a given month.
|
|
94
|
+
*/
|
|
95
|
+
async getCostsByMonth(requestParameters, initOverrides) {
|
|
96
|
+
const response = await this.getCostsByMonthRaw(requestParameters, initOverrides);
|
|
97
|
+
return await response.value();
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Returns the revenue report for a given month.
|
|
101
|
+
*/
|
|
102
|
+
async getRevenueByMonthRaw(requestParameters, initOverrides) {
|
|
103
|
+
if (requestParameters['year'] == null) {
|
|
104
|
+
throw new runtime.RequiredError('year', 'Required parameter "year" was null or undefined when calling getRevenueByMonth().');
|
|
105
|
+
}
|
|
106
|
+
if (requestParameters['month'] == null) {
|
|
107
|
+
throw new runtime.RequiredError('month', 'Required parameter "month" was null or undefined when calling getRevenueByMonth().');
|
|
108
|
+
}
|
|
109
|
+
const queryParameters = {};
|
|
110
|
+
if (requestParameters['year'] != null) {
|
|
111
|
+
queryParameters['year'] = requestParameters['year'];
|
|
112
|
+
}
|
|
113
|
+
if (requestParameters['month'] != null) {
|
|
114
|
+
queryParameters['month'] = requestParameters['month'];
|
|
115
|
+
}
|
|
116
|
+
const headerParameters = {};
|
|
117
|
+
if (requestParameters['xOrganizationId'] != null) {
|
|
118
|
+
headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
|
|
119
|
+
}
|
|
120
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
121
|
+
headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
|
|
122
|
+
}
|
|
123
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
124
|
+
// oauth required
|
|
125
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
|
|
126
|
+
}
|
|
127
|
+
const response = await this.request({
|
|
128
|
+
path: `/dashboard/revenue`,
|
|
129
|
+
method: 'GET',
|
|
130
|
+
headers: headerParameters,
|
|
131
|
+
query: queryParameters,
|
|
132
|
+
}, initOverrides);
|
|
133
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MonthAmountDtoFromJSON)(jsonValue));
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Returns the revenue report for a given month.
|
|
137
|
+
*/
|
|
138
|
+
async getRevenueByMonth(requestParameters, initOverrides) {
|
|
139
|
+
const response = await this.getRevenueByMonthRaw(requestParameters, initOverrides);
|
|
140
|
+
return await response.value();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.ServicePlatformDashboardApi = ServicePlatformDashboardApi;
|
|
@@ -0,0 +1,133 @@
|
|
|
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';
|
|
13
|
+
import type { CreateDataPoolRequest, DataPoolDto, DataSourceDescriptorDto, PageDataPoolDto, UpdateDataPoolRequest } from '../models/index';
|
|
14
|
+
export interface CreateDataPoolOperationRequest {
|
|
15
|
+
createDataPoolRequest: CreateDataPoolRequest;
|
|
16
|
+
xOrganizationId?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateFileDataSourceRequest {
|
|
19
|
+
dataPoolId: string;
|
|
20
|
+
file: Blob;
|
|
21
|
+
xOrganizationId?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface DeleteDataPoolRequest {
|
|
24
|
+
id: string;
|
|
25
|
+
xOrganizationId?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface DeleteDataSourceRequest {
|
|
28
|
+
dataPoolId: string;
|
|
29
|
+
dataSourceId: string;
|
|
30
|
+
xOrganizationId?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface GetDataPoolRequest {
|
|
33
|
+
id: string;
|
|
34
|
+
xOrganizationId?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface GetDataPoolsRequest {
|
|
37
|
+
xOrganizationId?: string;
|
|
38
|
+
search?: string;
|
|
39
|
+
page?: number;
|
|
40
|
+
size?: number;
|
|
41
|
+
sort?: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
export interface GetDataSourcesRequest {
|
|
44
|
+
dataPoolId: string;
|
|
45
|
+
xOrganizationId?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface GetFileContentRequest {
|
|
48
|
+
dataPoolId: string;
|
|
49
|
+
dataSourceId: string;
|
|
50
|
+
xOrganizationId?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface UpdateDataPoolOperationRequest {
|
|
53
|
+
id: string;
|
|
54
|
+
updateDataPoolRequest: UpdateDataPoolRequest;
|
|
55
|
+
xOrganizationId?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export declare class ServicePlatformDataPoolsApi extends runtime.BaseAPI {
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new data pool. The user will be the owner of the data pool.
|
|
63
|
+
*/
|
|
64
|
+
createDataPoolRaw(requestParameters: CreateDataPoolOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataPoolDto>>;
|
|
65
|
+
/**
|
|
66
|
+
* Creates a new data pool. The user will be the owner of the data pool.
|
|
67
|
+
*/
|
|
68
|
+
createDataPool(requestParameters: CreateDataPoolOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataPoolDto>;
|
|
69
|
+
/**
|
|
70
|
+
* 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.
|
|
71
|
+
*/
|
|
72
|
+
createFileDataSourceRaw(requestParameters: CreateFileDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceDescriptorDto>>;
|
|
73
|
+
/**
|
|
74
|
+
* 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.
|
|
75
|
+
*/
|
|
76
|
+
createFileDataSource(requestParameters: CreateFileDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceDescriptorDto>;
|
|
77
|
+
/**
|
|
78
|
+
* Deletes a data pool by its id. The user must have access to the data pool.
|
|
79
|
+
*/
|
|
80
|
+
deleteDataPoolRaw(requestParameters: DeleteDataPoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
81
|
+
/**
|
|
82
|
+
* Deletes a data pool by its id. The user must have access to the data pool.
|
|
83
|
+
*/
|
|
84
|
+
deleteDataPool(requestParameters: DeleteDataPoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Deletes a data source. The user must have the permission to delete the data source.
|
|
87
|
+
*/
|
|
88
|
+
deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
89
|
+
/**
|
|
90
|
+
* Deletes a data source. The user must have the permission to delete the data source.
|
|
91
|
+
*/
|
|
92
|
+
deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* Gets a data pool by its id. The user must have access to the data pool.
|
|
95
|
+
*/
|
|
96
|
+
getDataPoolRaw(requestParameters: GetDataPoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataPoolDto>>;
|
|
97
|
+
/**
|
|
98
|
+
* Gets a data pool by its id. The user must have access to the data pool.
|
|
99
|
+
*/
|
|
100
|
+
getDataPool(requestParameters: GetDataPoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataPoolDto>;
|
|
101
|
+
/**
|
|
102
|
+
* Gets a list of all data pools the user has access to. The result is paginated according to the given parameters.
|
|
103
|
+
*/
|
|
104
|
+
getDataPoolsRaw(requestParameters: GetDataPoolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageDataPoolDto>>;
|
|
105
|
+
/**
|
|
106
|
+
* Gets a list of all data pools the user has access to. The result is paginated according to the given parameters.
|
|
107
|
+
*/
|
|
108
|
+
getDataPools(requestParameters?: GetDataPoolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageDataPoolDto>;
|
|
109
|
+
/**
|
|
110
|
+
* Retrieves all data sources of an existing data pool. The user must have the permission to view the data pool.
|
|
111
|
+
*/
|
|
112
|
+
getDataSourcesRaw(requestParameters: GetDataSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DataSourceDescriptorDto>>>;
|
|
113
|
+
/**
|
|
114
|
+
* Retrieves all data sources of an existing data pool. The user must have the permission to view the data pool.
|
|
115
|
+
*/
|
|
116
|
+
getDataSources(requestParameters: GetDataSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DataSourceDescriptorDto>>;
|
|
117
|
+
/**
|
|
118
|
+
* Returns the file of a data source. The user must have the permission to view the data pool.
|
|
119
|
+
*/
|
|
120
|
+
getFileContentRaw(requestParameters: GetFileContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
121
|
+
/**
|
|
122
|
+
* Returns the file of a data source. The user must have the permission to view the data pool.
|
|
123
|
+
*/
|
|
124
|
+
getFileContent(requestParameters: GetFileContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Updates an existing data pool. The user must have access to the data pool.
|
|
127
|
+
*/
|
|
128
|
+
updateDataPoolRaw(requestParameters: UpdateDataPoolOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataPoolDto>>;
|
|
129
|
+
/**
|
|
130
|
+
* Updates an existing data pool. The user must have access to the data pool.
|
|
131
|
+
*/
|
|
132
|
+
updateDataPool(requestParameters: UpdateDataPoolOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataPoolDto>;
|
|
133
|
+
}
|