@camunda/play 5.0.1-rc.0 → 5.0.1
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/build/index.js +22 -24
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -4021,14 +4021,14 @@ class hze {
|
|
|
4021
4021
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4022
4022
|
handleGetRequest = void 0;
|
|
4023
4023
|
authConfig = void 0;
|
|
4024
|
-
|
|
4024
|
+
shouldUseOrchestrationClusterAPI = !1;
|
|
4025
4025
|
init = ({
|
|
4026
4026
|
authConfig: e,
|
|
4027
4027
|
handlePostRequest: t,
|
|
4028
4028
|
handleGetRequest: n,
|
|
4029
|
-
|
|
4029
|
+
shouldUseOrchestrationClusterAPI: i
|
|
4030
4030
|
}) => {
|
|
4031
|
-
this.authConfig = e, this.handlePostRequest = t, this.handleGetRequest = n, this.
|
|
4031
|
+
this.authConfig = e, this.handlePostRequest = t, this.handleGetRequest = n, this.shouldUseOrchestrationClusterAPI = i;
|
|
4032
4032
|
};
|
|
4033
4033
|
async postWithErrorHandling(e, t) {
|
|
4034
4034
|
try {
|
|
@@ -4037,7 +4037,7 @@ class hze {
|
|
|
4037
4037
|
...t,
|
|
4038
4038
|
authType: this.authConfig?.type,
|
|
4039
4039
|
...this.authConfig?.config,
|
|
4040
|
-
|
|
4040
|
+
shouldUseOrchestrationClusterAPI: this.shouldUseOrchestrationClusterAPI
|
|
4041
4041
|
}
|
|
4042
4042
|
}) };
|
|
4043
4043
|
} catch (n) {
|
|
@@ -4078,18 +4078,8 @@ class hze {
|
|
|
4078
4078
|
async terminateProcessInstance(e) {
|
|
4079
4079
|
return { success: !1 };
|
|
4080
4080
|
}
|
|
4081
|
-
async deploy({ name: e, content: t }) {
|
|
4082
|
-
const { response: n, success: i } = await this.postWithErrorHandling("/play/deploy", {
|
|
4083
|
-
name: e,
|
|
4084
|
-
content: t
|
|
4085
|
-
});
|
|
4086
|
-
return {
|
|
4087
|
-
response: n,
|
|
4088
|
-
success: i
|
|
4089
|
-
};
|
|
4090
|
-
}
|
|
4091
4081
|
async deployResources(e) {
|
|
4092
|
-
if (this.
|
|
4082
|
+
if (this.shouldUseOrchestrationClusterAPI)
|
|
4093
4083
|
return this.deployResourcesC8(e);
|
|
4094
4084
|
const { response: t, success: n } = await this.postWithErrorHandling("/play/deploy-resources", { resources: e });
|
|
4095
4085
|
return {
|
|
@@ -6423,10 +6413,12 @@ class EWe {
|
|
|
6423
6413
|
...t,
|
|
6424
6414
|
status: "success"
|
|
6425
6415
|
};
|
|
6426
|
-
const { response: n, success: i } = await gt.
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6416
|
+
const { response: n, success: i } = await gt.deployResources([
|
|
6417
|
+
{
|
|
6418
|
+
content: t.content,
|
|
6419
|
+
name: NP(t.filename, t.type)
|
|
6420
|
+
}
|
|
6421
|
+
]);
|
|
6430
6422
|
if (i)
|
|
6431
6423
|
Zn.trackDeployment({
|
|
6432
6424
|
success: !0,
|
|
@@ -7499,7 +7491,7 @@ const Zr = bHe({
|
|
|
7499
7491
|
areAIFeaturesEnabled: !1,
|
|
7500
7492
|
isSaveExampleDataEnabled: !1,
|
|
7501
7493
|
isReplayScenariosEnabled: !1,
|
|
7502
|
-
|
|
7494
|
+
shouldUseOrchestrationClusterAPI: !1
|
|
7503
7495
|
}
|
|
7504
7496
|
});
|
|
7505
7497
|
if (!st)
|
|
@@ -151451,7 +151443,7 @@ const dKt = we(xi)`
|
|
|
151451
151443
|
diagramId: k,
|
|
151452
151444
|
FeedbackButton: O
|
|
151453
151445
|
}) => {
|
|
151454
|
-
const V = localStorage.getItem("play-directAccess"), R = A?.
|
|
151446
|
+
const V = localStorage.getItem("play-directAccess"), R = A?.shouldUseOrchestrationClusterAPI, I = r?.type, P = r?.config?.operateBaseUrl, z = I === "saas" ? r.config.clusterId : void 0;
|
|
151455
151447
|
if (V) {
|
|
151456
151448
|
localStorage.removeItem("play-directAccess");
|
|
151457
151449
|
const ge = JSON.parse(V);
|
|
@@ -151486,9 +151478,15 @@ const dKt = we(xi)`
|
|
|
151486
151478
|
authConfig: r,
|
|
151487
151479
|
handlePostRequest: u,
|
|
151488
151480
|
handleGetRequest: d,
|
|
151489
|
-
|
|
151481
|
+
shouldUseOrchestrationClusterAPI: R
|
|
151490
151482
|
}), Ia.init(l));
|
|
151491
|
-
}, [
|
|
151483
|
+
}, [
|
|
151484
|
+
z,
|
|
151485
|
+
I,
|
|
151486
|
+
o,
|
|
151487
|
+
k,
|
|
151488
|
+
R
|
|
151489
|
+
]), $t(() => {
|
|
151492
151490
|
ct.init({
|
|
151493
151491
|
projectId: s,
|
|
151494
151492
|
processId: o,
|
|
@@ -151649,7 +151647,7 @@ const dKt = we(xi)`
|
|
|
151649
151647
|
areAIFeaturesEnabled: A?.areAIFeaturesEnabled ?? !1,
|
|
151650
151648
|
isSaveExampleDataEnabled: A?.isSaveExampleDataEnabled ?? !1,
|
|
151651
151649
|
isReplayScenariosEnabled: A?.isReplayScenariosEnabled ?? !1,
|
|
151652
|
-
|
|
151650
|
+
shouldUseOrchestrationClusterAPI: A?.shouldUseOrchestrationClusterAPI ?? !1
|
|
151653
151651
|
},
|
|
151654
151652
|
isUserOrgOwnerOrAdmin: y,
|
|
151655
151653
|
organizationManagementPageUrl: C
|