@lowcodeunit/applications-flow-common 1.39.82-integration → 1.39.85-enterprise-switch-fix
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/esm2020/lib/controls/dfs-modifiers-form/dfs-modifiers-form.component.mjs +4 -2
- package/esm2020/lib/dialogs/dfs-modifiers-dialog/dfs-modifiers-dialog.component.mjs +3 -3
- package/esm2020/lib/elements/project-card/project-card.component.mjs +4 -4
- package/esm2020/lib/elements/team-member-card/team-member-card.component.mjs +2 -2
- package/esm2020/lib/services/eac.service.mjs +2 -7
- package/esm2020/lib/services/project.service.mjs +26 -6
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +38 -20
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +35 -18
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/package.json +1 -1
@@ -453,10 +453,11 @@ class ProjectService {
|
|
453
453
|
return new Promise((resolve, reject) => {
|
454
454
|
state.LoadingActiveEnterprise = true;
|
455
455
|
this.appsFlowSvc.GetActiveEnterprise().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
456
|
-
var _a;
|
456
|
+
var _a, _b;
|
457
457
|
state.LoadingActiveEnterprise = false;
|
458
458
|
if (response.Status.Code === 0) {
|
459
459
|
state.ActiveEnterpriseLookup = (_a = response.Model) === null || _a === void 0 ? void 0 : _a.Lookup;
|
460
|
+
console.log('Active Ent set to = ', (_b = response.Model) === null || _b === void 0 ? void 0 : _b.Lookup);
|
460
461
|
resolve();
|
461
462
|
}
|
462
463
|
else {
|
@@ -493,6 +494,7 @@ class ProjectService {
|
|
493
494
|
return new Promise((resolve, reject) => {
|
494
495
|
state.LoadingEnterprises = true;
|
495
496
|
this.appsFlowSvc.ListEnterprises().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
497
|
+
console.log('list Enterprises resp: ', response);
|
496
498
|
state.LoadingEnterprises = false;
|
497
499
|
if (response.Status.Code === 0) {
|
498
500
|
state.Enterprises = response.Model;
|
@@ -512,10 +514,13 @@ class ProjectService {
|
|
512
514
|
}
|
513
515
|
LoadEnterpriseAsCode(state) {
|
514
516
|
return new Promise((resolve, reject) => {
|
517
|
+
console.log('Load ent called!!!');
|
515
518
|
state.Loading = true;
|
519
|
+
state.LoadingActiveEnterprise = true;
|
516
520
|
this.appsFlowSvc.LoadEnterpriseAsCode().subscribe((response) => {
|
517
521
|
var _a;
|
518
522
|
state.Loading = false;
|
523
|
+
state.LoadingActiveEnterprise = false;
|
519
524
|
console.log('Load eac response: ', response);
|
520
525
|
if (response.Status.Code === 0) {
|
521
526
|
state.EaC = response.Model || {};
|
@@ -556,6 +561,7 @@ class ProjectService {
|
|
556
561
|
LoadUserFeed(page, pageSize, filterStr, forCheck = false, state) {
|
557
562
|
return __awaiter(this, void 0, void 0, function* () {
|
558
563
|
return new Promise((resolve, reject) => {
|
564
|
+
console.log('load user feed called');
|
559
565
|
state.LoadingFeed = !forCheck;
|
560
566
|
let paramMap = this.activatedRoute.snapshot.children[0].paramMap;
|
561
567
|
let result = this.loadApplicationsForFeed(state, paramMap);
|
@@ -612,35 +618,49 @@ class ProjectService {
|
|
612
618
|
SetActiveEnterprise(state, activeEntLookup) {
|
613
619
|
return __awaiter(this, void 0, void 0, function* () {
|
614
620
|
return new Promise((resolve, reject) => {
|
621
|
+
console.log('SET ACTIVE ENT CALLED', activeEntLookup);
|
615
622
|
state.Loading = true;
|
623
|
+
state.LoadingActiveEnterprise = true;
|
616
624
|
state.LoadingFeed = true;
|
625
|
+
state.ActiveEnterpriseLookup = activeEntLookup;
|
626
|
+
// state.LoadingFeed = true;
|
617
627
|
this.appsFlowSvc.SetActiveEnterprise(activeEntLookup).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
618
628
|
if (response.Status.Code === 0) {
|
619
629
|
this.EditingProjectLookup = null;
|
630
|
+
console.log('state: ', state);
|
620
631
|
// console.log(
|
621
632
|
// 'project service active ent: ',
|
622
633
|
// activeEntLookup
|
623
634
|
// );
|
624
|
-
state.ActiveEnterpriseLookup = activeEntLookup;
|
635
|
+
// state.ActiveEnterpriseLookup = activeEntLookup;
|
625
636
|
// console.log(
|
626
637
|
// 'project service State active ent: ',
|
627
638
|
// state.ActiveEnterpriseLookup
|
628
639
|
// );
|
629
640
|
resolve(response.Status);
|
630
641
|
var results = yield Promise.all([
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
642
|
+
// this.ListEnterprises(state),
|
643
|
+
// this.LoadEnterpriseAsCode(state),
|
644
|
+
// this.LoadUserFeed(
|
645
|
+
// 1,
|
646
|
+
// 25,
|
647
|
+
// localStorage.getItem('activeFilter')
|
648
|
+
// ? localStorage.getItem('activeFilter')
|
649
|
+
// : '',
|
650
|
+
// false,
|
651
|
+
// state
|
652
|
+
// ),
|
635
653
|
]);
|
636
654
|
}
|
637
655
|
else {
|
638
656
|
state.Loading = false;
|
657
|
+
state.LoadingActiveEnterprise = false;
|
639
658
|
reject(response.Status);
|
640
659
|
// console.log(response);
|
641
660
|
}
|
642
661
|
}), (err) => {
|
643
662
|
state.Loading = false;
|
663
|
+
state.LoadingActiveEnterprise = false;
|
644
664
|
reject(err);
|
645
665
|
console.log(err);
|
646
666
|
});
|
@@ -1025,9 +1045,6 @@ class EaCService {
|
|
1025
1045
|
}
|
1026
1046
|
});
|
1027
1047
|
}
|
1028
|
-
// this.appsFlowEventsSvc.EnsureUserEnterpriseEvent.subscribe(async () => {
|
1029
|
-
// await this.projectService.EnsureUserEnterprise(this.State);
|
1030
|
-
// });
|
1031
1048
|
EnsureUserEnterprise() {
|
1032
1049
|
return __awaiter(this, void 0, void 0, function* () {
|
1033
1050
|
const state = this.stateSubject.getValue();
|
@@ -1184,7 +1201,6 @@ class EaCService {
|
|
1184
1201
|
handleSaveApplication(req) {
|
1185
1202
|
return __awaiter(this, void 0, void 0, function* () {
|
1186
1203
|
const state = this.stateSubject.getValue();
|
1187
|
-
// console.log("app req: ", req);
|
1188
1204
|
const saveEaC = {
|
1189
1205
|
EnterpriseLookup: state.EaC.EnterpriseLookup,
|
1190
1206
|
Applications: {},
|
@@ -1227,12 +1243,11 @@ class EaCService {
|
|
1227
1243
|
}
|
1228
1244
|
if (req.ApplicationLookup) {
|
1229
1245
|
// console.log('APPLOokup: ', req.ApplicationLookup);
|
1230
|
-
// console.log('saveEAC: ', saveEaC);
|
1231
1246
|
saveEaC.Applications[req.ApplicationLookup] = {
|
1232
1247
|
ModifierLookups: req.ModifierLookups,
|
1233
1248
|
};
|
1234
1249
|
}
|
1235
|
-
|
1250
|
+
console.log('Save mod eac: ', saveEaC);
|
1236
1251
|
const status = yield this.projectService.SaveEnterpriseAsCode(state, saveEaC);
|
1237
1252
|
this.stateSubject.next(state);
|
1238
1253
|
return status;
|
@@ -7217,10 +7232,11 @@ class DFSModifiersFormComponent {
|
|
7217
7232
|
SaveModifier(projectLookup = null) {
|
7218
7233
|
let saveStatus;
|
7219
7234
|
if (this.ModifierFormGroup) {
|
7235
|
+
// console.log("here 1")
|
7220
7236
|
const saveMdfrReq = {
|
7221
7237
|
Modifier: Object.assign(Object.assign({}, this.EditingModifier), { Name: this.NameFormControl.value, Enabled: this.EnabledFormControl.value, PathFilterRegex: this.PathFilterFormControl.value, Priority: this.PriorityFormControl.value, Type: this.CurrentType }),
|
7222
7238
|
ModifierLookups: [this.EditingModifierLookup],
|
7223
|
-
ProjectLookups: [projectLookup],
|
7239
|
+
// ProjectLookups: [projectLookup],
|
7224
7240
|
};
|
7225
7241
|
let details = this.getDetails();
|
7226
7242
|
saveMdfrReq.Modifier.Details = JSON.stringify(details);
|
@@ -7229,6 +7245,7 @@ class DFSModifiersFormComponent {
|
|
7229
7245
|
});
|
7230
7246
|
}
|
7231
7247
|
else if (this.ModifierSelectFormGroup) {
|
7248
|
+
// console.log('here 2');
|
7232
7249
|
const saveMdfrReq = {
|
7233
7250
|
ModifierLookups: this.MultiSelectFormControl.value,
|
7234
7251
|
ProjectLookups: [projectLookup],
|
@@ -7450,7 +7467,7 @@ class DFSModifiersDialogComponent {
|
|
7450
7467
|
}
|
7451
7468
|
}
|
7452
7469
|
SaveDFSModifier() {
|
7453
|
-
|
7470
|
+
console.log('level at save: ', this.data.level);
|
7454
7471
|
let status;
|
7455
7472
|
switch (this.data.level) {
|
7456
7473
|
case 'enterprise': {
|
@@ -7472,7 +7489,7 @@ class DFSModifiersDialogComponent {
|
|
7472
7489
|
this.DFSModifersFormControls.SaveModifierForApplication(this.data.applicationLookup);
|
7473
7490
|
}
|
7474
7491
|
}
|
7475
|
-
if (status.Code === 0) {
|
7492
|
+
if ((status === null || status === void 0 ? void 0 : status.Code) === 0) {
|
7476
7493
|
this.snackBar.open('DFS Modifier Saved Successfully', 'Dismiss', {
|
7477
7494
|
duration: 5000,
|
7478
7495
|
});
|
@@ -8384,8 +8401,8 @@ class TeamMemberCardComponent {
|
|
8384
8401
|
memberList.push(this.CurrentUser);
|
8385
8402
|
}
|
8386
8403
|
this.ProjectLookups.forEach((proj) => {
|
8387
|
-
var _a, _b, _c, _d;
|
8388
|
-
(_d = (_c = (_b = (_a = this.Projects[proj]
|
8404
|
+
var _a, _b, _c, _d, _e;
|
8405
|
+
(_e = (_d = (_c = (_b = (_a = this.Projects[proj]) === null || _a === void 0 ? void 0 : _a.RelyingParty) === null || _b === void 0 ? void 0 : _b.AccessConfigurations) === null || _c === void 0 ? void 0 : _c.fathym) === null || _d === void 0 ? void 0 : _d.Usernames) === null || _e === void 0 ? void 0 : _e.forEach((username) => {
|
8389
8406
|
if (!memberList.includes(username)) {
|
8390
8407
|
memberList.push(username);
|
8391
8408
|
// console.log("Added: ", username)
|
@@ -8713,13 +8730,14 @@ class ProjectCardComponent {
|
|
8713
8730
|
// console.log('calling build project tree');
|
8714
8731
|
let tempTreeData = [];
|
8715
8732
|
(_a = this.ProjectLookups) === null || _a === void 0 ? void 0 : _a.forEach((pLookup) => {
|
8733
|
+
var _a, _b;
|
8716
8734
|
let tempProj = this.Projects[pLookup];
|
8717
8735
|
this.Project = tempProj;
|
8718
8736
|
let tempProjNode = {
|
8719
|
-
name: tempProj.Project.Name,
|
8720
|
-
description: tempProj.Project.Description,
|
8737
|
+
name: (_a = tempProj === null || tempProj === void 0 ? void 0 : tempProj.Project) === null || _a === void 0 ? void 0 : _a.Name,
|
8738
|
+
description: (_b = tempProj === null || tempProj === void 0 ? void 0 : tempProj.Project) === null || _b === void 0 ? void 0 : _b.Description,
|
8721
8739
|
lookup: pLookup,
|
8722
|
-
url: 'https://' + tempProj.PrimaryHost,
|
8740
|
+
url: 'https://' + (tempProj === null || tempProj === void 0 ? void 0 : tempProj.PrimaryHost),
|
8723
8741
|
routerLink: ['/project', pLookup],
|
8724
8742
|
};
|
8725
8743
|
let tempRoutes = this.ApplicationRoutes;
|