@djb25/digit-ui-module-ekyc 1.0.53 → 1.0.54

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.
@@ -3147,25 +3147,10 @@ const Inbox = _ref2 => {
3147
3147
  targetVendorId: matchedId,
3148
3148
  allVendorIds: allIds
3149
3149
  };
3150
- }, [vendorSearchResponse]),
3151
- targetVendorId = _useMemo.targetVendorId,
3152
- allVendorIds = _useMemo.allVendorIds;
3153
- const progressParams = useMemo(() => {
3154
- if (targetVendorId) {
3155
- return {
3156
- vendorId: targetVendorId,
3157
- vendorIds: [targetVendorId]
3158
- };
3159
- }
3160
- if (allVendorIds && allVendorIds.length > 0) {
3161
- return {
3162
- vendorId: allVendorIds[0],
3163
- vendorIds: allVendorIds
3164
- };
3165
- }
3166
- return {};
3167
- }, [targetVendorId, allVendorIds]);
3168
- const _Digit$Hooks$ekyc$use3 = Digit.Hooks.ekyc.useEkycAssignmentProgress(progressParams, {
3150
+ }, [vendorSearchResponse]);
3151
+ const _Digit$Hooks$ekyc$use3 = Digit.Hooks.ekyc.useEkycAssignmentProgress({
3152
+ tenantId
3153
+ }, {
3169
3154
  enabled: !!tenantId,
3170
3155
  keepPreviousData: true
3171
3156
  }),
@@ -3227,65 +3212,56 @@ const Inbox = _ref2 => {
3227
3212
  }, [sourceData]);
3228
3213
  const _useTranslation = useTranslation(),
3229
3214
  t = _useTranslation.t;
