@lowcodeunit/applications-flow-common 1.39.103-performanceTesting → 1.39.105-primaryhost
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/elements/projects/controls/tabs/domains/domains.component.mjs +3 -1
- package/esm2020/lib/services/applications-flow.service.mjs +6 -1
- package/esm2020/lib/services/eac.service.mjs +6 -1
- package/esm2020/lib/services/project.service.mjs +24 -1
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +39 -1
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +35 -0
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/lib/services/applications-flow.service.d.ts +1 -0
- package/lib/services/eac.service.d.ts +1 -0
- package/lib/services/project.service.d.ts +1 -0
- package/package.json +1 -1
@@ -206,6 +206,11 @@ class ApplicationsFlowService {
|
|
206
206
|
this.apiRoot = settings.APIRoot;
|
207
207
|
}
|
208
208
|
// API Methods
|
209
|
+
ConfigureCustomDomain(host) {
|
210
|
+
return this.http.post(`${this.apiRoot}/api/lowcodeunit/customdomain/${host}/configure`, {}, {
|
211
|
+
headers: this.loadHeaders(),
|
212
|
+
});
|
213
|
+
}
|
209
214
|
ConfigureDevOpsAction(actionLookup) {
|
210
215
|
return this.http.post(`${this.apiRoot}/api/lowcodeunit/manage/devops/actions/${actionLookup}/configure`, {}, {
|
211
216
|
headers: this.loadHeaders(),
|
@@ -358,6 +363,29 @@ class ProjectService {
|
|
358
363
|
// }
|
359
364
|
// });
|
360
365
|
// }
|
366
|
+
async ConfigureCustomDomain(state, host) {
|
367
|
+
return new Promise((resolve, reject) => {
|
368
|
+
state.Loading = true;
|
369
|
+
this.appsFlowSvc.ConfigureCustomDomain(host).subscribe({
|
370
|
+
next: async (response) => {
|
371
|
+
state.Loading = false;
|
372
|
+
if (response.Status.Code === 0) {
|
373
|
+
console.log('Custom Domain Configured');
|
374
|
+
resolve(response.Status);
|
375
|
+
}
|
376
|
+
else {
|
377
|
+
reject(response.Status);
|
378
|
+
// console.log(response);
|
379
|
+
}
|
380
|
+
},
|
381
|
+
error: (err) => {
|
382
|
+
state.Loading = false;
|
383
|
+
reject(err);
|
384
|
+
console.log(err);
|
385
|
+
},
|
386
|
+
});
|
387
|
+
});
|
388
|
+
}
|
361
389
|
EnsureUserEnterprise(state) {
|
362
390
|
return new Promise((resolve, reject) => {
|
363
391
|
state.Loading = true;
|
@@ -990,6 +1018,11 @@ class EaCService {
|
|
990
1018
|
return this.projectService.CreatingProject;
|
991
1019
|
}
|
992
1020
|
// API Methods
|
1021
|
+
async ConfigureCustomDomain(host) {
|
1022
|
+
const state = this.stateSubject.getValue();
|
1023
|
+
const status = await this.projectService.ConfigureCustomDomain(state, host);
|
1024
|
+
return status;
|
1025
|
+
}
|
993
1026
|
CheckUserFeedItem(feedItem) {
|
994
1027
|
return this.http.get(feedItem.RefreshLink);
|
995
1028
|
}
|
@@ -2190,8 +2223,10 @@ class DomainsComponent {
|
|
2190
2223
|
...this.Data?.Project,
|
2191
2224
|
// Hosts: [...this.Project.Hosts, this.Domain.value],
|
2192
2225
|
Hosts: [this.Domain.value],
|
2226
|
+
PrimaryHost: this.Domain.value,
|
2193
2227
|
},
|
2194
2228
|
});
|
2229
|
+
this.eacSvc.ConfigureCustomDomain(this.Domain.value);
|
2195
2230
|
this.formsService.UpdateValuesReference({
|
2196
2231
|
Id: this.formName,
|
2197
2232
|
Form: this.Form,
|