@lowcodeunit/applications-flow-common 1.39.104-primaryhost → 1.39.106-integration

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  }
@@ -2193,6 +2226,7 @@ class DomainsComponent {
2193
2226
  PrimaryHost: this.Domain.value,
2194
2227
  },
2195
2228
  });
2229
+ this.eacSvc.ConfigureCustomDomain(this.Domain.value);
2196
2230
  this.formsService.UpdateValuesReference({
2197
2231
  Id: this.formName,
2198
2232
  Form: this.Form,