3230
- const supervisor = useMemo(() => {
3231
- var _Digit$SessionStorage2, _loggedInUser$roles;
3232
- const loggedInUser = (_Digit$SessionStorage2 = Digit.SessionStorage.get("User")) === null || _Digit$SessionStorage2 === void 0 ? void 0 : _Digit$SessionStorage2.info;
3233
- const roles = (loggedInUser === null || loggedInUser === void 0 ? void 0 : (_loggedInUser$roles = loggedInUser.roles) === null || _loggedInUser$roles === void 0 ? void 0 : _loggedInUser$roles.map(ele => ele.code)) || [];
3234
- if (roles.includes("EKYC_SUPERVISOR")) {
3235
- const targetId = loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.uuid;
3236
- if (progressData !== null && progressData !== void 0 && progressData.supervisorReport && targetId) {
3237
- const report = progressData.supervisorReport.find(s => {
3238
- var _s$supervisorId, _s$id;
3239
- return ((_s$supervisorId = s.supervisorId) === null || _s$supervisorId === void 0 ? void 0 : _s$supervisorId.toLowerCase()) === (targetId === null || targetId === void 0 ? void 0 : targetId.toLowerCase()) || ((_s$id = s.id) === null || _s$id === void 0 ? void 0 : _s$id.toLowerCase()) === (targetId === null || targetId === void 0 ? void 0 : targetId.toLowerCase());
3240
- });
3241
- if (report) return report;
3242
- }
3243
- }
3244
- if (progressData !== null && progressData !== void 0 && progressData.supervisorReport) {
3245
- const totalKnos = progressData.supervisorReport.reduce((acc, r) => acc + (r.totalKnos || 0), 0);
3246
- const submittedKnos = progressData.supervisorReport.reduce((acc, r) => acc + (r.submittedKnos || 0), 0);
3247
- const pendingKnos = progressData.supervisorReport.reduce((acc, r) => acc + (r.pendingKnos || 0), 0);
3248
- const progressPercent = totalKnos > 0 ? Math.round(submittedKnos / totalKnos * 100) : 0;
3249
- return {
3250
- totalKnos,
3251
- submittedKnos,
3252
- pendingKnos,
3253
- progressPercent
3254
- };
3255
- }
3256
- return null;
3215
+ const progressMetrics = useMemo(() => {
3216
+ var _ref3, _progressData$totalKn, _ref4, _progressData$complet, _progressData$pending, _ref5, _progressData$overall;
3217
+ if (!progressData) return {
3218
+ totalKnos: 0,
3219
+ submittedKnos: 0,
3220
+ pendingKnos: 0,
3221
+ progressPercent: 0
3222
+ };
3223
+ const totalKnos = (_ref3 = (_progressData$totalKn = progressData === null || progressData === void 0 ? void 0 : progressData.totalKnos) != null ? _progressData$totalKn : progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) != null ? _ref3 : 0;
3224
+ const submittedKnos = (_ref4 = (_progressData$complet = progressData === null || progressData === void 0 ? void 0 : progressData.completedKnos) != null ? _progressData$complet : progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) != null ? _ref4 : 0;
3225
+ const pendingKnos = (_progressData$pending = progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnos) != null ? _progressData$pending : totalKnos >= submittedKnos ? totalKnos - submittedKnos : 0;
3226
+ const progressPercent = (_ref5 = (_progressData$overall = progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) != null ? _progressData$overall : progressData === null || progressData === void 0 ? void 0 : progressData.progressPercent) != null ? _ref5 : totalKnos > 0 ? (submittedKnos / totalKnos * 100).toFixed(1) : 0;
3227
+ return {
3228
+ totalKnos,
3229
+ submittedKnos,
3230
+ pendingKnos,
3231
+ progressPercent
3232
+ };
3257
3233
  }, [progressData]);
3258
3234
  const cards = useMemo(() => [{
3259
3235
  label: t("TOTAL_EKYC_APPLICATIONS"),
3260
- count: (supervisor === null || supervisor === void 0 ? void 0 : supervisor.totalKnos) || 0,
3236
+ count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.totalKnos) || 0,
3261
3237
  color: "#0B2559",
3262
3238
  type: "today",
3263
3239
  icon: /*#__PURE__*/React.createElement(FaUsers, null)
3264
3240
  }, {
3265
3241
  label: t("EKYC_COMPLETED"),
3266
- count: (supervisor === null || supervisor === void 0 ? void 0 : supervisor.submittedKnos) || 0,
3242
+ count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.submittedKnos) || 0,
3267
3243
  color: "#10B981",
3268
3244
  type: "month",
3269
3245
  icon: /*#__PURE__*/React.createElement(FaCheckCircle, null)
3270
3246
  }, {
3271
3247
  label: t("PENDING_APPLICATIONS"),
3272
- count: (supervisor === null || supervisor === void 0 ? void 0 : supervisor.pendingKnos) || 0,
3248
+ count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.pendingKnos) || 0,
3273
3249
  color: "#F59E0B",
3274
3250
  type: "pending",
3275
3251
  icon: /*#__PURE__*/React.createElement(FaClock, null)
3276
3252
  }, {
3277
3253
  label: t("OVERALL_PROGRESS"),
3278
- count: ((supervisor === null || supervisor === void 0 ? void 0 : supervisor.progressPercent) || 0) + "%",
3254
+ count: ((progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.progressPercent) || 0) + "%",
3279
3255
  color: "#A855F7",
3280
3256
  type: "progress",
3281
3257
  icon: /*#__PURE__*/React.createElement(FaChartLine, null)
3282
- }], [supervisor]);
3258
+ }], [progressMetrics, t]);
3283
3259
  const totalRecords = (listData === null || listData === void 0 ? void 0 : listData.totalCount) || 0;
3284
3260
  const checkPathName = location.pathname.includes("ekyc/inbox");
