sf-i-events 1.0.142 → 1.0.144

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.142",
4
+ "version": "1.0.144",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.d.ts CHANGED
@@ -215,6 +215,7 @@ export declare class SfIEvents extends LitElement {
215
215
  loadOnboardingCountries: () => Promise<void>;
216
216
  loadOnboardingEntities: () => Promise<void>;
217
217
  loadOnboardingLocations: () => Promise<void>;
218
+ loadOnboardingFunctions: () => Promise<void>;
218
219
  loadOnboardingTags: () => Promise<void>;
219
220
  loadOnboardingReporters: () => Promise<void>;
220
221
  loadOnboardingApprovers: () => Promise<void>;
@@ -232,15 +233,17 @@ export declare class SfIEvents extends LitElement {
232
233
  renderTimelinessGraph: (divContainer: HTMLDivElement) => void;
233
234
  renderEventDetail: (event: any, mmddyyyy: any) => void;
234
235
  renderCalendar: () => void;
235
- renderTaggingTable: (divElement: any, sourceArray: any, taggingArray: any, sourceCols: any, uploadFunction: any, refreshFunction: any, colName: any, uniqCols: Array<any>, apiIdDropdown: string) => void;
236
+ renderTaggingTable: (divElement: any, sourceArray: any, taggingArray: any, sourceCols: any, uploadFunction: any, refreshFunction: any, colName: any, uniqCols: Array<any>, apiIdDropdown: string, dropdownSearchPhrase: any) => void;
236
237
  renderMappingTable: (divElement: any, jsonData: Array<any>, cursor: Array<any>, fetchFunction: any, searchString: string, mappedArray: any, found: number, uploadFunction: any, refreshFunction: any) => void;
237
- renderOnboardingCalendar: () => void;
238
+ refreshCalendar: () => Promise<void>;
239
+ renderOnboardingCalendar: (calendarJobs: any) => void;
238
240
  renderOnboardingInternalControls: (mappedInternalControls: any, mappedSerializedAlertSchedules: any) => void;
239
241
  renderOnboardingAlertSchedules: (mappedAlertSchedules: any, mappedSerializedDuedates: any) => void;
240
242
  renderOnboardingDuedates: (mappedDuedates: any, mappedSerializedApprovers: any) => void;
241
243
  renderOnboardingReporters: (mappedReporters: any, mappedSerializedTags: any) => void;
242
244
  renderOnboardingApprovers: (mappedApprovers: any, mappedSerializedReporters: any) => void;
243
- renderOnboardingTags: (mappedTags: any, mappedSerializedLocations: any) => void;
245
+ renderOnboardingTags: (mappedTags: any, mappedSerializedFunctions: any) => void;
246
+ renderOnboardingFunctions: (mappedFunctions: any, mappedSerializedLocations: any) => void;
244
247
  renderOnboardingLocations: (mappedLocations: any, mappedSerializedEntities: any) => void;
245
248
  renderOnboardingCompliances: (mappedStatutes: any, mappedCompliances: any) => void;
246
249
  renderOnboardingEntities: (mappedEntities: any, mappedSerializedCountries: any) => void;
@@ -275,13 +278,14 @@ export declare class SfIEvents extends LitElement {
275
278
  uploadApproversMapping: (data: any) => Promise<void>;
276
279
  uploadReportersMapping: (data: any) => Promise<void>;
277
280
  uploadTagsMapping: (data: any) => Promise<void>;
281
+ uploadFunctionsMapping: (data: any) => Promise<void>;
278
282
  uploadLocationsMapping: (data: any) => Promise<void>;
279
283
  uploadEntitiesMapping: (data: any) => Promise<void>;
280
284
  uploadCountriesMapping: (data: any) => Promise<void>;
281
285
  uploadCompliancesMapping: (data: any) => Promise<void>;
282
286
  uploadStatutesMapping: (data: any) => Promise<void>;
283
287
  uploadUnTriggerEvent: (eventid: string, mmdd: string) => Promise<void>;
284
- uploadTriggerEvent: (eventid: string, dateofoccurrence: string) => Promise<void>;
288
+ uploadTriggerEvent: (locationId: string, eventid: string, dateofoccurrence: string) => Promise<void>;
285
289
  uploadReview: (mmddyyyy: string, eventid: string, comments: string, approved: any) => Promise<void>;
286
290
  uploadReport: (mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any) => Promise<void>;
287
291
  uploadMapping: () => Promise<void>;
@@ -292,6 +296,7 @@ export declare class SfIEvents extends LitElement {
292
296
  fetchSearchStatutes: (searchString: string, cursor?: string) => Promise<any>;
293
297
  fetchSearchCompliances: (searchString: string, cursor?: string) => Promise<any>;
294
298
  fetchMappedLocations: () => Promise<any>;
299
+ fetchMappedFunctions: () => Promise<any>;
295
300
  fetchMappedCompliances: () => Promise<any>;
296
301
  fetchMappedSerializedAlertSchedules: () => Promise<any>;
297
302
  fetchMappedSerializedDuedates: () => Promise<any>;
@@ -299,6 +304,7 @@ export declare class SfIEvents extends LitElement {
299
304
  fetchMappedSerializedReporters: () => Promise<any>;
300
305
  fetchMappedSerializedTags: () => Promise<any>;
301
306
  fetchMappedSerializedLocations: () => Promise<any>;
307
+ fetchMappedSerializedFunctions: () => Promise<any>;
302
308
  fetchMappedSerializedEntities: () => Promise<any>;
303
309
  fetchMappedSerializedCountries: () => Promise<any>;
304
310
  fetchMappedInternalControls: () => Promise<any>;
@@ -310,6 +316,7 @@ export declare class SfIEvents extends LitElement {
310
316
  fetchMappedCountries: () => Promise<any>;
311
317
  fetchMappedEntities: () => Promise<any>;
312
318
  fetchMappedStatutes: () => Promise<any>;
319
+ fetchCalendarJobs: () => Promise<any>;
313
320
  fetchDetail: (value: any) => Promise<void>;
314
321
  fetchGetMappedCalendar: () => Promise<void>;
315
322
  foundCalendarInLocal: () => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"sf-i-events.d.ts","sourceRoot":"","sources":["src/sf-i-events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,UAAU,EAAa,gBAAgB,EAAC,MAAM,KAAK,CAAC;AAmB5D;;;;;;;;;;GAUG;AACH,qBACa,SAAU,SAAQ,UAAU;IAEvC,iBAAiB,SAAM;IACvB,QAAQ,SAAU;IAClB,UAAU,SAAY;IACtB,YAAY,SAAc;IAC1B,QAAQ,SAAU;IAClB,QAAQ,SAAU;IAClB,UAAU,SAAY;IACtB,SAAS,SAAW;IACpB,YAAY,SAAc;IAC1B,YAAY,SAAc;IAC1B,YAAY,SAAc;IAC1B,eAAe,SAAiB;I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,mBAAmB,qBAmBlB;IAED,mBAAmB,qBAmBlB;IAED,iBAAiB,qBAmBhB;IAED,WAAW,UAAiB,GAAG,mBAwB9B;IAED,sBAAsB,sBAYrB;IAED,oBAAoB,gBASnB;IAED,WAAW,eAGV;IAED,iBAAiB,aAWhB;IAED,mBAAmB,sBAwDlB;IAED,iBAAiB,sBAmChB;IAED,aAAa,sBAqCZ;IAED,mBAAmB,sBAqBlB;IAED,UAAU,uBAA6B,OAAO,mBA6B7C;IAED,aAAa,sBAqCZ;IAED,SAAS,sBA+CR;IAED,YAAY,sBAsBX;IAED,UAAU,aAKT;IAED,iBAAiB,aAmBhB;IAED,iBAAiB,aAqBhB;IAED,iBAAiB,aAqBhB;IAED,QAAQ,QAAU,MAAM,KAAK,MAAM,mBAAmB,OAAO,aAAY,OAAO,YAM9E;IAEF,kBAAkB,aA6DjB;IAED,QAAQ,sBAkCP;;cAMkB,YAAY,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,IAAI;IAMnG,iBAAiB;IAIjB,MAAM;CAkQhB;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,SAAS,CAAC;KAC1B;CACF"}
package/sf-i-events.js CHANGED
@@ -2367,14 +2367,23 @@ let SfIEvents = class SfIEvents extends LitElement {
2367
2367
  console.log('mappedlocations', mappedLocations);
2368
2368
  this.renderOnboardingLocations(mappedLocations, mappedSerializedEntities);
2369
2369
  };
2370
+ this.loadOnboardingFunctions = async () => {
2371
+ this.hideTabContainers();
2372
+ this._SfOnboardingFunctionsContainer.style.display = 'flex';
2373
+ const mappedSerializedLocations = await this.fetchMappedSerializedLocations();
2374
+ const mappedFunctions = await this.fetchMappedFunctions();
2375
+ console.log('mappedserializedlocations', mappedSerializedLocations);
2376
+ console.log('mappedfunctions', mappedFunctions);
2377
+ this.renderOnboardingFunctions(mappedFunctions, mappedSerializedLocations);
2378
+ };
2370
2379
  this.loadOnboardingTags = async () => {
2371
2380
  this.hideTabContainers();
2372
2381
  this._SfOnboardingTagsContainer.style.display = 'flex';
2373
- const mappedSerializedLocations = await this.fetchMappedSerializedLocations();
2382
+ const mappedSerializedFunctions = await this.fetchMappedSerializedFunctions();
2374
2383
  const mappedTags = await this.fetchMappedTags();
2375
- console.log('mappedserializedlocations', mappedSerializedLocations);
2384
+ console.log('mappedserializedfunctions', mappedSerializedFunctions);
2376
2385
  console.log('mappedtags', mappedTags);
2377
- this.renderOnboardingTags(mappedTags, mappedSerializedLocations);
2386
+ this.renderOnboardingTags(mappedTags, mappedSerializedFunctions);
2378
2387
  };
2379
2388
  this.loadOnboardingReporters = async () => {
2380
2389
  this.hideTabContainers();
@@ -2424,7 +2433,8 @@ let SfIEvents = class SfIEvents extends LitElement {
2424
2433
  this.loadOnboardingCalendar = async () => {
2425
2434
  this.hideTabContainers();
2426
2435
  this._SfOnboardingCalendarContainer.style.display = 'flex';
2427
- this.renderOnboardingCalendar();
2436
+ const calendarJobs = await this.fetchCalendarJobs();
2437
+ this.renderOnboardingCalendar(calendarJobs);
2428
2438
  };
2429
2439
  this.renderAdhoc = (events = null, triggers = null) => {
2430
2440
  if (events == null) {
@@ -2452,6 +2462,9 @@ let SfIEvents = class SfIEvents extends LitElement {
2452
2462
  html += '<div class="mb-10 flex-grow" part="adhoc-question">' + events[i].question.replace(/"/g, '') + '</div>';
2453
2463
  html += '<button id="button-bolt-' + i + '" part="button-icon" class="material-icons">electric_bolt</button>';
2454
2464
  html += '</div>';
2465
+ html += '<div class="d-flex align-start mb-10">';
2466
+ html += '<div part="input-labal">' + events[i].locationname + '</div>';
2467
+ html += '</div>';
2455
2468
  html += '<div class="d-flex align-center flex-wrap">';
2456
2469
  html += '<div class="mr-20" part="adhoc-triggers">';
2457
2470
  html += "Triggers: " + (triggers[events[i].id].length > 0 ? triggers[events[i].id].length : 0);
@@ -2552,7 +2565,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2552
2565
  html += '<input id="dateofoccurrence_' + events[i].id + '" part="input" type="date" />';
2553
2566
  html += '</div>';
2554
2567
  html += '</div>';
2555
- html += '<button id="trigger_' + events[i].id + '" part="button" class="button-trigger mt-10 cursor">Trigger</button>';
2568
+ html += '<button id="trigger_' + events[i].id + '_' + events[i].locationid + '" part="button" class="button-trigger mt-10 cursor">Trigger</button>';
2556
2569
  html += '</div>';
2557
2570
  html += '</div>';
2558
2571
  // html += '</div>';
@@ -2612,10 +2625,11 @@ let SfIEvents = class SfIEvents extends LitElement {
2612
2625
  triggerBs[i].addEventListener('click', (ev) => {
2613
2626
  //const button = (ev.target as HTMLDivElement);
2614
2627
  const eventid = ev.target.id.split('_')[1];
2628
+ const locationid = ev.target.id.split('_')[2];
2615
2629
  if (this._SfAdhocContainer.querySelector('#dateofoccurrence_' + eventid).value.trim().length > 0) {
2616
2630
  const dateofoccurrence = new Date(this._SfAdhocContainer.querySelector('#dateofoccurrence_' + eventid).value).getTime();
2617
2631
  console.log('eventid', eventid, dateofoccurrence);
2618
- this.uploadTriggerEvent(eventid, dateofoccurrence + "");
2632
+ this.uploadTriggerEvent(locationid, eventid, dateofoccurrence + "");
2619
2633
  }
2620
2634
  });
2621
2635
  }
@@ -3439,7 +3453,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3439
3453
  });
3440
3454
  }
3441
3455
  };
3442
- this.renderTaggingTable = (divElement, sourceArray, taggingArray, sourceCols, uploadFunction, refreshFunction, colName, uniqCols, apiIdDropdown) => {
3456
+ this.renderTaggingTable = (divElement, sourceArray, taggingArray, sourceCols, uploadFunction, refreshFunction, colName, uniqCols, apiIdDropdown, dropdownSearchPhrase) => {
3443
3457
  console.log('divelement', divElement);
3444
3458
  console.log('sourcearray', sourceArray);
3445
3459
  console.log('taggingarray', taggingArray);
@@ -3469,23 +3483,6 @@ let SfIEvents = class SfIEvents extends LitElement {
3469
3483
  }
3470
3484
  taggingArray.data.mappings.mappings = foundArr;
3471
3485
  console.log('tagging array after', taggingArray.data.mappings.mappings.length);
3472
- // for(var i = 0; i < sourceArray.data.mappings.mappings.length; i++) {
3473
- // var found = false;
3474
- // for(var j = 0; j < taggingArray.data.mappings.mappings.length; j++) {
3475
- // var equal = true;
3476
- // for(var k = 0; k < uniqCols.length; k++) {
3477
- // if(sourceArray.data.mappings.mappings[i][uniqCols[k]] != taggingArray.data.mappings.mappings[j][uniqCols[k]]) {
3478
- // equal = false;
3479
- // }
3480
- // }
3481
- // if(equal) {
3482
- // found = true;
3483
- // }
3484
- // }
3485
- // if(found) {
3486
- // foundId.push();
3487
- // }
3488
- // }
3489
3486
  var tagged = 0;
3490
3487
  for (var j = 0; j < taggingArray.data.mappings.mappings.length; j++) {
3491
3488
  if (taggingArray.data.mappings.mappings[j] != null) {
@@ -3494,21 +3491,6 @@ let SfIEvents = class SfIEvents extends LitElement {
3494
3491
  }
3495
3492
  }
3496
3493
  }
3497
- // for(i = 0; i < sourceArray.data.mappings.mappings.length; i++) {
3498
- // for(var j = 0; j < taggingArray.data.mappings.mappings.length; j++) {
3499
- // var equal = true;
3500
- // for(var k = 0; k < uniqCols.length; k++) {
3501
- // if(sourceArray.data.mappings.mappings[i][uniqCols[k]] != taggingArray.data.mappings.mappings[j][uniqCols[k]]) {
3502
- // equal = false;
3503
- // }
3504
- // }
3505
- // if(equal) {
3506
- // if(taggingArray.data.mappings.mappings[j][colName].length > 0) {
3507
- // tagged++;
3508
- // }
3509
- // }
3510
- // }
3511
- // }
3512
3494
  var html = '';
3513
3495
  var status = '';
3514
3496
  if (tagged < sourceArray.data.mappings.mappings.length) {
@@ -3551,7 +3533,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3551
3533
  html += '<tr>';
3552
3534
  html += '<td class="td-body ' + classBg + '" part="td-key">';
3553
3535
  if (apiIdDropdown.length > 0) {
3554
- html += '<sf-i-form id="tags-' + i + '" class="tags-input tags-' + i + '" name="Tags" label="Select ' + colName + '" apiId="' + apiIdDropdown + '" mode="multiselect-dropdown" searchPhrase="' + this.projectName + '" selectProjection="name" mandatory></sf-i-form>';
3536
+ html += '<sf-i-form id="tags-' + i + '" class="tags-input tags-' + i + '" name="Tags" label="Select ' + colName + '" apiId="' + apiIdDropdown + '" mode="multiselect-dropdown" searchPhrase="' + this.projectName + ((dropdownSearchPhrase != null && dropdownSearchPhrase != "") ? dropdownSearchPhrase : "") + '" selectProjection="name" mandatory></sf-i-form>';
3555
3537
  }
3556
3538
  else {
3557
3539
  html += '<input id="tags-' + i + '" type="text" part="input" class="tags-input"/>';
@@ -3562,9 +3544,6 @@ let SfIEvents = class SfIEvents extends LitElement {
3562
3544
  html += '<sf-i-elastic-text text="' + sourceArray.data.mappings.mappings[i][uniqCols[l]] + '" minLength="10"></sf-i-elastic-text>';
3563
3545
  html += '</td>';
3564
3546
  }
3565
- // html += '<td class="td-body '+classBg+'" part="td-body">';
3566
- // html += '<sf-i-elastic-text text="'+sourceArray.data.mappings.mappings[i].id+'" minLength="10"></sf-i-elastic-text>';
3567
- // html += '</td>';
3568
3547
  for (l = 0; l < sourceCols.length; l++) {
3569
3548
  for (var j = 0; j < JSON.parse(sourceArray.data.mappings.mappings[0].cols).length; j++) {
3570
3549
  if (sourceCols[l] == JSON.parse(sourceArray.data.mappings.mappings[0].cols)[j]) {
@@ -3587,9 +3566,6 @@ let SfIEvents = class SfIEvents extends LitElement {
3587
3566
  if (Array.isArray(JSON.parse(sourceArray.data.mappings.mappings[i].data)[j])) {
3588
3567
  for (var k = 0; k < JSON.parse(sourceArray.data.mappings.mappings[i].data)[j].length; k++) {
3589
3568
  html += ('<sf-i-elastic-text text="' + JSON.parse(sourceArray.data.mappings.mappings[i].data)[j][k] + '" minLength="80"></sf-i-elastic-text>');
3590
- // if(k < (JSON.parse(jsonData[i].data.data)[j].length - 1)) {
3591
- // html += "; ";
3592
- // }
3593
3569
  }
3594
3570
  }
3595
3571
  else {
@@ -3617,14 +3593,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3617
3593
  taggingArray.data.mappings.mappings[count] = sourceArray.data.mappings.mappings[count];
3618
3594
  taggingArray.data.mappings.mappings[count][colName] = divElement.querySelector('#tags-' + count).selectedValues();
3619
3595
  }
3620
- // const id = e.target.id;
3621
- // const index = id.split('-')[1];
3622
- // console.log((multiArr[index] as SfIForm).selectedValues());
3623
- // if(taggingArray.data.mappings.mappings[index] == null) {
3624
- // taggingArray.data.mappings.mappings[index] = sourceArray.data.mappings.mappings[index];
3625
- // }
3626
- // taggingArray.data.mappings.mappings[index][colName] = (multiArr[index] as SfIForm).selectedValues();
3627
- this.renderTaggingTable(divElement, sourceArray, taggingArray, sourceCols, uploadFunction, refreshFunction, colName, uniqCols, apiIdDropdown);
3596
+ this.renderTaggingTable(divElement, sourceArray, taggingArray, sourceCols, uploadFunction, refreshFunction, colName, uniqCols, apiIdDropdown, dropdownSearchPhrase);
3628
3597
  });
3629
3598
  }
3630
3599
  else {
@@ -3638,10 +3607,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3638
3607
  taggingArray.data.mappings.mappings[count] = sourceArray.data.mappings.mappings[count];
3639
3608
  taggingArray.data.mappings.mappings[count][colName] = divElement.querySelector('#tags-' + count).value;
3640
3609
  }
3641
- // const id = e.target.id;
3642
- // const index = id.split('-')[1];
3643
- // taggingArray.data.mappings.mappings[index][colName] = (multiArr[index] as HTMLInputElement).value;
3644
- this.renderTaggingTable(divElement, sourceArray, taggingArray, sourceCols, uploadFunction, refreshFunction, colName, uniqCols, apiIdDropdown);
3610
+ this.renderTaggingTable(divElement, sourceArray, taggingArray, sourceCols, uploadFunction, refreshFunction, colName, uniqCols, apiIdDropdown, dropdownSearchPhrase);
3645
3611
  }
3646
3612
  });
3647
3613
  }
@@ -3795,65 +3761,104 @@ let SfIEvents = class SfIEvents extends LitElement {
3795
3761
  refreshFunction();
3796
3762
  });
3797
3763
  };
3798
- this.renderOnboardingCalendar = () => {
3764
+ this.refreshCalendar = async () => {
3765
+ console.log('tabs', this.myOnboardingTab, this.TAB_CALENDAR);
3766
+ if (this.myOnboardingTab == this.TAB_CALENDAR) {
3767
+ const calendarJobs = await this.fetchCalendarJobs();
3768
+ if (calendarJobs.data.status == "0" || calendarJobs.data.status == "1") {
3769
+ setTimeout(async () => {
3770
+ await this.loadOnboardingCalendar();
3771
+ this.refreshCalendar();
3772
+ }, 10000);
3773
+ }
3774
+ }
3775
+ };
3776
+ this.renderOnboardingCalendar = (calendarJobs) => {
3799
3777
  var _a;
3778
+ console.log('calendarjobs', calendarJobs);
3800
3779
  var html = '';
3801
- html += '<div id="calendar-list-container" class="d-flex justify-center w-100 scroll-x pb-10 pt-10">';
3802
- html += '<button part="button" class="button-submit">Generate Calendar</button>';
3780
+ html += '<div id="calendar-list-container" class="pb-10 pt-10 w-100">';
3781
+ html += '<div class="d-flex justify-center align-center w-100">';
3782
+ html += '<h3 part="results-title">Calendar Status</h3>';
3783
+ html += '</div>';
3784
+ html += '<div class="d-flex justify-center align-center w-100">';
3785
+ html += '<div class="p-10">';
3786
+ html += '<div part="input-label" class="text-center">Job Status</div>';
3787
+ html += '<div class="d-flex align-center text-center">' + (calendarJobs.data.status == "0" ? "<span class=\"color-not-started material-icons\">schedule</span>&nbsp;Initialized" : calendarJobs.data.status == "1" ? "<span class=\"color-pending material-icons\">pending</span>&nbsp;In-Progress" : "<span class=\"color-done material-icons\">check_circle</span>&nbsp;Complete") + '</div>';
3788
+ html += '</div>';
3789
+ html += '<div class="p-10">';
3790
+ html += '<div part="input-label" class="text-center">Last Updated</div>';
3791
+ html += '<div class="text-center">' + new Date(calendarJobs.data.lastupdated).toLocaleString() + '</div>';
3792
+ html += '</div>';
3793
+ html += '</div>';
3794
+ html += '<div class="d-flex justify-center align-center w-100 mt-20">';
3795
+ html += '<button part="button" class="button-submit d-flex align-center"><span class="material-icons">bolt</span>&nbsp;<span>Update Calendar</span></button>';
3796
+ html += '</div>';
3803
3797
  html += '</div>';
3804
3798
  this._SfOnboardingCalendarContainer.innerHTML = html;
3805
- (_a = this._SfOnboardingCalendarContainer.querySelector('.button-submit')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
3806
- this.fetchGetMappedCalendar();
3799
+ (_a = this._SfOnboardingCalendarContainer.querySelector('.button-submit')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', async () => {
3800
+ await this.fetchGetMappedCalendar();
3801
+ setTimeout(() => {
3802
+ this.refreshCalendar();
3803
+ }, 10000);
3807
3804
  });
3805
+ //this.refreshCalendar();
3808
3806
  };
3809
3807
  this.renderOnboardingInternalControls = (mappedInternalControls, mappedSerializedAlertSchedules) => {
3810
3808
  var html = '';
3811
3809
  html += '<div id="internalcontrols-list-container" class="d-flex flex-col w-100 scroll-x">';
3812
3810
  html += '</div>';
3813
3811
  this._SfOnboardingInternalControlsContainer.innerHTML = html;
3814
- this.renderTaggingTable(this._SfOnboardingInternalControlsListContainer, mappedSerializedAlertSchedules, mappedInternalControls, ["obligation", "country", "statute"], this.uploadInternalControlsMapping, this.loadMode, "internalcontrols", ["id", "entityname", "locationname"], '');
3812
+ this.renderTaggingTable(this._SfOnboardingInternalControlsListContainer, mappedSerializedAlertSchedules, mappedInternalControls, ["obligation", "country", "statute"], this.uploadInternalControlsMapping, this.loadMode, "internalcontrols", ["id", "entityname", "locationname"], '', "");
3815
3813
  };
3816
3814
  this.renderOnboardingAlertSchedules = (mappedAlertSchedules, mappedSerializedDuedates) => {
3817
3815
  var html = '';
3818
3816
  html += '<div id="alertschedules-list-container" class="d-flex flex-col w-100 scroll-x">';
3819
3817
  html += '</div>';
3820
3818
  this._SfOnboardingAlertSchedulesContainer.innerHTML = html;
3821
- this.renderTaggingTable(this._SfOnboardingAlertSchedulesListContainer, mappedSerializedDuedates, mappedAlertSchedules, ["obligation", "country", "statute"], this.uploadAlertSchedulesMapping, this.loadMode, "alertschedules", ["id", "entityname", "locationname"], '');
3819
+ this.renderTaggingTable(this._SfOnboardingAlertSchedulesListContainer, mappedSerializedDuedates, mappedAlertSchedules, ["obligation", "country", "statute"], this.uploadAlertSchedulesMapping, this.loadMode, "alertschedules", ["id", "entityname", "locationname"], '', "");
3822
3820
  };
3823
3821
  this.renderOnboardingDuedates = (mappedDuedates, mappedSerializedApprovers) => {
3824
3822
  var html = '';
3825
3823
  html += '<div id="duedates-list-container" class="d-flex flex-col w-100 scroll-x">';
3826
3824
  html += '</div>';
3827
3825
  this._SfOnboardingDuedatesContainer.innerHTML = html;
3828
- this.renderTaggingTable(this._SfOnboardingDuedatesListContainer, mappedSerializedApprovers, mappedDuedates, ["obligation", "country", "statute"], this.uploadDuedatesMapping, this.loadMode, "duedates", ["id", "entityname", "locationname"], '');
3826
+ this.renderTaggingTable(this._SfOnboardingDuedatesListContainer, mappedSerializedApprovers, mappedDuedates, ["obligation", "country", "statute"], this.uploadDuedatesMapping, this.loadMode, "duedates", ["id", "entityname", "locationname"], '', "");
3829
3827
  };
3830
3828
  this.renderOnboardingReporters = (mappedReporters, mappedSerializedTags) => {
3831
3829
  var html = '';
3832
3830
  html += '<div id="reporters-list-container" class="d-flex flex-col w-100 scroll-x">';
3833
3831
  html += '</div>';
3834
3832
  this._SfOnboardingReportersContainer.innerHTML = html;
3835
- this.renderTaggingTable(this._SfOnboardingReportersListContainer, mappedSerializedTags, mappedReporters, ["obligation", "country", "statute"], this.uploadReportersMapping, this.loadMode, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers);
3833
+ this.renderTaggingTable(this._SfOnboardingReportersListContainer, mappedSerializedTags, mappedReporters, ["obligation", "country", "statute"], this.uploadReportersMapping, this.loadMode, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers, "");
3836
3834
  };
3837
3835
  this.renderOnboardingApprovers = (mappedApprovers, mappedSerializedReporters) => {
3838
3836
  var html = '';
3839
3837
  html += '<div id="approvers-list-container" class="d-flex flex-col w-100 scroll-x">';
3840
3838
  html += '</div>';
3841
3839
  this._SfOnboardingApproversContainer.innerHTML = html;
3842
- this.renderTaggingTable(this._SfOnboardingApproversListContainer, mappedSerializedReporters, mappedApprovers, ["obligation", "country", "statute"], this.uploadApproversMapping, this.loadMode, "approvers", ["id", "entityname", "locationname"], this.apiIdUsers);
3840
+ this.renderTaggingTable(this._SfOnboardingApproversListContainer, mappedSerializedReporters, mappedApprovers, ["obligation", "country", "statute"], this.uploadApproversMapping, this.loadMode, "approvers", ["id", "entityname", "locationname"], this.apiIdUsers, "");
3843
3841
  };
3844
- this.renderOnboardingTags = (mappedTags, mappedSerializedLocations) => {
3842
+ this.renderOnboardingTags = (mappedTags, mappedSerializedFunctions) => {
3845
3843
  var html = '';
3846
3844
  html += '<div id="tags-list-container" class="d-flex flex-col w-100 scroll-x">';
3847
3845
  html += '</div>';
3848
3846
  this._SfOnboardingTagsContainer.innerHTML = html;
3849
- this.renderTaggingTable(this._SfOnboardingTagsListContainer, mappedSerializedLocations, mappedTags, ["obligation", "country", "statute"], this.uploadTagsMapping, this.loadMode, "tags", ["id", "entityname", "locationname"], this.apiIdTags);
3847
+ this.renderTaggingTable(this._SfOnboardingTagsListContainer, mappedSerializedFunctions, mappedTags, ["obligation", "country", "statute"], this.uploadTagsMapping, this.loadMode, "tags", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Tag");
3848
+ };
3849
+ this.renderOnboardingFunctions = (mappedFunctions, mappedSerializedLocations) => {
3850
+ var html = '';
3851
+ html += '<div id="functions-list-container" class="d-flex flex-col w-100 scroll-x">';
3852
+ html += '</div>';
3853
+ this._SfOnboardingFunctionsContainer.innerHTML = html;
3854
+ this.renderTaggingTable(this._SfOnboardingFunctionsListContainer, mappedSerializedLocations, mappedFunctions, ["obligation", "country", "statute"], this.uploadFunctionsMapping, this.loadMode, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function");
3850
3855
  };
3851
3856
  this.renderOnboardingLocations = (mappedLocations, mappedSerializedEntities) => {
3852
3857
  var html = '';
3853
3858
  html += '<div id="locations-list-container" class="d-flex flex-col w-100 scroll-x">';
3854
3859
  html += '</div>';
3855
3860
  this._SfOnboardingLocationsContainer.innerHTML = html;
3856
- this.renderTaggingTable(this._SfOnboardingLocationsListContainer, mappedSerializedEntities, mappedLocations, ["obligation", "country", "statute"], this.uploadLocationsMapping, this.loadMode, "locations", ["id", "entityname"], this.apiIdTags);
3861
+ this.renderTaggingTable(this._SfOnboardingLocationsListContainer, mappedSerializedEntities, mappedLocations, ["obligation", "country", "statute"], this.uploadLocationsMapping, this.loadMode, "locations", ["id", "countryname", "entityname"], this.apiIdTags, "&Location");
3857
3862
  };
3858
3863
  this.renderOnboardingCompliances = (mappedStatutes, mappedCompliances) => {
3859
3864
  console.log('mappedcompliances', mappedCompliances);
@@ -3918,7 +3923,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3918
3923
  html += '<div id="entities-list-container" class="d-flex flex-col w-100 scroll-x">';
3919
3924
  html += '</div>';
3920
3925
  this._SfOnboardingEntitiesContainer.innerHTML = html;
3921
- this.renderTaggingTable(this._SfOnboardingEntitiesListContainer, mappedSerializedCountries, mappedEntities, ["obligation", "country", "statute"], this.uploadEntitiesMapping, this.loadMode, "entities", ["id", "countryname"], this.apiIdTags);
3926
+ this.renderTaggingTable(this._SfOnboardingEntitiesListContainer, mappedSerializedCountries, mappedEntities, ["obligation", "country", "statute"], this.uploadEntitiesMapping, this.loadMode, "entities", ["id", "countryname"], this.apiIdTags, "&Entity");
3922
3927
  };
3923
3928
  this.renderOnboardingCountries = (mappedCountries, mappedCompliances) => {
3924
3929
  var html = '';
@@ -3939,7 +3944,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3939
3944
  // }
3940
3945
  // }
3941
3946
  // mappedCountries.data.mappings.mappings = arr2;
3942
- this.renderTaggingTable(this._SfOnboardingCountriesListContainer, mappedCompliances, mappedCountries, ["obligation", "country", "statute"], this.uploadCountriesMapping, this.loadMode, "countries", ["id"], this.apiIdTags);
3947
+ this.renderTaggingTable(this._SfOnboardingCountriesListContainer, mappedCompliances, mappedCountries, ["obligation", "country", "statute"], this.uploadCountriesMapping, this.loadMode, "countries", ["id"], this.apiIdTags, "-Country");
3943
3948
  };
3944
3949
  this.renderOnboardingStatutes = (mappedStatutes) => {
3945
3950
  var initCursor = "";
@@ -4031,7 +4036,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4031
4036
  }
4032
4037
  };
4033
4038
  this.renderOnboardingTabs = () => {
4034
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
4039
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
4035
4040
  console.log('render onboarding tabs');
4036
4041
  this._SfOnboardingTabContainer.innerHTML = '';
4037
4042
  var html = '';
@@ -4074,37 +4079,42 @@ let SfIEvents = class SfIEvents extends LitElement {
4074
4079
  this.renderOnboardingTabs();
4075
4080
  this.loadOnboardingLocations();
4076
4081
  });
4077
- (_f = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-tags')) === null || _f === void 0 ? void 0 : _f.addEventListener('click', async () => {
4082
+ (_f = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-functions')) === null || _f === void 0 ? void 0 : _f.addEventListener('click', async () => {
4083
+ this.myOnboardingTab = this.TAB_FUNCTIONS;
4084
+ this.renderOnboardingTabs();
4085
+ this.loadOnboardingFunctions();
4086
+ });
4087
+ (_g = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-tags')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', async () => {
4078
4088
  this.myOnboardingTab = this.TAB_TAGS;
4079
4089
  this.renderOnboardingTabs();
4080
4090
  this.loadOnboardingTags();
4081
4091
  });
4082
- (_g = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-reporters')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', async () => {
4092
+ (_h = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-reporters')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async () => {
4083
4093
  this.myOnboardingTab = this.TAB_REPORTERS;
4084
4094
  this.renderOnboardingTabs();
4085
4095
  this.loadOnboardingReporters();
4086
4096
  });
4087
- (_h = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-approvers')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async () => {
4097
+ (_j = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-approvers')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', async () => {
4088
4098
  this.myOnboardingTab = this.TAB_APPROVERS;
4089
4099
  this.renderOnboardingTabs();
4090
4100
  this.loadOnboardingApprovers();
4091
4101
  });
4092
- (_j = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-duedates')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', async () => {
4102
+ (_k = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-duedates')) === null || _k === void 0 ? void 0 : _k.addEventListener('click', async () => {
4093
4103
  this.myOnboardingTab = this.TAB_DUEDATES;
4094
4104
  this.renderOnboardingTabs();
4095
4105
  this.loadOnboardingDuedates();
4096
4106
  });
4097
- (_k = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-alertschedules')) === null || _k === void 0 ? void 0 : _k.addEventListener('click', async () => {
4107
+ (_l = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-alertschedules')) === null || _l === void 0 ? void 0 : _l.addEventListener('click', async () => {
4098
4108
  this.myOnboardingTab = this.TAB_ALERTSCHEDULES;
4099
4109
  this.renderOnboardingTabs();
4100
4110
  this.loadOnboardingAlertSchedules();
4101
4111
  });
4102
- (_l = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-internalcontrols')) === null || _l === void 0 ? void 0 : _l.addEventListener('click', async () => {
4112
+ (_m = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-internalcontrols')) === null || _m === void 0 ? void 0 : _m.addEventListener('click', async () => {
4103
4113
  this.myOnboardingTab = this.TAB_INTERNALCONTROLS;
4104
4114
  this.renderOnboardingTabs();
4105
4115
  this.loadOnboardingInternalControls();
4106
4116
  });
4107
- (_m = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-calendar')) === null || _m === void 0 ? void 0 : _m.addEventListener('click', async () => {
4117
+ (_o = this._SfOnboardingTabContainer.querySelector('#onboarding-tab-calendar')) === null || _o === void 0 ? void 0 : _o.addEventListener('click', async () => {
4108
4118
  this.myOnboardingTab = this.TAB_CALENDAR;
4109
4119
  this.renderOnboardingTabs();
4110
4120
  this.loadOnboardingCalendar();
@@ -5185,6 +5195,28 @@ let SfIEvents = class SfIEvents extends LitElement {
5185
5195
  }, 2000);
5186
5196
  }
5187
5197
  };
5198
+ this.uploadFunctionsMapping = async (data) => {
5199
+ console.log('uploading..', data);
5200
+ let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/updatemappedfunctions";
5201
+ const body = {
5202
+ "projectid": this.projectId,
5203
+ "data": JSON.stringify(data)
5204
+ };
5205
+ const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
5206
+ const xhr = (await this.prepareXhr(body, url, this._SfLoader, authorization));
5207
+ this._SfLoader.innerHTML = '';
5208
+ if (xhr.status == 200) {
5209
+ const jsonRespose = JSON.parse(xhr.responseText);
5210
+ console.log('jsonResponse sync', jsonRespose);
5211
+ }
5212
+ else {
5213
+ const jsonRespose = JSON.parse(xhr.responseText);
5214
+ this.setError(jsonRespose.error);
5215
+ setTimeout(() => {
5216
+ this.clearMessages();
5217
+ }, 2000);
5218
+ }
5219
+ };
5188
5220
  this.uploadLocationsMapping = async (data) => {
5189
5221
  console.log('uploading..', data);
5190
5222
  let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/updatemappedlocations";
@@ -5336,15 +5368,16 @@ let SfIEvents = class SfIEvents extends LitElement {
5336
5368
  }, 2000);
5337
5369
  }
5338
5370
  };
5339
- this.uploadTriggerEvent = async (eventid, dateofoccurrence) => {
5371
+ this.uploadTriggerEvent = async (locationId, eventid, dateofoccurrence) => {
5340
5372
  let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/triggermyevent";
5341
5373
  const body = {
5342
5374
  "dateofoccurrence": dateofoccurrence,
5343
5375
  "projectid": this.projectId,
5344
5376
  "eventid": eventid,
5345
5377
  "entityid": this.entityId,
5346
- "locationid": this.locationId
5378
+ "locationid": locationId
5347
5379
  };
5380
+ console.log('uploading...', body);
5348
5381
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
5349
5382
  const xhr = (await this.prepareXhr(body, url, this._SfLoader, authorization));
5350
5383
  this._SfLoader.innerHTML = '';
@@ -5630,6 +5663,21 @@ let SfIEvents = class SfIEvents extends LitElement {
5630
5663
  this.setError(jsonRespose.error);
5631
5664
  }
5632
5665
  };
5666
+ this.fetchMappedFunctions = async () => {
5667
+ let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/getmappedfunctions";
5668
+ const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
5669
+ const xhr = (await this.prepareXhr({ "projectid": this.projectId }, url, this._SfLoader, authorization));
5670
+ this._SfLoader.innerHTML = '';
5671
+ if (xhr.status == 200) {
5672
+ const jsonRespose = JSON.parse(xhr.responseText);
5673
+ console.log(jsonRespose);
5674
+ return jsonRespose;
5675
+ }
5676
+ else {
5677
+ const jsonRespose = JSON.parse(xhr.responseText);
5678
+ this.setError(jsonRespose.error);
5679
+ }
5680
+ };
5633
5681
  this.fetchMappedCompliances = async () => {
5634
5682
  let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/getmappedcompliances";
5635
5683
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
@@ -5735,6 +5783,21 @@ let SfIEvents = class SfIEvents extends LitElement {
5735
5783
  this.setError(jsonRespose.error);
5736
5784
  }
5737
5785
  };
5786
+ this.fetchMappedSerializedFunctions = async () => {
5787
+ let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/getmappedserializedfunctions";
5788
+ const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
5789
+ const xhr = (await this.prepareXhr({ "projectid": this.projectId }, url, this._SfLoader, authorization));
5790
+ this._SfLoader.innerHTML = '';
5791
+ if (xhr.status == 200) {
5792
+ const jsonRespose = JSON.parse(xhr.responseText);
5793
+ console.log(jsonRespose);
5794
+ return jsonRespose;
5795
+ }
5796
+ else {
5797
+ const jsonRespose = JSON.parse(xhr.responseText);
5798
+ this.setError(jsonRespose.error);
5799
+ }
5800
+ };
5738
5801
  this.fetchMappedSerializedEntities = async () => {
5739
5802
  let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/getmappedserializedentities";
5740
5803
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
@@ -5900,6 +5963,21 @@ let SfIEvents = class SfIEvents extends LitElement {
5900
5963
  this.setError(jsonRespose.error);
5901
5964
  }
5902
5965
  };
5966
+ this.fetchCalendarJobs = async () => {
5967
+ let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/getcalendarjobs";
5968
+ const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
5969
+ const xhr = (await this.prepareXhr({ "projectid": this.projectId }, url, this._SfLoader, authorization));
5970
+ this._SfLoader.innerHTML = '';
5971
+ if (xhr.status == 200) {
5972
+ const jsonRespose = JSON.parse(xhr.responseText);
5973
+ console.log(jsonRespose);
5974
+ return jsonRespose;
5975
+ }
5976
+ else {
5977
+ const jsonRespose = JSON.parse(xhr.responseText);
5978
+ this.setError(jsonRespose.error);
5979
+ }
5980
+ };
5903
5981
  this.fetchDetail = async (value) => {
5904
5982
  const body = this.getApiBodyList();
5905
5983
  body.id = value;
@@ -6078,7 +6156,7 @@ let SfIEvents = class SfIEvents extends LitElement {
6078
6156
  }
6079
6157
  };
6080
6158
  this.fetchAdhoc = async (reprogramTriggers = false) => {
6081
- let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/getmyevents";
6159
+ let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/" + ((this.locationId != null && this.locationId != "") ? "getmyevents" : "getallmyevents");
6082
6160
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
6083
6161
  const xhr = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "locationid": this.locationId, "adhoc": "true" }, url, this._SfLoader, authorization));
6084
6162
  this._SfLoader.innerHTML = '';