@kumori/aurora-backend-handler 1.0.43 → 1.0.45
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.
|
@@ -222,6 +222,7 @@ export const createAccount = async (account: Account, security: Security) => {
|
|
|
222
222
|
username: account.cloudProvider.username || "",
|
|
223
223
|
password: account.cloudProvider.password || "",
|
|
224
224
|
region: account.cloudProvider?.region || "",
|
|
225
|
+
project_id: account.cloudProvider?.project_id || "",
|
|
225
226
|
}
|
|
226
227
|
: {
|
|
227
228
|
method: providerName,
|
|
@@ -333,6 +334,7 @@ export const createAccount = async (account: Account, security: Security) => {
|
|
|
333
334
|
password: account.cloudProvider.password || "",
|
|
334
335
|
region: account.cloudProvider?.region || "",
|
|
335
336
|
domain: account.cloudProvider?.domain || "",
|
|
337
|
+
project_id: account.cloudProvider?.project_id || "",
|
|
336
338
|
}
|
|
337
339
|
: {
|
|
338
340
|
method: providerName,
|
|
@@ -611,6 +613,7 @@ export const deleteAccount = async (account: Account, security: Security) => {
|
|
|
611
613
|
credentials: {
|
|
612
614
|
username: account.cloudProvider.username,
|
|
613
615
|
password: account.cloudProvider.password,
|
|
616
|
+
project_id: account.cloudProvider?.project_id || "",
|
|
614
617
|
},
|
|
615
618
|
},
|
|
616
619
|
};
|
|
@@ -625,6 +628,7 @@ export const deleteAccount = async (account: Account, security: Security) => {
|
|
|
625
628
|
username: account.cloudProvider.username,
|
|
626
629
|
password: account.cloudProvider.password,
|
|
627
630
|
domain: account.cloudProvider.domain,
|
|
631
|
+
project_id: account.cloudProvider?.project_id || "",
|
|
628
632
|
},
|
|
629
633
|
},
|
|
630
634
|
};
|
|
@@ -990,6 +994,7 @@ export const updateAccount = async (account: Account, security: Security) => {
|
|
|
990
994
|
username: account.cloudProvider.username || "",
|
|
991
995
|
password: account.cloudProvider.password || "",
|
|
992
996
|
region: account.cloudProvider?.region || "",
|
|
997
|
+
project_id: account.cloudProvider?.project_id || "",
|
|
993
998
|
}
|
|
994
999
|
: {
|
|
995
1000
|
method: providerName,
|
|
@@ -1099,6 +1104,7 @@ export const updateAccount = async (account: Account, security: Security) => {
|
|
|
1099
1104
|
password: account.cloudProvider.password || "",
|
|
1100
1105
|
region: account.cloudProvider?.region || "",
|
|
1101
1106
|
domain: account.cloudProvider?.domain || "",
|
|
1107
|
+
project_id: account.cloudProvider?.project_id || "",
|
|
1102
1108
|
}
|
|
1103
1109
|
: {
|
|
1104
1110
|
method: providerName,
|
|
@@ -410,15 +410,11 @@ export const updateService = async (
|
|
|
410
410
|
const url = new URL(
|
|
411
411
|
`${environment.apiServer.baseUrl}/api/${environment.apiServer.apiVersion}/tenant/${data.tenant}/service/${data.name}/revision/${data.currentRevision}`,
|
|
412
412
|
);
|
|
413
|
-
console.log('DEBUG data', data);
|
|
414
413
|
if (data.dsl) {
|
|
415
414
|
url.searchParams.append("dsl", "true");
|
|
416
415
|
}
|
|
417
416
|
if (data.serviceData) {
|
|
418
|
-
console.log('DEBUG - Updating service with bundle data, URL:', url.toString());
|
|
419
|
-
console.log('DEBUG - Service data to update:', data.serviceData);
|
|
420
417
|
const formData = new FormData();
|
|
421
|
-
console.log('DEBUG - FormData before appending:', formData);
|
|
422
418
|
formData.append("type", "update-bundle");
|
|
423
419
|
formData.append("bundle", data.serviceData);
|
|
424
420
|
formData.append(
|
|
@@ -430,18 +426,15 @@ export const updateService = async (
|
|
|
430
426
|
);
|
|
431
427
|
formData.append("labels", JSON.stringify({ project: data.project }));
|
|
432
428
|
formData.append("comment", " ");
|
|
433
|
-
console.log('DEBUG - loaded FormData:', formData);
|
|
434
429
|
const response = await fetch(url.toString(), {
|
|
435
430
|
method: "POST",
|
|
436
431
|
body: formData,
|
|
437
432
|
});
|
|
438
|
-
console.log('DEBUG - Update service response:', response);
|
|
439
433
|
if (!response.ok) {
|
|
440
434
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
441
435
|
}
|
|
442
436
|
|
|
443
437
|
const jsonResponse = await response.json();
|
|
444
|
-
console.log('DEBUG - Update service JSON response:', jsonResponse);
|
|
445
438
|
const isTimeout = jsonResponse?.events?.some(
|
|
446
439
|
(event: any) => event.content === "_timeout_",
|
|
447
440
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumori/aurora-backend-handler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"description": "backend handler",
|
|
5
5
|
"main": "backend-handler.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"glob": "^11.0.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@kumori/aurora-interfaces": "^1.0.
|
|
14
|
+
"@kumori/aurora-interfaces": "^1.0.6",
|
|
15
15
|
"@kumori/kumori-dsl-generator": "^1.0.3",
|
|
16
16
|
"@kumori/kumori-module-generator": "^1.1.6",
|
|
17
17
|
"ts-node": "^10.9.2",
|