@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,49 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub 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
- /**
15
- * @export
16
- */
17
- export const RuntimeConfigurationRuntimeEnum = {
18
- Docker: 'DOCKER',
19
- PythonTemplate: 'PYTHON_TEMPLATE'
20
- };
21
- /**
22
- * Check if a given object implements the RuntimeConfiguration interface.
23
- */
24
- export function instanceOfRuntimeConfiguration(value) {
25
- return true;
26
- }
27
- export function RuntimeConfigurationFromJSON(json) {
28
- return RuntimeConfigurationFromJSONTyped(json, false);
29
- }
30
- export function RuntimeConfigurationFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'runtime': json['runtime'] == null ? undefined : json['runtime'],
36
- 'environment': json['environment'] == null ? undefined : json['environment'],
37
- 'applyProviderTokens': json['applyProviderTokens'] == null ? undefined : json['applyProviderTokens'],
38
- };
39
- }
40
- export function RuntimeConfigurationToJSON(value) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'runtime': value['runtime'],
46
- 'environment': value['environment'],
47
- 'applyProviderTokens': value['applyProviderTokens'],
48
- };
49
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * Quantum Hub Platform API
3
- * Part of the OpenAPI specification for the Quantum Hub 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
- /**
13
- *
14
- * @export
15
- * @interface ServiceDefinitionCommand
16
- */
17
- export interface ServiceDefinitionCommand {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ServiceDefinitionCommand
22
- */
23
- type?: ServiceDefinitionCommandTypeEnum;
24
- }
25
- /**
26
- * @export
27
- */
28
- export declare const ServiceDefinitionCommandTypeEnum: {
29
- readonly Unpublish: "UNPUBLISH";
30
- readonly UnpublishForce: "UNPUBLISH_FORCE";
31
- };
32
- export type ServiceDefinitionCommandTypeEnum = typeof ServiceDefinitionCommandTypeEnum[keyof typeof ServiceDefinitionCommandTypeEnum];
33
- /**
34
- * Check if a given object implements the ServiceDefinitionCommand interface.
35
- */
36
- export declare function instanceOfServiceDefinitionCommand(value: object): value is ServiceDefinitionCommand;
37
- export declare function ServiceDefinitionCommandFromJSON(json: any): ServiceDefinitionCommand;
38
- export declare function ServiceDefinitionCommandFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceDefinitionCommand;
39
- export declare function ServiceDefinitionCommandToJSON(value?: ServiceDefinitionCommand | null): any;
@@ -1,45 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub 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
- /**
15
- * @export
16
- */
17
- export const ServiceDefinitionCommandTypeEnum = {
18
- Unpublish: 'UNPUBLISH',
19
- UnpublishForce: 'UNPUBLISH_FORCE'
20
- };
21
- /**
22
- * Check if a given object implements the ServiceDefinitionCommand interface.
23
- */
24
- export function instanceOfServiceDefinitionCommand(value) {
25
- return true;
26
- }
27
- export function ServiceDefinitionCommandFromJSON(json) {
28
- return ServiceDefinitionCommandFromJSONTyped(json, false);
29
- }
30
- export function ServiceDefinitionCommandFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'type': json['type'] == null ? undefined : json['type'],
36
- };
37
- }
38
- export function ServiceDefinitionCommandToJSON(value) {
39
- if (value == null) {
40
- return value;
41
- }
42
- return {
43
- 'type': value['type'],
44
- };
45
- }
@@ -1,180 +0,0 @@
1
- /**
2
- * Quantum Hub Platform API
3
- * Part of the OpenAPI specification for the Quantum Hub 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 type { ServiceDefinitionDtoSource } from './ServiceDefinitionDtoSource.js';
13
- import type { UpdateResourceConfigurationRequest } from './UpdateResourceConfigurationRequest.js';
14
- import type { PricingPlanDto } from './PricingPlanDto.js';
15
- import type { RuntimeConfiguration } from './RuntimeConfiguration.js';
16
- import type { TaxonomyElement } from './TaxonomyElement.js';
17
- /**
18
- *
19
- * @export
20
- * @interface ServiceDefinitionDto
21
- */
22
- export interface ServiceDefinitionDto {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof ServiceDefinitionDto
27
- */
28
- id?: string;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof ServiceDefinitionDto
33
- */
34
- version?: string;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof ServiceDefinitionDto
39
- */
40
- name?: string;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof ServiceDefinitionDto
45
- */
46
- context?: string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof ServiceDefinitionDto
51
- */
52
- description?: string;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof ServiceDefinitionDto
57
- */
58
- productionEndpoint?: string;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof ServiceDefinitionDto
63
- */
64
- gatewayEndpoint?: string;
65
- /**
66
- *
67
- * @type {string}
68
- * @memberof ServiceDefinitionDto
69
- */
70
- type?: ServiceDefinitionDtoTypeEnum;
71
- /**
72
- *
73
- * @type {Array<PricingPlanDto>}
74
- * @memberof ServiceDefinitionDto
75
- */
76
- pricingPlans?: Array<PricingPlanDto>;
77
- /**
78
- *
79
- * @type {string}
80
- * @memberof ServiceDefinitionDto
81
- */
82
- lifecycle?: ServiceDefinitionDtoLifecycleEnum;
83
- /**
84
- *
85
- * @type {Set<TaxonomyElement>}
86
- * @memberof ServiceDefinitionDto
87
- */
88
- industries?: Set<TaxonomyElement>;
89
- /**
90
- *
91
- * @type {string}
92
- * @memberof ServiceDefinitionDto
93
- */
94
- logoUrl?: string;
95
- /**
96
- *
97
- * @type {string}
98
- * @memberof ServiceDefinitionDto
99
- */
100
- createdAt?: string;
101
- /**
102
- *
103
- * @type {string}
104
- * @memberof ServiceDefinitionDto
105
- */
106
- modifiedAt?: string;
107
- /**
108
- *
109
- * @type {string}
110
- * @memberof ServiceDefinitionDto
111
- */
112
- createdBy?: string;
113
- /**
114
- *
115
- * @type {string}
116
- * @memberof ServiceDefinitionDto
117
- */
118
- modifiedBy?: string;
119
- /**
120
- *
121
- * @type {Set<UpdateResourceConfigurationRequest>}
122
- * @memberof ServiceDefinitionDto
123
- */
124
- configurations?: Set<UpdateResourceConfigurationRequest>;
125
- /**
126
- *
127
- * @type {RuntimeConfiguration}
128
- * @memberof ServiceDefinitionDto
129
- */
130
- runtimeConfiguration?: RuntimeConfiguration;
131
- /**
132
- *
133
- * @type {ServiceDefinitionDtoSource}
134
- * @memberof ServiceDefinitionDto
135
- */
136
- source?: ServiceDefinitionDtoSource;
137
- /**
138
- *
139
- * @type {string}
140
- * @memberof ServiceDefinitionDto
141
- */
142
- processDefinitionId?: string;
143
- /**
144
- *
145
- * @type {string}
146
- * @memberof ServiceDefinitionDto
147
- */
148
- workflowModel?: string;
149
- /**
150
- *
151
- * @type {string}
152
- * @memberof ServiceDefinitionDto
153
- */
154
- workflowModelPreviewImage?: string;
155
- }
156
- /**
157
- * @export
158
- */
159
- export declare const ServiceDefinitionDtoTypeEnum: {
160
- readonly Managed: "MANAGED";
161
- readonly External: "EXTERNAL";
162
- readonly Workflow: "WORKFLOW";
163
- };
164
- export type ServiceDefinitionDtoTypeEnum = typeof ServiceDefinitionDtoTypeEnum[keyof typeof ServiceDefinitionDtoTypeEnum];
165
- /**
166
- * @export
167
- */
168
- export declare const ServiceDefinitionDtoLifecycleEnum: {
169
- readonly Created: "CREATED";
170
- readonly Accessible: "ACCESSIBLE";
171
- readonly Published: "PUBLISHED";
172
- };
173
- export type ServiceDefinitionDtoLifecycleEnum = typeof ServiceDefinitionDtoLifecycleEnum[keyof typeof ServiceDefinitionDtoLifecycleEnum];
174
- /**
175
- * Check if a given object implements the ServiceDefinitionDto interface.
176
- */
177
- export declare function instanceOfServiceDefinitionDto(value: object): value is ServiceDefinitionDto;
178
- export declare function ServiceDefinitionDtoFromJSON(json: any): ServiceDefinitionDto;
179
- export declare function ServiceDefinitionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceDefinitionDto;
180
- export declare function ServiceDefinitionDtoToJSON(value?: ServiceDefinitionDto | null): any;
@@ -1,101 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub 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 { ServiceDefinitionDtoSourceFromJSON, ServiceDefinitionDtoSourceToJSON, } from './ServiceDefinitionDtoSource.js';
15
- import { UpdateResourceConfigurationRequestFromJSON, UpdateResourceConfigurationRequestToJSON, } from './UpdateResourceConfigurationRequest.js';
16
- import { PricingPlanDtoFromJSON, PricingPlanDtoToJSON, } from './PricingPlanDto.js';
17
- import { RuntimeConfigurationFromJSON, RuntimeConfigurationToJSON, } from './RuntimeConfiguration.js';
18
- import { TaxonomyElementFromJSON, TaxonomyElementToJSON, } from './TaxonomyElement.js';
19
- /**
20
- * @export
21
- */
22
- export const ServiceDefinitionDtoTypeEnum = {
23
- Managed: 'MANAGED',
24
- External: 'EXTERNAL',
25
- Workflow: 'WORKFLOW'
26
- };
27
- /**
28
- * @export
29
- */
30
- export const ServiceDefinitionDtoLifecycleEnum = {
31
- Created: 'CREATED',
32
- Accessible: 'ACCESSIBLE',
33
- Published: 'PUBLISHED'
34
- };
35
- /**
36
- * Check if a given object implements the ServiceDefinitionDto interface.
37
- */
38
- export function instanceOfServiceDefinitionDto(value) {
39
- return true;
40
- }
41
- export function ServiceDefinitionDtoFromJSON(json) {
42
- return ServiceDefinitionDtoFromJSONTyped(json, false);
43
- }
44
- export function ServiceDefinitionDtoFromJSONTyped(json, ignoreDiscriminator) {
45
- if (json == null) {
46
- return json;
47
- }
48
- return {
49
- 'id': json['id'] == null ? undefined : json['id'],
50
- 'version': json['version'] == null ? undefined : json['version'],
51
- 'name': json['name'] == null ? undefined : json['name'],
52
- 'context': json['context'] == null ? undefined : json['context'],
53
- 'description': json['description'] == null ? undefined : json['description'],
54
- 'productionEndpoint': json['productionEndpoint'] == null ? undefined : json['productionEndpoint'],
55
- 'gatewayEndpoint': json['gatewayEndpoint'] == null ? undefined : json['gatewayEndpoint'],
56
- 'type': json['type'] == null ? undefined : json['type'],
57
- 'pricingPlans': json['pricingPlans'] == null ? undefined : (json['pricingPlans'].map(PricingPlanDtoFromJSON)),
58
- 'lifecycle': json['lifecycle'] == null ? undefined : json['lifecycle'],
59
- 'industries': json['industries'] == null ? undefined : (new Set(json['industries'].map(TaxonomyElementFromJSON))),
60
- 'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
61
- 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
62
- 'modifiedAt': json['modifiedAt'] == null ? undefined : json['modifiedAt'],
63
- 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
64
- 'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
65
- 'configurations': json['configurations'] == null ? undefined : (new Set(json['configurations'].map(UpdateResourceConfigurationRequestFromJSON))),
66
- 'runtimeConfiguration': json['runtimeConfiguration'] == null ? undefined : RuntimeConfigurationFromJSON(json['runtimeConfiguration']),
67
- 'source': json['source'] == null ? undefined : ServiceDefinitionDtoSourceFromJSON(json['source']),
68
- 'processDefinitionId': json['processDefinitionId'] == null ? undefined : json['processDefinitionId'],
69
- 'workflowModel': json['workflowModel'] == null ? undefined : json['workflowModel'],
70
- 'workflowModelPreviewImage': json['workflowModelPreviewImage'] == null ? undefined : json['workflowModelPreviewImage'],
71
- };
72
- }
73
- export function ServiceDefinitionDtoToJSON(value) {
74
- if (value == null) {
75
- return value;
76
- }
77
- return {
78
- 'id': value['id'],
79
- 'version': value['version'],
80
- 'name': value['name'],
81
- 'context': value['context'],
82
- 'description': value['description'],
83
- 'productionEndpoint': value['productionEndpoint'],
84
- 'gatewayEndpoint': value['gatewayEndpoint'],
85
- 'type': value['type'],
86
- 'pricingPlans': value['pricingPlans'] == null ? undefined : (value['pricingPlans'].map(PricingPlanDtoToJSON)),
87
- 'lifecycle': value['lifecycle'],
88
- 'industries': value['industries'] == null ? undefined : (Array.from(value['industries']).map(TaxonomyElementToJSON)),
89
- 'logoUrl': value['logoUrl'],
90
- 'createdAt': value['createdAt'],
91
- 'modifiedAt': value['modifiedAt'],
92
- 'createdBy': value['createdBy'],
93
- 'modifiedBy': value['modifiedBy'],
94
- 'configurations': value['configurations'] == null ? undefined : (Array.from(value['configurations']).map(UpdateResourceConfigurationRequestToJSON)),
95
- 'runtimeConfiguration': RuntimeConfigurationToJSON(value['runtimeConfiguration']),
96
- 'source': ServiceDefinitionDtoSourceToJSON(value['source']),
97
- 'processDefinitionId': value['processDefinitionId'],
98
- 'workflowModel': value['workflowModel'],
99
- 'workflowModelPreviewImage': value['workflowModelPreviewImage'],
100
- };
101
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Quantum Hub Platform API
3
- * Part of the OpenAPI specification for the Quantum Hub 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 type { FileSource } from './FileSource.js';
13
- import type { RegistrySource } from './RegistrySource.js';
14
- import type { RepositorySource } from './RepositorySource.js';
15
- /**
16
- * @type ServiceDefinitionDtoSource
17
- *
18
- * @export
19
- */
20
- export type ServiceDefinitionDtoSource = FileSource | RegistrySource | RepositorySource;
21
- export declare function ServiceDefinitionDtoSourceFromJSON(json: any): ServiceDefinitionDtoSource;
22
- export declare function ServiceDefinitionDtoSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceDefinitionDtoSource;
23
- export declare function ServiceDefinitionDtoSourceToJSON(value?: ServiceDefinitionDtoSource | null): any;
@@ -1,49 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub 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 { instanceOfFileSource, FileSourceFromJSONTyped, FileSourceToJSON, } from './FileSource.js';
15
- import { instanceOfRegistrySource, RegistrySourceFromJSONTyped, RegistrySourceToJSON, } from './RegistrySource.js';
16
- import { instanceOfRepositorySource, RepositorySourceFromJSONTyped, RepositorySourceToJSON, } from './RepositorySource.js';
17
- export function ServiceDefinitionDtoSourceFromJSON(json) {
18
- return ServiceDefinitionDtoSourceFromJSONTyped(json, false);
19
- }
20
- // @ts-ignore
21
- export function ServiceDefinitionDtoSourceFromJSONTyped(json, ignoreDiscriminator) {
22
- if (json == null) {
23
- return json;
24
- }
25
- if (instanceOfFileSource(json)) {
26
- return FileSourceFromJSONTyped(json, true);
27
- }
28
- if (instanceOfRegistrySource(json)) {
29
- return RegistrySourceFromJSONTyped(json, true);
30
- }
31
- if (instanceOfRepositorySource(json)) {
32
- return RepositorySourceFromJSONTyped(json, true);
33
- }
34
- }
35
- export function ServiceDefinitionDtoSourceToJSON(value) {
36
- if (value == null) {
37
- return value;
38
- }
39
- if (instanceOfFileSource(value)) {
40
- return FileSourceToJSON(value);
41
- }
42
- if (instanceOfRegistrySource(value)) {
43
- return RegistrySourceToJSON(value);
44
- }
45
- if (instanceOfRepositorySource(value)) {
46
- return RepositorySourceToJSON(value);
47
- }
48
- return {};
49
- }
@@ -1,79 +0,0 @@
1
- /**
2
- * Quantum Hub Platform API
3
- * Part of the OpenAPI specification for the Quantum Hub 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
- /**
13
- *
14
- * @export
15
- * @interface ServiceDefinitionOverviewDto
16
- */
17
- export interface ServiceDefinitionOverviewDto {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ServiceDefinitionOverviewDto
22
- */
23
- id?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof ServiceDefinitionOverviewDto
28
- */
29
- name?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof ServiceDefinitionOverviewDto
34
- */
35
- serviceId?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof ServiceDefinitionOverviewDto
40
- */
41
- type?: ServiceDefinitionOverviewDtoTypeEnum;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof ServiceDefinitionOverviewDto
46
- */
47
- lifecycle?: ServiceDefinitionOverviewDtoLifecycleEnum;
48
- /**
49
- *
50
- * @type {boolean}
51
- * @memberof ServiceDefinitionOverviewDto
52
- */
53
- isDeleted?: boolean;
54
- }
55
- /**
56
- * @export
57
- */
58
- export declare const ServiceDefinitionOverviewDtoTypeEnum: {
59
- readonly Managed: "MANAGED";
60
- readonly External: "EXTERNAL";
61
- readonly Workflow: "WORKFLOW";
62
- };
63
- export type ServiceDefinitionOverviewDtoTypeEnum = typeof ServiceDefinitionOverviewDtoTypeEnum[keyof typeof ServiceDefinitionOverviewDtoTypeEnum];
64
- /**
65
- * @export
66
- */
67
- export declare const ServiceDefinitionOverviewDtoLifecycleEnum: {
68
- readonly Created: "CREATED";
69
- readonly Accessible: "ACCESSIBLE";
70
- readonly Published: "PUBLISHED";
71
- };
72
- export type ServiceDefinitionOverviewDtoLifecycleEnum = typeof ServiceDefinitionOverviewDtoLifecycleEnum[keyof typeof ServiceDefinitionOverviewDtoLifecycleEnum];
73
- /**
74
- * Check if a given object implements the ServiceDefinitionOverviewDto interface.
75
- */
76
- export declare function instanceOfServiceDefinitionOverviewDto(value: object): value is ServiceDefinitionOverviewDto;
77
- export declare function ServiceDefinitionOverviewDtoFromJSON(json: any): ServiceDefinitionOverviewDto;
78
- export declare function ServiceDefinitionOverviewDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceDefinitionOverviewDto;
79
- export declare function ServiceDefinitionOverviewDtoToJSON(value?: ServiceDefinitionOverviewDto | null): any;
@@ -1,64 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub 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
- /**
15
- * @export
16
- */
17
- export const ServiceDefinitionOverviewDtoTypeEnum = {
18
- Managed: 'MANAGED',
19
- External: 'EXTERNAL',
20
- Workflow: 'WORKFLOW'
21
- };
22
- /**
23
- * @export
24
- */
25
- export const ServiceDefinitionOverviewDtoLifecycleEnum = {
26
- Created: 'CREATED',
27
- Accessible: 'ACCESSIBLE',
28
- Published: 'PUBLISHED'
29
- };
30
- /**
31
- * Check if a given object implements the ServiceDefinitionOverviewDto interface.
32
- */
33
- export function instanceOfServiceDefinitionOverviewDto(value) {
34
- return true;
35
- }
36
- export function ServiceDefinitionOverviewDtoFromJSON(json) {
37
- return ServiceDefinitionOverviewDtoFromJSONTyped(json, false);
38
- }
39
- export function ServiceDefinitionOverviewDtoFromJSONTyped(json, ignoreDiscriminator) {
40
- if (json == null) {
41
- return json;
42
- }
43
- return {
44
- 'id': json['id'] == null ? undefined : json['id'],
45
- 'name': json['name'] == null ? undefined : json['name'],
46
- 'serviceId': json['serviceId'] == null ? undefined : json['serviceId'],
47
- 'type': json['type'] == null ? undefined : json['type'],
48
- 'lifecycle': json['lifecycle'] == null ? undefined : json['lifecycle'],
49
- 'isDeleted': json['isDeleted'] == null ? undefined : json['isDeleted'],
50
- };
51
- }
52
- export function ServiceDefinitionOverviewDtoToJSON(value) {
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
- 'id': value['id'],
58
- 'name': value['name'],
59
- 'serviceId': value['serviceId'],
60
- 'type': value['type'],
61
- 'lifecycle': value['lifecycle'],
62
- 'isDeleted': value['isDeleted'],
63
- };
64
- }
@@ -1,59 +0,0 @@
1
- /**
2
- * Quantum Hub Platform API
3
- * Part of the OpenAPI specification for the Quantum Hub 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 type { ServiceDefinitionDto } from './ServiceDefinitionDto.js';
13
- /**
14
- *
15
- * @export
16
- * @interface ServiceDto
17
- */
18
- export interface ServiceDto {
19
- /**
20
- * The access permission role for this entity of the current user
21
- * @type {string}
22
- * @memberof ServiceDto
23
- */
24
- readonly currentUserPermission?: ServiceDtoCurrentUserPermissionEnum;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof ServiceDto
29
- */
30
- id?: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof ServiceDto
35
- */
36
- name?: string;
37
- /**
38
- *
39
- * @type {Array<ServiceDefinitionDto>}
40
- * @memberof ServiceDto
41
- */
42
- serviceDefinitions?: Array<ServiceDefinitionDto>;
43
- }
44
- /**
45
- * @export
46
- */
47
- export declare const ServiceDtoCurrentUserPermissionEnum: {
48
- readonly Viewer: "VIEWER";
49
- readonly Maintainer: "MAINTAINER";
50
- readonly Owner: "OWNER";
51
- };
52
- export type ServiceDtoCurrentUserPermissionEnum = typeof ServiceDtoCurrentUserPermissionEnum[keyof typeof ServiceDtoCurrentUserPermissionEnum];
53
- /**
54
- * Check if a given object implements the ServiceDto interface.
55
- */
56
- export declare function instanceOfServiceDto(value: object): value is ServiceDto;
57
- export declare function ServiceDtoFromJSON(json: any): ServiceDto;
58
- export declare function ServiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceDto;
59
- export declare function ServiceDtoToJSON(value?: Omit<ServiceDto, 'currentUserPermission'> | null): any;