Files
collection-portal/__mocks__/field-feedback.json
Priyank Rastogi 704b7990f5 TP-27115 | field feedback (#324)
* TP-27115 | field feeback tab

* TP-27115 | code cleanup

* TP-27115 | width fix

* TP-27115 | types fix

* TP-27115 | headers name

* TP-27115 | update api payload page size

* TP-27115 | modal z-index bug fix

* TP-27115 | suggested changes
2023-05-04 14:56:46 +05:30

330 lines
12 KiB
JSON

{
"data": [
{
"id": 27105,
"referenceId": "6f9979c6-edba-4428-b4ed-7e1ca06e2178",
"type": "FIELD_VISIT",
"accountNumber": "013306760",
"agentReferenceId": "fd1fb86c-c2e8-42fb-8f29-3acafc417a51",
"sourceType": "PRIMARY_ADDRESS",
"source": {
"city": "Bengaluru",
"type": "CORRESPONDENCE",
"state": "KARNATAKA",
"source": "PRIMARY",
"current": "false",
"lineOne": "xhtxhrzhrzgfz, zbfxngckgcjtdjtd",
"lineTwo": "snxjxnxjxjxj",
"pinCode": "560076",
"latitude": null,
"longitude": null,
"permanent": "false",
"referenceId": "c66cdf8a-b5a4-44ed-a8dc-2f859a7719b3",
"addressServiceAddress": "false"
},
"metadata": {
"lat": "12.9267444",
"lng": "77.6659119",
"poi": "",
"tag": "PAID",
"area": "India",
"city": "Bengaluru",
"state": "Karnataka",
"street": "6th Main Road",
"pincode": "",
"poiDist": "",
"village": "",
"visited": "null",
"accuracy": "20.0",
"locality": "Bellandur",
"houseName": "",
"X-APP-TYPE": "FIELD_APP",
"streetDist": "64",
"houseNumber": "",
"subDistrict": "Bengaluru East",
"subLocality": "Green Glen Layout",
"subSubLocality": "",
"formattedAddress": "6th Main Road, Green Glen Layout, Bellandur, Bengaluru, Karnataka. Pin-560103 (India)",
"interactionLatitude": "12.9267444",
"interactionLongitude": "77.6659119",
"userDistanceFromAddress": "null"
},
"comments": null,
"createdAt": "2023-03-21T09:39:18.207204",
"answerViews": [
{
"interactionId": 27105,
"referenceId": "21bec835-cfe3-40fb-8662-18e0687d94e6",
"questionReferenceId": "44a11270-e332-372b-bf7f-e30749c5e16f",
"questionName": "Adding feedback for - ",
"questionText": "Adding feedback for - ",
"answerType": "OPTIONS",
"optionReferenceId": "5a92933a-548a-3c07-bb00-7da698e88cbb",
"optionText": "Visit",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27105,
"referenceId": "58a8274f-9fd0-402f-9ac8-09e3f4f94bb6",
"questionReferenceId": "95e80582-d20c-3c6e-882e-04f5b29dec06",
"questionName": "Location found",
"questionText": "Were you able to find the location?",
"answerType": "OPTIONS",
"optionReferenceId": "2f31433e-69df-38a1-9b13-c132c1d0ce2b",
"optionText": "Yes",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27105,
"referenceId": "eb4748b2-22eb-406f-b7fb-79092f7ddcc3",
"questionReferenceId": "ba485acd-c012-3225-8d54-3df46c4fbd3d",
"questionName": "Customer found",
"questionText": "Were you able to meet the customer?",
"answerType": "OPTIONS",
"optionReferenceId": "a64d5c1e-ccdc-33ee-a281-c61e5cb51ec6",
"optionText": "Yes",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27105,
"referenceId": "2a04c982-0021-405b-961e-44ee0666b537",
"questionReferenceId": "addbd29f-8e66-3559-bf34-4deef0500b32",
"questionName": "Customer feedback",
"questionText": "Customer feedback",
"answerType": "OPTIONS",
"optionReferenceId": "375344be-42fe-3ebb-af16-0f862c11699a",
"optionText": "Paid",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27105,
"referenceId": "0103b1a6-230e-4a36-884f-a59b66a1f84b",
"questionReferenceId": "d5542602-87a8-314d-a1fb-49d4b3eafec0",
"questionName": "Interaction Language",
"questionText": "Language of interaction",
"answerType": "OPTIONS",
"optionReferenceId": "3609c008-5fab-37c1-9038-827d4937dc8e",
"optionText": "English",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27105,
"referenceId": "e4be509b-4c9d-4f79-9c34-37b215ac59f2",
"questionReferenceId": "e2e1afa3-f77e-3694-8aa4-1c3f87b3618a",
"questionName": "Mode of payment",
"questionText": "Mode of payment",
"answerType": "OPTIONS",
"optionReferenceId": "0e77c6cf-37f5-3ef6-a13d-af390e01a9ce",
"optionText": "App",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27105,
"referenceId": "ad24b47a-f3ec-432c-8ee8-9796cdcb8503",
"questionReferenceId": "9ccf6475-717e-3b38-90db-45136d32d8d9",
"questionName": "Date of payment",
"questionText": "Date of payment",
"answerType": "DATE",
"optionReferenceId": null,
"optionText": null,
"inputAmount": null,
"inputDate": "2023-03-20",
"inputText": null
},
{
"interactionId": 27105,
"referenceId": "05571fc0-0da7-4565-8225-ae000d421a4b",
"questionReferenceId": "8b5a5d30-c1ea-397c-91a5-00292477dea7",
"questionName": "Photo",
"questionText": "Upload Photo",
"answerType": "TEXT",
"optionReferenceId": null,
"optionText": null,
"inputAmount": null,
"inputDate": null,
"inputText": "https://s3.ap-south-1.amazonaws.com/navi-382c5a1109445386b9a74e2da9fa1f64/prod/d3714677-4478-4f5c-83af-83ca890c13b3.png"
}
],
"imageUrls": ["https://picsum.photos/700/300"]
},
{
"id": 27115,
"referenceId": "6f9979c6-edba-4428-b4ed-7e1ca06e2178",
"type": "FIELD_VISIT",
"accountNumber": "013306760",
"agentReferenceId": "fd1fb86c-c2e8-42fb-8f29-3acafc417a51",
"sourceType": "PRIMARY_ADDRESS",
"source": {
"city": "Bengaluru",
"type": "CORRESPONDENCE",
"state": "KARNATAKA",
"source": "PRIMARY",
"current": "false",
"lineOne": "xhtxhrzhrzgfz, zbfxngckgcjtdjtd",
"lineTwo": "snxjxnxjxjxj",
"pinCode": "560076",
"latitude": null,
"longitude": null,
"permanent": "false",
"referenceId": "c66cdf8a-b5a4-44ed-a8dc-2f859a7719b3",
"addressServiceAddress": "false"
},
"metadata": {
"lat": "12.9267444",
"lng": "77.6659119",
"poi": "",
"tag": "PAID",
"area": "India",
"city": "Bengaluru",
"state": "Karnataka",
"street": "6th Main Road",
"pincode": "",
"poiDist": "",
"village": "",
"visited": "null",
"accuracy": "20.0",
"locality": "Bellandur",
"houseName": "",
"X-APP-TYPE": "FIELD_APP",
"streetDist": "64",
"houseNumber": "",
"subDistrict": "Bengaluru East",
"subLocality": "Green Glen Layout",
"subSubLocality": "",
"formattedAddress": "6th Main Road, Green Glen Layout, Bellandur, Bengaluru, Karnataka. Pin-560103 (India)",
"interactionLatitude": "12.9267444",
"interactionLongitude": "77.6659119",
"userDistanceFromAddress": "null"
},
"comments": null,
"createdAt": "2023-03-21T09:39:18.207204",
"answerViews": [
{
"interactionId": 27115,
"referenceId": "21bec835-cfe3-40fb-8662-18e0687d94e6",
"questionReferenceId": "44a11270-e332-372b-bf7f-e30749c5e16f",
"questionName": "Adding feedback for - ",
"questionText": "Adding feedback for - ",
"answerType": "OPTIONS",
"optionReferenceId": "5a92933a-548a-3c07-bb00-7da698e88cbb",
"optionText": "Visit",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27115,
"referenceId": "58a8274f-9fd0-402f-9ac8-09e3f4f94bb6",
"questionReferenceId": "95e80582-d20c-3c6e-882e-04f5b29dec06",
"questionName": "Location found",
"questionText": "Were you able to find the location?",
"answerType": "OPTIONS",
"optionReferenceId": "2f31433e-69df-38a1-9b13-c132c1d0ce2b",
"optionText": "Yes",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27115,
"referenceId": "eb4748b2-22eb-406f-b7fb-79092f7ddcc3",
"questionReferenceId": "ba485acd-c012-3225-8d54-3df46c4fbd3d",
"questionName": "Customer found",
"questionText": "Were you able to meet the customer?",
"answerType": "OPTIONS",
"optionReferenceId": "a64d5c1e-ccdc-33ee-a281-c61e5cb51ec6",
"optionText": "Yes",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27115,
"referenceId": "2a04c982-0021-405b-961e-44ee0666b537",
"questionReferenceId": "addbd29f-8e66-3559-bf34-4deef0500b32",
"questionName": "Customer feedback",
"questionText": "Customer feedback",
"answerType": "OPTIONS",
"optionReferenceId": "375344be-42fe-3ebb-af16-0f862c11699a",
"optionText": "Paid",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27115,
"referenceId": "0103b1a6-230e-4a36-884f-a59b66a1f84b",
"questionReferenceId": "d5542602-87a8-314d-a1fb-49d4b3eafec0",
"questionName": "Interaction Language",
"questionText": "Language of interaction",
"answerType": "OPTIONS",
"optionReferenceId": "3609c008-5fab-37c1-9038-827d4937dc8e",
"optionText": "English",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27115,
"referenceId": "e4be509b-4c9d-4f79-9c34-37b215ac59f2",
"questionReferenceId": "e2e1afa3-f77e-3694-8aa4-1c3f87b3618a",
"questionName": "Mode of payment",
"questionText": "Mode of payment",
"answerType": "OPTIONS",
"optionReferenceId": "0e77c6cf-37f5-3ef6-a13d-af390e01a9ce",
"optionText": "App",
"inputAmount": null,
"inputDate": null,
"inputText": null
},
{
"interactionId": 27115,
"referenceId": "ad24b47a-f3ec-432c-8ee8-9796cdcb8503",
"questionReferenceId": "9ccf6475-717e-3b38-90db-45136d32d8d9",
"questionName": "Date of payment",
"questionText": "Date of payment",
"answerType": "DATE",
"optionReferenceId": null,
"optionText": null,
"inputAmount": null,
"inputDate": "2023-03-20",
"inputText": null
},
{
"interactionId": 27115,
"referenceId": "05571fc0-0da7-4565-8225-ae000d421a4b",
"questionReferenceId": "8b5a5d30-c1ea-397c-91a5-00292477dea7",
"questionName": "Photo",
"questionText": "Upload Photo",
"answerType": "TEXT",
"optionReferenceId": null,
"optionText": null,
"inputAmount": null,
"inputDate": null,
"inputText": "https://s3.ap-south-1.amazonaws.com/navi-382c5a1109445386b9a74e2da9fa1f64/prod/d3714677-4478-4f5c-83af-83ca890c13b3.png"
}
],
"imageUrls": ["https://picsum.photos/600/300"]
}
],
"errors": null,
"pages": {
"pageNo": 0,
"totalPages": 1,
"pageSize": 1,
"totalElements": 1
}
}