@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,89 +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 { AccessTokenDto, ApplicationDto, CreateApplicationRequest, SubscriptionDto } from '../models/index.js';
14
- export interface CreateApplicationOperationRequest {
15
- createApplicationRequest: CreateApplicationRequest;
16
- xOrganizationId?: string;
17
- }
18
- export interface DeleteApplicationRequest {
19
- id: string;
20
- xOrganizationId?: string;
21
- }
22
- export interface GetAccessTokenRequest {
23
- id: string;
24
- xOrganizationId?: string;
25
- }
26
- export interface GetApplicationRequest {
27
- id: string;
28
- xOrganizationId?: string;
29
- }
30
- export interface GetApplicationSubscriptionsRequest {
31
- id: string;
32
- xOrganizationId?: string;
33
- }
34
- export interface GetApplicationsRequest {
35
- xOrganizationId?: string;
36
- }
37
- /**
38
- *
39
- */
40
- export declare class ServicePlatformApplicationsApi extends runtime.BaseAPI {
41
- /**
42
- * Creates a new application within your organization or for yourself.
43
- */
44
- createApplicationRaw(requestParameters: CreateApplicationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDto>>;
45
- /**
46
- * Creates a new application within your organization or for yourself.
47
- */
48
- createApplication(requestParameters: CreateApplicationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationDto>;
49
- /**
50
- * Deletes an application.
51
- */
52
- deleteApplicationRaw(requestParameters: DeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
53
- /**
54
- * Deletes an application.
55
- */
56
- deleteApplication(requestParameters: DeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
57
- /**
58
- * Gets the access token for your application. The access token must be used to authenticate execution requests to subscribed services.
59
- */
60
- getAccessTokenRaw(requestParameters: GetAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccessTokenDto>>;
61
- /**
62
- * Gets the access token for your application. The access token must be used to authenticate execution requests to subscribed services.
63
- */
64
- getAccessToken(requestParameters: GetAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccessTokenDto>;
65
- /**
66
- * Gets an specific application and its basic properties.
67
- */
68
- getApplicationRaw(requestParameters: GetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDto>>;
69
- /**
70
- * Gets an specific application and its basic properties.
71
- */
72
- getApplication(requestParameters: GetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationDto>;
73
- /**
74
- * 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.
75
- */
76
- getApplicationSubscriptionsRaw(requestParameters: GetApplicationSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SubscriptionDto>>>;
77
- /**
78
- * 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.
79
- */
80
- getApplicationSubscriptions(requestParameters: GetApplicationSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SubscriptionDto>>;
81
- /**
82
- * Gets a list of all applications.
83
- */
84
- getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApplicationDto>>>;
85
- /**
86
- * Gets a list of all applications.
87
- */
88
- getApplications(requestParameters?: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApplicationDto>>;
89
- }
@@ -1,222 +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 { AccessTokenDtoFromJSON, ApplicationDtoFromJSON, CreateApplicationRequestToJSON, SubscriptionDtoFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class ServicePlatformApplicationsApi extends runtime.BaseAPI {
20
- /**
21
- * Creates a new application within your organization or for yourself.
22
- */
23
- async createApplicationRaw(requestParameters, initOverrides) {
24
- if (requestParameters['createApplicationRequest'] == null) {
25
- throw new runtime.RequiredError('createApplicationRequest', 'Required parameter "createApplicationRequest" was null or undefined when calling createApplication().');
26
- }
27
- const queryParameters = {};
28
- const headerParameters = {};
29
- headerParameters['Content-Type'] = 'application/json';
30
- if (requestParameters['xOrganizationId'] != null) {
31
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
32
- }
33
- if (this.configuration && this.configuration.apiKey) {
34
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
35
- }
36
- if (this.configuration && this.configuration.accessToken) {
37
- // oauth required
38
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
39
- }
40
- const response = await this.request({
41
- path: `/v2/applications`,
42
- method: 'POST',
43
- headers: headerParameters,
44
- query: queryParameters,
45
- body: CreateApplicationRequestToJSON(requestParameters['createApplicationRequest']),
46
- }, initOverrides);
47
- return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDtoFromJSON(jsonValue));
48
- }
49
- /**
50
- * Creates a new application within your organization or for yourself.
51
- */
52
- async createApplication(requestParameters, initOverrides) {
53
- const response = await this.createApplicationRaw(requestParameters, initOverrides);
54
- return await response.value();
55
- }
56
- /**
57
- * Deletes an application.
58
- */
59
- async deleteApplicationRaw(requestParameters, initOverrides) {
60
- if (requestParameters['id'] == null) {
61
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteApplication().');
62
- }
63
- const queryParameters = {};
64
- const headerParameters = {};
65
- if (requestParameters['xOrganizationId'] != null) {
66
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
67
- }
68
- if (this.configuration && this.configuration.apiKey) {
69
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
70
- }
71
- if (this.configuration && this.configuration.accessToken) {
72
- // oauth required
73
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
74
- }
75
- const response = await this.request({
76
- path: `/v2/applications/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
77
- method: 'DELETE',
78
- headers: headerParameters,
79
- query: queryParameters,
80
- }, initOverrides);
81
- return new runtime.VoidApiResponse(response);
82
- }
83
- /**
84
- * Deletes an application.
85
- */
86
- async deleteApplication(requestParameters, initOverrides) {
87
- await this.deleteApplicationRaw(requestParameters, initOverrides);
88
- }
89
- /**
90
- * Gets the access token for your application. The access token must be used to authenticate execution requests to subscribed services.
91
- */
92
- async getAccessTokenRaw(requestParameters, initOverrides) {
93
- if (requestParameters['id'] == null) {
94
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAccessToken().');
95
- }
96
- const queryParameters = {};
97
- const headerParameters = {};
98
- if (requestParameters['xOrganizationId'] != null) {
99
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
100
- }
101
- if (this.configuration && this.configuration.apiKey) {
102
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
103
- }
104
- if (this.configuration && this.configuration.accessToken) {
105
- // oauth required
106
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
107
- }
108
- const response = await this.request({
109
- path: `/v2/applications/{id}/access-token`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
110
- method: 'POST',
111
- headers: headerParameters,
112
- query: queryParameters,
113
- }, initOverrides);
114
- return new runtime.JSONApiResponse(response, (jsonValue) => AccessTokenDtoFromJSON(jsonValue));
115
- }
116
- /**
117
- * Gets the access token for your application. The access token must be used to authenticate execution requests to subscribed services.
118
- */
119
- async getAccessToken(requestParameters, initOverrides) {
120
- const response = await this.getAccessTokenRaw(requestParameters, initOverrides);
121
- return await response.value();
122
- }
123
- /**
124
- * Gets an specific application and its basic properties.
125
- */
126
- async getApplicationRaw(requestParameters, initOverrides) {
127
- if (requestParameters['id'] == null) {
128
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApplication().');
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: `/v2/applications/{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) => ApplicationDtoFromJSON(jsonValue));
149
- }
150
- /**
151
- * Gets an specific application and its basic properties.
152
- */
153
- async getApplication(requestParameters, initOverrides) {
154
- const response = await this.getApplicationRaw(requestParameters, initOverrides);
155
- return await response.value();
156
- }
157
- /**
158
- * 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.
159
- */
160
- async getApplicationSubscriptionsRaw(requestParameters, initOverrides) {
161
- if (requestParameters['id'] == null) {
162
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApplicationSubscriptions().');
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: `/v2/applications/{id}/subscriptions`.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(SubscriptionDtoFromJSON));
183
- }
184
- /**
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.
186
- */
187
- async getApplicationSubscriptions(requestParameters, initOverrides) {
188
- const response = await this.getApplicationSubscriptionsRaw(requestParameters, initOverrides);
189
- return await response.value();
190
- }
191
- /**
192
- * Gets a list of all applications.
193
- */
194
- async getApplicationsRaw(requestParameters, initOverrides) {
195
- const queryParameters = {};
196
- const headerParameters = {};
197
- if (requestParameters['xOrganizationId'] != null) {
198
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
199
- }
200
- if (this.configuration && this.configuration.apiKey) {
201
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
202
- }
203
- if (this.configuration && this.configuration.accessToken) {
204
- // oauth required
205
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
206
- }
207
- const response = await this.request({
208
- path: `/v2/applications`,
209
- method: 'GET',
210
- headers: headerParameters,
211
- query: queryParameters,
212
- }, initOverrides);
213
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApplicationDtoFromJSON));
214
- }
215
- /**
216
- * Gets a list of all applications.
217
- */
218
- async getApplications(requestParameters = {}, initOverrides) {
219
- const response = await this.getApplicationsRaw(requestParameters, initOverrides);
220
- return await response.value();
221
- }
222
- }
@@ -1,44 +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 { MonthAmountDto } from '../models/index.js';
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
- }
@@ -1,106 +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 { MonthAmountDtoFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class ServicePlatformDashboardApi extends runtime.BaseAPI {
20
- /**
21
- * Returns the cost report for a given month.
22
- */
23
- async getCostsByMonthRaw(requestParameters, initOverrides) {
24
- if (requestParameters['year'] == null) {
25
- throw new runtime.RequiredError('year', 'Required parameter "year" was null or undefined when calling getCostsByMonth().');
26
- }
27
- if (requestParameters['month'] == null) {
28
- throw new runtime.RequiredError('month', 'Required parameter "month" was null or undefined when calling getCostsByMonth().');
29
- }
30
- const queryParameters = {};
31
- if (requestParameters['year'] != null) {
32
- queryParameters['year'] = requestParameters['year'];
33
- }
34
- if (requestParameters['month'] != null) {
35
- queryParameters['month'] = requestParameters['month'];
36
- }
37
- const headerParameters = {};
38
- if (requestParameters['xOrganizationId'] != null) {
39
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
40
- }
41
- if (this.configuration && this.configuration.apiKey) {
42
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
43
- }
44
- if (this.configuration && this.configuration.accessToken) {
45
- // oauth required
46
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
47
- }
48
- const response = await this.request({
49
- path: `/dashboard/costs`,
50
- method: 'GET',
51
- headers: headerParameters,
52
- query: queryParameters,
53
- }, initOverrides);
54
- return new runtime.JSONApiResponse(response, (jsonValue) => MonthAmountDtoFromJSON(jsonValue));
55
- }
56
- /**
57
- * Returns the cost report for a given month.
58
- */
59
- async getCostsByMonth(requestParameters, initOverrides) {
60
- const response = await this.getCostsByMonthRaw(requestParameters, initOverrides);
61
- return await response.value();
62
- }
63
- /**
64
- * Returns the revenue report for a given month.
65
- */
66
- async getRevenueByMonthRaw(requestParameters, initOverrides) {
67
- if (requestParameters['year'] == null) {
68
- throw new runtime.RequiredError('year', 'Required parameter "year" was null or undefined when calling getRevenueByMonth().');
69
- }
70
- if (requestParameters['month'] == null) {
71
- throw new runtime.RequiredError('month', 'Required parameter "month" was null or undefined when calling getRevenueByMonth().');
72
- }
73
- const queryParameters = {};
74
- if (requestParameters['year'] != null) {
75
- queryParameters['year'] = requestParameters['year'];
76
- }
77
- if (requestParameters['month'] != null) {
78
- queryParameters['month'] = requestParameters['month'];
79
- }
80
- const headerParameters = {};
81
- if (requestParameters['xOrganizationId'] != null) {
82
- headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
83
- }
84
- if (this.configuration && this.configuration.apiKey) {
85
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
86
- }
87
- if (this.configuration && this.configuration.accessToken) {
88
- // oauth required
89
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
90
- }
91
- const response = await this.request({
92
- path: `/dashboard/revenue`,
93
- method: 'GET',
94
- headers: headerParameters,
95
- query: queryParameters,
96
- }, initOverrides);
97
- return new runtime.JSONApiResponse(response, (jsonValue) => MonthAmountDtoFromJSON(jsonValue));
98
- }
99
- /**
100
- * Returns the revenue report for a given month.
101
- */
102
- async getRevenueByMonth(requestParameters, initOverrides) {
103
- const response = await this.getRevenueByMonthRaw(requestParameters, initOverrides);
104
- return await response.value();
105
- }
106
- }
@@ -1,133 +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 { CreateDataPoolRequest, DataPoolDto, DataSourceDescriptorDto, PageDataPoolDto, UpdateDataPoolRequest } from '../models/index.js';
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
- }