@lowcodeunit/applications-flow-common 1.33.93-lets-get-social-ish → 1.33.95-lets-get-social-ish
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/bundles/lowcodeunit-applications-flow-common.umd.js +456 -343
- package/bundles/lowcodeunit-applications-flow-common.umd.js.map +1 -1
- package/bundles/lowcodeunit-applications-flow-common.umd.min.js +1 -1
- package/bundles/lowcodeunit-applications-flow-common.umd.min.js.map +1 -1
- package/esm2015/lcu.api.js +2 -1
- package/esm2015/lib/applications-flow.module.js +14 -4
- package/esm2015/lib/controls/build-pipeline-form/build-pipeline-form.component.js +15 -0
- package/esm2015/lib/controls/devops-source-control-form/devops-source-control-form.component.js +15 -0
- package/esm2015/lib/elements/projects/controls/tabs/apps-flow/apps-flow.component.js +8 -10
- package/esm2015/lib/elements/projects/projects.component.js +8 -132
- package/esm2015/lib/services/eac.service.js +193 -0
- package/esm2015/lowcodeunit-applications-flow-common.js +3 -1
- package/fesm2015/lowcodeunit-applications-flow-common.js +284 -189
- package/fesm2015/lowcodeunit-applications-flow-common.js.map +1 -1
- package/lcu.api.d.ts +1 -0
- package/lcu.api.d.ts.map +1 -1
- package/lib/applications-flow.module.d.ts.map +1 -1
- package/lib/controls/build-pipeline-form/build-pipeline-form.component.d.ts +6 -0
- package/lib/controls/build-pipeline-form/build-pipeline-form.component.d.ts.map +1 -0
- package/lib/controls/devops-source-control-form/devops-source-control-form.component.d.ts +6 -0
- package/lib/controls/devops-source-control-form/devops-source-control-form.component.d.ts.map +1 -0
- package/lib/elements/projects/controls/tabs/apps-flow/apps-flow.component.d.ts +3 -3
- package/lib/elements/projects/controls/tabs/apps-flow/apps-flow.component.d.ts.map +1 -1
- package/lib/elements/projects/projects.component.d.ts +4 -9
- package/lib/elements/projects/projects.component.d.ts.map +1 -1
- package/lib/services/eac.service.d.ts +30 -0
- package/lib/services/eac.service.d.ts.map +1 -0
- package/lowcodeunit-applications-flow-common.d.ts +2 -0
- package/lowcodeunit-applications-flow-common.d.ts.map +1 -1
- package/lowcodeunit-applications-flow-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1069,6 +1069,100 @@
|
|
|
1069
1069
|
{ type: i0.Injector }
|
|
1070
1070
|
]; };
|
|
1071
1071
|
|
|
1072
|
+
var SaveApplicationAsCodeEventRequest = /** @class */ (function () {
|
|
1073
|
+
function SaveApplicationAsCodeEventRequest() {
|
|
1074
|
+
}
|
|
1075
|
+
return SaveApplicationAsCodeEventRequest;
|
|
1076
|
+
}());
|
|
1077
|
+
var SaveDFSModifierEventRequest = /** @class */ (function () {
|
|
1078
|
+
function SaveDFSModifierEventRequest() {
|
|
1079
|
+
}
|
|
1080
|
+
return SaveDFSModifierEventRequest;
|
|
1081
|
+
}());
|
|
1082
|
+
var SaveEnvironmentAsCodeEventRequest = /** @class */ (function () {
|
|
1083
|
+
function SaveEnvironmentAsCodeEventRequest() {
|
|
1084
|
+
}
|
|
1085
|
+
return SaveEnvironmentAsCodeEventRequest;
|
|
1086
|
+
}());
|
|
1087
|
+
var SaveProjectAsCodeEventRequest = /** @class */ (function () {
|
|
1088
|
+
function SaveProjectAsCodeEventRequest() {
|
|
1089
|
+
}
|
|
1090
|
+
return SaveProjectAsCodeEventRequest;
|
|
1091
|
+
}());
|
|
1092
|
+
var ApplicationsFlowEventsService = /** @class */ (function () {
|
|
1093
|
+
// Constructors
|
|
1094
|
+
function ApplicationsFlowEventsService() {
|
|
1095
|
+
this.DeleteApplicationEvent = new i0.EventEmitter();
|
|
1096
|
+
this.DeleteDevOpsActionEvent = new i0.EventEmitter();
|
|
1097
|
+
this.DeleteProjectEvent = new i0.EventEmitter();
|
|
1098
|
+
this.DeleteSourceControlEvent = new i0.EventEmitter();
|
|
1099
|
+
this.EnsureUserEnterpriseEvent = new i0.EventEmitter();
|
|
1100
|
+
this.LoadEnterpriseAsCodeEvent = new i0.EventEmitter();
|
|
1101
|
+
this.SaveApplicationAsCodeEvent = new i0.EventEmitter();
|
|
1102
|
+
this.SaveDFSModifierEvent = new i0.EventEmitter();
|
|
1103
|
+
this.SaveEnterpriseAsCodeEvent = new i0.EventEmitter();
|
|
1104
|
+
this.SaveEnvironmentAsCodeEvent = new i0.EventEmitter();
|
|
1105
|
+
this.SaveProjectAsCodeEvent = new i0.EventEmitter();
|
|
1106
|
+
this.SetCreatingProjectEvent = new i0.EventEmitter();
|
|
1107
|
+
this.SetEditProjectSettingsEvent = new i0.EventEmitter();
|
|
1108
|
+
this.UnpackLowCodeUnitEvent = new i0.EventEmitter();
|
|
1109
|
+
}
|
|
1110
|
+
// API Methods
|
|
1111
|
+
ApplicationsFlowEventsService.prototype.DeleteApplication = function (appLookup) {
|
|
1112
|
+
this.DeleteApplicationEvent.emit(appLookup);
|
|
1113
|
+
};
|
|
1114
|
+
ApplicationsFlowEventsService.prototype.DeleteDevOpsAction = function (doaLookup) {
|
|
1115
|
+
this.DeleteDevOpsActionEvent.emit(doaLookup);
|
|
1116
|
+
};
|
|
1117
|
+
ApplicationsFlowEventsService.prototype.DeleteProject = function (projectLookup) {
|
|
1118
|
+
this.DeleteProjectEvent.emit(projectLookup);
|
|
1119
|
+
};
|
|
1120
|
+
ApplicationsFlowEventsService.prototype.DeleteSourceControl = function (scLookup) {
|
|
1121
|
+
this.DeleteSourceControlEvent.emit(scLookup);
|
|
1122
|
+
};
|
|
1123
|
+
ApplicationsFlowEventsService.prototype.EnsureUserEnterprise = function () {
|
|
1124
|
+
this.EnsureUserEnterpriseEvent.emit();
|
|
1125
|
+
};
|
|
1126
|
+
// public ListProjects(withLoading: boolean): void {
|
|
1127
|
+
// this.ListProjectsEvent.emit(withLoading);
|
|
1128
|
+
// }
|
|
1129
|
+
ApplicationsFlowEventsService.prototype.LoadEnterpriseAsCode = function () {
|
|
1130
|
+
this.LoadEnterpriseAsCodeEvent.emit();
|
|
1131
|
+
};
|
|
1132
|
+
ApplicationsFlowEventsService.prototype.SaveApplicationAsCode = function (req) {
|
|
1133
|
+
this.SaveApplicationAsCodeEvent.emit(req);
|
|
1134
|
+
};
|
|
1135
|
+
ApplicationsFlowEventsService.prototype.SaveDFSModifier = function (req) {
|
|
1136
|
+
this.SaveDFSModifierEvent.emit(req);
|
|
1137
|
+
};
|
|
1138
|
+
ApplicationsFlowEventsService.prototype.SaveEnterpriseAsCode = function (eac) {
|
|
1139
|
+
this.SaveEnterpriseAsCodeEvent.emit(eac);
|
|
1140
|
+
};
|
|
1141
|
+
ApplicationsFlowEventsService.prototype.SaveEnvironmentAsCode = function (req) {
|
|
1142
|
+
this.SaveEnvironmentAsCodeEvent.emit(req);
|
|
1143
|
+
};
|
|
1144
|
+
ApplicationsFlowEventsService.prototype.SaveProjectAsCode = function (req) {
|
|
1145
|
+
this.SaveProjectAsCodeEvent.emit(req);
|
|
1146
|
+
};
|
|
1147
|
+
ApplicationsFlowEventsService.prototype.SetCreatingProject = function (creatingProject) {
|
|
1148
|
+
this.SetCreatingProjectEvent.emit(creatingProject);
|
|
1149
|
+
};
|
|
1150
|
+
ApplicationsFlowEventsService.prototype.SetEditProjectSettings = function (projectLookup) {
|
|
1151
|
+
this.SetEditProjectSettingsEvent.emit(projectLookup);
|
|
1152
|
+
};
|
|
1153
|
+
ApplicationsFlowEventsService.prototype.UnpackLowCodeUnit = function (req) {
|
|
1154
|
+
this.UnpackLowCodeUnitEvent.emit(req);
|
|
1155
|
+
};
|
|
1156
|
+
return ApplicationsFlowEventsService;
|
|
1157
|
+
}());
|
|
1158
|
+
ApplicationsFlowEventsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ApplicationsFlowEventsService_Factory() { return new ApplicationsFlowEventsService(); }, token: ApplicationsFlowEventsService, providedIn: "root" });
|
|
1159
|
+
ApplicationsFlowEventsService.decorators = [
|
|
1160
|
+
{ type: i0.Injectable, args: [{
|
|
1161
|
+
providedIn: 'root',
|
|
1162
|
+
},] }
|
|
1163
|
+
];
|
|
1164
|
+
ApplicationsFlowEventsService.ctorParameters = function () { return []; };
|
|
1165
|
+
|
|
1072
1166
|
var ApplicationsFlowState = /** @class */ (function () {
|
|
1073
1167
|
function ApplicationsFlowState() {
|
|
1074
1168
|
this.GitHub = {};
|
|
@@ -1169,99 +1263,327 @@
|
|
|
1169
1263
|
// public Repository?: string;
|
|
1170
1264
|
// }
|
|
1171
1265
|
|
|
1172
|
-
var
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
}
|
|
1180
|
-
return SaveDFSModifierEventRequest;
|
|
1181
|
-
}());
|
|
1182
|
-
var SaveEnvironmentAsCodeEventRequest = /** @class */ (function () {
|
|
1183
|
-
function SaveEnvironmentAsCodeEventRequest() {
|
|
1184
|
-
}
|
|
1185
|
-
return SaveEnvironmentAsCodeEventRequest;
|
|
1186
|
-
}());
|
|
1187
|
-
var SaveProjectAsCodeEventRequest = /** @class */ (function () {
|
|
1188
|
-
function SaveProjectAsCodeEventRequest() {
|
|
1189
|
-
}
|
|
1190
|
-
return SaveProjectAsCodeEventRequest;
|
|
1191
|
-
}());
|
|
1192
|
-
var ApplicationsFlowEventsService = /** @class */ (function () {
|
|
1193
|
-
// Constructors
|
|
1194
|
-
function ApplicationsFlowEventsService() {
|
|
1195
|
-
this.DeleteApplicationEvent = new i0.EventEmitter();
|
|
1196
|
-
this.DeleteDevOpsActionEvent = new i0.EventEmitter();
|
|
1197
|
-
this.DeleteProjectEvent = new i0.EventEmitter();
|
|
1198
|
-
this.DeleteSourceControlEvent = new i0.EventEmitter();
|
|
1199
|
-
this.EnsureUserEnterpriseEvent = new i0.EventEmitter();
|
|
1200
|
-
this.LoadEnterpriseAsCodeEvent = new i0.EventEmitter();
|
|
1201
|
-
this.SaveApplicationAsCodeEvent = new i0.EventEmitter();
|
|
1202
|
-
this.SaveDFSModifierEvent = new i0.EventEmitter();
|
|
1203
|
-
this.SaveEnterpriseAsCodeEvent = new i0.EventEmitter();
|
|
1204
|
-
this.SaveEnvironmentAsCodeEvent = new i0.EventEmitter();
|
|
1205
|
-
this.SaveProjectAsCodeEvent = new i0.EventEmitter();
|
|
1206
|
-
this.SetCreatingProjectEvent = new i0.EventEmitter();
|
|
1207
|
-
this.SetEditProjectSettingsEvent = new i0.EventEmitter();
|
|
1208
|
-
this.UnpackLowCodeUnitEvent = new i0.EventEmitter();
|
|
1266
|
+
var EaCService = /** @class */ (function () {
|
|
1267
|
+
// Constructors
|
|
1268
|
+
function EaCService(appsFlowEventsSvc, projectService) {
|
|
1269
|
+
this.appsFlowEventsSvc = appsFlowEventsSvc;
|
|
1270
|
+
this.projectService = projectService;
|
|
1271
|
+
this.State = new ApplicationsFlowState();
|
|
1272
|
+
this.setServices();
|
|
1209
1273
|
}
|
|
1210
|
-
//
|
|
1211
|
-
|
|
1212
|
-
this
|
|
1274
|
+
// API Methods
|
|
1275
|
+
EaCService.prototype.DeleteApplication = function (appLookup, appName) {
|
|
1276
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1277
|
+
return __generator(this, function (_b) {
|
|
1278
|
+
switch (_b.label) {
|
|
1279
|
+
case 0:
|
|
1280
|
+
if (!confirm("Are you sure you want to delete application '" + appName + "'?")) return [3 /*break*/, 2];
|
|
1281
|
+
return [4 /*yield*/, this.projectService.DeleteApplication(this.State, appLookup)];
|
|
1282
|
+
case 1:
|
|
1283
|
+
_b.sent();
|
|
1284
|
+
_b.label = 2;
|
|
1285
|
+
case 2: return [2 /*return*/];
|
|
1286
|
+
}
|
|
1287
|
+
});
|
|
1288
|
+
});
|
|
1213
1289
|
};
|
|
1214
|
-
|
|
1215
|
-
this
|
|
1290
|
+
EaCService.prototype.DeleteDevOpsAction = function (doaLookup) {
|
|
1291
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1292
|
+
return __generator(this, function (_b) {
|
|
1293
|
+
switch (_b.label) {
|
|
1294
|
+
case 0:
|
|
1295
|
+
if (!confirm("Are you sure you want to delete DevOps action '" + doaLookup + "'?")) return [3 /*break*/, 2];
|
|
1296
|
+
return [4 /*yield*/, this.projectService.DeleteDevOpsAction(this.State, doaLookup)];
|
|
1297
|
+
case 1:
|
|
1298
|
+
_b.sent();
|
|
1299
|
+
_b.label = 2;
|
|
1300
|
+
case 2: return [2 /*return*/];
|
|
1301
|
+
}
|
|
1302
|
+
});
|
|
1303
|
+
});
|
|
1216
1304
|
};
|
|
1217
|
-
|
|
1218
|
-
this
|
|
1305
|
+
EaCService.prototype.DeleteProject = function (projectLookup) {
|
|
1306
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1307
|
+
return __generator(this, function (_b) {
|
|
1308
|
+
switch (_b.label) {
|
|
1309
|
+
case 0:
|
|
1310
|
+
if (!confirm("Are you sure you want to delete Project '" + projectLookup + "'?")) return [3 /*break*/, 2];
|
|
1311
|
+
return [4 /*yield*/, this.projectService.DeleteProject(this.State, projectLookup)];
|
|
1312
|
+
case 1:
|
|
1313
|
+
_b.sent();
|
|
1314
|
+
_b.label = 2;
|
|
1315
|
+
case 2: return [2 /*return*/];
|
|
1316
|
+
}
|
|
1317
|
+
});
|
|
1318
|
+
});
|
|
1219
1319
|
};
|
|
1220
|
-
|
|
1221
|
-
this
|
|
1320
|
+
EaCService.prototype.DeleteSourceControl = function (scLookup) {
|
|
1321
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1322
|
+
return __generator(this, function (_b) {
|
|
1323
|
+
switch (_b.label) {
|
|
1324
|
+
case 0:
|
|
1325
|
+
if (!confirm("Are you sure you want to delete Source Control '" + scLookup + "'?")) return [3 /*break*/, 2];
|
|
1326
|
+
return [4 /*yield*/, this.projectService.DeleteSourceControl(this.State, scLookup)];
|
|
1327
|
+
case 1:
|
|
1328
|
+
_b.sent();
|
|
1329
|
+
_b.label = 2;
|
|
1330
|
+
case 2: return [2 /*return*/];
|
|
1331
|
+
}
|
|
1332
|
+
});
|
|
1333
|
+
});
|
|
1222
1334
|
};
|
|
1223
|
-
|
|
1224
|
-
|
|
1335
|
+
// this.appsFlowEventsSvc.EnsureUserEnterpriseEvent.subscribe(async () => {
|
|
1336
|
+
// await this.projectService.EnsureUserEnterprise(this.State);
|
|
1337
|
+
// });
|
|
1338
|
+
EaCService.prototype.EnsureUserEnterprise = function (appLookup, appName) {
|
|
1339
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1340
|
+
return __generator(this, function (_b) {
|
|
1341
|
+
switch (_b.label) {
|
|
1342
|
+
case 0: return [4 /*yield*/, this.projectService.EnsureUserEnterprise(this.State)];
|
|
1343
|
+
case 1:
|
|
1344
|
+
_b.sent();
|
|
1345
|
+
return [2 /*return*/];
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
1348
|
+
});
|
|
1225
1349
|
};
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1350
|
+
EaCService.prototype.LoadEnterpriseAsCode = function () {
|
|
1351
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1352
|
+
return __generator(this, function (_b) {
|
|
1353
|
+
switch (_b.label) {
|
|
1354
|
+
case 0: return [4 /*yield*/, this.projectService.LoadEnterpriseAsCode(this.State)];
|
|
1355
|
+
case 1:
|
|
1356
|
+
_b.sent();
|
|
1357
|
+
return [2 /*return*/];
|
|
1358
|
+
}
|
|
1359
|
+
});
|
|
1360
|
+
});
|
|
1231
1361
|
};
|
|
1232
|
-
|
|
1233
|
-
this
|
|
1362
|
+
EaCService.prototype.SaveApplicationAsCode = function (req) {
|
|
1363
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1364
|
+
return __generator(this, function (_b) {
|
|
1365
|
+
switch (_b.label) {
|
|
1366
|
+
case 0: return [4 /*yield*/, this.handleSaveApplication(req)];
|
|
1367
|
+
case 1:
|
|
1368
|
+
_b.sent();
|
|
1369
|
+
return [2 /*return*/];
|
|
1370
|
+
}
|
|
1371
|
+
});
|
|
1372
|
+
});
|
|
1234
1373
|
};
|
|
1235
|
-
|
|
1236
|
-
this
|
|
1374
|
+
EaCService.prototype.SaveDFSModifierEvent = function (req) {
|
|
1375
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1376
|
+
return __generator(this, function (_b) {
|
|
1377
|
+
switch (_b.label) {
|
|
1378
|
+
case 0: return [4 /*yield*/, this.handleSaveDFSModifier(req)];
|
|
1379
|
+
case 1:
|
|
1380
|
+
_b.sent();
|
|
1381
|
+
return [2 /*return*/];
|
|
1382
|
+
}
|
|
1383
|
+
});
|
|
1384
|
+
});
|
|
1237
1385
|
};
|
|
1238
|
-
|
|
1239
|
-
this
|
|
1386
|
+
EaCService.prototype.SaveEnterpriseAsCode = function (eac) {
|
|
1387
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1388
|
+
return __generator(this, function (_b) {
|
|
1389
|
+
switch (_b.label) {
|
|
1390
|
+
case 0: return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, eac)];
|
|
1391
|
+
case 1:
|
|
1392
|
+
_b.sent();
|
|
1393
|
+
return [2 /*return*/];
|
|
1394
|
+
}
|
|
1395
|
+
});
|
|
1396
|
+
});
|
|
1240
1397
|
};
|
|
1241
|
-
|
|
1242
|
-
this
|
|
1398
|
+
EaCService.prototype.SaveEnvironmentAsCode = function (req) {
|
|
1399
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1400
|
+
return __generator(this, function (_b) {
|
|
1401
|
+
switch (_b.label) {
|
|
1402
|
+
case 0: return [4 /*yield*/, this.handleSaveEnvironment(req)];
|
|
1403
|
+
case 1:
|
|
1404
|
+
_b.sent();
|
|
1405
|
+
return [2 /*return*/];
|
|
1406
|
+
}
|
|
1407
|
+
});
|
|
1408
|
+
});
|
|
1243
1409
|
};
|
|
1244
|
-
|
|
1245
|
-
this
|
|
1410
|
+
EaCService.prototype.SaveProjectAsCode = function (req) {
|
|
1411
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1412
|
+
return __generator(this, function (_b) {
|
|
1413
|
+
switch (_b.label) {
|
|
1414
|
+
case 0: return [4 /*yield*/, this.handleSaveProject(req.ProjectLookup, req.Project)];
|
|
1415
|
+
case 1:
|
|
1416
|
+
_b.sent();
|
|
1417
|
+
return [2 /*return*/];
|
|
1418
|
+
}
|
|
1419
|
+
});
|
|
1420
|
+
});
|
|
1246
1421
|
};
|
|
1247
|
-
|
|
1248
|
-
this
|
|
1422
|
+
EaCService.prototype.SetCreatingProject = function (creatingProject) {
|
|
1423
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1424
|
+
return __generator(this, function (_b) {
|
|
1425
|
+
this.projectService.SetCreatingProject(creatingProject);
|
|
1426
|
+
return [2 /*return*/];
|
|
1427
|
+
});
|
|
1428
|
+
});
|
|
1249
1429
|
};
|
|
1250
|
-
|
|
1251
|
-
this
|
|
1430
|
+
EaCService.prototype.SetEditProjectSettings = function (projectLookup) {
|
|
1431
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1432
|
+
return __generator(this, function (_b) {
|
|
1433
|
+
switch (_b.label) {
|
|
1434
|
+
case 0: return [4 /*yield*/, this.projectService.SetEditProjectSettings(this.State, projectLookup)];
|
|
1435
|
+
case 1:
|
|
1436
|
+
_b.sent();
|
|
1437
|
+
return [2 /*return*/];
|
|
1438
|
+
}
|
|
1439
|
+
});
|
|
1440
|
+
});
|
|
1252
1441
|
};
|
|
1253
|
-
|
|
1254
|
-
this
|
|
1442
|
+
EaCService.prototype.UnpackLowCodeUnit = function (req) {
|
|
1443
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1444
|
+
return __generator(this, function (_b) {
|
|
1445
|
+
switch (_b.label) {
|
|
1446
|
+
case 0:
|
|
1447
|
+
if (!confirm("Are you sure you want to unpack application '" + req.ApplicationName + "' with version '" + req.Version + "'?")) return [3 /*break*/, 2];
|
|
1448
|
+
return [4 /*yield*/, this.projectService.UnpackLowCodeUnit(this.State, req)];
|
|
1449
|
+
case 1:
|
|
1450
|
+
_b.sent();
|
|
1451
|
+
_b.label = 2;
|
|
1452
|
+
case 2: return [2 /*return*/];
|
|
1453
|
+
}
|
|
1454
|
+
});
|
|
1455
|
+
});
|
|
1255
1456
|
};
|
|
1256
|
-
|
|
1457
|
+
EaCService.prototype.setServices = function () {
|
|
1458
|
+
// this.appsFlowEventsSvc.ListProjectsEvent.subscribe((withLoading) => {
|
|
1459
|
+
// this.projectService.ListProjects(this.State, withLoading);
|
|
1460
|
+
// });
|
|
1461
|
+
};
|
|
1462
|
+
// Helpers
|
|
1463
|
+
EaCService.prototype.handleSaveApplication = function (req) {
|
|
1464
|
+
var _a;
|
|
1465
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1466
|
+
var saveEaC, existingProj;
|
|
1467
|
+
return __generator(this, function (_b) {
|
|
1468
|
+
switch (_b.label) {
|
|
1469
|
+
case 0:
|
|
1470
|
+
saveEaC = {
|
|
1471
|
+
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
1472
|
+
Applications: {},
|
|
1473
|
+
Projects: {},
|
|
1474
|
+
};
|
|
1475
|
+
existingProj = Object.assign({}, this.State.EaC.Projects[req.ProjectLookup]);
|
|
1476
|
+
if (((_a = existingProj.ApplicationLookups) === null || _a === void 0 ? void 0 : _a.indexOf(req.ApplicationLookup)) < 0) {
|
|
1477
|
+
if (!existingProj.ApplicationLookups) {
|
|
1478
|
+
existingProj.ApplicationLookups = [];
|
|
1479
|
+
}
|
|
1480
|
+
existingProj.ApplicationLookups.push(req.ApplicationLookup);
|
|
1481
|
+
saveEaC.Projects[req.ProjectLookup] = existingProj;
|
|
1482
|
+
}
|
|
1483
|
+
if (req.Application) {
|
|
1484
|
+
saveEaC.Applications[req.ApplicationLookup] = req.Application;
|
|
1485
|
+
}
|
|
1486
|
+
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1487
|
+
case 1:
|
|
1488
|
+
_b.sent();
|
|
1489
|
+
return [2 /*return*/];
|
|
1490
|
+
}
|
|
1491
|
+
});
|
|
1492
|
+
});
|
|
1493
|
+
};
|
|
1494
|
+
EaCService.prototype.handleSaveDFSModifier = function (req) {
|
|
1495
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1496
|
+
var saveEaC;
|
|
1497
|
+
return __generator(this, function (_b) {
|
|
1498
|
+
switch (_b.label) {
|
|
1499
|
+
case 0:
|
|
1500
|
+
saveEaC = {
|
|
1501
|
+
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
1502
|
+
Modifiers: {},
|
|
1503
|
+
Projects: {},
|
|
1504
|
+
};
|
|
1505
|
+
if (req.Modifier) {
|
|
1506
|
+
saveEaC.Modifiers[req.ModifierLookup] = req.Modifier;
|
|
1507
|
+
}
|
|
1508
|
+
if (req.ProjectLookup) {
|
|
1509
|
+
saveEaC.Projects[req.ProjectLookup] = {
|
|
1510
|
+
ModifierLookups: [req.ModifierLookup],
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1514
|
+
case 1:
|
|
1515
|
+
_b.sent();
|
|
1516
|
+
return [2 /*return*/];
|
|
1517
|
+
}
|
|
1518
|
+
});
|
|
1519
|
+
});
|
|
1520
|
+
};
|
|
1521
|
+
EaCService.prototype.handleSaveEnvironment = function (req) {
|
|
1522
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1523
|
+
var saveEaC;
|
|
1524
|
+
return __generator(this, function (_b) {
|
|
1525
|
+
switch (_b.label) {
|
|
1526
|
+
case 0:
|
|
1527
|
+
saveEaC = {
|
|
1528
|
+
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
1529
|
+
DataTokens: {},
|
|
1530
|
+
Environments: {},
|
|
1531
|
+
};
|
|
1532
|
+
if (req.Environment) {
|
|
1533
|
+
saveEaC.Environments[req.EnvironmentLookup] = req.Environment;
|
|
1534
|
+
}
|
|
1535
|
+
if (req.EnterpriseDataTokens) {
|
|
1536
|
+
saveEaC.DataTokens = req.EnterpriseDataTokens;
|
|
1537
|
+
}
|
|
1538
|
+
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1539
|
+
case 1:
|
|
1540
|
+
_b.sent();
|
|
1541
|
+
return [2 /*return*/];
|
|
1542
|
+
}
|
|
1543
|
+
});
|
|
1544
|
+
});
|
|
1545
|
+
};
|
|
1546
|
+
EaCService.prototype.handleSaveProject = function (projectLookup, project) {
|
|
1547
|
+
var _a;
|
|
1548
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1549
|
+
var projHosts, saveEaC;
|
|
1550
|
+
var _this = this;
|
|
1551
|
+
return __generator(this, function (_b) {
|
|
1552
|
+
switch (_b.label) {
|
|
1553
|
+
case 0:
|
|
1554
|
+
projHosts = {};
|
|
1555
|
+
(_a = project === null || project === void 0 ? void 0 : project.Hosts) === null || _a === void 0 ? void 0 : _a.forEach(function (host) {
|
|
1556
|
+
projHosts[host] = _this.State.EaC.Hosts[host];
|
|
1557
|
+
});
|
|
1558
|
+
saveEaC = {
|
|
1559
|
+
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
1560
|
+
Enterprise: Object.assign(Object.assign({}, this.State.EaC.Enterprise), { PrimaryHost: project.Hosts[0] }),
|
|
1561
|
+
Hosts: projHosts,
|
|
1562
|
+
// Providers: this.State.EaC.Providers, // TODO: Remove after all providers ADB2C's have been upgraded
|
|
1563
|
+
Projects: {},
|
|
1564
|
+
};
|
|
1565
|
+
saveEaC.Projects[projectLookup] = project;
|
|
1566
|
+
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1567
|
+
case 1:
|
|
1568
|
+
_b.sent();
|
|
1569
|
+
this.appsFlowEventsSvc.SetEditProjectSettings(projectLookup);
|
|
1570
|
+
return [2 /*return*/];
|
|
1571
|
+
}
|
|
1572
|
+
});
|
|
1573
|
+
});
|
|
1574
|
+
};
|
|
1575
|
+
return EaCService;
|
|
1257
1576
|
}());
|
|
1258
|
-
|
|
1259
|
-
|
|
1577
|
+
EaCService.ɵprov = i0.ɵɵdefineInjectable({ factory: function EaCService_Factory() { return new EaCService(i0.ɵɵinject(ApplicationsFlowEventsService), i0.ɵɵinject(ProjectService)); }, token: EaCService, providedIn: "root" });
|
|
1578
|
+
EaCService.decorators = [
|
|
1260
1579
|
{ type: i0.Injectable, args: [{
|
|
1261
1580
|
providedIn: 'root',
|
|
1262
1581
|
},] }
|
|
1263
1582
|
];
|
|
1264
|
-
|
|
1583
|
+
EaCService.ctorParameters = function () { return [
|
|
1584
|
+
{ type: ApplicationsFlowEventsService },
|
|
1585
|
+
{ type: ProjectService }
|
|
1586
|
+
]; };
|
|
1265
1587
|
|
|
1266
1588
|
var ApplicationsFlowProjectsElementState = /** @class */ (function () {
|
|
1267
1589
|
function ApplicationsFlowProjectsElementState() {
|
|
@@ -1279,14 +1601,12 @@
|
|
|
1279
1601
|
var ApplicationsFlowProjectsElementComponent = /** @class */ (function (_super) {
|
|
1280
1602
|
__extends(ApplicationsFlowProjectsElementComponent, _super);
|
|
1281
1603
|
// Constructors
|
|
1282
|
-
function ApplicationsFlowProjectsElementComponent(injector, appsFlowSvc, projectService,
|
|
1604
|
+
function ApplicationsFlowProjectsElementComponent(injector, appsFlowSvc, projectService, eacSvc) {
|
|
1283
1605
|
var _this = _super.call(this, injector) || this;
|
|
1284
1606
|
_this.injector = injector;
|
|
1285
1607
|
_this.appsFlowSvc = appsFlowSvc;
|
|
1286
1608
|
_this.projectService = projectService;
|
|
1287
|
-
_this.
|
|
1288
|
-
_this.State = new ApplicationsFlowState();
|
|
1289
|
-
_this.setServices();
|
|
1609
|
+
_this.eacSvc = eacSvc;
|
|
1290
1610
|
return _this;
|
|
1291
1611
|
}
|
|
1292
1612
|
Object.defineProperty(ApplicationsFlowProjectsElementComponent.prototype, "ActiveEnvironment", {
|
|
@@ -1338,6 +1658,13 @@
|
|
|
1338
1658
|
enumerable: false,
|
|
1339
1659
|
configurable: true
|
|
1340
1660
|
});
|
|
1661
|
+
Object.defineProperty(ApplicationsFlowProjectsElementComponent.prototype, "State", {
|
|
1662
|
+
get: function () {
|
|
1663
|
+
return this.eacSvc.State;
|
|
1664
|
+
},
|
|
1665
|
+
enumerable: false,
|
|
1666
|
+
configurable: true
|
|
1667
|
+
});
|
|
1341
1668
|
// Life Cycle
|
|
1342
1669
|
ApplicationsFlowProjectsElementComponent.prototype.ngOnDestroy = function () { };
|
|
1343
1670
|
ApplicationsFlowProjectsElementComponent.prototype.ngOnInit = function () {
|
|
@@ -1399,260 +1726,6 @@
|
|
|
1399
1726
|
});
|
|
1400
1727
|
});
|
|
1401
1728
|
};
|
|
1402
|
-
ApplicationsFlowProjectsElementComponent.prototype.handleSaveApplication = function (req) {
|
|
1403
|
-
var _a;
|
|
1404
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1405
|
-
var saveEaC, existingProj;
|
|
1406
|
-
return __generator(this, function (_e) {
|
|
1407
|
-
switch (_e.label) {
|
|
1408
|
-
case 0:
|
|
1409
|
-
saveEaC = {
|
|
1410
|
-
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
1411
|
-
Applications: {},
|
|
1412
|
-
Projects: {},
|
|
1413
|
-
};
|
|
1414
|
-
existingProj = Object.assign({}, this.State.EaC.Projects[req.ProjectLookup]);
|
|
1415
|
-
if (((_a = existingProj.ApplicationLookups) === null || _a === void 0 ? void 0 : _a.indexOf(req.ApplicationLookup)) < 0) {
|
|
1416
|
-
if (!existingProj.ApplicationLookups) {
|
|
1417
|
-
existingProj.ApplicationLookups = [];
|
|
1418
|
-
}
|
|
1419
|
-
existingProj.ApplicationLookups.push(req.ApplicationLookup);
|
|
1420
|
-
saveEaC.Projects[req.ProjectLookup] = existingProj;
|
|
1421
|
-
}
|
|
1422
|
-
if (req.Application) {
|
|
1423
|
-
saveEaC.Applications[req.ApplicationLookup] = req.Application;
|
|
1424
|
-
}
|
|
1425
|
-
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1426
|
-
case 1:
|
|
1427
|
-
_e.sent();
|
|
1428
|
-
return [2 /*return*/];
|
|
1429
|
-
}
|
|
1430
|
-
});
|
|
1431
|
-
});
|
|
1432
|
-
};
|
|
1433
|
-
ApplicationsFlowProjectsElementComponent.prototype.handleSaveDFSModifier = function (req) {
|
|
1434
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1435
|
-
var saveEaC;
|
|
1436
|
-
return __generator(this, function (_e) {
|
|
1437
|
-
switch (_e.label) {
|
|
1438
|
-
case 0:
|
|
1439
|
-
saveEaC = {
|
|
1440
|
-
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
1441
|
-
Modifiers: {},
|
|
1442
|
-
Projects: {},
|
|
1443
|
-
};
|
|
1444
|
-
if (req.Modifier) {
|
|
1445
|
-
saveEaC.Modifiers[req.ModifierLookup] = req.Modifier;
|
|
1446
|
-
}
|
|
1447
|
-
if (req.ProjectLookup) {
|
|
1448
|
-
saveEaC.Projects[req.ProjectLookup] = {
|
|
1449
|
-
ModifierLookups: [req.ModifierLookup],
|
|
1450
|
-
};
|
|
1451
|
-
}
|
|
1452
|
-
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1453
|
-
case 1:
|
|
1454
|
-
_e.sent();
|
|
1455
|
-
return [2 /*return*/];
|
|
1456
|
-
}
|
|
1457
|
-
});
|
|
1458
|
-
});
|
|
1459
|
-
};
|
|
1460
|
-
ApplicationsFlowProjectsElementComponent.prototype.handleSaveEnvironment = function (req) {
|
|
1461
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1462
|
-
var saveEaC;
|
|
1463
|
-
return __generator(this, function (_e) {
|
|
1464
|
-
switch (_e.label) {
|
|
1465
|
-
case 0:
|
|
1466
|
-
saveEaC = {
|
|
1467
|
-
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
1468
|
-
DataTokens: {},
|
|
1469
|
-
Environments: {},
|
|
1470
|
-
};
|
|
1471
|
-
if (req.Environment) {
|
|
1472
|
-
saveEaC.Environments[req.EnvironmentLookup] = req.Environment;
|
|
1473
|
-
}
|
|
1474
|
-
if (req.EnterpriseDataTokens) {
|
|
1475
|
-
saveEaC.DataTokens = req.EnterpriseDataTokens;
|
|
1476
|
-
}
|
|
1477
|
-
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1478
|
-
case 1:
|
|
1479
|
-
_e.sent();
|
|
1480
|
-
return [2 /*return*/];
|
|
1481
|
-
}
|
|
1482
|
-
});
|
|
1483
|
-
});
|
|
1484
|
-
};
|
|
1485
|
-
ApplicationsFlowProjectsElementComponent.prototype.handleSaveProject = function (projectLookup, project) {
|
|
1486
|
-
var _a;
|
|
1487
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1488
|
-
var projHosts, saveEaC;
|
|
1489
|
-
var _this = this;
|
|
1490
|
-
return __generator(this, function (_e) {
|
|
1491
|
-
switch (_e.label) {
|
|
1492
|
-
case 0:
|
|
1493
|
-
projHosts = {};
|
|
1494
|
-
(_a = project === null || project === void 0 ? void 0 : project.Hosts) === null || _a === void 0 ? void 0 : _a.forEach(function (host) {
|
|
1495
|
-
projHosts[host] = _this.State.EaC.Hosts[host];
|
|
1496
|
-
});
|
|
1497
|
-
saveEaC = {
|
|
1498
|
-
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
1499
|
-
Enterprise: Object.assign(Object.assign({}, this.State.EaC.Enterprise), { PrimaryHost: project.Hosts[0] }),
|
|
1500
|
-
Hosts: projHosts,
|
|
1501
|
-
// Providers: this.State.EaC.Providers, // TODO: Remove after all providers ADB2C's have been upgraded
|
|
1502
|
-
Projects: {},
|
|
1503
|
-
};
|
|
1504
|
-
saveEaC.Projects[projectLookup] = project;
|
|
1505
|
-
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1506
|
-
case 1:
|
|
1507
|
-
_e.sent();
|
|
1508
|
-
this.appsFlowEventsSvc.SetEditProjectSettings(projectLookup);
|
|
1509
|
-
return [2 /*return*/];
|
|
1510
|
-
}
|
|
1511
|
-
});
|
|
1512
|
-
});
|
|
1513
|
-
};
|
|
1514
|
-
ApplicationsFlowProjectsElementComponent.prototype.setServices = function () {
|
|
1515
|
-
var _this = this;
|
|
1516
|
-
this.appsFlowEventsSvc.DeleteApplicationEvent.subscribe(function (appLookup) { return __awaiter(_this, void 0, void 0, function () {
|
|
1517
|
-
return __generator(this, function (_e) {
|
|
1518
|
-
switch (_e.label) {
|
|
1519
|
-
case 0: return [4 /*yield*/, this.projectService.DeleteApplication(this.State, appLookup)];
|
|
1520
|
-
case 1:
|
|
1521
|
-
_e.sent();
|
|
1522
|
-
return [2 /*return*/];
|
|
1523
|
-
}
|
|
1524
|
-
});
|
|
1525
|
-
}); });
|
|
1526
|
-
this.appsFlowEventsSvc.DeleteDevOpsActionEvent.subscribe(function (doaLookup) { return __awaiter(_this, void 0, void 0, function () {
|
|
1527
|
-
return __generator(this, function (_e) {
|
|
1528
|
-
switch (_e.label) {
|
|
1529
|
-
case 0: return [4 /*yield*/, this.projectService.DeleteDevOpsAction(this.State, doaLookup)];
|
|
1530
|
-
case 1:
|
|
1531
|
-
_e.sent();
|
|
1532
|
-
return [2 /*return*/];
|
|
1533
|
-
}
|
|
1534
|
-
});
|
|
1535
|
-
}); });
|
|
1536
|
-
this.appsFlowEventsSvc.DeleteProjectEvent.subscribe(function (projectLookup) { return __awaiter(_this, void 0, void 0, function () {
|
|
1537
|
-
return __generator(this, function (_e) {
|
|
1538
|
-
switch (_e.label) {
|
|
1539
|
-
case 0: return [4 /*yield*/, this.projectService.DeleteProject(this.State, projectLookup)];
|
|
1540
|
-
case 1:
|
|
1541
|
-
_e.sent();
|
|
1542
|
-
return [2 /*return*/];
|
|
1543
|
-
}
|
|
1544
|
-
});
|
|
1545
|
-
}); });
|
|
1546
|
-
this.appsFlowEventsSvc.DeleteSourceControlEvent.subscribe(function (scLookup) { return __awaiter(_this, void 0, void 0, function () {
|
|
1547
|
-
return __generator(this, function (_e) {
|
|
1548
|
-
switch (_e.label) {
|
|
1549
|
-
case 0: return [4 /*yield*/, this.projectService.DeleteSourceControl(this.State, scLookup)];
|
|
1550
|
-
case 1:
|
|
1551
|
-
_e.sent();
|
|
1552
|
-
return [2 /*return*/];
|
|
1553
|
-
}
|
|
1554
|
-
});
|
|
1555
|
-
}); });
|
|
1556
|
-
this.appsFlowEventsSvc.EnsureUserEnterpriseEvent.subscribe(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
1557
|
-
return __generator(this, function (_e) {
|
|
1558
|
-
switch (_e.label) {
|
|
1559
|
-
case 0: return [4 /*yield*/, this.projectService.EnsureUserEnterprise(this.State)];
|
|
1560
|
-
case 1:
|
|
1561
|
-
_e.sent();
|
|
1562
|
-
return [2 /*return*/];
|
|
1563
|
-
}
|
|
1564
|
-
});
|
|
1565
|
-
}); });
|
|
1566
|
-
// this.appsFlowEventsSvc.ListProjectsEvent.subscribe((withLoading) => {
|
|
1567
|
-
// this.projectService.ListProjects(this.State, withLoading);
|
|
1568
|
-
// });
|
|
1569
|
-
this.appsFlowEventsSvc.LoadEnterpriseAsCodeEvent.subscribe(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
1570
|
-
return __generator(this, function (_e) {
|
|
1571
|
-
switch (_e.label) {
|
|
1572
|
-
case 0: return [4 /*yield*/, this.projectService.LoadEnterpriseAsCode(this.State)];
|
|
1573
|
-
case 1:
|
|
1574
|
-
_e.sent();
|
|
1575
|
-
return [2 /*return*/];
|
|
1576
|
-
}
|
|
1577
|
-
});
|
|
1578
|
-
}); });
|
|
1579
|
-
this.appsFlowEventsSvc.SaveEnterpriseAsCodeEvent.subscribe(function (eac) { return __awaiter(_this, void 0, void 0, function () {
|
|
1580
|
-
return __generator(this, function (_e) {
|
|
1581
|
-
switch (_e.label) {
|
|
1582
|
-
case 0: return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, eac)];
|
|
1583
|
-
case 1:
|
|
1584
|
-
_e.sent();
|
|
1585
|
-
return [2 /*return*/];
|
|
1586
|
-
}
|
|
1587
|
-
});
|
|
1588
|
-
}); });
|
|
1589
|
-
this.appsFlowEventsSvc.SaveApplicationAsCodeEvent.subscribe(function (req) { return __awaiter(_this, void 0, void 0, function () {
|
|
1590
|
-
return __generator(this, function (_e) {
|
|
1591
|
-
switch (_e.label) {
|
|
1592
|
-
case 0: return [4 /*yield*/, this.handleSaveApplication(req)];
|
|
1593
|
-
case 1:
|
|
1594
|
-
_e.sent();
|
|
1595
|
-
return [2 /*return*/];
|
|
1596
|
-
}
|
|
1597
|
-
});
|
|
1598
|
-
}); });
|
|
1599
|
-
this.appsFlowEventsSvc.SaveDFSModifierEvent.subscribe(function (req) { return __awaiter(_this, void 0, void 0, function () {
|
|
1600
|
-
return __generator(this, function (_e) {
|
|
1601
|
-
switch (_e.label) {
|
|
1602
|
-
case 0: return [4 /*yield*/, this.handleSaveDFSModifier(req)];
|
|
1603
|
-
case 1:
|
|
1604
|
-
_e.sent();
|
|
1605
|
-
return [2 /*return*/];
|
|
1606
|
-
}
|
|
1607
|
-
});
|
|
1608
|
-
}); });
|
|
1609
|
-
this.appsFlowEventsSvc.SaveEnvironmentAsCodeEvent.subscribe(function (req) { return __awaiter(_this, void 0, void 0, function () {
|
|
1610
|
-
return __generator(this, function (_e) {
|
|
1611
|
-
switch (_e.label) {
|
|
1612
|
-
case 0: return [4 /*yield*/, this.handleSaveEnvironment(req)];
|
|
1613
|
-
case 1:
|
|
1614
|
-
_e.sent();
|
|
1615
|
-
return [2 /*return*/];
|
|
1616
|
-
}
|
|
1617
|
-
});
|
|
1618
|
-
}); });
|
|
1619
|
-
this.appsFlowEventsSvc.SaveProjectAsCodeEvent.subscribe(function (req) { return __awaiter(_this, void 0, void 0, function () {
|
|
1620
|
-
return __generator(this, function (_e) {
|
|
1621
|
-
switch (_e.label) {
|
|
1622
|
-
case 0: return [4 /*yield*/, this.handleSaveProject(req.ProjectLookup, req.Project)];
|
|
1623
|
-
case 1:
|
|
1624
|
-
_e.sent();
|
|
1625
|
-
return [2 /*return*/];
|
|
1626
|
-
}
|
|
1627
|
-
});
|
|
1628
|
-
}); });
|
|
1629
|
-
this.appsFlowEventsSvc.SetCreatingProjectEvent.subscribe(function (creatingProject) {
|
|
1630
|
-
_this.projectService.SetCreatingProject(creatingProject);
|
|
1631
|
-
});
|
|
1632
|
-
this.appsFlowEventsSvc.SetEditProjectSettingsEvent.subscribe(function (projectLookup) { return __awaiter(_this, void 0, void 0, function () {
|
|
1633
|
-
return __generator(this, function (_e) {
|
|
1634
|
-
switch (_e.label) {
|
|
1635
|
-
case 0: return [4 /*yield*/, this.projectService.SetEditProjectSettings(this.State, projectLookup)];
|
|
1636
|
-
case 1:
|
|
1637
|
-
_e.sent();
|
|
1638
|
-
return [2 /*return*/];
|
|
1639
|
-
}
|
|
1640
|
-
});
|
|
1641
|
-
}); });
|
|
1642
|
-
this.appsFlowEventsSvc.UnpackLowCodeUnitEvent.subscribe(function (req) { return __awaiter(_this, void 0, void 0, function () {
|
|
1643
|
-
return __generator(this, function (_e) {
|
|
1644
|
-
switch (_e.label) {
|
|
1645
|
-
case 0:
|
|
1646
|
-
if (!confirm("Are you sure you want to unpack application '" + req.ApplicationName + "' with version '" + req.Version + "'?")) return [3 /*break*/, 2];
|
|
1647
|
-
return [4 /*yield*/, this.projectService.UnpackLowCodeUnit(this.State, req)];
|
|
1648
|
-
case 1:
|
|
1649
|
-
_e.sent();
|
|
1650
|
-
_e.label = 2;
|
|
1651
|
-
case 2: return [2 /*return*/];
|
|
1652
|
-
}
|
|
1653
|
-
});
|
|
1654
|
-
}); });
|
|
1655
|
-
};
|
|
1656
1729
|
return ApplicationsFlowProjectsElementComponent;
|
|
1657
1730
|
}(i2.LcuElementComponent));
|
|
1658
1731
|
ApplicationsFlowProjectsElementComponent.decorators = [
|
|
@@ -1666,7 +1739,7 @@
|
|
|
1666
1739
|
{ type: i0.Injector },
|
|
1667
1740
|
{ type: ApplicationsFlowService },
|
|
1668
1741
|
{ type: ProjectService },
|
|
1669
|
-
{ type:
|
|
1742
|
+
{ type: EaCService }
|
|
1670
1743
|
]; };
|
|
1671
1744
|
|
|
1672
1745
|
var HostingDetailsFormGroupComponent = /** @class */ (function () {
|
|
@@ -2641,10 +2714,10 @@
|
|
|
2641
2714
|
|
|
2642
2715
|
var AppsFlowComponent = /** @class */ (function () {
|
|
2643
2716
|
// Constructors
|
|
2644
|
-
function AppsFlowComponent(formBldr, appsFlowSvc,
|
|
2717
|
+
function AppsFlowComponent(formBldr, appsFlowSvc, eacSvc) {
|
|
2645
2718
|
this.formBldr = formBldr;
|
|
2646
2719
|
this.appsFlowSvc = appsFlowSvc;
|
|
2647
|
-
this.
|
|
2720
|
+
this.eacSvc = eacSvc;
|
|
2648
2721
|
this.EditingApplicationLookup = null;
|
|
2649
2722
|
this.redirectTooltip = '';
|
|
2650
2723
|
// this.IsPermanent = false;
|
|
@@ -3011,9 +3084,7 @@
|
|
|
3011
3084
|
this.SetEditingApplication(i2.Guid.CreateRaw());
|
|
3012
3085
|
};
|
|
3013
3086
|
AppsFlowComponent.prototype.DeleteApplication = function (appLookup, appName) {
|
|
3014
|
-
|
|
3015
|
-
this.appsFlowEventsSvc.DeleteApplication(appLookup);
|
|
3016
|
-
}
|
|
3087
|
+
this.eacSvc.DeleteApplication(appLookup, appName);
|
|
3017
3088
|
};
|
|
3018
3089
|
AppsFlowComponent.prototype.LCUTypeChanged = function (event) {
|
|
3019
3090
|
this.LCUType = event.value;
|
|
@@ -3152,7 +3223,7 @@
|
|
|
3152
3223
|
else if (app) {
|
|
3153
3224
|
app.SourceControlLookup = null;
|
|
3154
3225
|
}
|
|
3155
|
-
this.
|
|
3226
|
+
this.eacSvc.SaveApplicationAsCode(saveAppReq);
|
|
3156
3227
|
};
|
|
3157
3228
|
AppsFlowComponent.prototype.SetEditingApplication = function (appLookup) {
|
|
3158
3229
|
this.EditingApplicationLookup = appLookup;
|
|
@@ -3172,7 +3243,7 @@
|
|
|
3172
3243
|
};
|
|
3173
3244
|
AppsFlowComponent.prototype.Unpack = function (appLookup, app) {
|
|
3174
3245
|
var _a, _b, _c;
|
|
3175
|
-
this.
|
|
3246
|
+
this.eacSvc.UnpackLowCodeUnit({
|
|
3176
3247
|
ApplicationLookup: appLookup,
|
|
3177
3248
|
ApplicationName: (_a = app.Application) === null || _a === void 0 ? void 0 : _a.Name,
|
|
3178
3249
|
Version: ((_b = app.LowCodeUnit) === null || _b === void 0 ? void 0 : _b.Version) || ((_c = app.LowCodeUnit) === null || _c === void 0 ? void 0 : _c.Build),
|
|
@@ -3373,7 +3444,7 @@
|
|
|
3373
3444
|
AppsFlowComponent.ctorParameters = function () { return [
|
|
3374
3445
|
{ type: forms.FormBuilder },
|
|
3375
3446
|
{ type: ApplicationsFlowService },
|
|
3376
|
-
{ type:
|
|
3447
|
+
{ type: EaCService }
|
|
3377
3448
|
]; };
|
|
3378
3449
|
AppsFlowComponent.propDecorators = {
|
|
3379
3450
|
Data: [{ type: i0.Input, args: ['data',] }],
|
|
@@ -5441,6 +5512,38 @@
|
|
|
5441
5512
|
SourceControlFormControls: [{ type: i0.ViewChild, args: [SourceControlFormControlsComponent,] }]
|
|
5442
5513
|
};
|
|
5443
5514
|
|
|
5515
|
+
var BuildPipelineFormComponent = /** @class */ (function () {
|
|
5516
|
+
function BuildPipelineFormComponent() {
|
|
5517
|
+
}
|
|
5518
|
+
BuildPipelineFormComponent.prototype.ngOnInit = function () {
|
|
5519
|
+
};
|
|
5520
|
+
return BuildPipelineFormComponent;
|
|
5521
|
+
}());
|
|
5522
|
+
BuildPipelineFormComponent.decorators = [
|
|
5523
|
+
{ type: i0.Component, args: [{
|
|
5524
|
+
selector: 'lcu-build-pipeline-form',
|
|
5525
|
+
template: "<p>build-pipeline-form works!</p>\n",
|
|
5526
|
+
styles: [""]
|
|
5527
|
+
},] }
|
|
5528
|
+
];
|
|
5529
|
+
BuildPipelineFormComponent.ctorParameters = function () { return []; };
|
|
5530
|
+
|
|
5531
|
+
var DevopsSourceControlFormComponent = /** @class */ (function () {
|
|
5532
|
+
function DevopsSourceControlFormComponent() {
|
|
5533
|
+
}
|
|
5534
|
+
DevopsSourceControlFormComponent.prototype.ngOnInit = function () {
|
|
5535
|
+
};
|
|
5536
|
+
return DevopsSourceControlFormComponent;
|
|
5537
|
+
}());
|
|
5538
|
+
DevopsSourceControlFormComponent.decorators = [
|
|
5539
|
+
{ type: i0.Component, args: [{
|
|
5540
|
+
selector: 'lcu-devops-source-control-form',
|
|
5541
|
+
template: "<p>devops-source-control-form works!</p>\n",
|
|
5542
|
+
styles: [""]
|
|
5543
|
+
},] }
|
|
5544
|
+
];
|
|
5545
|
+
DevopsSourceControlFormComponent.ctorParameters = function () { return []; };
|
|
5546
|
+
|
|
5444
5547
|
var ApplicationsFlowModule = /** @class */ (function () {
|
|
5445
5548
|
function ApplicationsFlowModule() {
|
|
5446
5549
|
}
|
|
@@ -5454,6 +5557,7 @@
|
|
|
5454
5557
|
NPMService,
|
|
5455
5558
|
FormsService,
|
|
5456
5559
|
ApplicationsFlowEventsService,
|
|
5560
|
+
EaCService
|
|
5457
5561
|
],
|
|
5458
5562
|
};
|
|
5459
5563
|
};
|
|
@@ -5496,7 +5600,9 @@
|
|
|
5496
5600
|
CardCarouselComponent,
|
|
5497
5601
|
SecurityToggleComponent,
|
|
5498
5602
|
ProcessorDetailsFormComponent,
|
|
5499
|
-
SourceControlFormComponent
|
|
5603
|
+
SourceControlFormComponent,
|
|
5604
|
+
BuildPipelineFormComponent,
|
|
5605
|
+
DevopsSourceControlFormComponent
|
|
5500
5606
|
],
|
|
5501
5607
|
imports: [
|
|
5502
5608
|
i2.FathymSharedModule,
|
|
@@ -5544,7 +5650,9 @@
|
|
|
5544
5650
|
CardCarouselComponent,
|
|
5545
5651
|
SecurityToggleComponent,
|
|
5546
5652
|
ProcessorDetailsFormComponent,
|
|
5547
|
-
SourceControlFormComponent
|
|
5653
|
+
SourceControlFormComponent,
|
|
5654
|
+
BuildPipelineFormComponent,
|
|
5655
|
+
DevopsSourceControlFormComponent
|
|
5548
5656
|
],
|
|
5549
5657
|
entryComponents: [
|
|
5550
5658
|
ApplicationsFlowProjectsElementComponent,
|
|
@@ -5579,7 +5687,9 @@
|
|
|
5579
5687
|
CardCarouselComponent,
|
|
5580
5688
|
SecurityToggleComponent,
|
|
5581
5689
|
ProcessorDetailsFormComponent,
|
|
5582
|
-
SourceControlFormComponent
|
|
5690
|
+
SourceControlFormComponent,
|
|
5691
|
+
BuildPipelineFormComponent,
|
|
5692
|
+
DevopsSourceControlFormComponent
|
|
5583
5693
|
],
|
|
5584
5694
|
},] }
|
|
5585
5695
|
];
|
|
@@ -5640,6 +5750,7 @@
|
|
|
5640
5750
|
exports.DevSettingsPresetModel = DevSettingsPresetModel;
|
|
5641
5751
|
exports.DomainModel = DomainModel;
|
|
5642
5752
|
exports.DynamicTabsModel = DynamicTabsModel;
|
|
5753
|
+
exports.EaCService = EaCService;
|
|
5643
5754
|
exports.FormActionsModel = FormActionsModel;
|
|
5644
5755
|
exports.FormModel = FormModel;
|
|
5645
5756
|
exports.FormValuesModel = FormValuesModel;
|
|
@@ -5667,6 +5778,8 @@
|
|
|
5667
5778
|
exports.ɵb = DynamicTabsComponent;
|
|
5668
5779
|
exports.ɵba = ProcessorDetailsFormComponent;
|
|
5669
5780
|
exports.ɵbb = SourceControlFormComponent;
|
|
5781
|
+
exports.ɵbc = BuildPipelineFormComponent;
|
|
5782
|
+
exports.ɵbd = DevopsSourceControlFormComponent;
|
|
5670
5783
|
exports.ɵc = HeaderComponent;
|
|
5671
5784
|
exports.ɵd = ProjectTabsComponent;
|
|
5672
5785
|
exports.ɵe = GeneralComponent;
|