qovery-ws-typescript-axios 0.1.618 → 0.1.620

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -2079,6 +2079,249 @@ export type UnitDto = typeof UnitDto[keyof typeof UnitDto];
2079
2079
 
2080
2080
 
2081
2081
 
2082
+ /**
2083
+ * BlueprintPreviewApi - axios parameter creator
2084
+ * @export
2085
+ */
2086
+ export const BlueprintPreviewApiAxiosParamCreator = function (configuration?: Configuration) {
2087
+ return {
2088
+ /**
2089
+ *
2090
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2091
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2092
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
2093
+ * @param {*} [options] Override http request option.
2094
+ * @throws {RequiredError}
2095
+ */
2096
+ handleBlueprintPreviewRequest: async (organization: string, cluster: string, previewId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2097
+ // verify required parameter 'organization' is not null or undefined
2098
+ assertParamExists('handleBlueprintPreviewRequest', 'organization', organization)
2099
+ // verify required parameter 'cluster' is not null or undefined
2100
+ assertParamExists('handleBlueprintPreviewRequest', 'cluster', cluster)
2101
+ // verify required parameter 'previewId' is not null or undefined
2102
+ assertParamExists('handleBlueprintPreviewRequest', 'previewId', previewId)
2103
+ const localVarPath = `/blueprint/preview`
2104
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
2105
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
2106
+ .replace(`{${"preview_id"}}`, encodeURIComponent(String(previewId)));
2107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2108
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2109
+ let baseOptions;
2110
+ if (configuration) {
2111
+ baseOptions = configuration.baseOptions;
2112
+ }
2113
+
2114
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2115
+ const localVarHeaderParameter = {} as any;
2116
+ const localVarQueryParameter = {} as any;
2117
+
2118
+
2119
+
2120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2122
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2123
+
2124
+ return {
2125
+ url: toPathString(localVarUrlObj),
2126
+ options: localVarRequestOptions,
2127
+ };
2128
+ },
2129
+ }
2130
+ };
2131
+
2132
+ /**
2133
+ * BlueprintPreviewApi - functional programming interface
2134
+ * @export
2135
+ */
2136
+ export const BlueprintPreviewApiFp = function(configuration?: Configuration) {
2137
+ const localVarAxiosParamCreator = BlueprintPreviewApiAxiosParamCreator(configuration)
2138
+ return {
2139
+ /**
2140
+ *
2141
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2142
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2143
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2144
+ * @param {*} [options] Override http request option.
2145
+ * @throws {RequiredError}
2146
+ */
2147
+ async handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
2148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.handleBlueprintPreviewRequest(organization, cluster, previewId, options);
2149
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2150
+ const localVarOperationServerBasePath = operationServerMap['BlueprintPreviewApi.handleBlueprintPreviewRequest']?.[localVarOperationServerIndex]?.url;
2151
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2152
+ },
2153
+ }
2154
+ };
2155
+
2156
+ /**
2157
+ * BlueprintPreviewApi - factory interface
2158
+ * @export
2159
+ */
2160
+ export const BlueprintPreviewApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2161
+ const localVarFp = BlueprintPreviewApiFp(configuration)
2162
+ return {
2163
+ /**
2164
+ *
2165
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2166
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2167
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2168
+ * @param {*} [options] Override http request option.
2169
+ * @throws {RequiredError}
2170
+ */
2171
+ handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
2172
+ return localVarFp.handleBlueprintPreviewRequest(organization, cluster, previewId, options).then((request) => request(axios, basePath));
2173
+ },
2174
+ };
2175
+ };
2176
+
2177
+ /**
2178
+ * BlueprintPreviewApi - object-oriented interface
2179
+ * @export
2180
+ * @class BlueprintPreviewApi
2181
+ * @extends {BaseAPI}
2182
+ */
2183
+ export class BlueprintPreviewApi extends BaseAPI {
2184
+ /**
2185
+ *
2186
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2187
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2188
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2189
+ * @param {*} [options] Override http request option.
2190
+ * @throws {RequiredError}
2191
+ * @memberof BlueprintPreviewApi
2192
+ */
2193
+ public handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig) {
2194
+ return BlueprintPreviewApiFp(this.configuration).handleBlueprintPreviewRequest(organization, cluster, previewId, options).then((request) => request(this.axios, this.basePath));
2195
+ }
2196
+ }
2197
+
2198
+
2199
+
2200
+ /**
2201
+ * BlueprintServiceApi - axios parameter creator
2202
+ * @export
2203
+ */
2204
+ export const BlueprintServiceApiAxiosParamCreator = function (configuration?: Configuration) {
2205
+ return {
2206
+ /**
2207
+ *
2208
+ * @param {string} organization
2209
+ * @param {string | null} cluster
2210
+ * @param {string} project
2211
+ * @param {string} environment
2212
+ * @param {*} [options] Override http request option.
2213
+ * @throws {RequiredError}
2214
+ */
2215
+ handleBlueprintServiceCreatedRequest: async (organization: string, cluster: string | null, project: string, environment: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2216
+ // verify required parameter 'organization' is not null or undefined
2217
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'organization', organization)
2218
+ // verify required parameter 'cluster' is not null or undefined
2219
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'cluster', cluster)
2220
+ // verify required parameter 'project' is not null or undefined
2221
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'project', project)
2222
+ // verify required parameter 'environment' is not null or undefined
2223
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'environment', environment)
2224
+ const localVarPath = `/blueprint/service-created`
2225
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
2226
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
2227
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
2228
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
2229
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2230
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2231
+ let baseOptions;
2232
+ if (configuration) {
2233
+ baseOptions = configuration.baseOptions;
2234
+ }
2235
+
2236
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2237
+ const localVarHeaderParameter = {} as any;
2238
+ const localVarQueryParameter = {} as any;
2239
+
2240
+
2241
+
2242
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2243
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2244
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2245
+
2246
+ return {
2247
+ url: toPathString(localVarUrlObj),
2248
+ options: localVarRequestOptions,
2249
+ };
2250
+ },
2251
+ }
2252
+ };
2253
+
2254
+ /**
2255
+ * BlueprintServiceApi - functional programming interface
2256
+ * @export
2257
+ */
2258
+ export const BlueprintServiceApiFp = function(configuration?: Configuration) {
2259
+ const localVarAxiosParamCreator = BlueprintServiceApiAxiosParamCreator(configuration)
2260
+ return {
2261
+ /**
2262
+ *
2263
+ * @param {string} organization
2264
+ * @param {string | null} cluster
2265
+ * @param {string} project
2266
+ * @param {string} environment
2267
+ * @param {*} [options] Override http request option.
2268
+ * @throws {RequiredError}
2269
+ */
2270
+ async handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
2271
+ const localVarAxiosArgs = await localVarAxiosParamCreator.handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options);
2272
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2273
+ const localVarOperationServerBasePath = operationServerMap['BlueprintServiceApi.handleBlueprintServiceCreatedRequest']?.[localVarOperationServerIndex]?.url;
2274
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2275
+ },
2276
+ }
2277
+ };
2278
+
2279
+ /**
2280
+ * BlueprintServiceApi - factory interface
2281
+ * @export
2282
+ */
2283
+ export const BlueprintServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2284
+ const localVarFp = BlueprintServiceApiFp(configuration)
2285
+ return {
2286
+ /**
2287
+ *
2288
+ * @param {string} organization
2289
+ * @param {string | null} cluster
2290
+ * @param {string} project
2291
+ * @param {string} environment
2292
+ * @param {*} [options] Override http request option.
2293
+ * @throws {RequiredError}
2294
+ */
2295
+ handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
2296
+ return localVarFp.handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options).then((request) => request(axios, basePath));
2297
+ },
2298
+ };
2299
+ };
2300
+
2301
+ /**
2302
+ * BlueprintServiceApi - object-oriented interface
2303
+ * @export
2304
+ * @class BlueprintServiceApi
2305
+ * @extends {BaseAPI}
2306
+ */
2307
+ export class BlueprintServiceApi extends BaseAPI {
2308
+ /**
2309
+ *
2310
+ * @param {string} organization
2311
+ * @param {string | null} cluster
2312
+ * @param {string} project
2313
+ * @param {string} environment
2314
+ * @param {*} [options] Override http request option.
2315
+ * @throws {RequiredError}
2316
+ * @memberof BlueprintServiceApi
2317
+ */
2318
+ public handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig) {
2319
+ return BlueprintServiceApiFp(this.configuration).handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options).then((request) => request(this.axios, this.basePath));
2320
+ }
2321
+ }
2322
+
2323
+
2324
+
2082
2325
  /**
2083
2326
  * ClusterListNodesApi - axios parameter creator
2084
2327
  * @export
package/dist/api.d.ts CHANGED
@@ -2018,6 +2018,136 @@ export declare const UnitDto: {
2018
2018
  readonly GI_B: "GiB";
2019
2019
  };
2020
2020
  export type UnitDto = typeof UnitDto[keyof typeof UnitDto];
2021
+ /**
2022
+ * BlueprintPreviewApi - axios parameter creator
2023
+ * @export
2024
+ */
2025
+ export declare const BlueprintPreviewApiAxiosParamCreator: (configuration?: Configuration) => {
2026
+ /**
2027
+ *
2028
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2029
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2030
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2031
+ * @param {*} [options] Override http request option.
2032
+ * @throws {RequiredError}
2033
+ */
2034
+ handleBlueprintPreviewRequest: (organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2035
+ };
2036
+ /**
2037
+ * BlueprintPreviewApi - functional programming interface
2038
+ * @export
2039
+ */
2040
+ export declare const BlueprintPreviewApiFp: (configuration?: Configuration) => {
2041
+ /**
2042
+ *
2043
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2044
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2045
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2046
+ * @param {*} [options] Override http request option.
2047
+ * @throws {RequiredError}
2048
+ */
2049
+ handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
2050
+ };
2051
+ /**
2052
+ * BlueprintPreviewApi - factory interface
2053
+ * @export
2054
+ */
2055
+ export declare const BlueprintPreviewApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2056
+ /**
2057
+ *
2058
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2059
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2060
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2061
+ * @param {*} [options] Override http request option.
2062
+ * @throws {RequiredError}
2063
+ */
2064
+ handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
2065
+ };
2066
+ /**
2067
+ * BlueprintPreviewApi - object-oriented interface
2068
+ * @export
2069
+ * @class BlueprintPreviewApi
2070
+ * @extends {BaseAPI}
2071
+ */
2072
+ export declare class BlueprintPreviewApi extends BaseAPI {
2073
+ /**
2074
+ *
2075
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2076
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2077
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2078
+ * @param {*} [options] Override http request option.
2079
+ * @throws {RequiredError}
2080
+ * @memberof BlueprintPreviewApi
2081
+ */
2082
+ handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
2083
+ }
2084
+ /**
2085
+ * BlueprintServiceApi - axios parameter creator
2086
+ * @export
2087
+ */
2088
+ export declare const BlueprintServiceApiAxiosParamCreator: (configuration?: Configuration) => {
2089
+ /**
2090
+ *
2091
+ * @param {string} organization
2092
+ * @param {string | null} cluster
2093
+ * @param {string} project
2094
+ * @param {string} environment
2095
+ * @param {*} [options] Override http request option.
2096
+ * @throws {RequiredError}
2097
+ */
2098
+ handleBlueprintServiceCreatedRequest: (organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2099
+ };
2100
+ /**
2101
+ * BlueprintServiceApi - functional programming interface
2102
+ * @export
2103
+ */
2104
+ export declare const BlueprintServiceApiFp: (configuration?: Configuration) => {
2105
+ /**
2106
+ *
2107
+ * @param {string} organization
2108
+ * @param {string | null} cluster
2109
+ * @param {string} project
2110
+ * @param {string} environment
2111
+ * @param {*} [options] Override http request option.
2112
+ * @throws {RequiredError}
2113
+ */
2114
+ handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
2115
+ };
2116
+ /**
2117
+ * BlueprintServiceApi - factory interface
2118
+ * @export
2119
+ */
2120
+ export declare const BlueprintServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2121
+ /**
2122
+ *
2123
+ * @param {string} organization
2124
+ * @param {string | null} cluster
2125
+ * @param {string} project
2126
+ * @param {string} environment
2127
+ * @param {*} [options] Override http request option.
2128
+ * @throws {RequiredError}
2129
+ */
2130
+ handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
2131
+ };
2132
+ /**
2133
+ * BlueprintServiceApi - object-oriented interface
2134
+ * @export
2135
+ * @class BlueprintServiceApi
2136
+ * @extends {BaseAPI}
2137
+ */
2138
+ export declare class BlueprintServiceApi extends BaseAPI {
2139
+ /**
2140
+ *
2141
+ * @param {string} organization
2142
+ * @param {string | null} cluster
2143
+ * @param {string} project
2144
+ * @param {string} environment
2145
+ * @param {*} [options] Override http request option.
2146
+ * @throws {RequiredError}
2147
+ * @memberof BlueprintServiceApi
2148
+ */
2149
+ handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
2150
+ }
2021
2151
  /**
2022
2152
  * ClusterListNodesApi - axios parameter creator
2023
2153
  * @export
package/dist/api.js CHANGED
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ShellApiFactory = exports.ShellApiFp = exports.ShellApiAxiosParamCreator = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.ServiceListPodsApi = exports.ServiceListPodsApiFactory = exports.ServiceListPodsApiFp = exports.ServiceListPodsApiAxiosParamCreator = exports.RemoteDebugApi = exports.RemoteDebugApiFactory = exports.RemoteDebugApiFp = exports.RemoteDebugApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.ClusterStatusApi = exports.ClusterStatusApiFactory = exports.ClusterStatusApiFp = exports.ClusterStatusApiAxiosParamCreator = exports.ClusterMetricsApi = exports.ClusterMetricsApiFactory = exports.ClusterMetricsApiFp = exports.ClusterMetricsApiAxiosParamCreator = exports.ClusterListNodesApi = exports.ClusterListNodesApiFactory = exports.ClusterListNodesApiFp = exports.ClusterListNodesApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceSubActionDto = exports.ServiceStateDto = exports.ServiceActionDto = exports.ResourceStatusDto = exports.QoveryComponentStatus = exports.QoveryComponentContainerStatusLevel = exports.PodStatusPhase = exports.DebugFlavor = exports.ClusterStatusGlobalStatus = void 0;
26
- exports.ShellApi = void 0;
25
+ exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.ServiceListPodsApi = exports.ServiceListPodsApiFactory = exports.ServiceListPodsApiFp = exports.ServiceListPodsApiAxiosParamCreator = exports.RemoteDebugApi = exports.RemoteDebugApiFactory = exports.RemoteDebugApiFp = exports.RemoteDebugApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.ClusterStatusApi = exports.ClusterStatusApiFactory = exports.ClusterStatusApiFp = exports.ClusterStatusApiAxiosParamCreator = exports.ClusterMetricsApi = exports.ClusterMetricsApiFactory = exports.ClusterMetricsApiFp = exports.ClusterMetricsApiAxiosParamCreator = exports.ClusterListNodesApi = exports.ClusterListNodesApiFactory = exports.ClusterListNodesApiFp = exports.ClusterListNodesApiAxiosParamCreator = exports.BlueprintServiceApi = exports.BlueprintServiceApiFactory = exports.BlueprintServiceApiFp = exports.BlueprintServiceApiAxiosParamCreator = exports.BlueprintPreviewApi = exports.BlueprintPreviewApiFactory = exports.BlueprintPreviewApiFp = exports.BlueprintPreviewApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceSubActionDto = exports.ServiceStateDto = exports.ServiceActionDto = exports.ResourceStatusDto = exports.QoveryComponentStatus = exports.QoveryComponentContainerStatusLevel = exports.PodStatusPhase = exports.DebugFlavor = exports.ClusterStatusGlobalStatus = void 0;
26
+ exports.ShellApi = exports.ShellApiFactory = exports.ShellApiFp = exports.ShellApiAxiosParamCreator = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -152,6 +152,241 @@ exports.UnitDto = {
152
152
  MI_B: 'MiB',
153
153
  GI_B: 'GiB'
154
154
  };
155
+ /**
156
+ * BlueprintPreviewApi - axios parameter creator
157
+ * @export
158
+ */
159
+ const BlueprintPreviewApiAxiosParamCreator = function (configuration) {
160
+ return {
161
+ /**
162
+ *
163
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
164
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
165
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ handleBlueprintPreviewRequest: (organization_1, cluster_1, previewId_1, ...args_1) => __awaiter(this, [organization_1, cluster_1, previewId_1, ...args_1], void 0, function* (organization, cluster, previewId, options = {}) {
170
+ // verify required parameter 'organization' is not null or undefined
171
+ (0, common_1.assertParamExists)('handleBlueprintPreviewRequest', 'organization', organization);
172
+ // verify required parameter 'cluster' is not null or undefined
173
+ (0, common_1.assertParamExists)('handleBlueprintPreviewRequest', 'cluster', cluster);
174
+ // verify required parameter 'previewId' is not null or undefined
175
+ (0, common_1.assertParamExists)('handleBlueprintPreviewRequest', 'previewId', previewId);
176
+ const localVarPath = `/blueprint/preview`
177
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
178
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
179
+ .replace(`{${"preview_id"}}`, encodeURIComponent(String(previewId)));
180
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
181
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
182
+ let baseOptions;
183
+ if (configuration) {
184
+ baseOptions = configuration.baseOptions;
185
+ }
186
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
187
+ const localVarHeaderParameter = {};
188
+ const localVarQueryParameter = {};
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ return {
193
+ url: (0, common_1.toPathString)(localVarUrlObj),
194
+ options: localVarRequestOptions,
195
+ };
196
+ }),
197
+ };
198
+ };
199
+ exports.BlueprintPreviewApiAxiosParamCreator = BlueprintPreviewApiAxiosParamCreator;
200
+ /**
201
+ * BlueprintPreviewApi - functional programming interface
202
+ * @export
203
+ */
204
+ const BlueprintPreviewApiFp = function (configuration) {
205
+ const localVarAxiosParamCreator = (0, exports.BlueprintPreviewApiAxiosParamCreator)(configuration);
206
+ return {
207
+ /**
208
+ *
209
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
210
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
211
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ */
215
+ handleBlueprintPreviewRequest(organization, cluster, previewId, options) {
216
+ return __awaiter(this, void 0, void 0, function* () {
217
+ var _a, _b, _c;
218
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleBlueprintPreviewRequest(organization, cluster, previewId, options);
219
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
220
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BlueprintPreviewApi.handleBlueprintPreviewRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
221
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
222
+ });
223
+ },
224
+ };
225
+ };
226
+ exports.BlueprintPreviewApiFp = BlueprintPreviewApiFp;
227
+ /**
228
+ * BlueprintPreviewApi - factory interface
229
+ * @export
230
+ */
231
+ const BlueprintPreviewApiFactory = function (configuration, basePath, axios) {
232
+ const localVarFp = (0, exports.BlueprintPreviewApiFp)(configuration);
233
+ return {
234
+ /**
235
+ *
236
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
237
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
238
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ handleBlueprintPreviewRequest(organization, cluster, previewId, options) {
243
+ return localVarFp.handleBlueprintPreviewRequest(organization, cluster, previewId, options).then((request) => request(axios, basePath));
244
+ },
245
+ };
246
+ };
247
+ exports.BlueprintPreviewApiFactory = BlueprintPreviewApiFactory;
248
+ /**
249
+ * BlueprintPreviewApi - object-oriented interface
250
+ * @export
251
+ * @class BlueprintPreviewApi
252
+ * @extends {BaseAPI}
253
+ */
254
+ class BlueprintPreviewApi extends base_1.BaseAPI {
255
+ /**
256
+ *
257
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
258
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
259
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ * @memberof BlueprintPreviewApi
263
+ */
264
+ handleBlueprintPreviewRequest(organization, cluster, previewId, options) {
265
+ return (0, exports.BlueprintPreviewApiFp)(this.configuration).handleBlueprintPreviewRequest(organization, cluster, previewId, options).then((request) => request(this.axios, this.basePath));
266
+ }
267
+ }
268
+ exports.BlueprintPreviewApi = BlueprintPreviewApi;
269
+ /**
270
+ * BlueprintServiceApi - axios parameter creator
271
+ * @export
272
+ */
273
+ const BlueprintServiceApiAxiosParamCreator = function (configuration) {
274
+ return {
275
+ /**
276
+ *
277
+ * @param {string} organization
278
+ * @param {string | null} cluster
279
+ * @param {string} project
280
+ * @param {string} environment
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ */
284
+ handleBlueprintServiceCreatedRequest: (organization_1, cluster_1, project_1, environment_1, ...args_1) => __awaiter(this, [organization_1, cluster_1, project_1, environment_1, ...args_1], void 0, function* (organization, cluster, project, environment, options = {}) {
285
+ // verify required parameter 'organization' is not null or undefined
286
+ (0, common_1.assertParamExists)('handleBlueprintServiceCreatedRequest', 'organization', organization);
287
+ // verify required parameter 'cluster' is not null or undefined
288
+ (0, common_1.assertParamExists)('handleBlueprintServiceCreatedRequest', 'cluster', cluster);
289
+ // verify required parameter 'project' is not null or undefined
290
+ (0, common_1.assertParamExists)('handleBlueprintServiceCreatedRequest', 'project', project);
291
+ // verify required parameter 'environment' is not null or undefined
292
+ (0, common_1.assertParamExists)('handleBlueprintServiceCreatedRequest', 'environment', environment);
293
+ const localVarPath = `/blueprint/service-created`
294
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
295
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
296
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
297
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
298
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
299
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
300
+ let baseOptions;
301
+ if (configuration) {
302
+ baseOptions = configuration.baseOptions;
303
+ }
304
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
305
+ const localVarHeaderParameter = {};
306
+ const localVarQueryParameter = {};
307
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
309
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
310
+ return {
311
+ url: (0, common_1.toPathString)(localVarUrlObj),
312
+ options: localVarRequestOptions,
313
+ };
314
+ }),
315
+ };
316
+ };
317
+ exports.BlueprintServiceApiAxiosParamCreator = BlueprintServiceApiAxiosParamCreator;
318
+ /**
319
+ * BlueprintServiceApi - functional programming interface
320
+ * @export
321
+ */
322
+ const BlueprintServiceApiFp = function (configuration) {
323
+ const localVarAxiosParamCreator = (0, exports.BlueprintServiceApiAxiosParamCreator)(configuration);
324
+ return {
325
+ /**
326
+ *
327
+ * @param {string} organization
328
+ * @param {string | null} cluster
329
+ * @param {string} project
330
+ * @param {string} environment
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options) {
335
+ return __awaiter(this, void 0, void 0, function* () {
336
+ var _a, _b, _c;
337
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options);
338
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
339
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BlueprintServiceApi.handleBlueprintServiceCreatedRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
340
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
341
+ });
342
+ },
343
+ };
344
+ };
345
+ exports.BlueprintServiceApiFp = BlueprintServiceApiFp;
346
+ /**
347
+ * BlueprintServiceApi - factory interface
348
+ * @export
349
+ */
350
+ const BlueprintServiceApiFactory = function (configuration, basePath, axios) {
351
+ const localVarFp = (0, exports.BlueprintServiceApiFp)(configuration);
352
+ return {
353
+ /**
354
+ *
355
+ * @param {string} organization
356
+ * @param {string | null} cluster
357
+ * @param {string} project
358
+ * @param {string} environment
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ */
362
+ handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options) {
363
+ return localVarFp.handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options).then((request) => request(axios, basePath));
364
+ },
365
+ };
366
+ };
367
+ exports.BlueprintServiceApiFactory = BlueprintServiceApiFactory;
368
+ /**
369
+ * BlueprintServiceApi - object-oriented interface
370
+ * @export
371
+ * @class BlueprintServiceApi
372
+ * @extends {BaseAPI}
373
+ */
374
+ class BlueprintServiceApi extends base_1.BaseAPI {
375
+ /**
376
+ *
377
+ * @param {string} organization
378
+ * @param {string | null} cluster
379
+ * @param {string} project
380
+ * @param {string} environment
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ * @memberof BlueprintServiceApi
384
+ */
385
+ handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options) {
386
+ return (0, exports.BlueprintServiceApiFp)(this.configuration).handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options).then((request) => request(this.axios, this.basePath));
387
+ }
388
+ }
389
+ exports.BlueprintServiceApi = BlueprintServiceApi;
155
390
  /**
156
391
  * ClusterListNodesApi - axios parameter creator
157
392
  * @export
package/dist/esm/api.d.ts CHANGED
@@ -2018,6 +2018,136 @@ export declare const UnitDto: {
2018
2018
  readonly GI_B: "GiB";
2019
2019
  };
2020
2020
  export type UnitDto = typeof UnitDto[keyof typeof UnitDto];
2021
+ /**
2022
+ * BlueprintPreviewApi - axios parameter creator
2023
+ * @export
2024
+ */
2025
+ export declare const BlueprintPreviewApiAxiosParamCreator: (configuration?: Configuration) => {
2026
+ /**
2027
+ *
2028
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2029
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2030
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2031
+ * @param {*} [options] Override http request option.
2032
+ * @throws {RequiredError}
2033
+ */
2034
+ handleBlueprintPreviewRequest: (organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2035
+ };
2036
+ /**
2037
+ * BlueprintPreviewApi - functional programming interface
2038
+ * @export
2039
+ */
2040
+ export declare const BlueprintPreviewApiFp: (configuration?: Configuration) => {
2041
+ /**
2042
+ *
2043
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2044
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2045
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2046
+ * @param {*} [options] Override http request option.
2047
+ * @throws {RequiredError}
2048
+ */
2049
+ handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
2050
+ };
2051
+ /**
2052
+ * BlueprintPreviewApi - factory interface
2053
+ * @export
2054
+ */
2055
+ export declare const BlueprintPreviewApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2056
+ /**
2057
+ *
2058
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2059
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2060
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2061
+ * @param {*} [options] Override http request option.
2062
+ * @throws {RequiredError}
2063
+ */
2064
+ handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
2065
+ };
2066
+ /**
2067
+ * BlueprintPreviewApi - object-oriented interface
2068
+ * @export
2069
+ * @class BlueprintPreviewApi
2070
+ * @extends {BaseAPI}
2071
+ */
2072
+ export declare class BlueprintPreviewApi extends BaseAPI {
2073
+ /**
2074
+ *
2075
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
2076
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
2077
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
2078
+ * @param {*} [options] Override http request option.
2079
+ * @throws {RequiredError}
2080
+ * @memberof BlueprintPreviewApi
2081
+ */
2082
+ handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
2083
+ }
2084
+ /**
2085
+ * BlueprintServiceApi - axios parameter creator
2086
+ * @export
2087
+ */
2088
+ export declare const BlueprintServiceApiAxiosParamCreator: (configuration?: Configuration) => {
2089
+ /**
2090
+ *
2091
+ * @param {string} organization
2092
+ * @param {string | null} cluster
2093
+ * @param {string} project
2094
+ * @param {string} environment
2095
+ * @param {*} [options] Override http request option.
2096
+ * @throws {RequiredError}
2097
+ */
2098
+ handleBlueprintServiceCreatedRequest: (organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2099
+ };
2100
+ /**
2101
+ * BlueprintServiceApi - functional programming interface
2102
+ * @export
2103
+ */
2104
+ export declare const BlueprintServiceApiFp: (configuration?: Configuration) => {
2105
+ /**
2106
+ *
2107
+ * @param {string} organization
2108
+ * @param {string | null} cluster
2109
+ * @param {string} project
2110
+ * @param {string} environment
2111
+ * @param {*} [options] Override http request option.
2112
+ * @throws {RequiredError}
2113
+ */
2114
+ handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
2115
+ };
2116
+ /**
2117
+ * BlueprintServiceApi - factory interface
2118
+ * @export
2119
+ */
2120
+ export declare const BlueprintServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2121
+ /**
2122
+ *
2123
+ * @param {string} organization
2124
+ * @param {string | null} cluster
2125
+ * @param {string} project
2126
+ * @param {string} environment
2127
+ * @param {*} [options] Override http request option.
2128
+ * @throws {RequiredError}
2129
+ */
2130
+ handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
2131
+ };
2132
+ /**
2133
+ * BlueprintServiceApi - object-oriented interface
2134
+ * @export
2135
+ * @class BlueprintServiceApi
2136
+ * @extends {BaseAPI}
2137
+ */
2138
+ export declare class BlueprintServiceApi extends BaseAPI {
2139
+ /**
2140
+ *
2141
+ * @param {string} organization
2142
+ * @param {string | null} cluster
2143
+ * @param {string} project
2144
+ * @param {string} environment
2145
+ * @param {*} [options] Override http request option.
2146
+ * @throws {RequiredError}
2147
+ * @memberof BlueprintServiceApi
2148
+ */
2149
+ handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
2150
+ }
2021
2151
  /**
2022
2152
  * ClusterListNodesApi - axios parameter creator
2023
2153
  * @export
package/dist/esm/api.js CHANGED
@@ -148,6 +148,233 @@ export const UnitDto = {
148
148
  MI_B: 'MiB',
149
149
  GI_B: 'GiB'
150
150
  };
151
+ /**
152
+ * BlueprintPreviewApi - axios parameter creator
153
+ * @export
154
+ */
155
+ export const BlueprintPreviewApiAxiosParamCreator = function (configuration) {
156
+ return {
157
+ /**
158
+ *
159
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
160
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
161
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ handleBlueprintPreviewRequest: (organization_1, cluster_1, previewId_1, ...args_1) => __awaiter(this, [organization_1, cluster_1, previewId_1, ...args_1], void 0, function* (organization, cluster, previewId, options = {}) {
166
+ // verify required parameter 'organization' is not null or undefined
167
+ assertParamExists('handleBlueprintPreviewRequest', 'organization', organization);
168
+ // verify required parameter 'cluster' is not null or undefined
169
+ assertParamExists('handleBlueprintPreviewRequest', 'cluster', cluster);
170
+ // verify required parameter 'previewId' is not null or undefined
171
+ assertParamExists('handleBlueprintPreviewRequest', 'previewId', previewId);
172
+ const localVarPath = `/blueprint/preview`
173
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
174
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
175
+ .replace(`{${"preview_id"}}`, encodeURIComponent(String(previewId)));
176
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
177
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
178
+ let baseOptions;
179
+ if (configuration) {
180
+ baseOptions = configuration.baseOptions;
181
+ }
182
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
183
+ const localVarHeaderParameter = {};
184
+ const localVarQueryParameter = {};
185
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ return {
189
+ url: toPathString(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ }),
193
+ };
194
+ };
195
+ /**
196
+ * BlueprintPreviewApi - functional programming interface
197
+ * @export
198
+ */
199
+ export const BlueprintPreviewApiFp = function (configuration) {
200
+ const localVarAxiosParamCreator = BlueprintPreviewApiAxiosParamCreator(configuration);
201
+ return {
202
+ /**
203
+ *
204
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
205
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
206
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ handleBlueprintPreviewRequest(organization, cluster, previewId, options) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ var _a, _b, _c;
213
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleBlueprintPreviewRequest(organization, cluster, previewId, options);
214
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
215
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlueprintPreviewApi.handleBlueprintPreviewRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
216
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
217
+ });
218
+ },
219
+ };
220
+ };
221
+ /**
222
+ * BlueprintPreviewApi - factory interface
223
+ * @export
224
+ */
225
+ export const BlueprintPreviewApiFactory = function (configuration, basePath, axios) {
226
+ const localVarFp = BlueprintPreviewApiFp(configuration);
227
+ return {
228
+ /**
229
+ *
230
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
231
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
232
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ handleBlueprintPreviewRequest(organization, cluster, previewId, options) {
237
+ return localVarFp.handleBlueprintPreviewRequest(organization, cluster, previewId, options).then((request) => request(axios, basePath));
238
+ },
239
+ };
240
+ };
241
+ /**
242
+ * BlueprintPreviewApi - object-oriented interface
243
+ * @export
244
+ * @class BlueprintPreviewApi
245
+ * @extends {BaseAPI}
246
+ */
247
+ export class BlueprintPreviewApi extends BaseAPI {
248
+ /**
249
+ *
250
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
251
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
252
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from &#x60;POST /api/blueprint/{id}/update/preview&#x60;. Doubles as the Pub/Sub channel suffix: &#x60;core.blueprint.preview.{preview_id}&#x60;.
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ * @memberof BlueprintPreviewApi
256
+ */
257
+ handleBlueprintPreviewRequest(organization, cluster, previewId, options) {
258
+ return BlueprintPreviewApiFp(this.configuration).handleBlueprintPreviewRequest(organization, cluster, previewId, options).then((request) => request(this.axios, this.basePath));
259
+ }
260
+ }
261
+ /**
262
+ * BlueprintServiceApi - axios parameter creator
263
+ * @export
264
+ */
265
+ export const BlueprintServiceApiAxiosParamCreator = function (configuration) {
266
+ return {
267
+ /**
268
+ *
269
+ * @param {string} organization
270
+ * @param {string | null} cluster
271
+ * @param {string} project
272
+ * @param {string} environment
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ handleBlueprintServiceCreatedRequest: (organization_1, cluster_1, project_1, environment_1, ...args_1) => __awaiter(this, [organization_1, cluster_1, project_1, environment_1, ...args_1], void 0, function* (organization, cluster, project, environment, options = {}) {
277
+ // verify required parameter 'organization' is not null or undefined
278
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'organization', organization);
279
+ // verify required parameter 'cluster' is not null or undefined
280
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'cluster', cluster);
281
+ // verify required parameter 'project' is not null or undefined
282
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'project', project);
283
+ // verify required parameter 'environment' is not null or undefined
284
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'environment', environment);
285
+ const localVarPath = `/blueprint/service-created`
286
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
287
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
288
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
289
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
290
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
291
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
292
+ let baseOptions;
293
+ if (configuration) {
294
+ baseOptions = configuration.baseOptions;
295
+ }
296
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
297
+ const localVarHeaderParameter = {};
298
+ const localVarQueryParameter = {};
299
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
301
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
302
+ return {
303
+ url: toPathString(localVarUrlObj),
304
+ options: localVarRequestOptions,
305
+ };
306
+ }),
307
+ };
308
+ };
309
+ /**
310
+ * BlueprintServiceApi - functional programming interface
311
+ * @export
312
+ */
313
+ export const BlueprintServiceApiFp = function (configuration) {
314
+ const localVarAxiosParamCreator = BlueprintServiceApiAxiosParamCreator(configuration);
315
+ return {
316
+ /**
317
+ *
318
+ * @param {string} organization
319
+ * @param {string | null} cluster
320
+ * @param {string} project
321
+ * @param {string} environment
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options) {
326
+ return __awaiter(this, void 0, void 0, function* () {
327
+ var _a, _b, _c;
328
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options);
329
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
330
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlueprintServiceApi.handleBlueprintServiceCreatedRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
331
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
332
+ });
333
+ },
334
+ };
335
+ };
336
+ /**
337
+ * BlueprintServiceApi - factory interface
338
+ * @export
339
+ */
340
+ export const BlueprintServiceApiFactory = function (configuration, basePath, axios) {
341
+ const localVarFp = BlueprintServiceApiFp(configuration);
342
+ return {
343
+ /**
344
+ *
345
+ * @param {string} organization
346
+ * @param {string | null} cluster
347
+ * @param {string} project
348
+ * @param {string} environment
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ */
352
+ handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options) {
353
+ return localVarFp.handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options).then((request) => request(axios, basePath));
354
+ },
355
+ };
356
+ };
357
+ /**
358
+ * BlueprintServiceApi - object-oriented interface
359
+ * @export
360
+ * @class BlueprintServiceApi
361
+ * @extends {BaseAPI}
362
+ */
363
+ export class BlueprintServiceApi extends BaseAPI {
364
+ /**
365
+ *
366
+ * @param {string} organization
367
+ * @param {string | null} cluster
368
+ * @param {string} project
369
+ * @param {string} environment
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ * @memberof BlueprintServiceApi
373
+ */
374
+ handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options) {
375
+ return BlueprintServiceApiFp(this.configuration).handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options).then((request) => request(this.axios, this.basePath));
376
+ }
377
+ }
151
378
  /**
152
379
  * ClusterListNodesApi - axios parameter creator
153
380
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-ws-typescript-axios",
3
- "version": "v0.1.618",
3
+ "version": "v0.1.620",
4
4
  "description": "OpenAPI client for qovery-ws-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "prepare": "npm run build"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "1.18.1"
27
+ "axios": "1.15.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "12.11.5 - 12.20.42",