@lowcodeunit/applications-flow-common 1.39.82-integration → 1.39.86-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/devops-source-control-form/devops-source-control-form.component.mjs +2 -2
- 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/feed-header/feed-header.component.mjs +2 -2
- 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 +31 -8
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +44 -23
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +42 -22
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/package.json +1 -1
@@ -457,6 +457,10 @@ class ProjectService {
|
|
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(
|
461
|
+
// 'Active Ent set to = ',
|
462
|
+
// response.Model?.Lookup
|
463
|
+
// );
|
460
464
|
resolve();
|
461
465
|
}
|
462
466
|
else {
|
@@ -493,6 +497,7 @@ class ProjectService {
|
|
493
497
|
return new Promise((resolve, reject) => {
|
494
498
|
state.LoadingEnterprises = true;
|
495
499
|
this.appsFlowSvc.ListEnterprises().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
500
|
+
// console.log('list Enterprises resp: ', response);
|
496
501
|
state.LoadingEnterprises = false;
|
497
502
|
if (response.Status.Code === 0) {
|
498
503
|
state.Enterprises = response.Model;
|
@@ -512,18 +517,21 @@ class ProjectService {
|
|
512
517
|
}
|
513
518
|
LoadEnterpriseAsCode(state) {
|
514
519
|
return new Promise((resolve, reject) => {
|
520
|
+
// console.log('Load ent called!!!');
|
515
521
|
state.Loading = true;
|
522
|
+
state.LoadingActiveEnterprise = true;
|
516
523
|
this.appsFlowSvc.LoadEnterpriseAsCode().subscribe((response) => {
|
517
524
|
var _a;
|
518
525
|
state.Loading = false;
|
519
|
-
|
526
|
+
state.LoadingActiveEnterprise = false;
|
527
|
+
// console.log('Load eac response: ', response);
|
520
528
|
if (response.Status.Code === 0) {
|
521
529
|
state.EaC = response.Model || {};
|
522
530
|
}
|
523
531
|
else if (response.Status.Code === 3) {
|
524
532
|
}
|
525
533
|
state.EaC = state.EaC || {};
|
526
|
-
console.log('state.eac = ', state.EaC);
|
534
|
+
// console.log('state.eac = ', state.EaC);
|
527
535
|
this.CreatingProject =
|
528
536
|
Object.keys(((_a = state === null || state === void 0 ? void 0 : state.EaC) === null || _a === void 0 ? void 0 : _a.Projects) || {}).length <= 0;
|
529
537
|
resolve(state.EaC);
|
@@ -556,6 +564,7 @@ class ProjectService {
|
|
556
564
|
LoadUserFeed(page, pageSize, filterStr, forCheck = false, state) {
|
557
565
|
return __awaiter(this, void 0, void 0, function* () {
|
558
566
|
return new Promise((resolve, reject) => {
|
567
|
+
// console.log('load user feed called');
|
559
568
|
state.LoadingFeed = !forCheck;
|
560
569
|
let paramMap = this.activatedRoute.snapshot.children[0].paramMap;
|
561
570
|
let result = this.loadApplicationsForFeed(state, paramMap);
|
@@ -612,35 +621,49 @@ class ProjectService {
|
|
612
621
|
SetActiveEnterprise(state, activeEntLookup) {
|
613
622
|
return __awaiter(this, void 0, void 0, function* () {
|
614
623
|
return new Promise((resolve, reject) => {
|
624
|
+
// console.log('SET ACTIVE ENT CALLED', activeEntLookup);
|
615
625
|
state.Loading = true;
|
626
|
+
state.LoadingActiveEnterprise = true;
|
616
627
|
state.LoadingFeed = true;
|
628
|
+
state.ActiveEnterpriseLookup = activeEntLookup;
|
629
|
+
// state.LoadingFeed = true;
|
617
630
|
this.appsFlowSvc.SetActiveEnterprise(activeEntLookup).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
618
631
|
if (response.Status.Code === 0) {
|
619
632
|
this.EditingProjectLookup = null;
|
633
|
+
// console.log('state: ', state);
|
620
634
|
// console.log(
|
621
635
|
// 'project service active ent: ',
|
622
636
|
// activeEntLookup
|
623
637
|
// );
|
624
|
-
state.ActiveEnterpriseLookup = activeEntLookup;
|
638
|
+
// state.ActiveEnterpriseLookup = activeEntLookup;
|
625
639
|
// console.log(
|
626
640
|
// 'project service State active ent: ',
|
627
641
|
// state.ActiveEnterpriseLookup
|
628
642
|
// );
|
629
643
|
resolve(response.Status);
|
630
644
|
var results = yield Promise.all([
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
645
|
+
// this.ListEnterprises(state),
|
646
|
+
// this.LoadEnterpriseAsCode(state),
|
647
|
+
// this.LoadUserFeed(
|
648
|
+
// 1,
|
649
|
+
// 25,
|
650
|
+
// localStorage.getItem('activeFilter')
|
651
|
+
// ? localStorage.getItem('activeFilter')
|
652
|
+
// : '',
|
653
|
+
// false,
|
654
|
+
// state
|
655
|
+
// ),
|
635
656
|
]);
|
636
657
|
}
|
637
658
|
else {
|
638
659
|
state.Loading = false;
|
660
|
+
state.LoadingActiveEnterprise = false;
|
639
661
|
reject(response.Status);
|
640
662
|
// console.log(response);
|
641
663
|
}
|
642
664
|
}), (err) => {
|
643
665
|
state.Loading = false;
|
666
|
+
state.LoadingActiveEnterprise = false;
|
644
667
|
reject(err);
|
645
668
|
console.log(err);
|
646
669
|
});
|
@@ -1025,9 +1048,6 @@ class EaCService {
|
|
1025
1048
|
}
|
1026
1049
|
});
|
1027
1050
|
}
|
1028
|
-
// this.appsFlowEventsSvc.EnsureUserEnterpriseEvent.subscribe(async () => {
|
1029
|
-
// await this.projectService.EnsureUserEnterprise(this.State);
|
1030
|
-
// });
|
1031
1051
|
EnsureUserEnterprise() {
|
1032
1052
|
return __awaiter(this, void 0, void 0, function* () {
|
1033
1053
|
const state = this.stateSubject.getValue();
|
@@ -1184,7 +1204,6 @@ class EaCService {
|
|
1184
1204
|
handleSaveApplication(req) {
|
1185
1205
|
return __awaiter(this, void 0, void 0, function* () {
|
1186
1206
|
const state = this.stateSubject.getValue();
|
1187
|
-
// console.log("app req: ", req);
|
1188
1207
|
const saveEaC = {
|
1189
1208
|
EnterpriseLookup: state.EaC.EnterpriseLookup,
|
1190
1209
|
Applications: {},
|
@@ -1227,12 +1246,11 @@ class EaCService {
|
|
1227
1246
|
}
|
1228
1247
|
if (req.ApplicationLookup) {
|
1229
1248
|
// console.log('APPLOokup: ', req.ApplicationLookup);
|
1230
|
-
// console.log('saveEAC: ', saveEaC);
|
1231
1249
|
saveEaC.Applications[req.ApplicationLookup] = {
|
1232
1250
|
ModifierLookups: req.ModifierLookups,
|
1233
1251
|
};
|
1234
1252
|
}
|
1235
|
-
|
1253
|
+
console.log('Save mod eac: ', saveEaC);
|
1236
1254
|
const status = yield this.projectService.SaveEnterpriseAsCode(state, saveEaC);
|
1237
1255
|
this.stateSubject.next(state);
|
1238
1256
|
return status;
|
@@ -4242,7 +4260,7 @@ class DevopsSourceControlFormComponent {
|
|
4242
4260
|
RefreshOrganizations() {
|
4243
4261
|
var _a, _b, _c;
|
4244
4262
|
// this.Loading = true;
|
4245
|
-
console.log('refresh');
|
4263
|
+
// console.log('refresh');
|
4246
4264
|
this.listOrganizations();
|
4247
4265
|
(_a = this.OrganizationFormControl) === null || _a === void 0 ? void 0 : _a.reset();
|
4248
4266
|
(_b = this.RepositoryFormControl) === null || _b === void 0 ? void 0 : _b.reset();
|
@@ -7007,7 +7025,7 @@ class FeedHeaderComponent {
|
|
7007
7025
|
window.location.href = path;
|
7008
7026
|
}
|
7009
7027
|
Submit() {
|
7010
|
-
console.log('submitting: ', this.value);
|
7028
|
+
// console.log('submitting: ', this.value);
|
7011
7029
|
switch (this.selectedBtn) {
|
7012
7030
|
case 'pr-btn':
|
7013
7031
|
//Pull request
|
@@ -7217,10 +7235,11 @@ class DFSModifiersFormComponent {
|
|
7217
7235
|
SaveModifier(projectLookup = null) {
|
7218
7236
|
let saveStatus;
|
7219
7237
|
if (this.ModifierFormGroup) {
|
7238
|
+
// console.log("here 1")
|
7220
7239
|
const saveMdfrReq = {
|
7221
7240
|
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
7241
|
ModifierLookups: [this.EditingModifierLookup],
|
7223
|
-
ProjectLookups: [projectLookup],
|
7242
|
+
// ProjectLookups: [projectLookup],
|
7224
7243
|
};
|
7225
7244
|
let details = this.getDetails();
|
7226
7245
|
saveMdfrReq.Modifier.Details = JSON.stringify(details);
|
@@ -7229,6 +7248,7 @@ class DFSModifiersFormComponent {
|
|
7229
7248
|
});
|
7230
7249
|
}
|
7231
7250
|
else if (this.ModifierSelectFormGroup) {
|
7251
|
+
// console.log('here 2');
|
7232
7252
|
const saveMdfrReq = {
|
7233
7253
|
ModifierLookups: this.MultiSelectFormControl.value,
|
7234
7254
|
ProjectLookups: [projectLookup],
|
@@ -7450,7 +7470,7 @@ class DFSModifiersDialogComponent {
|
|
7450
7470
|
}
|
7451
7471
|
}
|
7452
7472
|
SaveDFSModifier() {
|
7453
|
-
// console.log(
|
7473
|
+
// console.log('level at save: ', this.data.level);
|
7454
7474
|
let status;
|
7455
7475
|
switch (this.data.level) {
|
7456
7476
|
case 'enterprise': {
|
@@ -7472,7 +7492,7 @@ class DFSModifiersDialogComponent {
|
|
7472
7492
|
this.DFSModifersFormControls.SaveModifierForApplication(this.data.applicationLookup);
|
7473
7493
|
}
|
7474
7494
|
}
|
7475
|
-
if (status.Code === 0) {
|
7495
|
+
if ((status === null || status === void 0 ? void 0 : status.Code) === 0) {
|
7476
7496
|
this.snackBar.open('DFS Modifier Saved Successfully', 'Dismiss', {
|
7477
7497
|
duration: 5000,
|
7478
7498
|
});
|
@@ -8384,8 +8404,8 @@ class TeamMemberCardComponent {
|
|
8384
8404
|
memberList.push(this.CurrentUser);
|
8385
8405
|
}
|
8386
8406
|
this.ProjectLookups.forEach((proj) => {
|
8387
|
-
var _a, _b, _c, _d;
|
8388
|
-
(_d = (_c = (_b = (_a = this.Projects[proj]
|
8407
|
+
var _a, _b, _c, _d, _e;
|
8408
|
+
(_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
8409
|
if (!memberList.includes(username)) {
|
8390
8410
|
memberList.push(username);
|
8391
8411
|
// console.log("Added: ", username)
|
@@ -8713,13 +8733,14 @@ class ProjectCardComponent {
|
|
8713
8733
|
// console.log('calling build project tree');
|
8714
8734
|
let tempTreeData = [];
|
8715
8735
|
(_a = this.ProjectLookups) === null || _a === void 0 ? void 0 : _a.forEach((pLookup) => {
|
8736
|
+
var _a, _b;
|
8716
8737
|
let tempProj = this.Projects[pLookup];
|
8717
8738
|
this.Project = tempProj;
|
8718
8739
|
let tempProjNode = {
|
8719
|
-
name: tempProj.Project.Name,
|
8720
|
-
description: tempProj.Project.Description,
|
8740
|
+
name: (_a = tempProj === null || tempProj === void 0 ? void 0 : tempProj.Project) === null || _a === void 0 ? void 0 : _a.Name,
|
8741
|
+
description: (_b = tempProj === null || tempProj === void 0 ? void 0 : tempProj.Project) === null || _b === void 0 ? void 0 : _b.Description,
|
8721
8742
|
lookup: pLookup,
|
8722
|
-
url: 'https://' + tempProj.PrimaryHost,
|
8743
|
+
url: 'https://' + (tempProj === null || tempProj === void 0 ? void 0 : tempProj.PrimaryHost),
|
8723
8744
|
routerLink: ['/project', pLookup],
|
8724
8745
|
};
|
8725
8746
|
let tempRoutes = this.ApplicationRoutes;
|