@quantum-hub/qhubctl 1.9.0 → 1.11.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 (155) hide show
  1. package/README.md +6 -35
  2. package/dist/commands/datapool-upload.js +7 -3
  3. package/dist/commands/init.js +2 -27
  4. package/dist/commands/list-contexts.js +1 -1
  5. package/dist/commands/services-build-status.js +1 -1
  6. package/dist/commands/set-context.js +6 -2
  7. package/dist/commands/up.js +11 -15
  8. package/dist/lib/error.js +25 -8
  9. package/dist/lib/repository.d.ts +1 -4
  10. package/dist/lib/repository.js +2 -9
  11. package/dist/service/quantum-hub-service.d.ts +9 -13
  12. package/dist/service/quantum-hub-service.js +67 -139
  13. package/package.json +2 -2
  14. package/dist/client/kqh/apis/ServicePlatformApplicationsApi.d.ts +0 -89
  15. package/dist/client/kqh/apis/ServicePlatformApplicationsApi.js +0 -222
  16. package/dist/client/kqh/apis/ServicePlatformDashboardApi.d.ts +0 -44
  17. package/dist/client/kqh/apis/ServicePlatformDashboardApi.js +0 -106
  18. package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.d.ts +0 -133
  19. package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.js +0 -373
  20. package/dist/client/kqh/apis/ServicePlatformJobsApi.d.ts +0 -101
  21. package/dist/client/kqh/apis/ServicePlatformJobsApi.js +0 -261
  22. package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.d.ts +0 -48
  23. package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.js +0 -115
  24. package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.d.ts +0 -29
  25. package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.js +0 -53
  26. package/dist/client/kqh/apis/ServicePlatformServicesApi.d.ts +0 -501
  27. package/dist/client/kqh/apis/ServicePlatformServicesApi.js +0 -1472
  28. package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.d.ts +0 -66
  29. package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.js +0 -157
  30. package/dist/client/kqh/apis/TaxonomiesApi.d.ts +0 -90
  31. package/dist/client/kqh/apis/TaxonomiesApi.js +0 -272
  32. package/dist/client/kqh/apis/index.d.ts +0 -9
  33. package/dist/client/kqh/apis/index.js +0 -11
  34. package/dist/client/kqh/index.d.ts +0 -3
  35. package/dist/client/kqh/index.js +0 -5
  36. package/dist/client/kqh/models/AccessTokenDto.d.ts +0 -81
  37. package/dist/client/kqh/models/AccessTokenDto.js +0 -59
  38. package/dist/client/kqh/models/AmountMajorDto.d.ts +0 -37
  39. package/dist/client/kqh/models/AmountMajorDto.js +0 -40
  40. package/dist/client/kqh/models/ApiDto.d.ts +0 -144
  41. package/dist/client/kqh/models/ApiDto.js +0 -92
  42. package/dist/client/kqh/models/ApiOverviewDto.d.ts +0 -119
  43. package/dist/client/kqh/models/ApiOverviewDto.js +0 -83
  44. package/dist/client/kqh/models/ApplicationDto.d.ts +0 -64
  45. package/dist/client/kqh/models/ApplicationDto.js +0 -53
  46. package/dist/client/kqh/models/BuildJobDto.d.ts +0 -75
  47. package/dist/client/kqh/models/BuildJobDto.js +0 -64
  48. package/dist/client/kqh/models/CpuConfiguration.d.ts +0 -38
  49. package/dist/client/kqh/models/CpuConfiguration.js +0 -43
  50. package/dist/client/kqh/models/CreateApplicationRequest.d.ts +0 -31
  51. package/dist/client/kqh/models/CreateApplicationRequest.js +0 -38
  52. package/dist/client/kqh/models/CreateDataPoolRequest.d.ts +0 -31
  53. package/dist/client/kqh/models/CreateDataPoolRequest.js +0 -40
  54. package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.d.ts +0 -46
  55. package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.js +0 -50
  56. package/dist/client/kqh/models/CreateJobRequest.d.ts +0 -62
  57. package/dist/client/kqh/models/CreateJobRequest.js +0 -51
  58. package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.d.ts +0 -73
  59. package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.js +0 -72
  60. package/dist/client/kqh/models/CreateProductRequest.d.ts +0 -43
  61. package/dist/client/kqh/models/CreateProductRequest.js +0 -46
  62. package/dist/client/kqh/models/CreateSubscriptionRequest.d.ts +0 -37
  63. package/dist/client/kqh/models/CreateSubscriptionRequest.js +0 -44
  64. package/dist/client/kqh/models/CreateWorkflowServiceRequest.d.ts +0 -37
  65. package/dist/client/kqh/models/CreateWorkflowServiceRequest.js +0 -42
  66. package/dist/client/kqh/models/DataPoolDto.d.ts +0 -166
  67. package/dist/client/kqh/models/DataPoolDto.js +0 -98
  68. package/dist/client/kqh/models/DataPoolRef.d.ts +0 -43
  69. package/dist/client/kqh/models/DataPoolRef.js +0 -42
  70. package/dist/client/kqh/models/DataSourceDescriptorDto.d.ts +0 -89
  71. package/dist/client/kqh/models/DataSourceDescriptorDto.js +0 -62
  72. package/dist/client/kqh/models/FileDto.d.ts +0 -73
  73. package/dist/client/kqh/models/FileDto.js +0 -45
  74. package/dist/client/kqh/models/FileSource.d.ts +0 -26
  75. package/dist/client/kqh/models/FileSource.js +0 -28
  76. package/dist/client/kqh/models/GpuConfiguration.d.ts +0 -49
  77. package/dist/client/kqh/models/GpuConfiguration.js +0 -53
  78. package/dist/client/kqh/models/JobDto.d.ts +0 -117
  79. package/dist/client/kqh/models/JobDto.js +0 -75
  80. package/dist/client/kqh/models/JobOverviewDto.d.ts +0 -74
  81. package/dist/client/kqh/models/JobOverviewDto.js +0 -60
  82. package/dist/client/kqh/models/MemoryConfiguration.d.ts +0 -38
  83. package/dist/client/kqh/models/MemoryConfiguration.js +0 -43
  84. package/dist/client/kqh/models/MeteringRequest.d.ts +0 -43
  85. package/dist/client/kqh/models/MeteringRequest.js +0 -42
  86. package/dist/client/kqh/models/MeteringResponse.d.ts +0 -49
  87. package/dist/client/kqh/models/MeteringResponse.js +0 -44
  88. package/dist/client/kqh/models/MonthAmountDto.d.ts +0 -51
  89. package/dist/client/kqh/models/MonthAmountDto.js +0 -46
  90. package/dist/client/kqh/models/OwnerDto.d.ts +0 -67
  91. package/dist/client/kqh/models/OwnerDto.js +0 -50
  92. package/dist/client/kqh/models/PageDataPoolDto.d.ts +0 -94
  93. package/dist/client/kqh/models/PageDataPoolDto.js +0 -61
  94. package/dist/client/kqh/models/PageableObject.d.ts +0 -62
  95. package/dist/client/kqh/models/PageableObject.js +0 -49
  96. package/dist/client/kqh/models/PricingPlanDto.d.ts +0 -52
  97. package/dist/client/kqh/models/PricingPlanDto.js +0 -50
  98. package/dist/client/kqh/models/ProductAmountDto.d.ts +0 -38
  99. package/dist/client/kqh/models/ProductAmountDto.js +0 -41
  100. package/dist/client/kqh/models/ProductDto.d.ts +0 -83
  101. package/dist/client/kqh/models/ProductDto.js +0 -69
  102. package/dist/client/kqh/models/ProductGroupDto.d.ts +0 -45
  103. package/dist/client/kqh/models/ProductGroupDto.js +0 -44
  104. package/dist/client/kqh/models/ProductUsageDto.d.ts +0 -61
  105. package/dist/client/kqh/models/ProductUsageDto.js +0 -48
  106. package/dist/client/kqh/models/RegistrySource.d.ts +0 -52
  107. package/dist/client/kqh/models/RegistrySource.js +0 -49
  108. package/dist/client/kqh/models/RepositorySource.d.ts +0 -32
  109. package/dist/client/kqh/models/RepositorySource.js +0 -41
  110. package/dist/client/kqh/models/ResourceConfiguration.d.ts +0 -31
  111. package/dist/client/kqh/models/ResourceConfiguration.js +0 -52
  112. package/dist/client/kqh/models/ReviewDto.d.ts +0 -51
  113. package/dist/client/kqh/models/ReviewDto.js +0 -49
  114. package/dist/client/kqh/models/RuntimeConfiguration.d.ts +0 -53
  115. package/dist/client/kqh/models/RuntimeConfiguration.js +0 -49
  116. package/dist/client/kqh/models/ServiceDefinitionCommand.d.ts +0 -39
  117. package/dist/client/kqh/models/ServiceDefinitionCommand.js +0 -45
  118. package/dist/client/kqh/models/ServiceDefinitionDto.d.ts +0 -180
  119. package/dist/client/kqh/models/ServiceDefinitionDto.js +0 -101
  120. package/dist/client/kqh/models/ServiceDefinitionDtoSource.d.ts +0 -23
  121. package/dist/client/kqh/models/ServiceDefinitionDtoSource.js +0 -49
  122. package/dist/client/kqh/models/ServiceDefinitionOverviewDto.d.ts +0 -79
  123. package/dist/client/kqh/models/ServiceDefinitionOverviewDto.js +0 -64
  124. package/dist/client/kqh/models/ServiceDto.d.ts +0 -59
  125. package/dist/client/kqh/models/ServiceDto.js +0 -52
  126. package/dist/client/kqh/models/ServiceExecutionConsumerDto.d.ts +0 -67
  127. package/dist/client/kqh/models/ServiceExecutionConsumerDto.js +0 -57
  128. package/dist/client/kqh/models/ServiceExecutionDto.d.ts +0 -49
  129. package/dist/client/kqh/models/ServiceExecutionDto.js +0 -44
  130. package/dist/client/kqh/models/ServiceOverviewDto.d.ts +0 -115
  131. package/dist/client/kqh/models/ServiceOverviewDto.js +0 -85
  132. package/dist/client/kqh/models/ServiceSource.d.ts +0 -31
  133. package/dist/client/kqh/models/ServiceSource.js +0 -52
  134. package/dist/client/kqh/models/SortObject.d.ts +0 -43
  135. package/dist/client/kqh/models/SortObject.js +0 -42
  136. package/dist/client/kqh/models/SubscriptionDto.d.ts +0 -58
  137. package/dist/client/kqh/models/SubscriptionDto.js +0 -49
  138. package/dist/client/kqh/models/TaxonomyElement.d.ts +0 -43
  139. package/dist/client/kqh/models/TaxonomyElement.js +0 -42
  140. package/dist/client/kqh/models/UpdateDataPoolRequest.d.ts +0 -109
  141. package/dist/client/kqh/models/UpdateDataPoolRequest.js +0 -66
  142. package/dist/client/kqh/models/UpdateResourceConfigurationRequest.d.ts +0 -23
  143. package/dist/client/kqh/models/UpdateResourceConfigurationRequest.js +0 -49
  144. package/dist/client/kqh/models/UpdateVersionRequest.d.ts +0 -44
  145. package/dist/client/kqh/models/UpdateVersionRequest.js +0 -43
  146. package/dist/client/kqh/models/UpdateWorkflowServiceRequest.d.ts +0 -31
  147. package/dist/client/kqh/models/UpdateWorkflowServiceRequest.js +0 -27
  148. package/dist/client/kqh/models/ValidationResult.d.ts +0 -52
  149. package/dist/client/kqh/models/ValidationResult.js +0 -50
  150. package/dist/client/kqh/models/index.d.ts +0 -57
  151. package/dist/client/kqh/models/index.js +0 -59
  152. package/dist/client/kqh/runtime.d.ts +0 -181
  153. package/dist/client/kqh/runtime.js +0 -325
  154. package/dist/model/account.d.ts +0 -5
  155. 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;