@lowcodeunit/applications-flow-common 1.39.92-enterprise-switch-fix → 1.39.94-fix-undefined-path
Sign up to get free protection for your applications and to get access to all the features.
- 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 +2 -4
- 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 -6
- package/esm2020/lib/services/project.service.mjs +219 -288
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +229 -307
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +228 -303
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/package.json +1 -1
@@ -362,52 +362,46 @@ class ProjectService {
|
|
362
362
|
EnsureUserEnterprise(state) {
|
363
363
|
return new Promise((resolve, reject) => {
|
364
364
|
state.Loading = true;
|
365
|
-
this.appsFlowSvc.EnsureUserEnterprise().subscribe({
|
366
|
-
|
365
|
+
this.appsFlowSvc.EnsureUserEnterprise().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
366
|
+
if (response.Status.Code === 0) {
|
367
|
+
// const eac = await this.LoadEnterpriseAsCode(state);
|
368
|
+
resolve(response);
|
369
|
+
}
|
370
|
+
else {
|
371
|
+
state.Loading = false;
|
372
|
+
reject(response.Status);
|
373
|
+
// console.log(response);
|
374
|
+
}
|
375
|
+
}), (err) => {
|
376
|
+
state.Loading = false;
|
377
|
+
reject(err);
|
378
|
+
console.log(err);
|
379
|
+
});
|
380
|
+
});
|
381
|
+
}
|
382
|
+
EnterpriseAsCodeRemovals(state, eac) {
|
383
|
+
return __awaiter(this, void 0, void 0, function* () {
|
384
|
+
return new Promise((resolve, reject) => {
|
385
|
+
state.Loading = true;
|
386
|
+
this.appsFlowSvc.EnterpriseAsCodeRemovals(eac).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
367
387
|
if (response.Status.Code === 0) {
|
368
|
-
|
369
|
-
|
388
|
+
resolve(response.Status);
|
389
|
+
var results = yield Promise.all([
|
390
|
+
this.LoadEnterpriseAsCode(state),
|
391
|
+
this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
|
392
|
+
? localStorage.getItem('activeFilter')
|
393
|
+
: '', false, state),
|
394
|
+
]);
|
370
395
|
}
|
371
396
|
else {
|
372
397
|
state.Loading = false;
|
373
398
|
reject(response.Status);
|
374
399
|
// console.log(response);
|
375
400
|
}
|
376
|
-
}),
|
377
|
-
error: (err) => {
|
401
|
+
}), (err) => {
|
378
402
|
state.Loading = false;
|
379
403
|
reject(err);
|
380
404
|
console.log(err);
|
381
|
-
},
|
382
|
-
});
|
383
|
-
});
|
384
|
-
}
|
385
|
-
EnterpriseAsCodeRemovals(state, eac) {
|
386
|
-
return __awaiter(this, void 0, void 0, function* () {
|
387
|
-
return new Promise((resolve, reject) => {
|
388
|
-
state.Loading = true;
|
389
|
-
this.appsFlowSvc.EnterpriseAsCodeRemovals(eac).subscribe({
|
390
|
-
next: (response) => __awaiter(this, void 0, void 0, function* () {
|
391
|
-
if (response.Status.Code === 0) {
|
392
|
-
resolve(response.Status);
|
393
|
-
var results = yield Promise.all([
|
394
|
-
this.LoadEnterpriseAsCode(state),
|
395
|
-
this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
|
396
|
-
? localStorage.getItem('activeFilter')
|
397
|
-
: '', false, state),
|
398
|
-
]);
|
399
|
-
}
|
400
|
-
else {
|
401
|
-
state.Loading = false;
|
402
|
-
reject(response.Status);
|
403
|
-
// console.log(response);
|
404
|
-
}
|
405
|
-
}),
|
406
|
-
error: (err) => {
|
407
|
-
state.Loading = false;
|
408
|
-
reject(err);
|
409
|
-
console.log(err);
|
410
|
-
},
|
411
405
|
});
|
412
406
|
});
|
413
407
|
});
|
@@ -458,28 +452,21 @@ class ProjectService {
|
|
458
452
|
return __awaiter(this, void 0, void 0, function* () {
|
459
453
|
return new Promise((resolve, reject) => {
|
460
454
|
state.LoadingActiveEnterprise = true;
|
461
|
-
this.appsFlowSvc.GetActiveEnterprise().subscribe({
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
}
|
477
|
-
}),
|
478
|
-
error: (err) => {
|
479
|
-
state.LoadingActiveEnterprise = false;
|
480
|
-
reject(err);
|
481
|
-
console.log(err);
|
482
|
-
},
|
455
|
+
this.appsFlowSvc.GetActiveEnterprise().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
456
|
+
var _a;
|
457
|
+
state.LoadingActiveEnterprise = false;
|
458
|
+
if (response.Status.Code === 0) {
|
459
|
+
state.ActiveEnterpriseLookup = (_a = response.Model) === null || _a === void 0 ? void 0 : _a.Lookup;
|
460
|
+
resolve();
|
461
|
+
}
|
462
|
+
else {
|
463
|
+
reject(response.Status);
|
464
|
+
// console.log(response);
|
465
|
+
}
|
466
|
+
}), (err) => {
|
467
|
+
state.LoadingActiveEnterprise = false;
|
468
|
+
reject(err);
|
469
|
+
console.log(err);
|
483
470
|
});
|
484
471
|
});
|
485
472
|
});
|
@@ -487,20 +474,17 @@ class ProjectService {
|
|
487
474
|
HasValidConnection(state, forceEnsureUser = false) {
|
488
475
|
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
489
476
|
state.Loading = true;
|
490
|
-
this.appsFlowSvc.HasValidConnection().subscribe({
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
reject(err);
|
502
|
-
console.log(err);
|
503
|
-
},
|
477
|
+
this.appsFlowSvc.HasValidConnection().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
478
|
+
state.GitHub.HasConnection = response.Status.Code === 0;
|
479
|
+
if (state.GitHub.HasConnection || forceEnsureUser) {
|
480
|
+
}
|
481
|
+
else {
|
482
|
+
}
|
483
|
+
resolve({});
|
484
|
+
}), (err) => {
|
485
|
+
state.Loading = false;
|
486
|
+
reject(err);
|
487
|
+
console.log(err);
|
504
488
|
});
|
505
489
|
}));
|
506
490
|
}
|
@@ -508,124 +492,106 @@ class ProjectService {
|
|
508
492
|
return __awaiter(this, void 0, void 0, function* () {
|
509
493
|
return new Promise((resolve, reject) => {
|
510
494
|
state.LoadingEnterprises = true;
|
511
|
-
this.appsFlowSvc.ListEnterprises().subscribe({
|
512
|
-
|
513
|
-
|
514
|
-
state.
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
state.LoadingEnterprises = false;
|
526
|
-
reject(err);
|
527
|
-
console.log(err);
|
528
|
-
},
|
495
|
+
this.appsFlowSvc.ListEnterprises().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
496
|
+
state.LoadingEnterprises = false;
|
497
|
+
if (response.Status.Code === 0) {
|
498
|
+
state.Enterprises = response.Model;
|
499
|
+
resolve(response.Model);
|
500
|
+
}
|
501
|
+
else {
|
502
|
+
reject(response.Status);
|
503
|
+
// console.log(response);
|
504
|
+
}
|
505
|
+
}), (err) => {
|
506
|
+
state.LoadingEnterprises = false;
|
507
|
+
reject(err);
|
508
|
+
console.log(err);
|
529
509
|
});
|
530
510
|
});
|
531
511
|
});
|
532
512
|
}
|
533
513
|
LoadEnterpriseAsCode(state) {
|
534
|
-
return
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
state.
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
let
|
560
|
-
|
561
|
-
// console.log('Directing to deeper link');
|
562
|
-
let appKeys = Object.keys(state.EaC.Applications || {});
|
563
|
-
if (appKeys.length == 1) {
|
564
|
-
let app = state.EaC.Applications[appKeys[0]];
|
565
|
-
let routeKey = encodeURIComponent(((_a = app.LookupConfig.PathRegex) === null || _a === void 0 ? void 0 : _a.replace('.*', '')) || '/');
|
566
|
-
window.location.href = `/dashboard/application/${appKeys[0]}/${routeKey}/${projKeys[0]}`;
|
567
|
-
}
|
568
|
-
else {
|
569
|
-
window.location.href = `/dashboard/project/${projKeys[0]}`;
|
570
|
-
}
|
571
|
-
}
|
514
|
+
return new Promise((resolve, reject) => {
|
515
|
+
state.Loading = true;
|
516
|
+
this.appsFlowSvc.LoadEnterpriseAsCode().subscribe((response) => {
|
517
|
+
var _a;
|
518
|
+
state.Loading = false;
|
519
|
+
console.log('Load eac response: ', response);
|
520
|
+
if (response.Status.Code === 0) {
|
521
|
+
state.EaC = response.Model || {};
|
522
|
+
}
|
523
|
+
else if (response.Status.Code === 3) {
|
524
|
+
}
|
525
|
+
state.EaC = state.EaC || {};
|
526
|
+
console.log('state.eac = ', state.EaC);
|
527
|
+
this.CreatingProject =
|
528
|
+
Object.keys(((_a = state === null || state === void 0 ? void 0 : state.EaC) === null || _a === void 0 ? void 0 : _a.Projects) || {}).length <= 0;
|
529
|
+
resolve(state.EaC);
|
530
|
+
this.activatedRoute.queryParams.subscribe((params) => {
|
531
|
+
var _a;
|
532
|
+
if ((params === null || params === void 0 ? void 0 : params.direct) == 'true') {
|
533
|
+
let projKeys = Object.keys(state.EaC.Projects || {});
|
534
|
+
if (projKeys.length == 1) {
|
535
|
+
// console.log('Directing to deeper link');
|
536
|
+
let appKeys = Object.keys(state.EaC.Applications || {});
|
537
|
+
if (appKeys.length == 1) {
|
538
|
+
let app = state.EaC.Applications[appKeys[0]];
|
539
|
+
let routeKey = encodeURIComponent(((_a = app.LookupConfig.PathRegex) === null || _a === void 0 ? void 0 : _a.replace('.*', '')) || '/');
|
540
|
+
window.location.href = `/dashboard/application/${appKeys[0]}/${routeKey}/${projKeys[0]}`;
|
572
541
|
}
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
state.Loading = false;
|
579
|
-
reject(err);
|
580
|
-
console.error(err);
|
581
|
-
},
|
542
|
+
else {
|
543
|
+
window.location.href = `/dashboard/project/${projKeys[0]}`;
|
544
|
+
}
|
545
|
+
}
|
546
|
+
}
|
582
547
|
});
|
548
|
+
// console.log(state);
|
549
|
+
}, (err) => {
|
550
|
+
state.Loading = false;
|
551
|
+
reject(err);
|
552
|
+
console.log(err);
|
583
553
|
});
|
584
554
|
});
|
585
555
|
}
|
586
556
|
LoadUserFeed(page, pageSize, filterStr, forCheck = false, state) {
|
587
557
|
return __awaiter(this, void 0, void 0, function* () {
|
588
558
|
return new Promise((resolve, reject) => {
|
589
|
-
// console.log('load user feed called');
|
590
559
|
state.LoadingFeed = !forCheck;
|
591
560
|
let paramMap = this.activatedRoute.snapshot.children[0].paramMap;
|
592
561
|
let result = this.loadApplicationsForFeed(state, paramMap);
|
593
562
|
this.appsFlowSvc
|
594
563
|
.LoadUserFeed(page, pageSize, filterStr, result === null || result === void 0 ? void 0 : result.Project, result === null || result === void 0 ? void 0 : result.Applications)
|
595
|
-
.subscribe({
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
state.FeedCheck = null;
|
610
|
-
}
|
611
|
-
else {
|
612
|
-
let items = (_a = response.Items) === null || _a === void 0 ? void 0 : _a.filter((i) => { var _a; return !((_a = state.Feed) === null || _a === void 0 ? void 0 : _a.find((f) => f.ID == i.ID)); });
|
613
|
-
if ((items === null || items === void 0 ? void 0 : items.length) > 0) {
|
614
|
-
state.FeedCheck = response;
|
615
|
-
}
|
616
|
-
}
|
617
|
-
// console.log("ITEMZ: ", response.Items)
|
618
|
-
resolve(response.Items);
|
564
|
+
.subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
565
|
+
var _a;
|
566
|
+
state.LoadingFeed = false;
|
567
|
+
if (response.Status.Code === 0) {
|
568
|
+
// console.log('user feed response: ', response);
|
569
|
+
if (!forCheck) {
|
570
|
+
state.Advertisements = response.Advertisements;
|
571
|
+
state.Questions = response.Questions;
|
572
|
+
state.FeedFilters = response.ItemTypes;
|
573
|
+
state.Feed = response.Items;
|
574
|
+
state.FeedSourceControlLookups =
|
575
|
+
response.SourceControlLookups;
|
576
|
+
state.FeedActions = response.Actions;
|
577
|
+
state.FeedCheck = null;
|
619
578
|
}
|
620
579
|
else {
|
621
|
-
|
580
|
+
let items = (_a = response.Items) === null || _a === void 0 ? void 0 : _a.filter((i) => { var _a; return !((_a = state.Feed) === null || _a === void 0 ? void 0 : _a.find((f) => f.ID == i.ID)); });
|
581
|
+
if ((items === null || items === void 0 ? void 0 : items.length) > 0) {
|
582
|
+
state.FeedCheck = response;
|
583
|
+
}
|
622
584
|
}
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
}
|
585
|
+
// console.log("ITEMZ: ", response.Items)
|
586
|
+
resolve(response.Items);
|
587
|
+
}
|
588
|
+
else {
|
589
|
+
reject(response.Status);
|
590
|
+
}
|
591
|
+
}), (err) => {
|
592
|
+
state.LoadingFeed = false;
|
593
|
+
reject(err);
|
594
|
+
console.log(err);
|
629
595
|
});
|
630
596
|
});
|
631
597
|
});
|
@@ -646,53 +612,37 @@ class ProjectService {
|
|
646
612
|
SetActiveEnterprise(state, activeEntLookup) {
|
647
613
|
return __awaiter(this, void 0, void 0, function* () {
|
648
614
|
return new Promise((resolve, reject) => {
|
649
|
-
// console.log('SET ACTIVE ENT CALLED', activeEntLookup);
|
650
615
|
state.Loading = true;
|
651
|
-
state.LoadingActiveEnterprise = true;
|
652
616
|
state.LoadingFeed = true;
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
// 25,
|
675
|
-
// localStorage.getItem('activeFilter')
|
676
|
-
// ? localStorage.getItem('activeFilter')
|
677
|
-
// : '',
|
678
|
-
// false,
|
679
|
-
// state
|
680
|
-
// ),
|
681
|
-
]);
|
682
|
-
}
|
683
|
-
else {
|
684
|
-
state.Loading = false;
|
685
|
-
state.LoadingActiveEnterprise = false;
|
686
|
-
reject(response.Status);
|
687
|
-
// console.log(response);
|
688
|
-
}
|
689
|
-
}),
|
690
|
-
error: (err) => {
|
617
|
+
this.appsFlowSvc.SetActiveEnterprise(activeEntLookup).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
618
|
+
if (response.Status.Code === 0) {
|
619
|
+
this.EditingProjectLookup = null;
|
620
|
+
// console.log(
|
621
|
+
// 'project service active ent: ',
|
622
|
+
// activeEntLookup
|
623
|
+
// );
|
624
|
+
state.ActiveEnterpriseLookup = activeEntLookup;
|
625
|
+
// console.log(
|
626
|
+
// 'project service State active ent: ',
|
627
|
+
// state.ActiveEnterpriseLookup
|
628
|
+
// );
|
629
|
+
resolve(response.Status);
|
630
|
+
var results = yield Promise.all([
|
631
|
+
this.LoadEnterpriseAsCode(state),
|
632
|
+
this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
|
633
|
+
? localStorage.getItem('activeFilter')
|
634
|
+
: '', false, state),
|
635
|
+
]);
|
636
|
+
}
|
637
|
+
else {
|
691
638
|
state.Loading = false;
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
639
|
+
reject(response.Status);
|
640
|
+
// console.log(response);
|
641
|
+
}
|
642
|
+
}), (err) => {
|
643
|
+
state.Loading = false;
|
644
|
+
reject(err);
|
645
|
+
console.log(err);
|
696
646
|
});
|
697
647
|
});
|
698
648
|
});
|
@@ -700,47 +650,32 @@ class ProjectService {
|
|
700
650
|
SaveEnterpriseAsCode(state, eac) {
|
701
651
|
return __awaiter(this, void 0, void 0, function* () {
|
702
652
|
return new Promise((resolve, reject) => {
|
703
|
-
console.log('save EAC called');
|
704
653
|
state.Loading = true;
|
705
|
-
state.LoadingActiveEnterprise = true;
|
706
654
|
// console.log('eac: ', eac);
|
707
|
-
|
708
|
-
.
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
]);
|
723
|
-
// var results = this.LoadEnterpriseAsCode(state);
|
724
|
-
console.log('LOAD EAC RESULTS: ', results);
|
725
|
-
state.Loading = false;
|
726
|
-
state.LoadingActiveEnterprise = false;
|
727
|
-
console.log('State from save eac: ', state);
|
728
|
-
}
|
729
|
-
else {
|
730
|
-
state.Loading = false;
|
731
|
-
state.LoadingActiveEnterprise = false;
|
732
|
-
reject(response.Status);
|
733
|
-
// console.log(response);
|
734
|
-
}
|
735
|
-
}),
|
736
|
-
error: (err) => {
|
655
|
+
this.appsFlowSvc.SaveEnterpriseAsCode(eac).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
656
|
+
if (response.Status.Code === 0) {
|
657
|
+
resolve(response.Status);
|
658
|
+
var results = yield Promise.all([
|
659
|
+
// this.EnsureUserEnterprise(state),
|
660
|
+
this.LoadEnterpriseAsCode(state),
|
661
|
+
this.ListEnterprises(state),
|
662
|
+
// this.GetActiveEnterprise(state),
|
663
|
+
this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
|
664
|
+
? localStorage.getItem('activeFilter')
|
665
|
+
: '', false, state),
|
666
|
+
]);
|
667
|
+
// console.log('LOAD EAC RESULTS: ', results);
|
668
|
+
}
|
669
|
+
else {
|
737
670
|
state.Loading = false;
|
738
|
-
reject(
|
739
|
-
console.log(
|
740
|
-
}
|
671
|
+
reject(response.Status);
|
672
|
+
// console.log(response);
|
673
|
+
}
|
674
|
+
}), (err) => {
|
675
|
+
state.Loading = false;
|
676
|
+
reject(err);
|
677
|
+
console.log(err);
|
741
678
|
});
|
742
|
-
console.log('SAVE ENT SUB: ', saveEntSub);
|
743
|
-
// saveEntSub.unsubscribe();
|
744
679
|
});
|
745
680
|
});
|
746
681
|
}
|
@@ -772,42 +707,9 @@ class ProjectService {
|
|
772
707
|
return __awaiter(this, void 0, void 0, function* () {
|
773
708
|
return new Promise((resolve, reject) => {
|
774
709
|
state.Loading = true;
|
775
|
-
this.appsFlowSvc.SubmitFeedEntry(entry).subscribe({
|
776
|
-
|
777
|
-
|
778
|
-
response.Status.Code === 1) {
|
779
|
-
resolve(response.Status);
|
780
|
-
var results = yield Promise.all([
|
781
|
-
this.LoadEnterpriseAsCode(state),
|
782
|
-
this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
|
783
|
-
? localStorage.getItem('activeFilter')
|
784
|
-
: '', false, state),
|
785
|
-
]);
|
786
|
-
}
|
787
|
-
else {
|
788
|
-
state.Loading = false;
|
789
|
-
reject(response.Status);
|
790
|
-
// console.log(response);
|
791
|
-
}
|
792
|
-
}),
|
793
|
-
error: (err) => {
|
794
|
-
state.Loading = false;
|
795
|
-
reject(err);
|
796
|
-
console.log(err);
|
797
|
-
},
|
798
|
-
});
|
799
|
-
});
|
800
|
-
});
|
801
|
-
}
|
802
|
-
ToggleCreateProject() {
|
803
|
-
this.SetCreatingProject(!this.CreatingProject);
|
804
|
-
}
|
805
|
-
UnpackLowCodeUnit(state, req) {
|
806
|
-
return new Promise((resolve, reject) => {
|
807
|
-
state.Loading = true;
|
808
|
-
this.appsFlowSvc.UnpackLowCodeUnit(req).subscribe({
|
809
|
-
next: (response) => __awaiter(this, void 0, void 0, function* () {
|
810
|
-
if (response.Status.Code === 0) {
|
710
|
+
this.appsFlowSvc.SubmitFeedEntry(entry).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
711
|
+
if (response.Status.Code === 0 ||
|
712
|
+
response.Status.Code === 1) {
|
811
713
|
resolve(response.Status);
|
812
714
|
var results = yield Promise.all([
|
813
715
|
this.LoadEnterpriseAsCode(state),
|
@@ -821,12 +723,39 @@ class ProjectService {
|
|
821
723
|
reject(response.Status);
|
822
724
|
// console.log(response);
|
823
725
|
}
|
824
|
-
}),
|
825
|
-
error: (err) => {
|
726
|
+
}), (err) => {
|
826
727
|
state.Loading = false;
|
827
728
|
reject(err);
|
828
729
|
console.log(err);
|
829
|
-
}
|
730
|
+
});
|
731
|
+
});
|
732
|
+
});
|
733
|
+
}
|
734
|
+
ToggleCreateProject() {
|
735
|
+
this.SetCreatingProject(!this.CreatingProject);
|
736
|
+
}
|
737
|
+
UnpackLowCodeUnit(state, req) {
|
738
|
+
return new Promise((resolve, reject) => {
|
739
|
+
state.Loading = true;
|
740
|
+
this.appsFlowSvc.UnpackLowCodeUnit(req).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
741
|
+
if (response.Status.Code === 0) {
|
742
|
+
resolve(response.Status);
|
743
|
+
var results = yield Promise.all([
|
744
|
+
this.LoadEnterpriseAsCode(state),
|
745
|
+
this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
|
746
|
+
? localStorage.getItem('activeFilter')
|
747
|
+
: '', false, state),
|
748
|
+
]);
|
749
|
+
}
|
750
|
+
else {
|
751
|
+
state.Loading = false;
|
752
|
+
reject(response.Status);
|
753
|
+
// console.log(response);
|
754
|
+
}
|
755
|
+
}), (err) => {
|
756
|
+
state.Loading = false;
|
757
|
+
reject(err);
|
758
|
+
console.log(err);
|
830
759
|
});
|
831
760
|
});
|
832
761
|
}
|
@@ -1183,7 +1112,6 @@ class EaCService {
|
|
1183
1112
|
}
|
1184
1113
|
SaveApplicationAsCode(req) {
|
1185
1114
|
return __awaiter(this, void 0, void 0, function* () {
|
1186
|
-
console.log('Calling Save App as Code: ', req);
|
1187
1115
|
return yield this.handleSaveApplication(req);
|
1188
1116
|
});
|
1189
1117
|
}
|
@@ -1256,7 +1184,7 @@ class EaCService {
|
|
1256
1184
|
handleSaveApplication(req) {
|
1257
1185
|
return __awaiter(this, void 0, void 0, function* () {
|
1258
1186
|
const state = this.stateSubject.getValue();
|
1259
|
-
console.log(
|
1187
|
+
// console.log("app req: ", req);
|
1260
1188
|
const saveEaC = {
|
1261
1189
|
EnterpriseLookup: state.EaC.EnterpriseLookup,
|
1262
1190
|
Applications: {},
|
@@ -1274,9 +1202,6 @@ class EaCService {
|
|
1274
1202
|
saveEaC.Applications[req.ApplicationLookup] = req.Application;
|
1275
1203
|
}
|
1276
1204
|
const status = yield this.projectService.SaveEnterpriseAsCode(state, saveEaC);
|
1277
|
-
console.log('State after save app: ', state);
|
1278
|
-
state.Loading = false;
|
1279
|
-
state.LoadingActiveEnterprise = false;
|
1280
1205
|
this.stateSubject.next(state);
|
1281
1206
|
return status;
|
1282
1207
|
});
|
@@ -4317,7 +4242,7 @@ class DevopsSourceControlFormComponent {
|
|
4317
4242
|
RefreshOrganizations() {
|
4318
4243
|
var _a, _b, _c;
|
4319
4244
|
// this.Loading = true;
|
4320
|
-
|
4245
|
+
console.log('refresh');
|
4321
4246
|
this.listOrganizations();
|
4322
4247
|
(_a = this.OrganizationFormControl) === null || _a === void 0 ? void 0 : _a.reset();
|
4323
4248
|
(_b = this.RepositoryFormControl) === null || _b === void 0 ? void 0 : _b.reset();
|
@@ -7082,7 +7007,7 @@ class FeedHeaderComponent {
|
|
7082
7007
|
window.location.href = path;
|
7083
7008
|
}
|
7084
7009
|
Submit() {
|
7085
|
-
|
7010
|
+
console.log('submitting: ', this.value);
|
7086
7011
|
switch (this.selectedBtn) {
|
7087
7012
|
case 'pr-btn':
|
7088
7013
|
//Pull request
|
@@ -7292,11 +7217,10 @@ class DFSModifiersFormComponent {
|
|
7292
7217
|
SaveModifier(projectLookup = null) {
|
7293
7218
|
let saveStatus;
|
7294
7219
|
if (this.ModifierFormGroup) {
|
7295
|
-
// console.log("here 1")
|
7296
7220
|
const saveMdfrReq = {
|
7297
7221
|
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 }),
|
7298
7222
|
ModifierLookups: [this.EditingModifierLookup],
|
7299
|
-
|
7223
|
+
ProjectLookups: [projectLookup],
|
7300
7224
|
};
|
7301
7225
|
let details = this.getDetails();
|
7302
7226
|
saveMdfrReq.Modifier.Details = JSON.stringify(details);
|
@@ -7305,7 +7229,6 @@ class DFSModifiersFormComponent {
|
|
7305
7229
|
});
|
7306
7230
|
}
|
7307
7231
|
else if (this.ModifierSelectFormGroup) {
|
7308
|
-
// console.log('here 2');
|
7309
7232
|
const saveMdfrReq = {
|
7310
7233
|
ModifierLookups: this.MultiSelectFormControl.value,
|
7311
7234
|
ProjectLookups: [projectLookup],
|
@@ -7527,7 +7450,7 @@ class DFSModifiersDialogComponent {
|
|
7527
7450
|
}
|
7528
7451
|
}
|
7529
7452
|
SaveDFSModifier() {
|
7530
|
-
// console.log(
|
7453
|
+
// console.log("level at save: ", this.data.level)
|
7531
7454
|
let status;
|
7532
7455
|
switch (this.data.level) {
|
7533
7456
|
case 'enterprise': {
|
@@ -7549,7 +7472,7 @@ class DFSModifiersDialogComponent {
|
|
7549
7472
|
this.DFSModifersFormControls.SaveModifierForApplication(this.data.applicationLookup);
|
7550
7473
|
}
|
7551
7474
|
}
|
7552
|
-
if (
|
7475
|
+
if (status.Code === 0) {
|
7553
7476
|
this.snackBar.open('DFS Modifier Saved Successfully', 'Dismiss', {
|
7554
7477
|
duration: 5000,
|
7555
7478
|
});
|
@@ -8461,8 +8384,8 @@ class TeamMemberCardComponent {
|
|
8461
8384
|
memberList.push(this.CurrentUser);
|
8462
8385
|
}
|
8463
8386
|
this.ProjectLookups.forEach((proj) => {
|
8464
|
-
var _a, _b, _c, _d
|
8465
|
-
(
|
8387
|
+
var _a, _b, _c, _d;
|
8388
|
+
(_d = (_c = (_b = (_a = this.Projects[proj].RelyingParty) === null || _a === void 0 ? void 0 : _a.AccessConfigurations) === null || _b === void 0 ? void 0 : _b.fathym) === null || _c === void 0 ? void 0 : _c.Usernames) === null || _d === void 0 ? void 0 : _d.forEach((username) => {
|
8466
8389
|
if (!memberList.includes(username)) {
|
8467
8390
|
memberList.push(username);
|
8468
8391
|
// console.log("Added: ", username)
|
@@ -8790,14 +8713,13 @@ class ProjectCardComponent {
|
|
8790
8713
|
// console.log('calling build project tree');
|
8791
8714
|
let tempTreeData = [];
|
8792
8715
|
(_a = this.ProjectLookups) === null || _a === void 0 ? void 0 : _a.forEach((pLookup) => {
|
8793
|
-
var _a, _b;
|
8794
8716
|
let tempProj = this.Projects[pLookup];
|
8795
8717
|
this.Project = tempProj;
|
8796
8718
|
let tempProjNode = {
|
8797
|
-
name:
|
8798
|
-
description:
|
8719
|
+
name: tempProj.Project.Name,
|
8720
|
+
description: tempProj.Project.Description,
|
8799
8721
|
lookup: pLookup,
|
8800
|
-
url: 'https://' +
|
8722
|
+
url: 'https://' + tempProj.PrimaryHost,
|
8801
8723
|
routerLink: ['/project', pLookup],
|
8802
8724
|
};
|
8803
8725
|
let tempRoutes = this.ApplicationRoutes;
|