@mseva/digit-ui-module-ndc 1.0.33 → 1.0.34
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/dist/index.js +50 -45
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +50 -45
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -11893,7 +11893,7 @@ const NewNDCStepFormOne = ({
|
|
|
11893
11893
|
}
|
|
11894
11894
|
};
|
|
11895
11895
|
const updateApplication = async data => {
|
|
11896
|
-
var _Digit$UserService$ge2, _user$info5, _user$info6, _data$PropertyDetails1, _user$info7, _user$info8,
|
|
11896
|
+
var _Digit$UserService$ge2, _user$info5, _user$info6, _data$PropertyDetails1, _user$info7, _user$info8, _checkFormData$respon3, _checkFormData$respon4, _checkFormData$respon5, _data$NDCReason2, _data$cpt1, _data$cpt1$details, _response$ResponseInf2;
|
|
11897
11897
|
const applicant = ((_Digit$UserService$ge2 = Digit.UserService.getUser()) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.info) || {};
|
|
11898
11898
|
const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
|
|
11899
11899
|
console.log("data===?????", data);
|
|
@@ -11905,52 +11905,57 @@ const NewNDCStepFormOne = ({
|
|
|
11905
11905
|
emailId: user === null || user === void 0 ? void 0 : (_user$info7 = user.info) === null || _user$info7 === void 0 ? void 0 : _user$info7.emailId,
|
|
11906
11906
|
type: user === null || user === void 0 ? void 0 : (_user$info8 = user.info) === null || _user$info8 === void 0 ? void 0 : _user$info8.type
|
|
11907
11907
|
}];
|
|
11908
|
-
|
|
11909
|
-
((
|
|
11910
|
-
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
|
|
11926
|
-
|
|
11927
|
-
uuid: sc === null || sc === void 0 ? void 0 : (_sc$billData4 = sc.billData) === null || _sc$billData4 === void 0 ? void 0 : _sc$billData4.id,
|
|
11928
|
-
applicantId: applicantId,
|
|
11929
|
-
businessService: "SW",
|
|
11930
|
-
consumerCode: sc === null || sc === void 0 ? void 0 : sc.connectionNo,
|
|
11931
|
-
additionalDetails: {
|
|
11932
|
-
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails13 = data.PropertyDetails) === null || _data$PropertyDetails13 === void 0 ? void 0 : _data$PropertyDetails13.address,
|
|
11933
|
-
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt8 = data.cpt) === null || _data$cpt8 === void 0 ? void 0 : (_data$cpt8$details = _data$cpt8.details) === null || _data$cpt8$details === void 0 ? void 0 : _data$cpt8$details.usageCategory
|
|
11934
|
-
},
|
|
11935
|
-
dueAmount: (sc === null || sc === void 0 ? void 0 : (_sc$billData5 = sc.billData) === null || _sc$billData5 === void 0 ? void 0 : _sc$billData5.totalAmount) || 0,
|
|
11936
|
-
status: sc === null || sc === void 0 ? void 0 : (_sc$billData6 = sc.billData) === null || _sc$billData6 === void 0 ? void 0 : _sc$billData6.status
|
|
11908
|
+
let ndcDetails = [];
|
|
11909
|
+
if ((checkFormData === null || checkFormData === void 0 ? void 0 : (_checkFormData$respon3 = checkFormData.responseData) === null || _checkFormData$respon3 === void 0 ? void 0 : (_checkFormData$respon4 = _checkFormData$respon3[0]) === null || _checkFormData$respon4 === void 0 ? void 0 : (_checkFormData$respon5 = _checkFormData$respon4.NdcDetails) === null || _checkFormData$respon5 === void 0 ? void 0 : _checkFormData$respon5.length) > 0) {
|
|
11910
|
+
ndcDetails = checkFormData.responseData[0].NdcDetails;
|
|
11911
|
+
} else {
|
|
11912
|
+
var _ref, _data$PropertyDetails10, _ref2, _data$PropertyDetails12, _data$PropertyDetails14, _data$PropertyDetails15;
|
|
11913
|
+
(_ref = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails10 = data.PropertyDetails) === null || _data$PropertyDetails10 === void 0 ? void 0 : _data$PropertyDetails10.waterConnection) || []) === null || _ref === void 0 ? void 0 : _ref.forEach(wc => {
|
|
11914
|
+
var _wc$billData4, _data$PropertyDetails11, _data$cpt7, _data$cpt7$details, _wc$billData5, _wc$billData6;
|
|
11915
|
+
ndcDetails.push({
|
|
11916
|
+
uuid: wc === null || wc === void 0 ? void 0 : (_wc$billData4 = wc.billData) === null || _wc$billData4 === void 0 ? void 0 : _wc$billData4.id,
|
|
11917
|
+
applicantId: applicantId,
|
|
11918
|
+
businessService: "WS",
|
|
11919
|
+
consumerCode: wc === null || wc === void 0 ? void 0 : wc.connectionNo,
|
|
11920
|
+
additionalDetails: {
|
|
11921
|
+
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails11 = data.PropertyDetails) === null || _data$PropertyDetails11 === void 0 ? void 0 : _data$PropertyDetails11.address,
|
|
11922
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt7 = data.cpt) === null || _data$cpt7 === void 0 ? void 0 : (_data$cpt7$details = _data$cpt7.details) === null || _data$cpt7$details === void 0 ? void 0 : _data$cpt7$details.usageCategory
|
|
11923
|
+
},
|
|
11924
|
+
dueAmount: (wc === null || wc === void 0 ? void 0 : (_wc$billData5 = wc.billData) === null || _wc$billData5 === void 0 ? void 0 : _wc$billData5.totalAmount) || 0,
|
|
11925
|
+
status: wc === null || wc === void 0 ? void 0 : (_wc$billData6 = wc.billData) === null || _wc$billData6 === void 0 ? void 0 : _wc$billData6.status
|
|
11926
|
+
});
|
|
11937
11927
|
});
|
|
11938
|
-
|
|
11939
|
-
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
|
|
11943
|
-
|
|
11944
|
-
|
|
11945
|
-
|
|
11946
|
-
|
|
11947
|
-
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
|
|
11951
|
-
|
|
11952
|
-
status: billData === null || billData === void 0 ? void 0 : billData.status
|
|
11928
|
+
(_ref2 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails12 = data.PropertyDetails) === null || _data$PropertyDetails12 === void 0 ? void 0 : _data$PropertyDetails12.sewerageConnection) || []) === null || _ref2 === void 0 ? void 0 : _ref2.forEach(sc => {
|
|
11929
|
+
var _sc$billData4, _data$PropertyDetails13, _data$cpt8, _data$cpt8$details, _sc$billData5, _sc$billData6;
|
|
11930
|
+
ndcDetails.push({
|
|
11931
|
+
uuid: sc === null || sc === void 0 ? void 0 : (_sc$billData4 = sc.billData) === null || _sc$billData4 === void 0 ? void 0 : _sc$billData4.id,
|
|
11932
|
+
applicantId: applicantId,
|
|
11933
|
+
businessService: "SW",
|
|
11934
|
+
consumerCode: sc === null || sc === void 0 ? void 0 : sc.connectionNo,
|
|
11935
|
+
additionalDetails: {
|
|
11936
|
+
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails13 = data.PropertyDetails) === null || _data$PropertyDetails13 === void 0 ? void 0 : _data$PropertyDetails13.address,
|
|
11937
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt8 = data.cpt) === null || _data$cpt8 === void 0 ? void 0 : (_data$cpt8$details = _data$cpt8.details) === null || _data$cpt8$details === void 0 ? void 0 : _data$cpt8$details.usageCategory
|
|
11938
|
+
},
|
|
11939
|
+
dueAmount: (sc === null || sc === void 0 ? void 0 : (_sc$billData5 = sc.billData) === null || _sc$billData5 === void 0 ? void 0 : _sc$billData5.totalAmount) || 0,
|
|
11940
|
+
status: sc === null || sc === void 0 ? void 0 : (_sc$billData6 = sc.billData) === null || _sc$billData6 === void 0 ? void 0 : _sc$billData6.status
|
|
11941
|
+
});
|
|
11953
11942
|
});
|
|
11943
|
+
if (data !== null && data !== void 0 && (_data$PropertyDetails14 = data.PropertyDetails) !== null && _data$PropertyDetails14 !== void 0 && (_data$PropertyDetails15 = _data$PropertyDetails14.propertyBillData) !== null && _data$PropertyDetails15 !== void 0 && _data$PropertyDetails15.billData) {
|
|
11944
|
+
var _data$PropertyDetails16, _data$PropertyDetails17, _data$cpt9, _data$PropertyDetails18, _data$cpt0, _data$cpt0$details;
|
|
11945
|
+
const billData = data === null || data === void 0 ? void 0 : (_data$PropertyDetails16 = data.PropertyDetails) === null || _data$PropertyDetails16 === void 0 ? void 0 : (_data$PropertyDetails17 = _data$PropertyDetails16.propertyBillData) === null || _data$PropertyDetails17 === void 0 ? void 0 : _data$PropertyDetails17.billData;
|
|
11946
|
+
ndcDetails.push({
|
|
11947
|
+
uuid: billData === null || billData === void 0 ? void 0 : billData.id,
|
|
11948
|
+
applicantId: applicantId,
|
|
11949
|
+
businessService: "PT",
|
|
11950
|
+
consumerCode: data === null || data === void 0 ? void 0 : (_data$cpt9 = data.cpt) === null || _data$cpt9 === void 0 ? void 0 : _data$cpt9.id,
|
|
11951
|
+
additionalDetails: {
|
|
11952
|
+
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails18 = data.PropertyDetails) === null || _data$PropertyDetails18 === void 0 ? void 0 : _data$PropertyDetails18.address,
|
|
11953
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt0 = data.cpt) === null || _data$cpt0 === void 0 ? void 0 : (_data$cpt0$details = _data$cpt0.details) === null || _data$cpt0$details === void 0 ? void 0 : _data$cpt0$details.usageCategory
|
|
11954
|
+
},
|
|
11955
|
+
dueAmount: (billData === null || billData === void 0 ? void 0 : billData.totalAmount) || 0,
|
|
11956
|
+
status: billData === null || billData === void 0 ? void 0 : billData.status
|
|
11957
|
+
});
|
|
11958
|
+
}
|
|
11954
11959
|
}
|
|
11955
11960
|
const payload = {
|
|
11956
11961
|
Applications: [{
|