3285
- const SearchFormFields = useCallback(_ref3 => {
3286
- let registerRef = _ref3.registerRef,
3287
- searchFormState = _ref3.searchFormState,
3288
- controlSearchForm = _ref3.controlSearchForm;
3261
+ const SearchFormFields = useCallback(_ref6 => {
3262
+ let registerRef = _ref6.registerRef,
3263
+ searchFormState = _ref6.searchFormState,
3264
+ controlSearchForm = _ref6.controlSearchForm;
3289
3265
  return /*#__PURE__*/React.createElement(SearchFormFieldsComponents, {
3290
3266
  registerRef,
3291
3267
  searchFormState,
@@ -3590,7 +3566,8 @@ const ReviewSection = _ref2 => {
3590
3566
  }, t("EKYC_PROPOSED_UPDATES")))), /*#__PURE__*/React.createElement("tbody", null, fields.map((field, idx) => {
3591
3567
  const valNew = newData === null || newData === void 0 ? void 0 : newData[field.key];
3592
3568
  const valOld = oldData === null || oldData === void 0 ? void 0 : oldData[field.key];
3593
- const isChanged = oldData && String(valNew) !== String(valOld) && valOld !== undefined && valOld !== null;
3569
+ const normalizeVal = v => v === null || v === undefined || v === "" ? "" : String(v);
3570
+ const isChanged = oldData && valOld !== undefined && normalizeVal(valNew) !== normalizeVal(valOld);
3594
3571
  return /*#__PURE__*/React.createElement("tr", {
3595
3572
  key: idx,
3596
3573
  style: {
@@ -3603,7 +3580,7 @@ const ReviewSection = _ref2 => {
3603
3580
  color: "#344054",
3604
3581
  fontWeight: "500"
3605
3582
  }
3606
- }, t(field.label)), /*#__PURE__*/React.createElement("td", {
3583
+ }, field.preTranslated ? field.label : t(field.label)), /*#__PURE__*/React.createElement("td", {
3607
3584
  style: {
3608
3585
  padding: "16px 0",
3609
3586
  fontSize: "14px",
@@ -3702,6 +3679,8 @@ const Review = () => {
3702
3679
  const _extractReviewData = extractReviewData(searchData, flowState),
3703
3680
  apiNewData = _extractReviewData.newData,
3704
3681
  apiOldData = _extractReviewData.oldData;
3682
+ const flatNewData = apiNewData ? _extends({}, apiNewData || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.connectionDetails) || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.addressDetails) || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.propertyInfo) || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.meterDetails) || {}) : null;
3683
+ const flatOldData = apiOldData ? _extends({}, apiOldData || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.connectionDetails) || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.addressDetails) || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.propertyInfo) || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.meterDetails) || {}) : null;
3705
3684
  const prepareConsolidatedData = data => {
3706
3685
  if (!data) return null;
3707
3686
  const apiConn = (data === null || data === void 0 ? void 0 : data.connectionDetails) || data || {};
@@ -3736,7 +3715,7 @@ const Review = () => {
3736
3715
  email: apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.email,
3737
3716
  noOfPerson: (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.noOfPerson) || (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.noOfPersons),
3738
3717
  knumber: (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.knumber) || (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.kno),
3739
- doorPhotoFilestoreId: apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.doorPhotoFilestoreId
3718
+ doorPhotoFilestoreId: (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.doorPhotoFileStoreId) || (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.doorPhotoFilestoreId)
3740
3719
  },
3741
3720
  property: {
3742
3721
  kno: apiProp === null || apiProp === void 0 ? void 0 : apiProp.kno,
@@ -3749,7 +3728,7 @@ const Review = () => {
3749
3728
  tenantMobile: apiProp === null || apiProp === void 0 ? void 0 : apiProp.tenantMobile,
3750
3729
  ekycStatus: apiProp === null || apiProp === void 0 ? void 0 : apiProp.ekycStatus,
3751
3730
  propertyDocumentFileStoreId: apiProp === null || apiProp === void 0 ? void 0 : apiProp.propertyDocumentFileStoreId,
3752
- buildingImageFileStoreId: apiProp === null || apiProp === void 0 ? void 0 : apiProp.buildingImageFileStoreId
3731
+ buildingImageFileStoreId: (apiProp === null || apiProp === void 0 ? void 0 : apiProp.buildingImageFileStoreId) || (apiProp === null || apiProp === void 0 ? void 0 : apiProp.buildingImageFilestoreId)
3753
3732
  },
3754
3733
  meter: {
3755
3734
  kno: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.kno,
@@ -3762,12 +3741,11 @@ const Review = () => {
3762
3741
  workingStatus: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.workingStatus,
3763
3742
  lastBillRaised: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.lastBillRaised,
3764
3743
  systemMeterId: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.systemMeterId,
3765
- meterPhotoFileStoreId: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.meterPhotoFileStoreId
3744
+ meterPhotoFileStoreId: (apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.meterPhotoFileStoreId) || (apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.meterPhotoFilestoreId)
3766
3745
  }
3767
3746
  };
3768
3747
  };
3769
3748
  const newDataRaw = prepareConsolidatedData(apiNewData);
3770
- const oldDataRaw = prepareConsolidatedData(apiOldData);
3771
3749
  const connectionData = _extends({}, newDataRaw === null || newDataRaw === void 0 ? void 0 : newDataRaw.connection, {
3772
3750
  consumerName: (aadhaarData === null || aadhaarData === void 0 ? void 0 : aadhaarData.name) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$connectio = newDataRaw.connection) === null || _newDataRaw$connectio === void 0 ? void 0 : _newDataRaw$connectio.consumerName),
3773
3751
  phoneNumber: (aadhaarData === null || aadhaarData === void 0 ? void 0 : aadhaarData.mobileNumber) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$connectio2 = newDataRaw.connection) === null || _newDataRaw$connectio2 === void 0 ? void 0 : _newDataRaw$connectio2.phoneNumber),
@@ -3810,136 +3788,323 @@ const Review = () => {
3810
3788
  lastBillRaised: (editedMeter === null || editedMeter === void 0 ? void 0 : (_editedMeter$lastBill = editedMeter.lastBillRaisedData) === null || _editedMeter$lastBill === void 0 ? void 0 : _editedMeter$lastBill.value) === "Yes" || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$meter7 = newDataRaw.meter) === null || _newDataRaw$meter7 === void 0 ? void 0 : _newDataRaw$meter7.lastBillRaised),
3811
3789
  meterPhotoFileStoreId: (editedMeter === null || editedMeter === void 0 ? void 0 : editedMeter.meterPhotoFileStoreId) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$meter8 = newDataRaw.meter) === null || _newDataRaw$meter8 === void 0 ? void 0 : _newDataRaw$meter8.meterPhotoFileStoreId)
