@idsoftsource/initial-process 1.2.0 → 1.2.2

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.
@@ -2363,6 +2363,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2363
2363
  type: Input
2364
2364
  }] } });
2365
2365
 
2366
+ var ForUser;
2367
+ (function (ForUser) {
2368
+ ForUser[ForUser["ForProvider"] = 1] = "ForProvider";
2369
+ ForUser[ForUser["ForProducer"] = 2] = "ForProducer";
2370
+ })(ForUser || (ForUser = {}));
2371
+ const ForUserList = [
2372
+ { value: 1, text: 'Provider', selected: false },
2373
+ { value: 2, text: 'Producer', selected: false },
2374
+ ];
2375
+
2366
2376
  class UserDocumentService {
2367
2377
  httpClient;
2368
2378
  // 🔹 Base controller name
@@ -2399,7 +2409,7 @@ class UserDocumentService {
2399
2409
  return params;
2400
2410
  }
2401
2411
  getDocumentTypes(maintype, providerId, searchText = '') {
2402
- let filter = `isActive=true,mainType=${maintype}`;
2412
+ let filter = `isActive=true,mainType=${maintype},forUser=${ForUser.ForProducer}`;
2403
2413
  if (searchText.trim()) {
2404
2414
  filter += `,type=*${searchText}/i`;
2405
2415
  }
@@ -2775,16 +2785,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2775
2785
  type: Input
2776
2786
  }] } });
2777
2787
 
2778
- var ForUser;
2779
- (function (ForUser) {
2780
- ForUser[ForUser["ForProvider"] = 1] = "ForProvider";
2781
- ForUser[ForUser["ForProducer"] = 2] = "ForProducer";
2782
- })(ForUser || (ForUser = {}));
2783
- const ForUserList = [
2784
- { value: 1, text: 'Provider', selected: false },
2785
- { value: 2, text: 'Producer', selected: false },
2786
- ];
2787
-
2788
2788
  var RequestedStatus;
2789
2789
  (function (RequestedStatus) {
2790
2790
  RequestedStatus[RequestedStatus["Requested"] = 1] = "Requested";
@@ -3457,7 +3457,7 @@ class SkillsComponent {
3457
3457
  const query = {
3458
3458
  page: 1,
3459
3459
  pageSize: 10,
3460
- filter: `${ForUser.ForProducer}`,
3460
+ filter: `forUser=${ForUser.ForProducer}`,
3461
3461
  orderBy: 'skillSetName asc'
3462
3462
  };
3463
3463
  this.userSkillsSub = this.userSkillSetService
@@ -4444,7 +4444,7 @@ class ToolsComponent {
4444
4444
  var query = {
4445
4445
  page: 1,
4446
4446
  pageSize: 10,
4447
- filter: `${ForUser.ForProducer}`,
4447
+ filter: `forUser=${ForUser.ForProducer}`,
4448
4448
  orderBy: 'toolName asc'
4449
4449
  };
4450
4450
  this.userToolService.getUserTool(query)
@@ -5077,7 +5077,8 @@ class RoleSelectComponent {
5077
5077
  const query = {
5078
5078
  page: 1,
5079
5079
  pageSize: 100,
5080
- filter: 'isActive=true,providerId='
5080
+ filter: 'isActive=true',
5081
+ targetProviderId: '00000000-0000-0000-0000-000000000000',
5081
5082
  };
5082
5083
  this.industrydata
5083
5084
  .getUserIndustry(query)
@@ -29072,7 +29073,7 @@ class InitialProcessComponent {
29072
29073
  }
29073
29074
  getUserRoles() {
29074
29075
  const filter = {
29075
- userId: this.userId
29076
+ //userId: this.userId
29076
29077
  };
29077
29078
  this.roleService.getUserRoles(filter).subscribe((data) => {
29078
29079
  this.currentUserRoles = data;
@@ -29695,7 +29696,7 @@ class InitialProcessComponent {
29695
29696
  }
29696
29697
  getRoles() {
29697
29698
  const query = {
29698
- providerId: "00000000-0000-0000-0000-000000000000",
29699
+ targetProviderId: "00000000-0000-0000-0000-000000000000",
29699
29700
  roleNames: ['Producer', 'Auditor', 'Customer', 'InsuranceAgencyUser', 'InsuranceAgency', 'Provider', 'RealEstateCompany', 'RealEstateCompanyUser', 'Auditor', 'Contractor', 'InsuranceCarrier', 'ContractorUser', 'InsuranceCarrierUser']
29700
29701
  };
29701
29702
  this.rolesApiCall && this.rolesApiCall.unsubscribe(); // Unsubscribe here as well.
@@ -29847,7 +29848,7 @@ class InitialProcessComponent {
29847
29848
  getContractorSubCategories() {
29848
29849
  const query = {
29849
29850
  orderBy: 'name asc',
29850
- filter: `providerId=`
29851
+ targetProviderId: "00000000-0000-0000-0000-000000000000"
29851
29852
  };
29852
29853
  this.contractorSubCategories = [];
29853
29854
  this.contractorSubCategoryService