3812
3790
  });
3813
- const connectionFields = [{
3814
- label: "EKYC_K_NUMBER",
3815
- key: "knumber"
3791
+ const headerMapping = [{
3792
+ key: "kno",
3793
+ label: "KNO"
3816
3794
  }, {
3817
- label: "EKYC_CONSUMER_NAME",
3818
- key: "consumerName"
3795
+ key: "firstName",
3796
+ label: "FIRST_NAME"
3819
3797
  }, {
3820
- label: "EKYC_ADDRESS",
3821
- key: "address"
3798
+ key: "middleName",
3799
+ label: "MIDDLE_NAME"
3822
3800
  }, {
3823
- label: "EKYC_CONNECTION_TYPE",
3824
- key: "connectionType"
3801
+ key: "lastName",
3802
+ label: "LAST_NAME"
3825
3803
  }, {
3826
- label: "EKYC_METER_NO",
3827
- key: "meterNumber"
3804
+ key: "status",
3805
+ label: "STATUS"
3828
3806
  }, {
3829
- label: "EKYC_MOBILE_NO",
3830
- key: "phoneNumber"
3807
+ key: "ekycStatus",
3808
+ label: "EKYC_STATUS"
3831
3809
  }, {
3832
- label: "EKYC_EMAIL",
3833
- key: "email"
3810
+ key: "zoneName",
3811
+ label: "ZONE"
3834
3812
  }, {
3835
- label: "EKYC_STATUS_FLAG",
3836
- key: "statusflag"
3813
+ key: "zoneCode",
3814
+ label: "ZONE_CODE"
3837
3815
  }, {
3838
- label: "EKYC_STATUS",
3839
- key: "ekycStatus"
3840
- }];
3841
- const addressFields = [{
3842
- label: "EKYC_FULL_ADDRESS",
3843
- key: "fullAddress"
3816
+ key: "assembly",
3817
+ label: "EKYC_ASSEMBLY"
3844
3818
  }, {
3845
- label: "EKYC_FLAT_HOUSE_NO",
3846
- key: "flatHouseNumber"
3819
+ key: "ward",
3820
+ label: "WARD"
3847
3821
  }, {
3848
- label: "EKYC_BUILDING_TOWER",
3849
- key: "buildingTower"
3822
+ key: "pincode",
3823
+ label: "EKYC_PINCODE"
3850
3824
  }, {
3851
- label: "EKYC_LANDMARK",
3852
- key: "landmark"
3825
+ key: "addressRaw",
3826
+ label: "ADDRESS_RAW"
3853
3827
  }, {
3854
- label: "EKYC_PINCODE",
3855
- key: "pinCode"
3828
+ key: "locality",
3829
+ label: "EKYC_LOCALITY"
3856
3830
  }, {
3857
- label: "EKYC_LOCALITY",
3858
- key: "ward"
3831
+ key: "subLocality",
3832
+ label: "SUB_LOCALITY"
3859
3833
  }, {
3860
- label: "EKYC_ASSEMBLY",
3861
- key: "assembly"
3834
+ key: "flatHouseNumber",
3835
+ label: "FLAT_HOUSE_NUMBER"
3862
3836
  }, {
3863
- label: "EKYC_GPS_VALID",
3864
- key: "gpsValid",
3865
- isBool: true
3837
+ key: "streetName",
3838
+ label: "STREET_NAME"
3866
3839
  }, {
3867
- label: "EKYC_LATITUDE",
3868
- key: "latitude"
3840
+ key: "landmark",
3841
+ label: "EKYC_LANDMARK"
3869
3842
  }, {
3870
- label: "EKYC_LONGITUDE",
3871
- key: "longitude"
3843
+ key: "city",
3844
+ label: "CITY"
3872
3845
  }, {
3873
- label: "EKYC_MOBILE_NO",
3874
- key: "mobileNo"
3846
+ key: "state",
3847
+ label: "STATE"
3875
3848
  }, {
3876
- label: "EKYC_WHATSAPP_NO",
3877
- key: "whatsappNo"
3849
+ key: "addressType",
3850
+ label: "ADDRESS_TYPE"
3878
3851
  }, {
3879
- label: "EKYC_EMAIL",
3880
- key: "email"
3852
+ key: "addressProofType",
3853
+ label: "ADDRESS_PROOF_TYPE"
3881
3854
  }, {
3882
- label: "EKYC_NO_OF_PERSONS",
3883
- key: "noOfPerson"
3855
+ key: "mobileNo",
3856
+ label: "MOBILE_NUMBER"
3884
3857
  }, {
3885
- label: "EKYC_K_NUMBER",
3886
- key: "knumber"
3887
- }];
3888
- const propertyFields = [{
3889
- label: "EKYC_CONNECTION_CATEGORY",
3890
- key: "connectionCategory"
3858
+ key: "alternateMobileNo",
3859
+ label: "ALTERNATE_MOBILE_NUMBER"
3891
3860
  }, {
3892
- label: "EKYC_PID_NUMBER",
3893
- key: "pidNumber"
3861
+ key: "whatsappNo",
3862
+ label: "WHATSAPP_NO"
3894
3863
  }, {
3895
- label: "EKYC_TYPE_OF_CONNECTION",
3896
- key: "typeOfConnection"
3864
+ key: "email",
3865
+ label: "EMAIL"
3897
3866
  }, {
3898
- label: "EKYC_USER_TYPE",
3899
- key: "userType"
3867
+ key: "landlineNo",
3868
+ label: "LANDLINE_NO"
3900
3869
  }, {
3901
- label: "EKYC_FLOOR_COUNT",
3902
- key: "numberOfFloors"
3870
+ key: "mrkey",
3871
+ label: "MR_KEY"
3903
3872
  }, {
3904
- label: "EKYC_TENANT_NAME",
3905
- key: "tenantName"
3873
+ key: "mrcode",
3874
+ label: "MR_CODE"
3906
3875
  }, {
3907
- label: "EKYC_TENANT_MOBILE",
3908
- key: "tenantMobile"
3876
+ key: "areacode",
3877
+ label: "AREA_CODE"
3909
3878
  }, {
3910
- label: "EKYC_STATUS",
3911
- key: "ekycStatus"
3912
- }];
3913
- const meterFields = [{
3914
- label: "EKYC_METERED",
3915
- key: "metered",
3879
+ key: "source",
3880
+ label: "SOURCE"
3881
+ }, {
3882
+ key: "submittedAt",
3883
+ label: "SUBMITTED_AT"
3884
+ }, {
3885
+ key: "assignedAt",
3886
+ label: "ASSIGNED_AT"
3887
+ }, {
3888
+ key: "connectionType",
3889
+ label: "CONNECTION_TYPE"
3890
+ }, {
3891
+ key: "Type",
3892
+ label: "CONSUMER_TYPE"
3893
+ }, {
3894
+ key: "occupantType",
3895
+ label: "OCCUPANT_TYPE"
3896
+ }, {
3897
+ key: "knoCategory",
3898
+ label: "KNO_CATEGORY"
3899
+ }, {
3900
+ key: "approvedAt",
3901
+ label: "APPROVED_AT"
3902
+ }, {
3903
+ key: "gender",
3904
+ label: "GENDER"
3905
+ }, {
3906
+ key: "parentSpouse",
3907
+ label: "PARENT_SPOUSE"
3908
+ }, {
3909
+ key: "fatherOrHusbandName",
3910
+ label: "FATHER_HUSBUND_NAME"
3911
+ }, {
3912
+ key: "relationship",
3913
+ label: "RELATIONSHIP"
3914
+ }, {
3915
+ key: "informantName",
3916
+ label: "INFORMANT_NAME"
3917
+ }, {
3918
+ key: "informantRelation",
3919
+ label: "INFORMANT_RELATION"
3920
+ }, {
3921
+ key: "informantIs",
3922
+ label: "INFORMANT_IS"
3923
+ }, {
3924
+ key: "contactPerson",
3925
+ label: "CONTACT_PERSON"
3926
+ }, {
3927
+ key: "relation",
3928
+ label: "RELATION"
3929
+ }, {
3930
+ key: "entityName",
3931
+ label: "ENTITY_NAME"
3932
+ }, {
3933
+ key: "designation",
3934
+ label: "DESIGNATION"
3935
+ }, {
3936
+ key: "department",
3937
+ label: "DEPARTMENT"
3938
+ }, {
3939
+ key: "employeeId",
3940
+ label: "EMPLOYEE_ID"
3941
+ }, {
3942
+ key: "ownerMobile",
3943
+ label: "OWNER_MOBILE"
3944
+ }, {
3945
+ key: "ownerVerificationDone",
3946
+ label: "OWNER_VERIFICATION_DONE",
3947
+ isBool: true
3948
+ }, {
3949
+ key: "consentGiven",
3950
+ label: "CONSENT_GIVEN",
3916
3951
  isBool: true
3917
3952
  }, {
3918
- label: "EKYC_METER_NO",
3919
- key: "meterNumber"
3953
+ key: "proofOfIdentityType",
3954
+ label: "PROOF_OF_IDENTITY_TYPE"
3920
3955
  }, {
3921
- label: "EKYC_METER_MAKE",
3922
- key: "meterMake"
3956
+ key: "documentNumber",
3957
+ label: "DOCUMENT_NUMBER"
3923
3958
  }, {
3924
- label: "EKYC_METER_LOCATION_ADDRESS",
3925
- key: "meterLocationAddress"
3959
+ key: "noOfPerson",
3960
+ label: "NUMBER_OF_PERSON"
3926
3961
  }, {
3927
- label: "EKYC_METER_LATITUDE",
3928
- key: "meterLatitude"
3962
+ key: "latitude",
3963
+ label: "LATITUDE"
3929
3964
  }, {
3930
- label: "EKYC_METER_LONGITUDE",
3931
- key: "meterLongitude"
3965
+ key: "longitude",
3966
+ label: "LONGITUDE"
3967
+ }, {
3968
+ key: "gpsValid",
3969
+ label: "GPS_VALID",
3970
+ isBool: true
3971
+ }, {
3972
+ key: "meterNumber",
3973
+ label: "METER_NUMBER"
3974
+ }, {
3975
+ key: "meterMake",
3976
+ label: "METER_MAKE"
3977
+ }, {
3978
+ key: "meterStatus",
3979
+ label: "METER_STATUS"
3980
+ }, {
3981
+ key: "meterCondition",
3982
+ label: "METER_CONDITION"
3983
+ }, {
3984
+ key: "meterLocation",
3985
+ label: "METER_LOCATION"
3986
+ }, {
3987
+ key: "meterLocationAddress",
3988
+ label: "METER_LOCATION_ADDRESS"
3932
3989
  }, {
3933
- label: "EKYC_WORKING_STATUS",
3934
3990
  key: "workingStatus",
3991
+ label: "WORKING_STATUS"
3992
+ }, {
3993
+ key: "sewerConnection",
3994
+ label: "SEWER_CONNECTION",
3995
+ isBool: true
3996
+ }, {
3997
+ key: "septicTank",
3998
+ label: "SEPTIC_TANK",
3935
3999
  isBool: true
3936
4000
  }, {
3937
- label: "EKYC_LAST_BILL_RAISED",
3938
4001
  key: "lastBillRaised",
4002
+ label: "LAST_BILL_RAISED",
4003
+ isBool: true
4004
+ }, {
4005
+ key: "lastBillReceivedDate",
4006
+ label: "LAST_BILL_RECEIVED_DATE"
4007
+ }, {
4008
+ key: "accessToMeter",
4009
+ label: "ACCESS_TO_METER",
4010
+ isBool: true
4011
+ }, {
4012
+ key: "systemMeterId",
4013
+ label: "SYSTEM_METER_ID"
4014
+ }, {
4015
+ key: "lastBillNotRaisedReason",
4016
+ label: "LAST_BILL_NOT_RAISED_REASON"
4017
+ }, {
4018
+ key: "waterConnectionYears",
4019
+ label: "WATER_CONNECTION_YEARS"
4020
+ }, {
4021
+ key: "sewerConnectionYears",
4022
+ label: "SEWER_CONNECTION_YEARS"
4023
+ }, {
4024
+ key: "pidNumber",
4025
+ label: "PID_NUMBER"
4026
+ }, {
4027
+ key: "propertyType",
4028
+ label: "PROPERTY_TYPE"
4029
+ }, {
4030
+ key: "subPropertyCategory",
4031
+ label: "SUB_PROPERTY_CATEGORY"
4032
+ }, {
4033
+ key: "noOfFloor",
4034
+ label: "NO_OF_FLOOR"
4035
+ }, {
4036
+ key: "noOfRooms",
4037
+ label: "NO_OF_ROOMS"
4038
+ }, {
4039
+ key: "noOfBeds",
4040
+ label: "NO_OF_BEDS"
4041
+ }, {
4042
+ key: "numberOfDwellingUnits",
4043
+ label: "NUMBER_OF_DWELLING_UNITS"
4044
+ }, {
4045
+ key: "floorNo",
4046
+ label: "FLOOR_NO"
4047
+ }, {
4048
+ key: "userType",
4049
+ label: "USER_TYPE"
4050
+ }, {
4051
+ key: "tenantName",
4052
+ label: "TENANT_NAME"
4053
+ }, {
4054
+ key: "tenantMobile",
4055
+ label: "TENANT_MOBILE"
4056
+ }, {
4057
+ key: "verificationStatus",
4058
+ label: "VERIFICATION_STATUS"
4059
+ }, {
4060
+ key: "houseBuiltDuration",
4061
+ label: "HOUSE_BUILT_DURATION"
4062
+ }, {
4063
+ key: "surveyorId",
4064
+ label: "SURVEYOR_ID"
4065
+ }, {
4066
+ key: "supervisorId",
4067
+ label: "SUPERVISOR_ID"
4068
+ }, {
4069
+ key: "vendorId",
4070
+ label: "VENDOR_ID"
4071
+ }, {
4072
+ key: "assignmentType",
4073
+ label: "ASSIGNMENT_TYPE"
4074
+ }, {
4075
+ key: "assignmentValue",
4076
+ label: "ASSIGNMENT_VALUE"
4077
+ }, {
4078
+ key: "assignedTime",
4079
+ label: "ASSIGNED_TIME"
4080
+ }, {
4081
+ key: "isSelfAssigned",
4082
+ label: "IS_SELF_ASSIGNED",
3939
4083
  isBool: true
3940
4084
  }, {
3941
- label: "EKYC_SYSTEM_METER_ID",
3942
- key: "systemMeterId"
4085
+ key: "modifiedBy",
4086
+ label: "MODIFIED_BY"
4087
+ }, {
4088
+ key: "emailId",
4089
+ label: "EMAIL_ID"
4090
+ }, {
4091
+ key: "dob",
4092
+ label: "DOB"
4093
+ }, {
4094
+ key: "consumerType",
4095
+ label: "CONSUMER_TYPE"
4096
+ }, {
4097
+ key: "createdTime",
4098
+ label: "CREATED_TIME"
4099
+ }, {
4100
+ key: "lastModifiedTime",
4101
+ label: "LAST_MODIFIED_TIME"
4102
+ }, {
4103
+ key: "meterLatitude",
4104
+ label: "EKYC_METER_LATITUDE1"
4105
+ }, {
4106
+ key: "meterLongitude",
4107
+ label: "EKYC_METER_LONGITUDE1"
3943
4108
  }];
3944
4109
  const handleDeclaration = () => setAgree(!agree);
3945
4110
  const handleReject = function () {
@@ -4048,65 +4213,15 @@ const Review = () => {
4048
4213
  }
4049
4214
  };
4050
4215
  if (isSearchLoading || isSubmitting) return /*#__PURE__*/React.createElement(Loader, null);
4051
- const baseUrl = "/digit-ui/employee/ekyc";
4052
4216
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Card, {
4053
4217
  className: "overflow-y-scroll"
4054
4218
  }, /*#__PURE__*/React.createElement(ReviewSection, {
4055
- title: t("EKYC_CONNECTION_DETAILS"),
4056
- fields: connectionFields,
4057
- newData: connectionData,
4058
- oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.connection,
4219
+ title: t("EKYC_ALL_DETAILS") || "All Details",
4220
+ fields: headerMapping,
4221
+ newData: flatNewData,
4222
+ oldData: flatOldData,
4059
4223
  t: t,
4060
- jumpTo: baseUrl + "/consumer-details?kno=" + activeKno,
4061
- state: _extends({}, flowState, {
4062
- kNumber: activeKno,
4063
- kno: activeKno,
4064
- reviewData: searchData,
4065
- edits
4066
- }),
4067
- hideEditButton: hideEditButton
4068
- }), /*#__PURE__*/React.createElement(ReviewSection, {
4069
- title: t("EKYC_ADDRESS_DETAILS"),
4070
- fields: addressFields,
4071
- newData: addressData,
4072
- oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.address,
4073
- t: t,
4074
- jumpTo: baseUrl + "/address-details?kno=" + activeKno,
4075
- state: _extends({}, flowState, {
4076
- kNumber: activeKno,
4077
- kno: activeKno,
4078
- reviewData: searchData,
4079
- edits
4080
- }),
4081
- hideEditButton: hideEditButton
4082
- }), /*#__PURE__*/React.createElement(ReviewSection, {
4083
- title: t("EKYC_PROPERTY_INFO"),
4084
- fields: propertyFields,
4085
- newData: propertyData,
4086
- oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.property,
4087
- t: t,
4088
- jumpTo: baseUrl + "/property-info?kno=" + activeKno,
4089
- state: _extends({}, flowState, {
4090
- kNumber: activeKno,
4091
- kno: activeKno,
4092
- reviewData: searchData,
4093
- edits
4094
- }),
4095
- hideEditButton: hideEditButton
4096
- }), /*#__PURE__*/React.createElement(ReviewSection, {
4097
- title: t("EKYC_METER_DETAILS"),
4098
- fields: meterFields,
4099
- newData: meterData,
4100
- oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.meter,
4101
- t: t,
4102
- jumpTo: baseUrl + "/meter-details?kno=" + activeKno,
4103
- state: _extends({}, flowState, {
4104
- kNumber: activeKno,
4105
- kno: activeKno,
4106
- reviewData: searchData,
4107
- edits
4108
- }),
4109
- hideEditButton: hideEditButton
4224
+ hideEditButton: true
4110
4225
  }), /*#__PURE__*/React.createElement("div", {
4111
4226
  style: {
4112
4227
  marginTop: "40px"