diff --git a/CODEOWNERS b/CODEOWNERS index c26bb4c2..88ab2f78 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @egovernments/services-pr-reviewer @narendrabandhamneni-wt-egov +* @egovernments/services-pr-reviewer @kavi-egov @saiprakash-egov diff --git a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json index 6646e995..49545df7 100644 --- a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json +++ b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json @@ -14,7 +14,6 @@ "valueType": "number", "drillChart": "none", "documentType": "_doc", - "filterForCurrentDay": true, "action": "", "aggregationPaths": [ "Todays visits" @@ -53,6 +52,36 @@ }, "_comment": " " }, + "nationalHouseholdCoverage": { + "chartName": "DSS_HEALTH_NATIONAL_TOTAL_HOUSEHOLD_COVERAGE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total visits\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Household Filter\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": {\n \"value\": \"HOUSEHOLD\"\n }\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.province\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total visits", "Overall Target" + ], + "insight": { + }, + "_comment": " " + }, "populationCoveredToday": { "chartName": "DSS_HEALTH_NATIONAL_POPULATION_COVERED_TODAY", "queries": [ @@ -68,7 +97,6 @@ "valueType": "number", "drillChart": "none", "documentType": "_doc", - "filterForCurrentDay": true, "action": "", "aggregationPaths": [ "Population Covered Today" @@ -106,6 +134,36 @@ "insight": {}, "_comment": " " }, + "nationalPopulationCoverage": { + "chartName": "DSS_HEALTH_NATIONAL_TOTAL_POPULATION_COVERAGE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Individual Filter\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": {\n \"value\": \"INDIVIDUAL\"\n }\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.province\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total Population Covered", "Overall Target" + ], + "insight": { + }, + "_comment": " " + }, "todayDistributions": { "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_DISTRIBUTED_TODAY", "queries": [ @@ -121,7 +179,6 @@ "valueType": "number", "drillChart": "none", "documentType": "_doc", - "filterForCurrentDay": true, "action": "", "aggregationPaths": [ "Today Distributions" @@ -160,6 +217,36 @@ }, "_comment": " " }, + "nationalBednetsDistributedCoverage": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_DISTRIBUTED_COVERAGE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Product Filter\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": {\n \"value\": \"PRODUCT\"\n }\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.province\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total Distributions", "Overall Target" + ], + "insight": { + }, + "_comment": " " + }, "householdVisitsWithinDateRange": { "chartName": "DSS_HEALTH_OVERVIEW_HOUSEHOLDS_VISITED_OVER_DATERANGE", "queries": [ @@ -191,7 +278,7 @@ "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\":\"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Households per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\":\"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Households per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "metric", @@ -203,7 +290,7 @@ "Target Households per Day" ], "postAggregationTheory": "repsonseToDifferenceOfDates", - "isCappedByCampaignPeriod": true, + "isCappedByCampaignPeriod": ["Overall Target"], "insight": { }, "_comment": " " @@ -216,7 +303,7 @@ "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Households per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Households per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "metric", @@ -228,7 +315,7 @@ "Target Households per Day" ], "postAggregationTheory": "repsonseToDifferenceOfDates", - "isCappedByCampaignPeriod": true, + "isCappedByCampaignPeriod": ["Overall Target"], "insight": { }, "_comment": " " @@ -238,7 +325,7 @@ "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", + "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", "aggrQuery": "{\"aggs\":{\"Total visits\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.deliveredTo.keyword\":\"HOUSEHOLD\"}},{\"match_phrase\": {\"Data.productVariant\": \"PVAR\"}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}" @@ -367,14 +454,21 @@ "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", "indexName": "project-staff-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"DISTRIBUTOR\",\n \"WAREHOUSE_MANAGER\",\n \"LOCAL_MONITOR\",\n \"NATIONAL_SUPERVISOR\",\n \"DISTRICT_SUPERVISOR\",\n \"PROVINCIAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"NATIONAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total National Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", "indexName": "user-sync-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"DISTRIBUTOR\",\n \"WAREHOUSE_MANAGER\",\n \"LOCAL_MONITOR\",\n \"NATIONAL_SUPERVISOR\",\n \"DISTRICT_SUPERVISOR\",\n \"PROVINCIAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "filterKeys": [ @@ -385,16 +479,18 @@ "documentType": "_doc", "action": "", "plotLabel": "DATA SYNC", - "filterForCurrentDay": true, "excludedColumns": [ - "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" + "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced","Total National Users Created" + ], + "includeConstantColumns" : [ + "Total National Users Created" ], "computedFields": [ { "postAggregationTheory": "", "actionName": "AdditiveComputedField", "fields": [ - "Total Users Created" + "Total Users Created","Total National Users Created" ], "newField": "Total_Users_Created", "_comments": "" @@ -425,22 +521,22 @@ "hideHeaderDenomination": true, "_comment": " " }, - "userSyncSummaryDistrict": { - "chartName": "DSS_HEALTH_USER_SYNC_SUMMARY", + "userSyncByDistributorsProvince": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_DISTRIBUTORS", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", "indexName": "project-staff-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"DISTRIBUTOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", "indexName": "user-sync-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"DISTRIBUTOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n } \n }\n }\n}" } ], "filterKeys": [ @@ -451,7 +547,6 @@ "documentType": "_doc", "action": "", "plotLabel": "DATA SYNC", - "filterForCurrentDay": true, "excludedColumns": [ "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" ], @@ -491,1627 +586,1741 @@ "hideHeaderDenomination": true, "_comment": " " }, - "bednetsTargetProvince": { - "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_TARGET_PROVINCE", + "userSyncByDistributorsProvinceBarChart": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_DISTRIBUTORS_BAR_CHART", "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"DISTRIBUTOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filters\": {\n \"filters\": {\n \"nets\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target by Range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target\"\n },\n \"script\": \"(params.target) * 365\"\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"DISTRIBUTOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "metric", - "postAggregationTheory": "repsonseToDifferenceOfDates", - "isCappedByCampaignPeriod": true, - "valueType": "number", + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Target by Range" - ], - "insight": { - }, + "action": "percentage", + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", + "aggregationPaths": ["Sync Rate Percentage","AGGS"], + "insight": { }, "_comment": " " }, - "bednetsTargetDistrict": { - "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_TARGET_DISTRICT", + "userSyncByWmsProvince": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_WAREHOUSE_MANAGERS", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filters\": {\n \"filters\": {\n \"nets\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target by Range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target\"\n },\n \"script\": \"(params.target) * 365\"\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"WAREHOUSE_MANAGER\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"WAREHOUSE_MANAGER\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n } \n }\n }\n}" } ], - "chartType": "metric", - "postAggregationTheory": "repsonseToDifferenceOfDates", - "isCappedByCampaignPeriod": true, + "filterKeys": [ + ], + "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Target by Range" + "plotLabel": "DATA SYNC", + "excludedColumns": [ + "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Users Created" + ], + "newField": "Total_Users_Created", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Unique Users Synced" + ], + "newField": "Unique_Users_Synced", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Unique_Users_Synced", + "Total_Users_Created" + ], + "newField": "User_Sync_Rate", + "_comments": "" + } ], "insight": { }, + "hideInsights": true, + "hideHeaderDenomination": true, "_comment": " " }, - "bednetsDistributionCoverageProvince": { - "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_COVERAGE_PROVINCE", + "userSyncByWmsProvinceBarChart": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_WAREHOUSE_MANAGERS_BAR_CHART", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"WAREHOUSE_MANAGER\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions Coverage\": {\n \"filter\": {\n \"bool\": {\n \"must\":[\n {\n \"term\":{\n \"Data.deliveredTo.keyword\":\"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\":{\n \"Data.productVariant\":\"PVAR\"\n }\n }]\n }\n },\n \"aggs\": {\n \"overallQuantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"WAREHOUSE_MANAGER\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "metric", + "chartType": "line", + "isCumulative": false, "valueType": "percentage", - "isCappedTillToday":true, + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", "action": "percentage", - "aggregationPaths": [ - "Total Distributions Coverage", - "Bednets Target" - ], - "insight": { - "chartResponseMap": "bednetsDistributionCoverage", - "action": "differenceOfNumbers", - "upwardIndicator": "positive", - "downwardIndicator": "negative", - "textMessage": "$indicator$value% than last $insightInterval", - "colorCode": "#228B22", - "insightInterval": "dateRange" - }, + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", + "aggregationPaths": ["Sync Rate Percentage","AGGS"], + "insight": { }, "_comment": " " }, - "bednetsDistributionCoverageDistrict": { - "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_COVERAGE_DISTRICT", + "userSyncByLmsProvince": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_LOCAL_MONITORS", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"LOCAL_MONITOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions Coverage\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"LOCAL_MONITOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n } \n }\n }\n}" } ], - "chartType": "metric", - "valueType": "percentage", - "drillChart": "none", + "filterKeys": [ + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", "documentType": "_doc", - "action": "percentage", - "isCappedTillToday":true, - "aggregationPaths": [ - "Total Distributions Coverage", - "Bednets Target" + "action": "", + "plotLabel": "DATA SYNC", + "excludedColumns": [ + "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" ], - "insight": { - "chartResponseMap": "bednetsDistributionCoverage", - "action": "differenceOfNumbers", - "upwardIndicator": "positive", - "downwardIndicator": "negative", - "textMessage": "$indicator$value% than last $insightInterval", - "colorCode": "#228B22", - "insightInterval": "dateRange" + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Users Created" + ], + "newField": "Total_Users_Created", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Unique Users Synced" + ], + "newField": "Unique_Users_Synced", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Unique_Users_Synced", + "Total_Users_Created" + ], + "newField": "User_Sync_Rate", + "_comments": "" + } + ], + "insight": { }, + "hideInsights": true, + "hideHeaderDenomination": true, "_comment": " " }, - "overviewPopulationCovered": { - "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_COVERED", + "userSyncByLmsProvinceBarChart": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_LOCAL_MONITORS_BAR_CHART", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\":[\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n }, \n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Covered for Date range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "metric", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Population Covered for Date range" - ], - "insight": {}, - "_comment": " " - }, - "overviewTotalPopulationCovered": { - "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_POPULATION_COVERED", - "queries": [ + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"LOCAL_MONITOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"LOCAL_MONITOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "metric", - "valueType": "number", + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Population Covered" - ], - "insight": {}, + "action": "percentage", + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", + "aggregationPaths": ["Sync Rate Percentage","AGGS"], + "insight": { }, "_comment": " " }, - "overviewPopulationTargetedProvince": { - "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_TARGETED_PROVINCE", + "userSyncBySupervisorsProvince": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_SUPERVISORS", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Population per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd) * 365\"\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "metric", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Target Population per Day" - ], - "postAggregationTheory": "repsonseToDifferenceOfDates", - "isCappedByCampaignPeriod": true, - "insight": {}, - "_comment": " " - }, - "overviewPopulationTargetedDistrict": { - "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_TARGETED_DISTRICT", - "queries": [ + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"NATIONAL_SUPERVISOR\",\n \"PROVINCIAL_SUPERVISOR\",\n \"DISTRICT_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Population per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd) * 365\"\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"NATIONAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total National Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"NATIONAL_SUPERVISOR\",\n \"PROVINCIAL_SUPERVISOR\",\n \"DISTRICT_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n } \n }\n }\n}" } ], - "chartType": "metric", + "filterKeys": [ + ], + "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Target Population per Day" + "plotLabel": "DATA SYNC", + "excludedColumns": [ + "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced", "Total National Users Created" ], - "postAggregationTheory": "repsonseToDifferenceOfDates", - "isCappedByCampaignPeriod": true, - "insight": {}, - "_comment": " " - }, - "overviewPopulationCoverageAchievedProvince": { - "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_COVERAGE_ACHIEVED_PROVINCE", - "queries": [ + "includeConstantColumns" : [ + "Total National Users Created" + ], + "computedFields": [ { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Covered till Today\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Users Created", + "Total National Users Created" + ], + "newField": "Total_Users_Created", + "_comments": "" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\":{\n \"bool\": {\n \"must\" : [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Population Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Unique Users Synced" + ], + "newField": "Unique_Users_Synced", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Unique_Users_Synced", + "Total_Users_Created" + ], + "newField": "User_Sync_Rate", + "_comments": "" } ], - "chartType": "metric", - "valueType": "percentage", - "isCappedTillToday":true, - "drillChart": "none", - "documentType": "_doc", - "action": "percentage", - "aggregationPaths": [ - "Population Covered till Today", - "Overall Population Target" - ], "insight": { - "chartResponseMap": "provincialOrDistrictPopulationCoverageAchieved", - "action": "differenceOfNumbers", - "upwardIndicator": "positive", - "downwardIndicator": "negative", - "textMessage": "$indicator$value% than last $insightInterval", - "colorCode": "#228B22", - "insightInterval": "dateRange" }, + "hideInsights": true, + "hideHeaderDenomination": true, "_comment": " " }, - "overviewPopulationCoverageAchievedDistrict": { - "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_COVERAGE_ACHIEVED_DISTRICT", + "userSyncBySupervisorsProvinceBarChart": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_SUPERVISORS_BAR_CHART", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Covered till Today\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"NATIONAL_SUPERVISOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"National Supervisors Synced\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\":{\n \"bool\": {\n \"must\" : [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Population Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"PROVINCIAL_SUPERVISOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Provincial Supervisors Synced\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"DISTRICT_SUPERVISOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"District Supervisors Synced\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "metric", - "isCappedTillToday":true, - "valueType": "percentage", + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "action": "", + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", - "action": "percentage", - "aggregationPaths": [ - "Population Covered till Today", - "Overall Population Target" - ], - "insight": { - "chartResponseMap": "provincialOrDistrictPopulationCoverageAchieved", - "action": "differenceOfNumbers", - "upwardIndicator": "positive", - "downwardIndicator": "negative", - "textMessage": "$indicator$value% than last $insightInterval", - "colorCode": "#228B22", - "insightInterval": "dateRange" - }, + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", + "aggregationPaths": ["National Supervisors Synced", "Provincial Supervisors Synced" ,"District Supervisors Synced"], + "insight": { }, "_comment": " " }, - "totalHouseholdsNotDeliveredProvince": { - "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_PROVINCE", + "userSyncSummaryDistrict": { + "chartName": "DSS_HEALTH_USER_SYNC_SUMMARY", "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + }, { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered\": {\n \"terms\": {\n \"field\": \"Data.deliveryComments.keyword\"\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "pie", + "filterKeys": [ + ], + "chartType": "xtable", "valueType": "number", - "showLabel": true, - "drillChart": "totalHouseholdsNotDeliveredDrilldownProvince", + "drillChart": "", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Not Delivered" + "plotLabel": "DATA SYNC", + "excludedColumns": [ + "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" ], - "insight": {}, - "_comment": " " - }, - "totalHouseholdsNotDeliveredDrilldownProvince": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_DRILLDOWN_PROVINCE", - "queries": [ + "computedFields": [ { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.deliveryComments.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered Drilldown\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n }\n }\n }\n}" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Users Created" + ], + "newField": "Total_Users_Created", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Unique Users Synced" + ], + "newField": "Unique_Users_Synced", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Unique_Users_Synced", + "Total_Users_Created" + ], + "newField": "User_Sync_Rate", + "_comments": "" } ], - "chartType": "pie", - "valueType": "number", - "showLabel": true, - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Not Delivered Drilldown" - ], - "insight": {}, + "insight": { + }, + "hideInsights": true, + "hideHeaderDenomination": true, "_comment": " " }, - "totalHouseholdsNotDeliveredDistrict": { - "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_DISTRICT", + "userSyncByDistributorsDistrict": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_DISTRIBUTORS", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered\": {\n \"terms\": {\n \"field\": \"Data.deliveryComments.keyword\"\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"DISTRIBUTOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"DISTRIBUTOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n } \n }\n }\n}" } ], - "chartType": "pie", + "filterKeys": [ + ], + "chartType": "xtable", "valueType": "number", - "showLabel": true, - "drillChart": "totalHouseholdsNotDeliveredDrilldownDistrict", + "drillChart": "", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Not Delivered" + "plotLabel": "DATA SYNC", + "excludedColumns": [ + "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" ], - "insight": {}, - "_comment": " " - }, - "totalHouseholdsNotDeliveredDrilldownDistrict": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_DRILLDOWN_DISTRICT", - "queries": [ + "computedFields": [ { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.deliveryComments.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered Drilldown\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n }\n }\n }\n}" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Users Created" + ], + "newField": "Total_Users_Created", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Unique Users Synced" + ], + "newField": "Unique_Users_Synced", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Unique_Users_Synced", + "Total_Users_Created" + ], + "newField": "User_Sync_Rate", + "_comments": "" } ], - "chartType": "pie", - "valueType": "number", - "showLabel": true, - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Not Delivered Drilldown" - ], - "insight": {}, + "insight": { + }, + "hideInsights": true, + "hideHeaderDenomination": true, "_comment": " " }, - "rdTotalHouseholdsNotDeliveredChartProvince": { - "chartName": "DSS_HEALTH_R_D_TOTAL_HOUSEHOLDS_NOT_DELIVERED_PROVINCE", + "userSyncByDistributorsDistrictBarChart": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_DISTRIBUTORS_BAR_CHART", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Households not Delivered\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households not delivered\": {\n \"filter\": {\n \"term\": {\n \"Data.quantity\": 0\n }\n }, \n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"DISTRIBUTOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Users Synced Count\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "valueType": "number", - "drillChart": "rdTotalHouseholdsNotDeliveredChartDistrict", "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "none", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Households not Delivered" - ], "filterKeys": [{"key": "district"}], - "insight": {}, + "sort": "sortKeyAsc", + "aggregationPaths": ["Users Synced Count"], + "insight": { }, "_comment": " " }, - "rdTotalHouseholdsNotDeliveredChartDistrict": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_NOT_DELIVERED_DISTRICT", + "userSyncByWmsDistrict": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_WAREHOUSE_MANAGERS", "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"WAREHOUSE_MANAGER\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Households not Delivered by AP\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households not delivered\": {\n \"filter\": {\n \"term\": {\n \"Data.quantity\": 0\n }\n }, \n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"WAREHOUSE_MANAGER\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n } \n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "filterKeys": [ + ], + "chartType": "xtable", "valueType": "number", - "drillChart": "rdTotalHouseholdsNotDeliveredChartAp", + "drillChart": "", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Households not Delivered by AP" + "plotLabel": "DATA SYNC", + "excludedColumns": [ + "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" ], - "filterKeys": [{"key": "administrativeProvince"}], - "insight": {}, - "_comment": " " - }, - "rdTotalHouseholdsNotDeliveredChartAp": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_NOT_DELIVERED_AP", - "queries": [ + "computedFields": [ { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Households not Delivered by Locality\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households not delivered\": {\n \"filter\": {\n \"term\": {\n \"Data.quantity\": 0\n }\n }, \n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Users Created" + ], + "newField": "Total_Users_Created", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Unique Users Synced" + ], + "newField": "Unique_Users_Synced", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Unique_Users_Synced", + "Total_Users_Created" + ], + "newField": "User_Sync_Rate", + "_comments": "" } ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "drillChart": "rdTotalHouseholdsNotDeliveredChartLocality", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Households not Delivered by Locality" - ], - "filterKeys": [{"key": "locality"}], - "insight": {}, + "insight": { + }, + "hideInsights": true, + "hideHeaderDenomination": true, "_comment": " " }, - "rdTotalHouseholdsNotDeliveredChartLocality": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_NOT_DELIVERED_LOCALITY", + "userSyncByWmsDistrictBarChart": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_WAREHOUSE_MANAGERS_BAR_CHART", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Households not Delivered by Village\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households not delivered\": {\n \"filter\": {\n \"term\": {\n \"Data.quantity\": 0\n }\n }, \n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"WAREHOUSE_MANAGER\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Synced Users Count\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, "valueType": "number", + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Households not Delivered by Village" - ], - "insight": {}, + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", + "aggregationPaths": ["Synced Users Count"], + "insight": { }, "_comment": " " }, - "rdBednetsDistributedChartProvince": { - "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_PROVINCE", + "userSyncByLmsDistrict": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_LOCAL_MONITORS", "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"LOCAL_MONITOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"LOCAL_MONITOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n } \n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "filterKeys": [ + ], + "chartType": "xtable", "valueType": "number", - "drillChart": "rdBednetsDistributedChartDistrict", + "drillChart": "", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Total No. of Bednets Distributed" + "plotLabel": "DATA SYNC", + "excludedColumns": [ + "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" ], - "filterKeys": [{"key": "district"}], - "insight": { }, - "_comment": " " - }, - "rdBednetsDistributedChartProvincePercent": { - "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_PROVINCE_PERCENT", - "queries": [ + "computedFields": [ { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Users Created" + ], + "newField": "Total_Users_Created", + "_comments": "" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "percentage", - "drillChart": "rdBednetsDistributedChartDistrictPercent", - "documentType": "_doc", - "action": "percentage", - "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], - "filterKeys": [{"key": "district"}], - "computedFields": [ + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Unique Users Synced" + ], + "newField": "Unique_Users_Synced", + "_comments": "" + }, { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Bednets", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Unique_Users_Synced", + "Total_Users_Created" + ], + "newField": "User_Sync_Rate", + "_comments": "" } ], - "insight": { }, + "insight": { + }, + "hideInsights": true, + "hideHeaderDenomination": true, "_comment": " " }, - "rdBednetsDistributedChartDistrict": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_DISTRICT", + "userSyncByLmsDistrictBarChart": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_LOCAL_MONITORS_BAR_CHART", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"LOCAL_MONITOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Synced Users Count\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, "valueType": "number", - "drillChart": "rdBednetsDistributedChartAp", + "plotLabel": "none", + "drillChart": "none", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Total No. of Bednets Distributed" - ], - "filterKeys": [{"key": "administrativeProvince"}], + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", + "aggregationPaths": ["Synced Users Count"], "insight": { }, "_comment": " " }, - "rdBednetsDistributedChartDistrictPercent": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_DISTRICT_PERCENT", + "userSyncBySupervisorsDistrict": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_SUPERVISORS", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"NATIONAL_SUPERVISOR\",\n \"PROVINCIAL_SUPERVISOR\",\n \"DISTRICT_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"NATIONAL_SUPERVISOR\",\n \"PROVINCIAL_SUPERVISOR\",\n \"DISTRICT_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n } \n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, - "valueType": "percentage", - "drillChart": "rdBednetsDistributedChartApPercent", + "filterKeys": [ + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", "documentType": "_doc", - "action": "percentage", - "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], - "filterKeys": [{"key": "administrativeProvince"}], + "action": "", + "plotLabel": "DATA SYNC", + "excludedColumns": [ + "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Bednets", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Users Created" + ], + "newField": "Total_Users_Created", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Unique Users Synced" + ], + "newField": "Unique_Users_Synced", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Unique_Users_Synced", + "Total_Users_Created" + ], + "newField": "User_Sync_Rate", + "_comments": "" } ], - "insight": { }, + "insight": { + }, + "hideInsights": true, + "hideHeaderDenomination": true, "_comment": " " }, - "rdBednetsDistributedChartAp": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_AP", + "userSyncBySupervisorsDistrictBarChart": { + "chartName": "DSS_HEALTH_USER_SYNC_BY_SUPERVISORS_BAR_CHART", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"NATIONAL_SUPERVISOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"National Supervisors Synced\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"PROVINCIAL_SUPERVISOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Provincial Supervisors Synced\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": \"DISTRICT_SUPERVISOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"District Supervisors Synced\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, "valueType": "number", - "drillChart": "rdBednetsDistributedChartLocality", - "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Total No. of Bednets Distributed" - ], - "filterKeys": [{"key": "locality"}], + "plotLabel": "none", + "drillChart": "none", + "documentType": "_doc", + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", + "aggregationPaths": ["National Supervisors Synced", "Provincial Supervisors Synced" ,"District Supervisors Synced"], "insight": { }, "_comment": " " }, - "rdBednetsDistributedChartApPercent": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_AP_PERCENT", + "bednetsTargetProvince": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_TARGET_PROVINCE", "queries": [ - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filters\": {\n \"filters\": {\n \"nets\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target by Range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target\"\n },\n \"script\": \"(params.target) * 365\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, - "valueType": "percentage", - "drillChart": "rdBednetsDistributedChartLocalityPercent", + "chartType": "metric", + "postAggregationTheory": "repsonseToDifferenceOfDates", + "isCappedByCampaignPeriod": ["Overall Target"], + "valueType": "number", + "drillChart": "none", "documentType": "_doc", - "action": "percentage", - "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], - "filterKeys": [{"key": "locality"}], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Bednets", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } + "action": "", + "aggregationPaths": [ + "Target by Range" ], - "insight": { }, + "insight": { + }, "_comment": " " }, - "rdBednetsDistributedChartLocality": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_LOCALITY", + "bednetsTargetDistrict": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_TARGET_DISTRICT", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filters\": {\n \"filters\": {\n \"nets\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target by Range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target\"\n },\n \"script\": \"(params.target) * 365\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "chartType": "metric", + "postAggregationTheory": "repsonseToDifferenceOfDates", + "isCappedByCampaignPeriod": ["Overall Target"], "valueType": "number", "drillChart": "none", "documentType": "_doc", "action": "", "aggregationPaths": [ - "Total No. of Bednets Distributed" + "Target by Range" ], - "insight": { }, + "insight": { + }, "_comment": " " }, - "rdBednetsDistributedChartLocalityPercent": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_DISTRICT_LOCALITY", + "bednetsDistributionCoverageProvince": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_COVERAGE_PROVINCE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions Coverage\": {\n \"filter\": {\n \"bool\": {\n \"must\":[\n {\n \"term\":{\n \"Data.deliveredTo.keyword\":\"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\":{\n \"Data.productVariant\":\"PVAR\"\n }\n }]\n }\n },\n \"aggs\": {\n \"overallQuantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "chartType": "metric", "valueType": "percentage", + "isCappedTillToday":true, "drillChart": "none", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Bednets", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } + "aggregationPaths": [ + "Total Distributions Coverage", + "Bednets Target" ], - "insight": { }, + "insight": { + "chartResponseMap": "bednetsDistributionCoverage", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "dateRange" + }, "_comment": " " }, - "rdPopulationChartProvince": { - "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_PROVINCE", + "bednetsDistributionCoverageDistrict": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_COVERAGE_DISTRICT", "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + }, { "module": "COMMON", "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions Coverage\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "drillChart": "rdPopulationChartDistrict", + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", "documentType": "_doc", - "action": "", + "action": "percentage", + "isCappedTillToday":true, "aggregationPaths": [ - "Total Population Covered" + "Total Distributions Coverage", + "Bednets Target" ], - "filterKeys": [{"key": "district"}], - "insight": { }, + "insight": { + "chartResponseMap": "bednetsDistributionCoverage", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "dateRange" + }, "_comment": " " }, - "rdPopulationChartProvincePercent": { - "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_PROVINCE_PERCENT", + "overviewPopulationCovered": { + "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_COVERED", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\":[\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n }, \n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Covered for Date range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "percentage", - "drillChart": "rdPopulationChartDistrictPercent", + "chartType": "metric", + "valueType": "number", + "drillChart": "none", "documentType": "_doc", - "action": "percentage", - "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], - "filterKeys": [{"key": "district"}], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Covered", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } + "action": "", + "aggregationPaths": [ + "Population Covered for Date range" ], - "insight": { }, + "insight": {}, "_comment": " " }, - "rdPopulationChartDistrict": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_DISTRICT", + "overviewTotalPopulationCovered": { + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_POPULATION_COVERED", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", + "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "chartType": "metric", "valueType": "number", - "drillChart": "rdPopulationChartAP", + "drillChart": "none", "documentType": "_doc", "action": "", "aggregationPaths": [ "Total Population Covered" ], - "filterKeys": [{"key": "administrativeProvince"}], - "insight": { }, + "insight": {}, "_comment": " " }, - "rdPopulationChartDistrictPercent": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_DISTRICT_PERCENT", + "overviewPopulationTargetedProvince": { + "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_TARGETED_PROVINCE", "queries": [ - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" - }, { "module": "COMMON", "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Population per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd) * 365\"\n }\n }\n }\n }\n }\n}" } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "percentage", - "drillChart": "rdPopulationChartApPercent", + "chartType": "metric", + "valueType": "number", + "drillChart": "none", "documentType": "_doc", - "action": "percentage", - "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], - "filterKeys": [{"key": "administrativeProvince"}], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Covered", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } + "action": "", + "aggregationPaths": [ + "Target Population per Day" ], - "insight": { }, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "isCappedByCampaignPeriod": ["Overall Target"], + "insight": {}, "_comment": " " }, - "rdPopulationChartAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_AP", + "overviewPopulationTargetedDistrict": { + "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_TARGETED_DISTRICT", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Population per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd) * 365\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "chartType": "metric", "valueType": "number", - "drillChart": "rdPopulationChartLocality", + "drillChart": "none", "documentType": "_doc", "action": "", "aggregationPaths": [ - "Total Population Covered" + "Target Population per Day" ], - "filterKeys": [{"key": "locality"}], - "insight": { }, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "isCappedByCampaignPeriod": ["Overall Target"], + "insight": {}, "_comment": " " }, - "rdPopulationChartApPercent": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_AP_PERCENT", + "overviewPopulationCoverageAchievedProvince": { + "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_COVERAGE_ACHIEVED_PROVINCE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Covered till Today\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\":{\n \"bool\": {\n \"must\" : [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Population Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }" } - ], - "chartType": "line", - "isCumulative": false, + "chartType": "metric", "valueType": "percentage", - "drillChart": "rdPopulationChartLocalityPercent", - "documentType": "_doc", - "action": "percentage", - "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], - "filterKeys": [{"key": "locality"}], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Covered", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } - ], - "insight": { }, - "_comment": " " - }, - "rdPopulationChartLocality": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_LOCALITY", - "queries": [ - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", + "isCappedTillToday":true, "drillChart": "none", "documentType": "_doc", - "action": "", + "action": "percentage", "aggregationPaths": [ - "Total Population Covered" + "Population Covered till Today", + "Overall Population Target" ], - "insight": { }, + "insight": { + "chartResponseMap": "provincialOrDistrictPopulationCoverageAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "dateRange" + }, "_comment": " " }, - "rdPopulationChartLocalityPercent": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_LOCALITY_PERCENT", + "overviewPopulationCoverageAchievedDistrict": { + "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_COVERAGE_ACHIEVED_DISTRICT", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Covered till Today\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\":{\n \"bool\": {\n \"must\" : [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Population Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }" } - ], - "chartType": "line", - "isCumulative": false, + "chartType": "metric", + "isCappedTillToday":true, "valueType": "percentage", "drillChart": "none", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Covered", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } + "aggregationPaths": [ + "Population Covered till Today", + "Overall Population Target" ], - "insight": { }, + "insight": { + "chartResponseMap": "provincialOrDistrictPopulationCoverageAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "dateRange" + }, "_comment": " " }, - "rdHouseholdsCoveredChartProvince": { - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_PROVINCE", + "totalHouseholdsNotDeliveredProvince": { + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_PROVINCE", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Mais de 6 agregados familiares\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered\": {\n \"terms\": {\n \"field\": \"Data.deliveryComments.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "chartType": "pie", "valueType": "number", - "drillChart": "rdHouseholdsCoveredChartDistrict", + "showLabel": true, + "drillChart": "totalHouseholdsNotDeliveredDrilldownProvince", "documentType": "_doc", "action": "", "aggregationPaths": [ - "Number of households visited" + "Not Delivered" ], - "filterKeys": [{"key": "district"}], - "insight": { }, + "insight": {}, "_comment": " " }, - "rdHouseholdsCoveredChartProvincePercent": { - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_PROVINCE_PERCENT", + "totalHouseholdsNotDeliveredDrilldownProvince": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_DRILLDOWN_PROVINCE", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.deliveryComments.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Entrega com sucesso\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered Drilldown\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Not Delivered Drilldown" + ], + "insight": {}, + "_comment": " " + }, + "totalHouseholdsNotDeliveredDistrict": { + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_DISTRICT", + "queries": [ { "module": "COMMON", - "dateRefField": "", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Mais de 6 agregados familiares\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered\": {\n \"terms\": {\n \"field\": \"Data.deliveryComments.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, - "valueType": "percentage", - "drillChart": "rdHouseholdsCoveredChartDistrictPercent", + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "totalHouseholdsNotDeliveredDrilldownDistrict", "documentType": "_doc", - "action": "percentage", - "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], - "filterKeys": [{"key": "district"}], - "computedFields": [ + "action": "", + "aggregationPaths": [ + "Not Delivered" + ], + "insight": {}, + "_comment": " " + }, + "totalHouseholdsNotDeliveredDrilldownDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_DRILLDOWN_DISTRICT", + "queries": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "fields" : [ "Target for daterange" ], - "newField" : "Households for daterange", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.deliveryComments.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Entrega com sucesso\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered Drilldown\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "insight": { }, + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Not Delivered Drilldown" + ], + "insight": {}, "_comment": " " }, - "rdHouseholdsCoveredChartDistrict": { + "rdTotalHouseholdsNotDeliveredChartProvince": { + "chartName": "DSS_HEALTH_R_D_TOTAL_HOUSEHOLDS_NOT_DELIVERED_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\", \"selectedStack\": \"Data.deliveryComments.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Delivery Comment Filter\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.deliveryComments.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Orientação nacional\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Program Mandate\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Orientação nacional\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Insuficiência de redes\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Insufficent\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Insuficiência de redes\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Mais de 6 agregados familiares\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Member Count\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Mais de 6 agregados familiares\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "plotLabel": "none", + "chartType": "line", + "valueType": "number", + "drillChart": "rdTotalHouseholdsNotDeliveredChartDistrict", + "isCumulative": false, + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Orientação nacional", "Insuficiência de redes" + ], + "filterKeys": [{"key": "district"}], + "insight": {}, + "_comment": " " + }, + "rdTotalHouseholdsNotDeliveredChartDistrict": { "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_DISTRICT", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_NOT_DELIVERED_DISTRICT", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\", \"selectedStack\": \"Data.deliveryComments.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Delivery Comment Filter\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.deliveryComments.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Orientação nacional\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Program Mandate\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Orientação nacional\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Insuficiência de redes\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Insufficent\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Insuficiência de redes\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Mais de 6 agregados familiares\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Member Count\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Mais de 6 agregados familiares\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "plotLabel": "none", "chartType": "line", "isCumulative": false, "valueType": "number", - "drillChart": "rdHouseholdsCoveredChartAp", + "drillChart": "rdTotalHouseholdsNotDeliveredChartAp", "documentType": "_doc", "action": "", "aggregationPaths": [ - "Number of households visited" + "Orientação nacional", "Insuficiência de redes" ], "filterKeys": [{"key": "administrativeProvince"}], - "insight": { }, + "insight": {}, "_comment": " " }, - "rdHouseholdsCoveredChartDistrictPercent": { + "rdTotalHouseholdsNotDeliveredChartAp": { "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_DISTRICT_PERCENT", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_NOT_DELIVERED_AP", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"selectedStack\": \"Data.deliveryComments.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Delivery Comment Filter\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.deliveryComments.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Orientação nacional\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Program Mandate\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Orientação nacional\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Insuficiência de redes\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Insufficent\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Insuficiência de redes\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Mais de 6 agregados familiares\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Member Count\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Mais de 6 agregados familiares\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "plotLabel": "none", "chartType": "line", "isCumulative": false, - "valueType": "percentage", - "drillChart": "rdHouseholdsCoveredChartApPercent", + "valueType": "number", + "drillChart": "rdTotalHouseholdsNotDeliveredChartLocality", "documentType": "_doc", - "action": "percentage", - "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], - "filterKeys": [{"key": "administrativeProvince"}], - "computedFields": [ + "action": "", + "aggregationPaths": [ + "Orientação nacional", "Insuficiência de redes" + ], + "filterKeys": [{"key": "locality"}], + "insight": {}, + "_comment": " " + }, + "rdTotalHouseholdsNotDeliveredChartLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_NOT_DELIVERED_LOCALITY", + "queries": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "fields" : [ "Target for daterange" ], - "newField" : "Households over daterange", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\", \"selectedStack\": \"Data.deliveryComments.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Delivery Comment Filter\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.deliveryComments.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Orientação nacional\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Program Mandate\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Orientação nacional\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Insuficiência de redes\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Insufficent\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Insuficiência de redes\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Mais de 6 agregados familiares\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Member Count\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": {\n \"value\": \"Mais de 6 agregados familiares\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "insight": { }, + "plotLabel": "none", + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Orientação nacional", "Insuficiência de redes" + ], + "insight": {}, "_comment": " " }, - "rdHouseholdsCoveredChartAp": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_AP", + "rdBednetsDistributedChartProvince": { + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_PROVINCE", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, "valueType": "number", - "drillChart": "rdHouseholdsCoveredChartLocality", + "drillChart": "rdBednetsDistributedChartDistrict", "documentType": "_doc", "action": "", "aggregationPaths": [ - "Number of households visited" + "Total No. of Bednets Distributed" ], - "filterKeys": [{"key": "locality"}], + "filterKeys": [{"key": "district"}], "insight": { }, "_comment": " " }, - "rdHouseholdsCoveredChartApPercent": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_AP_PERCENT", + "rdBednetsDistributedChartProvincePercent": { + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_PROVINCE_PERCENT", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, "valueType": "percentage", - "drillChart": "rdHouseholdsCoveredChartLocalityPercent", + "drillChart": "rdBednetsDistributedChartDistrictPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], - "filterKeys": [{"key": "locality"}], + "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", "computedFields": [ { "postAggregationTheory" : "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "Target for daterange" ], - "newField" : "Households over daterange", + "fields" : [ "TPD" ], + "newField" : "Percentage Bednets", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], "insight": { }, "_comment": " " }, - "rdHouseholdsCoveredChartLocality": { + "rdBednetsDistributedChartDistrict": { "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_LOCALITY", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_DISTRICT", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, "valueType": "number", - "drillChart": "none", + "drillChart": "rdBednetsDistributedChartAp", "documentType": "_doc", "action": "", "aggregationPaths": [ - "Number of households visited" + "Total No. of Bednets Distributed" ], + "filterKeys": [{"key": "administrativeProvince"}], "insight": { }, "_comment": " " }, - "rdHouseholdsCoveredChartLocalityPercent": { + "rdBednetsDistributedChartDistrictPercent": { "kind": "drillDown", - "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_LOCALITY_PERCENT", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_DISTRICT_PERCENT", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, "valueType": "percentage", - "drillChart": "none", + "drillChart": "rdBednetsDistributedChartApPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], + "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "filterKeys": [{"key": "administrativeProvince"}], + "sort": "sortKeyAsc", "computedFields": [ { "postAggregationTheory" : "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "Target for daterange" ], - "newField" : "Households over daterange", + "fields" : [ "TPD" ], + "newField" : "Percentage Bednets", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], "insight": { }, "_comment": " " }, - "rdUncoveredPopulationProvince": { - "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_PROVINCE", + "rdBednetsDistributedChartAp": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_AP", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", - "_comments": "" - } - ], "isCumulative": false, - "isCappedTillToday":true, "valueType": "number", - "drillChart": "rdUncoveredPopulationDistrict", + "drillChart": "rdBednetsDistributedChartLocality", "documentType": "_doc", - "targetLineChart": "rdUncoveredPopulationTargetLineProvince", - "computeMultiPaths": true, - "filterKeys": [{"key": "district"}], - "aggregationPaths": ["Overall Population target","Total Population covered"], "action": "", + "aggregationPaths": [ + "Total No. of Bednets Distributed" + ], + "filterKeys": [{"key": "locality"}], "insight": { }, "_comment": " " }, - "rdUncoveredPopulationTargetLineProvince": { - "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_PROVINCE_TARGET_LINE", + "rdBednetsDistributedChartApPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_AP_PERCENT", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdBednetsDistributedChartLocalityPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "filterKeys": [{"key": "locality"}], + "sort": "sortKeyAsc", "computedFields": [ { - "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", - "_comments": "" + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "fields" : [ "TPD" ], + "newField" : "Percentage Bednets", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": { }, + "_comment": " " + }, + "rdBednetsDistributedChartLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" } - ], + "chartType": "line", "isCumulative": false, - "isCappedTillToday":true, "valueType": "number", "drillChart": "none", - "computeMultiPaths": true, - "aggregationPaths": ["Overall Population target","Total Population covered"], "documentType": "_doc", "action": "", + "aggregationPaths": [ + "Total No. of Bednets Distributed" + ], "insight": { }, "_comment": " " }, - "rdUncoveredPopulationDistrict": { + "rdBednetsDistributedChartLocalityPercent": { "kind": "drillDown", - "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_DISTRICT", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_DISTRICT_LOCALITY", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "sort": "sortKeyAsc", "computedFields": [ { - "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", - "_comments": "" + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "fields" : [ "TPD" ], + "newField" : "Percentage Bednets", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "isCumulative": false, - "isCappedTillToday":true, - "valueType": "number", - "drillChart": "rdUncoveredPopulationAP", - "documentType": "_doc", - "targetLineChart": "rdUncoveredPopulationTargetLineDistrict", - "computeMultiPaths": true, - "filterKeys": [{"key": "administrativeProvince"}], - "aggregationPaths": ["Overall Population target","Total Population covered"], - "action": "", "insight": { }, "_comment": " " }, - "rdUncoveredPopulationTargetLineDistrict": { - "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_DISTRICT_TARGET_LINE", + "rdPopulationChartProvince": { + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_PROVINCE", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", - "_comments": "" - } - - ], "isCumulative": false, - "isCappedTillToday":true, "valueType": "number", - "drillChart": "none", - "computeMultiPaths": true, - "aggregationPaths": ["Overall Population target","Total Population covered"], + "drillChart": "rdPopulationChartDistrict", "documentType": "_doc", "action": "", + "aggregationPaths": [ + "Total Population Covered" + ], + "filterKeys": [{"key": "district"}], "insight": { }, "_comment": " " }, - "rdUncoveredPopulationAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_AP", + "rdPopulationChartProvincePercent": { + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_PROVINCE_PERCENT", "queries": [ { "module": "COMMON", - "dateRefField": "", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } + ], "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdPopulationChartDistrictPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", "computedFields": [ { - "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", - "_comments": "" + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "fields" : [ "TPD" ], + "newField" : "Percentage Covered", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "isCumulative": false, - "isCappedTillToday":true, - "valueType": "number", - "drillChart": "rdUncoveredPopulationLocality", - "documentType": "_doc", - "targetLineChart": "rdUncoveredPopulationTargetLineAP", - "computeMultiPaths": true, - "filterKeys": [{"key": "locality"}], - "aggregationPaths": ["Overall Population target","Total Population covered"], - "action": "", "insight": { }, "_comment": " " }, - "rdUncoveredPopulationTargetLineAP": { - "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_AP_TARGET_LINE", + "rdPopulationChartDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_DISTRICT", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", - "_comments": "" - } - - ], "isCumulative": false, - "isCappedTillToday":true, "valueType": "number", - "drillChart": "none", - "computeMultiPaths": true, - "aggregationPaths": ["Overall Population target","Total Population covered"], + "drillChart": "rdPopulationChartAP", "documentType": "_doc", "action": "", + "aggregationPaths": [ + "Total Population Covered" + ], + "filterKeys": [{"key": "administrativeProvince"}], "insight": { }, "_comment": " " }, - "rdUncoveredPopulationLocality": { + "rdPopulationChartDistrictPercent": { "kind": "drillDown", - "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_LOCALITY", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_DISTRICT_PERCENT", "queries": [ { "module": "COMMON", - "dateRefField": "", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } + ], "chartType": "line", - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", - "_comments": "" - } - ], "isCumulative": false, - "isCappedTillToday":true, - "valueType": "number", - "drillChart": "none", + "valueType": "percentage", + "drillChart": "rdPopulationChartApPercent", "documentType": "_doc", - "targetLineChart": "rdUncoveredPopulationTargetLineLocality", - "computeMultiPaths": true, - "filterKeys": [{"key": "village"}], - "aggregationPaths": ["Overall Population target","Total Population covered"], - "action": "", + "action": "percentage", + "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "filterKeys": [{"key": "administrativeProvince"}], + "sort": "sortKeyAsc", + "computedFields": [ + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "fields" : [ "TPD" ], + "newField" : "Percentage Covered", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], "insight": { }, "_comment": " " }, - "rdUncoveredPopulationTargetLineLocality": { - "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_LOCALITY_TARGET_LINE", + "rdPopulationChartAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_AP", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", - "_comments": "" - } - - ], "isCumulative": false, - "isCappedTillToday":true, "valueType": "number", - "drillChart": "none", - "computeMultiPaths": true, - "aggregationPaths": ["Overall Population target","Total Population covered"], + "drillChart": "rdPopulationChartLocality", "documentType": "_doc", "action": "", + "aggregationPaths": [ + "Total Population Covered" + ], + "filterKeys": [{"key": "locality"}], "insight": { }, "_comment": " " }, - "daysInventoryStockLastsProvince": { - "chartName": "DSS_HEALTH_OVERVIEW_DAYS_INVENTORY_CAN_LAST_PROVINCE", + "rdPopulationChartApPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_AP_PERCENT", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Days Stock Can Last\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } + ], "chartType": "line", "isCumulative": false, - "valueType": "number", - "drillChart": "none", + "valueType": "percentage", + "drillChart": "rdPopulationChartLocalityPercent", "documentType": "_doc", - "action": "division", - "aggregationPaths": ["No. of Days Stock Can Last", "Target Per Day"], + "action": "percentage", + "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "filterKeys": [{"key": "locality"}], + "sort": "sortKeyAsc", + "computedFields": [ + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "fields" : [ "TPD" ], + "newField" : "Percentage Covered", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], "insight": { }, "_comment": " " }, - "daysInventoryStockLastsDistrict": { - "chartName": "DSS_HEALTH_OVERVIEW_DAYS_INVENTORY_CAN_LAST_DISTRICT", + "rdPopulationChartLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_LOCALITY", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Days Stock Can Last\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\":[\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n }, \n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", @@ -2119,841 +2328,3605 @@ "valueType": "number", "drillChart": "none", "documentType": "_doc", - "action": "division", - "aggregationPaths": ["No. of Days Stock Can Last", "Target Per Day"], + "action": "", + "aggregationPaths": [ + "Total Population Covered" + ], "insight": { }, "_comment": " " }, - "householdsCoverageBarchartByDistrict":{ - "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_DISTRICT", + "rdPopulationChartLocalityPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_LOCALITY_PERCENT", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } + ], "chartType": "line", "isCumulative": false, "valueType": "percentage", - "drillChart": "householdsCoverageBarchartByAP", + "drillChart": "none", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Households Coverage","Households Target"], + "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "sort": "sortKeyAsc", "computedFields": [ { "postAggregationTheory" : "repsonseToDifferenceOfDates", "actionName": "", - "sort": "sortValueDesc", - "fields" : ["Target"], - "newField" : "Coverage", - "_comments": "" + "fields" : [ "TPD" ], + "newField" : "Percentage Covered", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": { }, + "_comment": " " + }, + "rdHouseholdsCoveredChartProvince": { + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdHouseholdsCoveredChartDistrict", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Number of households visited" + ], "filterKeys": [{"key": "district"}], "insight": { }, "_comment": " " }, - "householdsCoverageBarchartByAP":{ - "kind": "drillDown", - "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_AP", + "rdHouseholdsCoveredChartProvincePercent": { + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_PROVINCE_PERCENT", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, "valueType": "percentage", - "drillChart": "householdsCoverageBarchartByLocality", + "drillChart": "rdHouseholdsCoveredChartDistrictPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Households Coverage","Households Target"], + "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", "computedFields": [ { "postAggregationTheory" : "repsonseToDifferenceOfDates", "actionName": "", - "sort": "sortValueDesc", - "fields" : ["Target"], - "newField" : "Coverage", - "_comments": "" + "fields" : [ "Target for daterange" ], + "newField" : "Households for daterange", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "filterKeys": [{"key": "administrativeProvince"}], "insight": { }, "_comment": " " }, - "householdsCoverageBarchartByLocality":{ + "rdHouseholdsCoveredChartDistrict": { "kind": "drillDown", - "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_LOCALITY", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_DISTRICT", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, - "valueType": "percentage", - "drillChart": "householdsCoverageBarchartByVillage", + "valueType": "number", + "drillChart": "rdHouseholdsCoveredChartAp", "documentType": "_doc", - "action": "percentage", - "aggregationPaths": ["Households Coverage","Households Target"], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "", - "sort": "sortValueDesc", - "fields" : ["Target"], - "newField" : "Coverage", - "_comments": "" - } + "action": "", + "aggregationPaths": [ + "Number of households visited" ], - "filterKeys": [{"key": "locality"}], + "filterKeys": [{"key": "administrativeProvince"}], "insight": { }, "_comment": " " }, - "householdsCoverageBarchartByVillage":{ + "rdHouseholdsCoveredChartDistrictPercent": { "kind": "drillDown", - "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_VILLAGE", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_DISTRICT_PERCENT", "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\"}", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, "valueType": "percentage", - "drillChart": "none", + "drillChart": "rdHouseholdsCoveredChartApPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Households Coverage","Households Target"], + "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "filterKeys": [{"key": "administrativeProvince"}], + "sort": "sortKeyAsc", "computedFields": [ { "postAggregationTheory" : "repsonseToDifferenceOfDates", "actionName": "", - "sort": "sortValueDesc", - "fields" : ["Target"], - "newField" : "Coverage", - "_comments": "" + "fields" : [ "Target for daterange" ], + "newField" : "Households over daterange", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], "insight": { }, "_comment": " " }, - "summaryByDistrict": { - "chartName": "DSS_HEALTH_SUMMARY_BY_DISTRICT", + "rdHouseholdsCoveredChartAp": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_AP", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdHouseholdsCoveredChartLocality", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Number of households visited" + ], + "filterKeys": [{"key": "locality"}], + "insight": { }, + "_comment": " " + }, + "rdHouseholdsCoveredChartApPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_AP_PERCENT", + "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Total Bednets distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households distributed count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population covered count\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdHouseholdsCoveredChartLocalityPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "filterKeys": [{"key": "locality"}], + "sort": "sortKeyAsc", + "computedFields": [ { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Bednets distributed count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "fields" : [ "Target for daterange" ], + "newField" : "Households over daterange", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": { }, + "_comment": " " + }, + "rdHouseholdsCoveredChartLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_LOCALITY", + "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Refused\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Household Rejected delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Number of households visited" + ], + "insight": { }, + "_comment": " " + }, + "rdHouseholdsCoveredChartLocalityPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_LOCALITY_PERCENT", + "queries": [ { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Absent\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Household Relocated delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insufficient Resources\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Household Closed delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "district", "column": "District"} - ], - "chartType": "xtable", - "valueType": "number", - - "drillChart": "summaryByAdministrativeProvince", + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "none", "documentType": "_doc", - "action": "", - "plotLabel": "District", - "excludedColumns": ["Household Closed delivery count","Household Relocated delivery count","Household Rejected delivery count","Bednets distributed count","Population covered count","Households distributed count","Quantity","Total Households distributed","Overall Household target","Total Population covered","Overall Population target","Total Bednets distributed","Overall Bednets target"], + "action": "percentage", + "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], + "isCappedByCampaignPeriod": ["Overall Target"], + "sort": "sortKeyAsc", "computedFields": [ { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Households distributed","Overall Household target"], - "newField" : "Target Achievement Household", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Population covered","Overall Population target"], - "newField" : "Target Achievement Population", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Bednets distributed","Overall Bednets target"], - "newField" : "Target Achievement Bednets", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Households distributed count"], - "newField" : "Households distributed", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Population covered count"], - "newField" : "Population covered", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Bednets distributed count"], - "newField" : "Bednets distributed", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected delivery count"], - "newField" : "Non Delivery HH Rejected", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated delivery count"], - "newField" : "Non Delivery HH Relocated", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Household Closed delivery count"], - "newField" : "Non Delivery HH Closed", - "_comments": "" + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "fields" : [ "Target for daterange" ], + "newField" : "Households over daterange", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { - }, - "hideInsights": true, - "hideHeaderDenomination": true, + "insight": { }, "_comment": " " }, - "summaryByAdministrativeProvince": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_SUMMARY_BY_ADMINISTRATIVE_PROVINCE", + "rdUncoveredPopulationProvince": { + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_PROVINCE", "queries": [ { "module": "COMMON", "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.administrativeProvince.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.administrativeProvince.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Total Bednets distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "postAggregationTheory" : "", + "actionName": "SumComputedField", + "fields" : ["Overall Population target","Total Population covered"], + "newField" : "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday":true, + "valueType": "number", + "drillChart": "rdUncoveredPopulationDistrict", + "documentType": "_doc", + "computeMultiPaths": true, + "filterKeys": [{"key": "district"}], + "aggregationPaths": ["Overall Population target","Total Population covered"], + "sort": "sortKeyAsc", + "action": "", + "insight": { }, + "_comment": " " + }, + "rdUncoveredPopulationTargetLineProvince": { + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_PROVINCE_TARGET_LINE", + "queries": [ { "module": "COMMON", "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.administrativeProvince.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Households distributed count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population covered count\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" - }, + "postAggregationTheory" : "", + "actionName": "SumComputedField", + "fields" : ["Overall Population target","Total Population covered"], + "newField" : "Uncovered Population", + "_comments": "" + } + + ], + "isCumulative": false, + "isCappedTillToday":true, + "valueType": "number", + "drillChart": "none", + "computeMultiPaths": true, + "aggregationPaths": ["Overall Population target","Total Population covered"], + "documentType": "_doc", + "action": "", + "insight": { }, + "_comment": " " + }, + "rdUncoveredPopulationDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_DISTRICT", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", + "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Bednets distributed count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.createdTime", + "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Refused\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Household Rejected delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "SumComputedField", + "fields" : ["Overall Population target","Total Population covered"], + "newField" : "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday":true, + "valueType": "number", + "drillChart": "rdUncoveredPopulationAP", + "documentType": "_doc", + "computeMultiPaths": true, + "filterKeys": [{"key": "administrativeProvince"}], + "aggregationPaths": ["Overall Population target","Total Population covered"], + "sort": "sortKeyAsc", + "action": "", + "insight": { }, + "_comment": " " + }, + "rdUncoveredPopulationTargetLineDistrict": { + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_DISTRICT_TARGET_LINE", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", + "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Absent\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Household Relocated delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.createdTime", + "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insufficient Resources\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Household Closed delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "administrativeProvince", "column": "AdministrativeProvince"} - ], - "chartType": "xtable", - "valueType": "number", - "drillChart": "summaryByLocality", - "documentType": "_doc", - "action": "", - "plotLabel": "AdministrativeProvince", - "excludedColumns": ["Household Closed delivery count","Household Relocated delivery count","Household Rejected delivery count","Bednets distributed count","Population covered count","Households distributed count","Quantity","Total Households distributed","Overall Household target","Total Population covered","Overall Population target","Total Bednets distributed","Overall Bednets target"], - + "chartType": "line", "computedFields": [ { "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Households distributed","Overall Household target"], - "newField" : "Target Achievement Household", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Population covered","Overall Population target"], - "newField" : "Target Achievement Population", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Bednets distributed","Overall Bednets target"], - "newField" : "Target Achievement Bednets", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Households distributed count"], - "newField" : "Households distributed", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Population covered count"], - "newField" : "Population covered", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Bednets distributed count"], - "newField" : "Bednets distributed", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected delivery count"], - "newField" : "Non Delivery HH Rejected", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated delivery count"], - "newField" : "Non Delivery HH Relocated", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Household Closed delivery count"], - "newField" : "Non Delivery HH Closed", + "actionName": "SumComputedField", + "fields" : ["Overall Population target","Total Population covered"], + "newField" : "Uncovered Population", "_comments": "" } + ], - "insight": { - }, - "hideInsights": true, - "hideHeaderDenomination": true, + "isCumulative": false, + "isCappedTillToday":true, + "valueType": "number", + "drillChart": "none", + "computeMultiPaths": true, + "aggregationPaths": ["Overall Population target","Total Population covered"], + "documentType": "_doc", + "action": "", + "insight": { }, "_comment": " " }, - "summaryByLocality": { + "rdUncoveredPopulationAP": { "kind": "drillDown", - "chartName": "DSS_HEALTH_SUMMARY_BY_LOCALITY", + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_AP", "queries": [ { "module": "COMMON", "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "SumComputedField", + "fields" : ["Overall Population target","Total Population covered"], + "newField" : "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday":true, + "valueType": "number", + "drillChart": "rdUncoveredPopulationLocality", + "documentType": "_doc", + "computeMultiPaths": true, + "filterKeys": [{"key": "locality"}], + "aggregationPaths": ["Overall Population target","Total Population covered"], + "sort": "sortKeyAsc", + "action": "", + "insight": { }, + "_comment": " " + }, + "rdUncoveredPopulationTargetLineAP": { + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_AP_TARGET_LINE", + "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Total Bednets distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "SumComputedField", + "fields" : ["Overall Population target","Total Population covered"], + "newField" : "Uncovered Population", + "_comments": "" + } + + ], + "isCumulative": false, + "isCappedTillToday":true, + "valueType": "number", + "drillChart": "none", + "computeMultiPaths": true, + "aggregationPaths": ["Overall Population target","Total Population covered"], + "documentType": "_doc", + "action": "", + "insight": { }, + "_comment": " " + }, + "rdUncoveredPopulationLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_LOCALITY", + "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Households distributed count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "SumComputedField", + "fields" : ["Overall Population target","Total Population covered"], + "newField" : "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday":true, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "computeMultiPaths": true, + "aggregationPaths": ["Overall Population target","Total Population covered"], + "sort": "sortKeyAsc", + "action": "", + "insight": { }, + "_comment": " " + }, + "rdUncoveredPopulationTargetLineLocality": { + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_LOCALITY_TARGET_LINE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "SumComputedField", + "fields" : ["Overall Population target","Total Population covered"], + "newField" : "Uncovered Population", + "_comments": "" + } + + ], + "isCumulative": false, + "isCappedTillToday":true, + "valueType": "number", + "drillChart": "none", + "computeMultiPaths": true, + "aggregationPaths": ["Overall Population target","Total Population covered"], + "documentType": "_doc", + "action": "", + "insight": { }, + "_comment": " " + }, + "daysInventoryStockLastsProvince": { + "chartName": "DSS_HEALTH_OVERVIEW_DAYS_INVENTORY_CAN_LAST_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Days Stock Can Last\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "division", + "sort": "sortKeyAsc", + "aggregationPaths": ["No. of Days Stock Can Last", "Target Per Day"], + "insight": { }, + "_comment": " " + }, + "daysInventoryStockLastsDistrict": { + "chartName": "DSS_HEALTH_OVERVIEW_DAYS_INVENTORY_CAN_LAST_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Days Stock Can Last\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\":[\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n }, \n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "division", + "aggregationPaths": ["No. of Days Stock Can Last", "Target Per Day"], + "insight": { }, + "_comment": " " + }, + "householdsCoverageBarchartByDistrict":{ + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "householdsCoverageBarchartByAP", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": ["Households Coverage","Households Target"], + "isCappedByCampaignPeriod": ["Overall Target"], + "computedFields": [ + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "sort": "sortValueDesc", + "fields" : ["Target"], + "newField" : "Coverage", + "_comments": "" + } + ], + "filterKeys": [{"key": "district"}], + "insight": { }, + "_comment": " " + }, + "householdsCoverageBarchartByAP":{ + "kind": "drillDown", + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_AP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "householdsCoverageBarchartByLocality", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": ["Households Coverage","Households Target"], + "isCappedByCampaignPeriod": ["Overall Target"], + "computedFields": [ + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "sort": "sortValueDesc", + "fields" : ["Target"], + "newField" : "Coverage", + "_comments": "" + } + ], + "filterKeys": [{"key": "administrativeProvince"}], + "insight": { }, + "_comment": " " + }, + "householdsCoverageBarchartByLocality":{ + "kind": "drillDown", + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "householdsCoverageBarchartByVillage", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": ["Households Coverage","Households Target"], + "isCappedByCampaignPeriod": ["Overall Target"], + "computedFields": [ + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "sort": "sortValueDesc", + "fields" : ["Target"], + "newField" : "Coverage", + "_comments": "" + } + ], + "filterKeys": [{"key": "locality"}], + "insight": { }, + "_comment": " " + }, + "householdsCoverageBarchartByVillage":{ + "kind": "drillDown", + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_VILLAGE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": ["Households Coverage","Households Target"], + "isCappedByCampaignPeriod": ["Overall Target"], + "computedFields": [ + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "", + "sort": "sortValueDesc", + "fields" : ["Target"], + "newField" : "Coverage", + "_comments": "" + } + ], + "insight": { }, + "_comment": " " + }, + "summaryByDistrict": { + "chartName": "DSS_HEALTH_SUMMARY_BY_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Household target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Bednets target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Total Bednets distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households distributed count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population covered count\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Bednets distributed count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insuficiência de redes\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Household Rejected delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Orientação nacional\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Household Relocated delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + {"key": "district", "column": "District"} + ], + "chartType": "xtable", + "valueType": "number", + + "drillChart": "summaryByAdministrativeProvince", + "documentType": "_doc", + "action": "", + "plotLabel": "District", + "excludedColumns": [ + "target", + "Per Day Household target", + "Per Day Population target", + "Per Day Bednets target", + "Household Relocated delivery count", + "Household Rejected delivery count", + "Bednets distributed count", + "Population covered count", + "Households distributed count", + "Quantity", + "Total Households distributed", + "Overall Household target", + "Total Population covered", + "Overall Population target", + "Total Bednets distributed", + "Overall Bednets target", + "Household Target for Date Range", + "Population Target for Date Range", + "Bednets Target for Date Range"], + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Household target" ], + "newField" : "Household Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Households distributed","Household Target for Date Range"], + "newField" : "Target Achievement Household", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Population target" ], + "newField" : "Population Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Population covered","Population Target for Date Range"], + "newField" : "Target Achievement Population", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Bednets target" ], + "newField" : "Bednets Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Bednets distributed","Bednets Target for Date Range"], + "newField" : "Target Achievement Bednets", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Target for Date Range"], + "newField" : "Households Targeted for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Households distributed count"], + "newField" : "Households distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Population Target for Date Range"], + "newField" : "Population Targeted for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Population covered count"], + "newField" : "Population covered", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Bednets Target for Date Range"], + "newField" : "Bednets Targeted for date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Bednets distributed count"], + "newField" : "Bednets distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Rejected delivery count"], + "newField" : "Non Delivery HH Rejected", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Relocated delivery count"], + "newField" : "Non Delivery HH Relocated", + "_comments": "" + } + ], + "insight": { + }, + "sort": "sortKeyAsc", + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "summaryByAdministrativeProvince": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_SUMMARY_BY_ADMINISTRATIVE_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.administrativeProvince.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Household target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.administrativeProvince.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Bednets target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Total Bednets distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.administrativeProvince.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Households distributed count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population covered count\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Bednets distributed count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insuficiência de redes\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Household Rejected delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Orientação nacional\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Household Relocated delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + {"key": "administrativeProvince", "column": "AdministrativeProvince"} + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "summaryByLocality", + "documentType": "_doc", + "action": "", + "plotLabel": "AdministrativeProvince", + "excludedColumns": [ + "target", + "Per Day Household target", + "Per Day Population target", + "Per Day Bednets target", + "Household Relocated delivery count", + "Household Rejected delivery count", + "Bednets distributed count", + "Population covered count", + "Households distributed count", + "Quantity", + "Total Households distributed", + "Overall Household target", + "Total Population covered", + "Overall Population target", + "Total Bednets distributed", + "Overall Bednets target", + "Household Target for Date Range", + "Population Target for Date Range", + "Bednets Target for Date Range"], + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Household target" ], + "newField" : "Household Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Households distributed","Household Target for Date Range"], + "newField" : "Target Achievement Household", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Population target" ], + "newField" : "Population Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Population covered","Population Target for Date Range"], + "newField" : "Target Achievement Population", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Bednets target" ], + "newField" : "Bednets Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Bednets distributed","Bednets Target for Date Range"], + "newField" : "Target Achievement Bednets", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Target for Date Range"], + "newField" : "Households Targeted for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Households distributed count"], + "newField" : "Households distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Population Target for Date Range"], + "newField" : "Population Targeted for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Population covered count"], + "newField" : "Population covered", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Bednets Target for Date Range"], + "newField" : "Bednets Targeted for date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Bednets distributed count"], + "newField" : "Bednets distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Rejected delivery count"], + "newField" : "Non Delivery HH Rejected", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Relocated delivery count"], + "newField" : "Non Delivery HH Relocated", + "_comments": "" + } + ], + "insight": { + }, + "sort": "sortKeyAsc", + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "summaryByLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_SUMMARY_BY_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Household target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Bednets target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Total Bednets distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Households distributed count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population covered count\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Bednets distributed count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insuficiência de redes\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Household Rejected delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Orientação nacional\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Household Relocated delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + {"key": "locality", "column": "Locality"} + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "summaryByVillage", + "documentType": "_doc", + "action": "", + "plotLabel": "Locality", + "excludedColumns": [ + "target", + "Per Day Household target", + "Per Day Population target", + "Per Day Bednets target", + "Household Relocated delivery count", + "Household Rejected delivery count", + "Bednets distributed count", + "Population covered count", + "Households distributed count", + "Quantity", + "Total Households distributed", + "Overall Household target", + "Total Population covered", + "Overall Population target", + "Total Bednets distributed", + "Overall Bednets target", + "Household Target for Date Range", + "Population Target for Date Range", + "Bednets Target for Date Range"], + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Household target" ], + "newField" : "Household Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Households distributed","Household Target for Date Range"], + "newField" : "Target Achievement Household", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Population target" ], + "newField" : "Population Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Population covered","Population Target for Date Range"], + "newField" : "Target Achievement Population", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Bednets target" ], + "newField" : "Bednets Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Bednets distributed","Bednets Target for Date Range"], + "newField" : "Target Achievement Bednets", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Target for Date Range"], + "newField" : "Households Targeted for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Households distributed count"], + "newField" : "Households distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Population Target for Date Range"], + "newField" : "Population Targeted for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Population covered count"], + "newField" : "Population covered", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Bednets Target for Date Range"], + "newField" : "Bednets Targeted for date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Bednets distributed count"], + "newField" : "Bednets distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Rejected delivery count"], + "newField" : "Non Delivery HH Rejected", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Relocated delivery count"], + "newField" : "Non Delivery HH Relocated", + "_comments": "" + } + ], + "insight": { + }, + "sort": "sortKeyAsc", + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "summaryByVillage": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_SUMMARY_BY_VILLAGE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Household target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Bednets target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Total Bednets distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Per Day Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Households distributed count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population covered count\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Bednets distributed count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insuficiência de redes\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Household Rejected delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Orientação nacional\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Household Relocated delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Village", + "excludedColumns": [ + "target", + "Per Day Household target", + "Per Day Population target", + "Per Day Bednets target", + "Household Relocated delivery count", + "Household Rejected delivery count", + "Bednets distributed count", + "Population covered count", + "Households distributed count", + "Quantity", + "Total Households distributed", + "Overall Household target", + "Total Population covered", + "Overall Population target", + "Total Bednets distributed", + "Overall Bednets target", + "Household Target for Date Range", + "Population Target for Date Range", + "Bednets Target for Date Range"], + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Household target" ], + "newField" : "Household Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Households distributed","Household Target for Date Range"], + "newField" : "Target Achievement Household", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Population target" ], + "newField" : "Population Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Population covered","Population Target for Date Range"], + "newField" : "Target Achievement Population", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Bednets target" ], + "newField" : "Bednets Target for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Bednets distributed","Bednets Target for Date Range"], + "newField" : "Target Achievement Bednets", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Target for Date Range"], + "newField" : "Households Targeted for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Households distributed count"], + "newField" : "Households distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Population Target for Date Range"], + "newField" : "Population Targeted for Date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Population covered count"], + "newField" : "Population covered", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Bednets Target for Date Range"], + "newField" : "Bednets Targeted for date Range", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Bednets distributed count"], + "newField" : "Bednets distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Rejected delivery count"], + "newField" : "Non Delivery HH Rejected", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Relocated delivery count"], + "newField" : "Non Delivery HH Relocated", + "_comments": "" + } + ], + "insight": { + }, + "sort": "sortKeyAsc", + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "summaryByDistrictDay": { + "chartName": "DSS_HEALTH_SUMMARY_BY_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Total Households Visited\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Total Bednets Distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Household Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Population Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Bednets Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insuficiência de redes\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Rejected Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Orientação nacional\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Relocated Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "division", + "plotLabel": "Daily Count", + "excludedColumns": ["S.N.","Daily Population Target","Total Households Visited","Households","Quantity","Total Population Covered","bednets total","Total Bednets Distributed","Daily Household Target","Daily Bednets Target","Household Rejected Delivery Count","Household Relocated Delivery Count"], + "divisorFields": ["Daily Household Target","Daily Population Target","Daily Bednets Target"], + "filterKeys": [ + {"key": "Daily Count", "column": "Daily Count"} + ], + "showFooter": true, + "hideInsights": true, + "hideHeaderDenomination": true, + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Households Visited","Daily Household Target"], + "newField" : "Target Achievement Household", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Population Covered","Daily Population Target"], + "newField" : "Target Achievement Population", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Bednets Distributed","Daily Bednets Target"], + "newField" : "Target Achievement Bednets", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Total Households Visited"], + "newField" : "Households distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Total Population Covered"], + "newField" : "Population covered", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Total Bednets Distributed"], + "newField" : "Bednets distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Rejected Delivery Count"], + "newField" : "Non Delivery HH Rejected", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Relocated Delivery Count"], + "newField" : "Non Delivery HH Relocated", + "_comments": "" + } + ], + "insight": { + }, + "_comment": " " + }, + "summaryByAdministrativeProvinceDay": { + "chartName": "DSS_HEALTH_SUMMARY_BY_ADMINISTRATIVE_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Total Households Visited\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Total Bednets Distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Household Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Population Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Bednets Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insuficiência de redes\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Rejected Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Orientação nacional\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Relocated Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "division", + "plotLabel": "Daily Count", + "excludedColumns": ["S.N.","Daily Population Target","Total Households Visited","Quantity","Total Population Covered","bednets total","Total Bednets Distributed","Daily Household Target","Daily Bednets Target","Household Rejected Delivery Count","Household Relocated Delivery Count"], + "divisorFields": ["Daily Household Target","Daily Population Target","Daily Bednets Target"], + "filterKeys": [ + {"key": "Daily Count", "column": "Daily Count"} + ], + "showFooter": true, + "hideInsights": true, + "hideHeaderDenomination": true, + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Households Visited","Daily Household Target"], + "newField" : "Target Achievement Household", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Population Covered","Daily Population Target"], + "newField" : "Target Achievement Population", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Bednets Distributed","Daily Bednets Target"], + "newField" : "Target Achievement Bednets", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Total Households Visited"], + "newField" : "Households distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Total Population Covered"], + "newField" : "Population covered", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Total Bednets Distributed"], + "newField" : "Bednets distributed", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Rejected Delivery Count"], + "newField" : "Non Delivery HH Rejected", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Household Relocated Delivery Count"], + "newField" : "Non Delivery HH Relocated", + "_comments": "" + } + ], + "insight": { + }, + "_comment": " " + }, + "actualVsPlannedHouseholdLineGraphProvince": { + "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_HOUSEHOLD_LINE_GRAPH_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Household Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target Household\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": true, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "predictionPath" : "Household Target", + "distributionPath": "Household Distribution", + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Household Target","Household Distribution" + ], + "insight": { }, + "_comment": " " + }, + "actualVsPlannedBednetsLineGraphProvince": { + "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_BEDNETS_LINE_GRAPH_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Bednets Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": true, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "predictionPath" : "Bednets Target", + "distributionPath": "Bednets Distribution", + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Bednets Target","Bednets Distribution" + ], + "insight": { }, + "_comment": " " + }, + "actualVsPlannedPopulationLineGraphProvince": { + "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_POPULATION_LINE_GRAPH_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population distributed\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Day wise distributions\"\n },\n \"script\": \"params.target*1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Population Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": true, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "predictionPath" : "Population Target", + "distributionPath": "Population Distribution", + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Population Target","Population Distribution" + ], + "insight": { }, + "_comment": " " + }, + "actualVsPlannedHouseholdLineGraphDistrict": { + "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_HOUSEHOLD_LINE_GRAPH_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Household Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target Household\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": true, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "predictionPath" : "Household Target", + "distributionPath": "Household Distribution", + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Household Target", "Household Distribution" + ], + "insight": { }, + "_comment": " " + }, + "actualVsPlannedBednetsLineGraphDistrict": { + "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_BEDNETS_LINE_GRAPH_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Bednets Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": true, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "predictionPath" : "Bednets Target", + "distributionPath": "Bednets Distribution", + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Bednets Target","Bednets Distribution" + ], + "insight": { }, + "_comment": " " + }, + "actualVsPlannedPopulationLineGraphDistrict": { + "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_POPULATION_LINE_GRAPH_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population distributed\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Day wise distributions\"\n },\n \"script\": \"params.target*1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Population Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": true, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "predictionPath" : "Population Target", + "distributionPath": "Population Distribution", + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Population Target","Population Distribution" + ], + "insight": { }, + "_comment": " " + }, + "inventoryStockInHandProvince": { + "chartName": "DSS_HEALTH_INVENTORY_STOCK_IN_HAND_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by district\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value*(-1)\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "SumComputedField", + "fields" : ["Overall Target","Distributions by district"], + "newField" : "Required Stock", + "_comments": "" + } + + ], + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "computeMultiPaths": true, + "aggregationPaths": ["Available Stock","Overall Target","Distributions by district"], + "insight": { }, + "_comment": " " + }, + "inventoryStockInHandDistrict": { + "chartName": "DSS_HEALTH_INVENTORY_STOCK_IN_HAND_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by APs\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value*(-1)\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "SumComputedField", + "fields" : ["Overall Target","Distributions by APs"], + "newField" : "Required Stock", + "_comments": "" + } + + ], + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "computeMultiPaths": true, + "aggregationPaths": ["Available Stock","Overall Target","Distributions by APs"], + "insight": { }, + "_comment": " " + }, + "householdsCoverageHeatMap": { + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_HEATMAP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.province.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"total_count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "householdsCoverageHeatMapProvince", + "documentType": "_doc", + "action": "", + "plotLabel": "Province", + "excludedColumns": [ + "S.N.", + "Overall Household target" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Overall Household target" + ], + "newField": "percentage_value", + "_comments": "" + } + ], + "insight": { + }, + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "householdsCoverageHeatMapProvince": { + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_HEATMAP_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"total_count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "householdsCoverageHeatMapDistrict", + "documentType": "_doc", + "action": "", + "plotLabel": "Districts", + "excludedColumns": [ + "S.N.", + "Target for daterange" + ], + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Overall Target" ], + "newField" : "Household Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Household Target" + ], + "newField": "percentage_value", + "_comments": "" + } + ], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " + }, + "householdsCoverageHeatMapDistrict": { + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_HEATMAP_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"total_count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Administrative Province", + "excludedColumns": [ + "S.N.", + "Target for daterange" + ], + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Target" ], + "newField" : "Household Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Household Target" + ], + "newField": "percentage_value", + "_comments": "" + } + ], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " + }, + "householdsCoverageHeatMapAp": { + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_HEATMAP_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"finalFilter\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"finalFilter\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"total_count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Administrative Province", + "excludedColumns": [ + "S.N.", + "Target for daterange" + ], + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Target" ], + "newField" : "Household Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Household Target" + ], + "newField": "percentage_value", + "_comments": "" + } + ], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " + }, + "coverageByProvince": { + "chartName": "DSS_COVERAGE_BY_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Todays Total visits\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total Today\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"min_doc_count\":0\n },\n \"aggs\": {\n \"Total Count Households Visited Today\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Total Count Households Visited Cumulative\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.province.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Household Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.province.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Population Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Project Start and End Dates\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Start Date\": {\n \"sum\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"End Date\": {\n \"sum\": {\n \"field\": \"Data.endDate\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Provinces", + "excludedColumns": ["Total Count Households Visited Cumulative","Total Count Households Visited Today","Overall Population Target","Overall Household Target","Quantity","Total Population Covered", "End Date", "Start Date"], + "hideInsights": true, + "hideHeaderDenomination": true, + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Total Count Households Visited Today"], + "newField" : "Total Households Visited Today", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Total Count Households Visited Cumulative"], + "newField" : "Total Households Visited Cumulative", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Households Visited Cumulative","Overall Household Target"], + "newField" : "Household Coverage", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : ["Total Population Covered","Overall Population Target"], + "newField" : "Population Coverage", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Start Date"], + "newField" : "startDate", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["End Date"], + "newField" : "endDate", + "_comments": "" + } + ], + "insight": { + }, + "_comment": " " + }, + "populationCoverageHeatMap": { + "chartName": "DSS_HEALTH_POPULATION_COVERAGE_HEATMAP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"total_count\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "populationCoverageHeatMapProvince", + "documentType": "_doc", + "action": "", + "plotLabel": "Province", + "excludedColumns": [ + "S.N.", + "Overall Population target" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Overall Population target" + ], + "newField": "percentage_value", + "_comments": "" + } + ], + "insight": { + }, + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "populationCoverageHeatMapProvince": { + "chartName": "DSS_HEALTH_POPULATION_COVERAGE_HEATMAP_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"total_count\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "populationCoverageHeatMapDistrict", + "documentType": "_doc", + "action": "", + "plotLabel": "Districts", + "excludedColumns": [ + "S.N.", + "Target for daterange" + ], + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Population target" ], + "newField" : "Population Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Population Target" + ], + "newField": "percentage_value", + "_comments": "" + } + ], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " + }, + "populationCoverageHeatMapDistrict": { + "chartName": "DSS_HEALTH_POPULATION_COVERAGE_HEATMAP_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"total_count\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Districts", + "excludedColumns": [ + "S.N.", + "Target for daterange" + ], + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Population target" ], + "newField" : "Population Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Population Target" + ], + "newField": "percentage_value", + "_comments": "" + } + ], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " + }, + "populationCoverageHeatMapAp": { + "chartName": "DSS_HEALTH_POPULATION_COVERAGE_HEATMAP_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"finalFilter\": \"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"finalFilter\": \"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"total_count\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Districts", + "excludedColumns": [ + "S.N.", + "Target for daterange" + ], + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Population target" ], + "newField" : "Population Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Population Target" + ], + "newField": "percentage_value", + "_comments": "" + } + ], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " + }, + "totalComplaintsRegistered": { + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_COMPLAINTS_BREAKDOWN", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Status\": {\n \"terms\": {\n \"field\": \"Data.service.applicationStatus.keyword\",\n \"size\": 10\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "complaintsByTypeDrilldown", + "filterKeys": [{"key": "applicationStatus"}], + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints Status" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByTypeDrilldown": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_TYPE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.service.applicationStatus.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Type\": {\n \"terms\": {\n \"field\": \"Data.service.serviceCode.keyword\"\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "pie", + "isCumulative": false, + "valueType": "number", + "showLabel": true, + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints Type" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByDistrictTotal": { + "chartName": "DSS_HEALTH_COMPLAINTS_BY_DISTRICT_TOTAL", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "showLabel": true, + "drillChart": "complaintsByAPTotal", + "filterKeys": [{"key": "district"}], + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints" + ], + "insight": {}, + "_comment": " " + }, + "totalComplaintsRegisteredByType": { + "chartName": "DSS_HEALTH_COMPLAINTS_BY_TYPE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Type\": {\n \"terms\": {\n \"field\": \"Data.service.serviceCode.keyword\"\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "totalComplaintsRegisteredByStatusDrilldown", + "filterKeys": [{"key": "serviceCode"}], + + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints Type" + ], + "insight": {}, + "_comment": " " + }, + "totalComplaintsRegisteredByStatusDrilldown": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_STATUS", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Status\": {\n \"terms\": {\n \"field\": \"Data.service.applicationStatus.keyword\",\n \"size\": 10\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "pie", + "isCumulative": false, + "valueType": "number", + "showLabel": true, + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints Status" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByAPTotal": { + "chartName": "DSS_HEALTH_COMPLAINTS_BY_AP_TOTAL", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "showLabel": true, + "drillChart": "complaintsByLocalityTotal", + "filterKeys": [{"key": "administrativeProvince"}], + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByLocalityTotal": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_LOCALITY_TOTAL", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "showLabel": true, + "drillChart": "complaintsByVillageTotal", + "filterKeys": [{"key": "locality"}], + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByVillageTotal": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_VILLAGE_TOTAL", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "showLabel": true, + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByStatusBreakdownProvincial": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_PROVINCIAL", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population covered count\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" - }, + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.applicationStatus.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PENDING_ASSIGNMENT\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"RESOLVED\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"REJECTED\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "complaintsByStatusBreakdownDistrict", + "filterKeys": [{"key": "district"}], + "documentType": "_doc", + "action": "", + "aggregationPaths": ["PENDING_ASSIGNMENT","RESOLVED","REJECTED"], + "insight": { }, + "_comment": " " + }, + "complaintsByStatusBreakdownDistrict": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_DISTRICT", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Bednets distributed count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.applicationStatus.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PENDING_ASSIGNMENT\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"RESOLVED\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"REJECTED\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "complaintsByStatusBreakdownAP", + "filterKeys": [{"key": "administrativeProvince"}], + "documentType": "_doc", + "action": "", + "aggregationPaths": ["PENDING_ASSIGNMENT","RESOLVED","REJECTED"], + "insight": { }, + "_comment": " " + }, + "complaintsByStatusBreakdownAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_AP", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Refused\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Household Rejected delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"selectedStack\": \"Data.service.applicationStatus.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Localities\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PENDING_ASSIGNMENT\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"RESOLVED\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Localities\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"REJECTED\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "complaintsByStatusBreakdownLocality", + "filterKeys": [{"key": "locality"}], + "documentType": "_doc", + "action": "", + "aggregationPaths": ["PENDING_ASSIGNMENT","RESOLVED","REJECTED"], + "insight": { }, + "_comment": " " + }, + "complaintsByStatusBreakdownLocality": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_LOCALITY", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Absent\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Household Relocated delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\", \"selectedStack\": \"Data.service.applicationStatus.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PENDING_ASSIGNMENT\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Villages\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"RESOLVED\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Villages\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"REJECTED\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": ["PENDING_ASSIGNMENT","RESOLVED","REJECTED"], + "insight": { }, + "_comment": " " + }, + "complaintsByStatusSummaryProvince": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + {"key": "district", "column": "Districts"} + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "complaintsByStatusSummaryDistrict", + "documentType": "_doc", + "action": "", + "plotLabel": "Districts", + "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "hideInsights": true, + "showFooter": true, + "hideHeaderDenomination": true, + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "newField" : "Registered", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Resolved Complaints Count"], + "newField" : "Resolved", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Rejected Complaints Count"], + "newField" : "Rejected", + "_comments": "" }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Open Complaints Count"], + "newField" : "Open", + "_comments": "" + } + ], + "insight": { + }, + "sort": "sortKeyAsc", + "_comment": " " + }, + "complaintsByStatusSummaryDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_DISTRICT", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insufficient Resources\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Household Closed delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "filterKeys": [ - {"key": "locality", "column": "Locality"} + {"key": "administrativeProvince", "column": "APs"} ], "chartType": "xtable", "valueType": "number", - "drillChart": "summaryByVillage", + "drillChart": "complaintsByStatusSummaryAP", "documentType": "_doc", "action": "", - "plotLabel": "Locality", - "excludedColumns": ["Household Closed delivery count","Household Relocated delivery count","Household Rejected delivery count","Bednets distributed count","Population covered count","Households distributed count","Quantity","Total Households distributed","Overall Household target","Total Population covered","Overall Population target","Total Bednets distributed","Overall Bednets target"], - + "showFooter": true, + "plotLabel": "APs", + "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "hideInsights": true, + "hideHeaderDenomination": true, "computedFields": [ { "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Households distributed","Overall Household target"], - "newField" : "Target Achievement Household", + "actionName": "AdditiveComputedField", + "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "newField" : "Registered", "_comments": "" }, { "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Population covered","Overall Population target"], - "newField" : "Target Achievement Population", + "actionName": "AdditiveComputedField", + "fields" : ["Resolved Complaints Count"], + "newField" : "Resolved", "_comments": "" }, { "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Bednets distributed","Overall Bednets target"], - "newField" : "Target Achievement Bednets", + "actionName": "AdditiveComputedField", + "fields" : ["Rejected Complaints Count"], + "newField" : "Rejected", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Households distributed count"], - "newField" : "Households distributed", + "fields" : ["Open Complaints Count"], + "newField" : "Open", + "_comments": "" + } + ], + "insight": { + }, + "sort": "sortKeyAsc", + "_comment": " " + }, + "complaintsByStatusSummaryAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_AP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + {"key": "locality", "column": "Locality"} + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "complaintsByStatusSummaryLocality", + "documentType": "_doc", + "action": "", + "showFooter": true, + "plotLabel": "Locality", + "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "hideInsights": true, + "hideHeaderDenomination": true, + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "newField" : "Registered", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Population covered count"], - "newField" : "Population covered", + "fields" : ["Resolved Complaints Count"], + "newField" : "Resolved", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Rejected Complaints Count"], + "newField" : "Rejected", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Bednets distributed count"], - "newField" : "Bednets distributed", + "fields" : ["Open Complaints Count"], + "newField" : "Open", + "_comments": "" + } + ], + "insight": { + }, + "sort": "sortKeyAsc", + "_comment": " " + }, + "complaintsByStatusSummaryLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_Locality", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + {"key": "village", "column": "Village"} + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "complaintsList", + "documentType": "_doc", + "action": "", + "showFooter": true, + "plotLabel": "Village", + "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "hideInsights": true, + "hideHeaderDenomination": true, + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "newField" : "Registered", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected delivery count"], - "newField" : "Non Delivery HH Rejected", + "fields" : ["Resolved Complaints Count"], + "newField" : "Resolved", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated delivery count"], - "newField" : "Non Delivery HH Relocated", + "fields" : ["Rejected Complaints Count"], + "newField" : "Rejected", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Household Closed delivery count"], - "newField" : "Non Delivery HH Closed", + "fields" : ["Open Complaints Count"], + "newField" : "Open", "_comments": "" } ], "insight": { }, - "hideInsights": true, - "hideHeaderDenomination": true, + "sort": "sortKeyAsc", "_comment": " " }, - "summaryByVillage": { + "complaintsList": { "kind": "drillDown", - "chartName": "DSS_HEALTH_SUMMARY_BY_VILLAGE", + "chartName": "DSS_HEALTH_COMPLAINTS_LIST_SUMMARY", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\",\"village\":\"Data.village.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"size\": 0,\n \"aggs\": {\n \"Complaints Id\": {\n \"terms\": {\n \"field\": \"Data.service.serviceRequestId.keyword\",\n \"size\": 10000\n },\n \"aggs\": {\n \"Created Time\": {\n \"terms\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"def createdTime = doc['Data.service.auditDetails.createdTime'].value;\\n def dateFormat = new SimpleDateFormat('dd MMM yyyy hh mm ss');\\n def formattedDate = dateFormat.format(new Date(createdTime));\\n def stringDate = formattedDate.toString();\\n def day = stringDate.substring(0, 2);\\n def month = stringDate.substring(3, 6);\\n def year = stringDate.substring(7, 11);\\n def hour = stringDate.substring(12, 14);\\n def minute = stringDate.substring(15, 17);\\n def seconds = stringDate.substring(18, 20);\\n return day + ' ' + month + ' ' + year + ' ' + hour + 'h ' + minute + 'm ' + seconds + 's'\"\n },\n \"size\": 1,\n \"order\": {\n \"_key\": \"asc\"\n }},\n \"aggs\": {\n \"Complaint Status\": {\n \"terms\": {\n \"field\": \"Data.service.applicationStatus.keyword\",\n \"size\": 1\n },\n \"aggs\": {\n \"Complaint Type\": {\n \"terms\": {\n \"field\": \"Data.service.serviceCode.keyword\",\n \"size\": 1\n },\n \"aggs\": {\n \"Administrative Area\": {\n \"terms\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"def village = params['_source']['Data']['village']; \\n def locality = params['_source']['Data']['locality']; \\n def administrativeProvince = params['_source']['Data']['administrativeProvince']; \\n def district = params['_source']['Data']['district']; \\n def province = params['_source']['Data']['province']; \\n if(village != null ) {return village;\\n}\\n else if(locality != null ) {return locality;\\n}\\n else if(administrativeProvince != null ) {return administrativeProvince;\\n}\\n else if(district != null ) {return district;\\n}\\n else if(province != null ) {return province;\\n} \\n else {return 'N/A'; \\n}\\n\"\n },\n \"size\": 1\n },\n \"aggs\": {\n \"Complainant Phone Number\": {\n \"terms\": {\n \"field\": \"Data.RequestInfo.userInfo.mobileNumber.keyword\",\n \"size\": 1\n },\n \"aggs\": {\n \"Supervisor Contact Number\": {\n \"terms\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"def additionalDetail = params['_source']['Data']['service']['additionalDetail'];\\nif (additionalDetail != null && additionalDetail.contains('\\\"supervisorContactNumber\\\":\\\"')) {\\n int startIndex = additionalDetail.indexOf('\\\"supervisorContactNumber\\\":') + 27;\\n int endIndex = additionalDetail.indexOf(',', startIndex);\\n if (endIndex != -1) {\\n String supervisorContactNumber = additionalDetail.substring(startIndex, endIndex-1);\\n if (supervisorContactNumber!=':null ') return supervisorContactNumber;\\n }\\n}\\nreturn 'N/A';\"\n },\n \"size\": 1\n },\n \"aggs\": {\n \"Details\": {\n \"terms\": {\n \"field\": \"Data.service.description.keyword\", \n \"size\": 1\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "table", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "pathDataTypeMapping": [ + { + "Complaints Id": "string" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "Created Time": "string" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "Complaint Status": "string" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Total Bednets distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "Complaint Type": "string" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "Administrative Area": "string" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + "Complainant Phone Number": "string" }, { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Households distributed count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "Supervisor Contact Number": "string" }, + { + "Details": "string" + } + ], + "plotLabel": "Complaint ID", + "aggregationPaths": [ + "Complaints Id", + "Created Time", + "Complaint Status", + "Complaint Type", + "Details", + "Administrative Area", + "Complainant Phone Number", + "Supervisor Contact Number" + ], + "insight": { + }, + "sort": "sortKeyAsc", + "_comment": " " + }, + "averageResolutionTimeProvince":{ + "chartName": "DSS_HEALTH_COMPLAINTS_AVVERAGE_RESOLUTION_TIME_PROVINCE", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population covered count\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" - }, + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "averageResolutionTimeDistrict", + "documentType": "_doc", + "action": "", + "aggregationPaths": ["Resolution time in hours"], + "filterKeys": [{"key": "district"}], + "insight": { }, + "_comment": " " + }, + "averageResolutionTimeDistrict":{ + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_DISTRICT", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Bednets distributed count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "averageResolutionTimeAP", + "documentType": "_doc", + "action": "", + "aggregationPaths": ["Resolution time in hours"], + "filterKeys": [{"key": "administrativeProvince"}], + "insight": { }, + "_comment": " " + }, + "averageResolutionTimeAP":{ + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_AP", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Refused\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Household Rejected delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "averageResolutionTimeLocality", + "documentType": "_doc", + "action": "", + "aggregationPaths": ["Resolution time in hours"], + "filterKeys": [{"key": "locality"}], + "insight": { }, + "_comment": " " + }, + "averageResolutionTimeLocality":{ + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_LOCALITY", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Absent\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Household Relocated delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": ["Resolution time in hours"], + "filterKeys": [{"key": "village"}], + "insight": { }, + "_comment": " " + }, + "bednetsCoverageHeatMapProvince": { + "chartName": "DSS_HEALTH_BEDNETS_COVERAGE_HEATMAP_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insufficient Resources\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Household Closed delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Bednets covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"total_count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - + "filterKeys": [], "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "bednetsCoverageHeatMapDistrict", "documentType": "_doc", "action": "", - "plotLabel": "Village", - "excludedColumns": ["Household Closed delivery count","Household Relocated delivery count","Household Rejected delivery count","Bednets distributed count","Population covered count","Households distributed count","Quantity","Total Households distributed","Overall Household target","Total Population covered","Overall Population target","Total Bednets distributed","Overall Bednets target"], - + "plotLabel": "Districts", + "excludedColumns": [ + "S.N.", + "Target for daterange" + ], "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Households distributed","Overall Household target"], - "newField" : "Target Achievement Household", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Population covered","Overall Population target"], - "newField" : "Target Achievement Population", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Bednets distributed","Overall Bednets target"], - "newField" : "Target Achievement Bednets", - "_comments": "" - }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Households distributed count"], - "newField" : "Households distributed", + "fields" : [ "Overall Bednets target" ], + "newField" : "Bednets Target", "_comments": "" }, { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Population covered count"], - "newField" : "Population covered", + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Bednets Target" + ], + "newField": "percentage_value", "_comments": "" - }, + } + ], + "insight": { + }, + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "bednetsCoverageHeatMapDistrict": { + "chartName": "DSS_HEALTH_BEDNETS_COVERAGE_HEATMAP_PROVINCE", + "queries": [ { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Bednets distributed count"], - "newField" : "Bednets distributed", - "_comments": "" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected delivery count"], - "newField" : "Non Delivery HH Rejected", - "_comments": "" - }, + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Bednets covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"total_count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Districts", + "excludedColumns": [ + "S.N.", + "Target for daterange" + ], + "computedFields": [ { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated delivery count"], - "newField" : "Non Delivery HH Relocated", + "fields" : [ "Overall Bednets target" ], + "newField" : "Bednets Target", "_comments": "" }, { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Household Closed delivery count"], - "newField" : "Non Delivery HH Closed", + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Bednets Target" + ], + "newField": "percentage_value", "_comments": "" } ], @@ -2963,728 +5936,729 @@ "hideHeaderDenomination": true, "_comment": " " }, - "summaryByDistrictDay": { - "chartName": "DSS_HEALTH_SUMMARY_BY_DISTRICT", + "bednetsCoverageHeatMapAp": { + "chartName": "DSS_HEALTH_BEDNETS_COVERAGE_HEATMAP_PROVINCE", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Total Households Visited\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"finalFilter\": \"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"finalFilter\": \"Data.administrativeProvince.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Total Bednets Distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Bednets covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"total_count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Districts", + "excludedColumns": [ + "S.N.", + "Target for daterange" + ], + "computedFields": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Household Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Bednets target" ], + "newField" : "Bednets Target", + "_comments": "" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Population Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" - }, + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Bednets Target" + ], + "newField": "percentage_value", + "_comments": "" + } + ], + "insight": { + }, + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "InventorySummaryByDistrict": { + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_DISTRICT", + "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Bednets Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Overall Target to Receive\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Refused\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Rejected Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Absent\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Relocated Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insufficient Resources\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Closed Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "InventorySummaryByWarehouse", "documentType": "_doc", - "action": "division", - "plotLabel": "Daily Count", - "excludedColumns": ["S.N.","Daily Population Target","Total Households Visited","Households","Quantity","Total Population Covered","bednets total","Total Bednets Distributed","Daily Household Target","Daily Bednets Target","Household Rejected Delivery Count","Household Closed Delivery Count","Household Relocated Delivery Count"], - "divisorFields": ["Daily Household Target","Daily Population Target","Daily Bednets Target"], + "action": "", + "plotLabel": "Inventory summary By District", "filterKeys": [ - {"key": "Daily Count", "column": "Daily Count"} + {"key": "district", "column": "Inventory summary By District"} ], - "showFooter": true, + "divisorFields": [], + "showFooter": false, "hideInsights": true, "hideHeaderDenomination": true, + "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock", "Nets Target"], "computedFields": [ { "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Households Visited","Daily Household Target"], - "newField" : "Target Achievement Household", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Population Covered","Daily Population Target"], - "newField" : "Target Achievement Population", + "actionName": "AdditiveComputedField", + "fields" : [ "Overall Target to Receive" ], + "newField" : "Nets Target", "_comments": "" }, { "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Bednets Distributed","Daily Bednets Target"], - "newField" : "Target Achievement Bednets", + "actionName": "AdditiveComputedField", + "fields" : [ "Incoming" ], + "newField" : "Incoming Stock", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Total Households Visited"], - "newField" : "Households distributed", + "fields" : [ "Outgoing" ], + "newField" : "Outgoing Stock", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Total Population Covered"], - "newField" : "Population covered", + "fields" : [ "Total Stock" ], + "newField" : "Stock Left", "_comments": "" }, { "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Total Bednets Distributed"], - "newField" : "Bednets distributed", + "actionName": "PercentageComputedField", + "fields" : [ "Total Stock","Target for days to last" ], + "newField" : "Days To Last", "_comments": "" + } + ], + "insight": { + }, + "sort": "sortKeyAsc", + "_comment": " " + }, + "uInventorySummaryByDistrict": { + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.facilityLevel.keyword\": \"DISTRICT_WAREHOUSE\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected Delivery Count"], - "newField" : "Non Delivery HH Rejected", - "_comments": "" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Target By District\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Household Covered Count\" : {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n },\n \"Negative Delivered Count\" : {\n \"bucket_script\": {\n \"buckets_path\": {\n \"DC\": \"Household Covered Count\"\n },\n \"script\": \"params.DC * (-1)\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "uInventorySummaryByDistrictWh", + "documentType": "_doc", + "action": "", + "plotLabel": "Inventory summary By District", + "filterKeys": [ + {"key": "district", "column": "Inventory summary By District"} + ], + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": ["Total Stock", "SUM", "Overall Target", "Negative Delivered Count", "Household Covered Count"], + "computedFields": [ { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated Delivery Count"], - "newField" : "Non Delivery HH Relocated", + "fields" : [ "Total Stock" ], + "newField" : "Stock Left", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Household Closed Delivery Count"], - "newField" : "Non Delivery HH Closed", + "fields" : [ "Overall Target", "Negative Delivered Count" ], + "newField" : "Target Left For District", "_comments": "" } ], "insight": { }, + "sort": "sortKeyAsc", "_comment": " " }, - "summaryByAdministrativeProvinceDay": { - "chartName": "DSS_HEALTH_SUMMARY_BY_ADMINISTRATIVE_PROVINCE", + "uInventorySummaryByDistrictWh": { + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_DISTRICT", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Total Households Visited\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n {\n \"term\": {\n \"Data.facilityLevel.keyword\": \"DISTRICT_WAREHOUSE\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n {\n \"term\": {\n \"Data.facilityLevel.keyword\": \"DISTRICT_WAREHOUSE\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Total Bednets Distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.facilityLevel.keyword\": \"DISTRICT_WAREHOUSE\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "uInventorySummaryBySatWh", + "documentType": "_doc", + "action": "", + "plotLabel": "Inventory summary By District Warehouse", + "filterKeys": [ + {"key": "districtWarehouse", "column": "Inventory summary By District Warehouse"} + ], + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": ["Incoming","Outgoing","Total Stock", "SUM"], + "computedFields": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Household Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Incoming" ], + "newField" : "Incoming Stock", + "_comments": "" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Population Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Outgoing" ], + "newField" : "Outgoing Stock", + "_comments": "" }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Total Stock" ], + "newField" : "Stock Left", + "_comments": "" + } + ], + "insight": { + }, + "sort": "sortKeyAsc", + "_comment": " " + }, + "uInventorySummaryBySatWh": { + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_DISTRICT", + "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Daily Bednets Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"districtWarehouse\":\"Data.transactingFacilityName.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n {\n \"term\": {\n \"Data.facilityLevel.keyword\": \"SATELLITE_WAREHOUSE\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Refused\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Rejected Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"districtWarehouse\":\"Data.transactingFacilityName.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n {\n \"term\": {\n \"Data.facilityLevel.keyword\": \"SATELLITE_WAREHOUSE\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Absent\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Relocated Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"districtWarehouse\":\"Data.transactingFacilityName.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.facilityLevel.keyword\": \"SATELLITE_WAREHOUSE\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insufficient Resources\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Closed Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"districtWarehouse\":\"Data.transactingFacilityName.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.facilityLevel.keyword\": \"SATELLITE_WAREHOUSE\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Facility Targets\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Target Stock\": {\n \"avg\": {\n \"field\": \"Data.facilityTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "uInventorySummaryByDistLms", "documentType": "_doc", - "action": "division", - "plotLabel": "Daily Count", - "excludedColumns": ["S.N.","Daily Population Target","Total Households Visited","Quantity","Total Population Covered","bednets total","Total Bednets Distributed","Daily Household Target","Daily Bednets Target","Household Rejected Delivery Count","Household Closed Delivery Count","Household Relocated Delivery Count"], - "divisorFields": ["Daily Household Target","Daily Population Target","Daily Bednets Target"], + "action": "", + "plotLabel": "Inventory summary By Satellite WH", "filterKeys": [ - {"key": "Daily Count", "column": "Daily Count"} + {"key": "satelliteWarehouse", "column": "Inventory summary By Satellite WH"} ], - "showFooter": true, + "divisorFields": [], + "showFooter": false, "hideInsights": true, "hideHeaderDenomination": true, + "excludedColumns": ["Incoming","Outgoing","Total Stock", "SUM", "Target Stock"], "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Households Visited","Daily Household Target"], - "newField" : "Target Achievement Household", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Population Covered","Daily Population Target"], - "newField" : "Target Achievement Population", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Bednets Distributed","Daily Bednets Target"], - "newField" : "Target Achievement Bednets", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Total Households Visited"], - "newField" : "Households distributed", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Total Population Covered"], - "newField" : "Population covered", - "_comments": "" - }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Total Bednets Distributed"], - "newField" : "Bednets distributed", + "fields" : [ "Incoming" ], + "newField" : "Incoming Stock", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected Delivery Count"], - "newField" : "Non Delivery HH Rejected", + "fields" : [ "Outgoing" ], + "newField" : "Outgoing Stock", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated Delivery Count"], - "newField" : "Non Delivery HH Relocated", + "fields" : [ "Total Stock" ], + "newField" : "Stock Left", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Household Closed Delivery Count"], - "newField" : "Non Delivery HH Closed", + "fields" : [ "Target Stock" ], + "newField" : "Warehouse Stock Target", "_comments": "" } ], "insight": { }, + "sort": "sortKeyAsc", "_comment": " " }, - "actualVsPlannedHouseholdLineGraphProvince": { - "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_HOUSEHOLD_LINE_GRAPH_PROVINCE", + "uInventorySummaryByDistLms": { + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_DISTRICT", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"satelliteWarehouse\":\"Data.transactingFacilityName.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n {\n \"term\": {\n \"Data.facilityType.keyword\": \"Monitor Local\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Household Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target Household\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": true, - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "predictionPath" : "Household Target", - "aggregationPaths": [ - "Household Target","Household Distribution" - ], - "insight": { }, - "_comment": " " - }, - "actualVsPlannedBednetsLineGraphProvince": { - "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_BEDNETS_LINE_GRAPH_PROVINCE", - "queries": [ - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"satelliteWarehouse\":\"Data.transactingFacilityName.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n {\n \"term\": {\n \"Data.facilityType.keyword\": \"Monitor Local\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Bednets Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"satelliteWarehouse\":\"Data.transactingFacilityName.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.facilityType.keyword\": \"Monitor Local\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": true, + "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "uInventorySummaryByDistLmsEventList", "documentType": "_doc", "action": "", - "predictionPath" : "Bednets Target", - "aggregationPaths": [ - "Bednets Target","Bednets Distribution" + "plotLabel": "Inventory summary By LMs", + "filterKeys": [ + {"key": "lmName", "column": "Inventory summary By LMs"}, + {"key": "satelliteWarehouse", "column": ""} ], - "insight": { }, - "_comment": " " - }, - "actualVsPlannedPopulationLineGraphProvince": { - "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_POPULATION_LINE_GRAPH_PROVINCE", - "queries": [ + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": ["Incoming","Outgoing","Total Stock", "SUM"], + "computedFields": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population distributed\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Day wise distributions\"\n },\n \"script\": \"params.target*1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Incoming" ], + "newField" : "Incoming Stock", + "_comments": "" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Population Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Outgoing" ], + "newField" : "Outgoing Stock", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Total Stock" ], + "newField" : "Stock Left", + "_comments": "" } ], - "chartType": "line", - "isCumulative": true, - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "predictionPath" : "Population Target", - "aggregationPaths": [ - "Population Target","Population Distribution" - ], - "insight": { }, + "insight": { + }, + "sort": "sortKeyAsc", "_comment": " " }, - "actualVsPlannedHouseholdLineGraphDistrict": { - "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_HOUSEHOLD_LINE_GRAPH_DISTRICTactualVsPlannedHouseholdLineGraphProvince", + "uInventorySummaryByDistLmsEventList": { + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_DISTRICT", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Household Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target Household\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"satelliteWarehouse\":\"Data.transactingFacilityName.keyword\", \"lmName\":\"Data.facilityName.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"size\": 0,\n \"aggs\": {\n \"NAME\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.facilityType.keyword\": \"Monitor Local\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stock Event Id\": {\n \"terms\": {\n \"field\": \"Data.id.keyword\",\n \"size\": 10000,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Local Monitor Names\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Transacting Facility names\": {\n \"terms\": {\n \"field\": \"Data.transactingFacilityName.keyword\",\n \"size\": 1,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Event Type\": {\n \"terms\": {\n \"field\": \"Data.eventType.keyword\",\n \"size\": 1\n },\n \"aggs\": {\n \"Timestamp of Event\": {\n \"terms\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"def createdTime = doc['Data.createdTime'].value;\\n def dateFormat = new SimpleDateFormat('dd MMM yyyy hh mm ss');\\n def formattedDate = dateFormat.format(new Date(createdTime));\\n def stringDate = formattedDate.toString();\\n def day = stringDate.substring(0, 2);\\n def month = stringDate.substring(3, 6);\\n def year = stringDate.substring(7, 11);\\n def hour = stringDate.substring(12, 14);\\n def minute = stringDate.substring(15, 17);\\n def seconds = stringDate.substring(18, 20);\\n return day + ' ' + month + ' ' + year + ' ' + hour + 'h ' + minute + 'm ' + seconds + 's'\"\n }\n },\n \"aggs\": {\n \"Quantity Transacted\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": true, + "chartType": "table", "valueType": "number", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "predictionPath" : "Household Target", + "plotLabel": "Local Monitor Names", "aggregationPaths": [ - "Household Target","Household Distribution" + "Stock Event Id", + "Local Monitor Names", + "Transacting Facility names", + "Event Type", + "Quantity Transacted", + "Timestamp of Event" ], - "insight": { }, - "_comment": " " - }, - "actualVsPlannedBednetsLineGraphDistrict": { - "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_BEDNETS_LINE_GRAPH_DISTRICT", - "queries": [ + "pathDataTypeMapping": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "Local Monitor Names": "string" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Bednets Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": true, - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "predictionPath" : "Bednets Target", - "aggregationPaths": [ - "Bednets Target","Bednets Distribution" - ], - "insight": { }, - "_comment": " " - }, - "actualVsPlannedPopulationLineGraphDistrict": { - "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_POPULATION_LINE_GRAPH_DISTRICT", - "queries": [ + "Transacting Facility names": "string" + }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population distributed\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Day wise distributions\"\n },\n \"script\": \"params.target*1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "Event Type": "string" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Population Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + "Quantity Transacted": "number" + }, + { + "Timestamp of Event": "string" + }, + { + "Stock Event Id": "string" } ], - "chartType": "line", - "isCumulative": true, - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "predictionPath" : "Population Target", - "aggregationPaths": [ - "Population Target","Population Distribution" - ], - "insight": { }, + "insight": { + }, + "hideInsights": true, + "hideHeaderDenomination": true, + "sort": "sortKeyAsc", "_comment": " " }, - "inventoryStockInHandProvince": { - "chartName": "DSS_HEALTH_INVENTORY_STOCK_IN_HAND_PROVINCE", + "InventorySummaryByWarehouse": { + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_WAREHOUSE", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by district\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value*(-1)\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Inventory summary By Warehouse", + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock"], "computedFields": [ { "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Overall Target","Distributions by district"], - "newField" : "Required Stock", + "actionName": "AdditiveComputedField", + "fields" : [ "Incoming" ], + "newField" : "Incoming Stock", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Outgoing" ], + "newField" : "Outgoing Stock", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Total Stock" ], + "newField" : "Stock Left", "_comments": "" } - ], - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "computeMultiPaths": true, - "aggregationPaths": ["Available Stock","Overall Target","Distributions by district"], - "insight": { }, + "insight": { + }, + "sort": "sortKeyAsc", "_comment": " " }, - "inventoryStockInHandDistrict": { - "chartName": "DSS_HEALTH_INVENTORY_STOCK_IN_HAND_DISTRICT", + "InventorySummaryByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_AP", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by APs\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value*(-1)\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Inventory summary By AP", + "filterKeys": [ + {"key": "administrativeProvince", "column": "Inventory summary By AP"} + ], + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock"], "computedFields": [ + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "Target for range" ], + "newField" : "Nets Target", + "_comments": "" + }, { "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Overall Target","Distributions by APs"], - "newField" : "Required Stock", + "actionName": "AdditiveComputedField", + "fields" : [ "Incoming" ], + "newField" : "Incoming Stock", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Outgoing" ], + "newField" : "Outgoing Stock", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "Total Stock" ], + "newField" : "Stock Left", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Total Stock","Target for days to last" ], + "newField" : "Days To Last", "_comments": "" } - ], + "insight": { + }, + "sort": "sortKeyAsc", + "_comment": " " + }, + "complaintsByTypeBreakdownProvincial": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_PROVINCIAL", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Other Count\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"PerformanceIssue\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"PerformanceIssue\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PerformanceIssue Count\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"SecurityIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SecurityIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"SecurityIssues Count\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"DataIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"DataIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"DataIssues Count\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"TechnicalIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"TechnicalIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"TechnicalIssues Count\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"UserAccountIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"UserAccountIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"UserAccountIssues Count\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", "isCumulative": false, "valueType": "number", "plotLabel": "none", - "drillChart": "none", + "drillChart": "complaintsByTypeBreakdownDistrict", + "filterKeys": [{"key": "district"}], "documentType": "_doc", "action": "", - "computeMultiPaths": true, - "aggregationPaths": ["Available Stock","Overall Target","Distributions by APs"], + "aggregationPaths": ["Other", "PerformanceIssue", "SecurityIssues", "DataIssues", "TechnicalIssues", "UserAccountIssues"], "insight": { }, "_comment": " " }, - "householdsCoverageHeatMap": { - "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_HEATMAP", + "complaintsByTypeBreakdownDistrict": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_DISTRICT", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.province.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"total_count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Other Count\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"PerformanceIssue\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"PerformanceIssue\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PerformanceIssue Count\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"SecurityIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SecurityIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"SecurityIssues Count\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"DataIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"DataIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"DataIssues Count\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"TechnicalIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"TechnicalIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"TechnicalIssues Count\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"UserAccountIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"UserAccountIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"UserAccountIssues Count\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [], - "chartType": "xtable", + "chartType": "line", + "isCumulative": false, "valueType": "number", - "drillChart": "householdsCoverageHeatMapProvince", + "plotLabel": "none", + "drillChart": "complaintsByTypeBreakdownAP", + "filterKeys": [{"key": "administrativeProvince"}], "documentType": "_doc", "action": "", - "plotLabel": "Province", - "excludedColumns": [ - "S.N.", - "Overall Household target" - ], - "computedFields": [ - { - "postAggregationTheory": "", - "actionName": "PercentageComputedField", - "fields": [ - "total_count", - "Overall Household target" - ], - "newField": "percentage_value", - "_comments": "" - } - ], - "insight": { - }, - "hideInsights": true, - "hideHeaderDenomination": true, + "aggregationPaths": ["Other", "PerformanceIssue", "SecurityIssues", "DataIssues", "TechnicalIssues", "UserAccountIssues"], + "insight": { }, "_comment": " " }, - "householdsCoverageHeatMapProvince": { - "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_HEATMAP_PROVINCE", + "complaintsByTypeBreakdownAP": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_AP", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"total_count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Other Count\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"PerformanceIssue\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"PerformanceIssue\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PerformanceIssue Count\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"SecurityIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SecurityIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"SecurityIssues Count\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"DataIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"DataIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"DataIssues Count\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"TechnicalIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"TechnicalIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"TechnicalIssues Count\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"UserAccountIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"UserAccountIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"UserAccountIssues Count\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [], - "chartType": "xtable", + "chartType": "line", + "isCumulative": false, "valueType": "number", - "drillChart": "", + "plotLabel": "none", + "drillChart": "complaintsByTypeBreakdownLocality", + "filterKeys": [{"key": "locality"}], "documentType": "_doc", "action": "", - "plotLabel": "Districts", - "excludedColumns": [ - "S.N.", - "Target for daterange" - ], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "AdditiveComputedField", - "fields" : [ "Target for daterange" ], - "newField" : "Household Target", - "_comments": "" - }, + "aggregationPaths": ["Other", "PerformanceIssue", "SecurityIssues", "DataIssues", "TechnicalIssues", "UserAccountIssues"], + "insight": { }, + "_comment": " " + }, + "complaintsByTypeBreakdownLocality": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_LOCALITY", + "queries": [ { - "postAggregationTheory": "", - "actionName": "PercentageComputedField", - "fields": [ - "total_count", - "Household Target" - ], - "newField": "percentage_value", - "_comments": "" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Other Count\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"PerformanceIssue\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"PerformanceIssue\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PerformanceIssue Count\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"SecurityIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SecurityIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"SecurityIssues Count\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"DataIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"DataIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"DataIssues Count\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"TechnicalIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"TechnicalIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"TechnicalIssues Count\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"UserAccountIssues\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"UserAccountIssues\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"UserAccountIssues Count\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } - ], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": ["Other", "PerformanceIssue", "SecurityIssues", "DataIssues", "TechnicalIssues", "UserAccountIssues"], + "insight": { }, "_comment": " " }, - "coverageByProvince": { - "chartName": "DSS_COVERAGE_BY_PROVINCE", + "complaintsByStatusSummaryDay": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_DAY", "queries": [ - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Todays visits\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"range\": {\n \"Data.@timestamp\": {\n \"gte\": \"now/d\",\n \"lte\": \"now\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total Today\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"min_doc_count\":0\n },\n \"aggs\": {\n \"Total Households Visited Today\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Total Households Visited Cumulative\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" - }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.province.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Household Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.province.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Population Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], @@ -3693,23 +6667,38 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Provinces", - "excludedColumns": ["Overall Population Target","Overall Household Target","Quantity","Total Population Covered"], + "showFooter": true, + "plotLabel": "Summary Daywise", + "excludedColumns": ["S.N.","Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], "hideInsights": true, "hideHeaderDenomination": true, "computedFields": [ { "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Households Visited Cumulative","Overall Household Target"], - "newField" : "Household Coverage", + "actionName": "AdditiveComputedField", + "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "newField" : "Registered", "_comments": "" }, { "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["Total Population Covered","Overall Population Target"], - "newField" : "Population Coverage", + "actionName": "AdditiveComputedField", + "fields" : ["Resolved Complaints Count"], + "newField" : "Resolved", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Rejected Complaints Count"], + "newField" : "Rejected", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : ["Open Complaints Count"], + "newField" : "Open", "_comments": "" } ], @@ -3717,1930 +6706,2746 @@ }, "_comment": " " }, - "populationCoverageHeatMap": { - "chartName": "DSS_HEALTH_POPULATION_COVERAGE_HEATMAP", + "ComplaintsShareByDistrict": { + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"total_count\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [], - "chartType": "xtable", - "valueType": "number", - "drillChart": "populationCoverageHeatMapProvince", + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "ComplaintsShareByAP", "documentType": "_doc", - "action": "", - "plotLabel": "Province", - "excludedColumns": [ - "S.N.", - "Overall Population target" - ], - "computedFields": [ - { - "postAggregationTheory": "", - "actionName": "PercentageComputedField", - "fields": [ - "total_count", - "Overall Population target" - ], - "newField": "percentage_value", - "_comments": "" - } - ], - "insight": { - }, - "hideInsights": true, - "hideHeaderDenomination": true, + "action": "divisionbyconstant", + "aggregationPaths": ["% of Total Complaints","Total Complaints"], + "filterKeys": [{"key": "district"}], + "insight": { }, "_comment": " " }, - "populationCoverageHeatMapProvince": { - "chartName": "DSS_HEALTH_POPULATION_COVERAGE_HEATMAP_PROVINCE", + "ComplaintsShareByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" }, { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"total_count\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [], - "chartType": "xtable", - "valueType": "number", - "drillChart": "", + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "ComplaintsShareByLocality", "documentType": "_doc", - "action": "", - "plotLabel": "Districts", - "excludedColumns": [ - "S.N.", - "Target for daterange" - ], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "AdditiveComputedField", - "fields" : [ "Target for daterange" ], - "newField" : "Population Target", - "_comments": "" - }, - { - "postAggregationTheory": "", - "actionName": "PercentageComputedField", - "fields": [ - "total_count", - "Population Target" - ], - "newField": "percentage_value", - "_comments": "" - } - ], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, + "action": "divisionbyconstant", + "aggregationPaths": ["% of Total Complaints","Total Complaints"], + "filterKeys": [{"key": "administrativeProvince"}], + "insight": { }, "_comment": " " }, - "totalComplaintsRegistered": { - "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_COMPLAINTS_BREAKDOWN", + "ComplaintsShareByLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", "queries": [ { "module": "COMMON", "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Status\": {\n \"terms\": {\n \"field\": \"Data.service.applicationStatus.keyword\",\n \"size\": 10\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "pie", - "valueType": "number", - "showLabel": true, - "drillChart": "complaintsByTypeDrilldown", - "filterKeys": [{"key": "applicationStatus"}], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "ComplaintsShareByVillage", "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Complaints Status" - ], - "insight": {}, + "action": "divisionbyconstant", + "aggregationPaths": ["% of Total Complaints","Total Complaints"], + "filterKeys": [{"key": "locality"}], + "insight": { }, "_comment": " " }, - "complaintsByTypeDrilldown": { + "ComplaintsShareByVillage": { "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_BY_TYPE", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", "queries": [ { "module": "COMMON", "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.service.applicationStatus.keyword\"}", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Type\": {\n \"terms\": {\n \"field\": \"Data.service.serviceCode.keyword\"\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "pie", + "chartType": "line", "isCumulative": false, - "valueType": "number", - "showLabel": true, + "valueType": "percentage", + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Complaints Type" - ], - "insight": {}, + "action": "divisionbyconstant", + "aggregationPaths": ["% of Total Complaints","Total Complaints"], + "insight": { }, "_comment": " " }, - "complaintsByDistrictTotal": { - "chartName": "DSS_HEALTH_COMPLAINTS_BY_DISTRICT_TOTAL", + "openComplaintsSummaryByDistrict": { + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_DISTRICT", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints by District\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true, \n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n \n ]\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "filterKeys": [ + {"key": "district", "column": "Open complaints District"} + ], + "chartType": "xtable", "valueType": "number", - "showLabel": true, - "drillChart": "complaintsByAPTotal", - "filterKeys": [{"key": "district"}], + "drillChart": "openComplaintsSummaryByAP", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Complaints by District" - ], - "insight": {}, + "showFooter": true, + "plotLabel": "Open complaints District", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, + "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], + "computedFields": [], + "insight": { + }, + "sort": "sortKeyAsc", "_comment": " " }, - "totalComplaintsRegisteredByType": { - "chartName": "DSS_HEALTH_COMPLAINTS_BY_TYPE", + "openComplaintsSummaryByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_AP", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Type\": {\n \"terms\": {\n \"field\": \"Data.service.serviceCode.keyword\"\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "pie", + "filterKeys": [ + {"key": "administrativeProvince", "column": "Open complaints AP"} + ], + "chartType": "xtable", "valueType": "number", - "showLabel": true, - "drillChart": "totalComplaintsRegisteredByStatusDrilldown", - "filterKeys": [{"key": "serviceCode"}], - + "drillChart": "openComplaintsSummaryByLocality", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Complaints Type" - ], - "insight": {}, + "showFooter": true, + "plotLabel": "Open complaints AP", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, + "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], + "computedFields": [], + "insight": { + }, + "sort": "sortKeyAsc", "_comment": " " }, - "totalComplaintsRegisteredByStatusDrilldown": { + "openComplaintsSummaryByLocality": { "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_BY_STATUS", + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_LOCALITY", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.service.serviceCode.keyword\"}", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Status\": {\n \"terms\": {\n \"field\": \"Data.service.applicationStatus.keyword\",\n \"size\": 10\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "pie", - "isCumulative": false, + "filterKeys": [ + {"key": "locality", "column": "Open complaints Locality"} + ], + "chartType": "xtable", "valueType": "number", - "showLabel": true, - "drillChart": "none", + "drillChart": "openComplaintsSummaryByVillage", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Complaints Status" - ], - "insight": {}, + "showFooter": true, + "plotLabel": "Open complaints Locality", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, + "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], + "computedFields": [], + "insight": { + }, + "sort": "sortKeyAsc", "_comment": " " }, - "complaintsByAPTotal": { - "chartName": "DSS_HEALTH_COMPLAINTS_BY_AP_TOTAL", + "openComplaintsSummaryByVillage": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_VILLAGE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\",\"locality\": \"Data.locality.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints by AP\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "filterKeys": [ + {"key": "village", "column": "Open complaints Village"} + ], + "chartType": "xtable", "valueType": "number", - "showLabel": true, - "drillChart": "complaintsByLocalityTotal", - "filterKeys": [{"key": "administrativeProvince"}], + "drillChart": "openComplaintsList", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Complaints by AP" - ], - "insight": {}, + "showFooter": true, + "plotLabel": "Open complaints Village", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, + "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], + "computedFields": [], + "insight": { + }, + "sort": "sortKeyAsc", "_comment": " " }, - "complaintsByLocalityTotal": { + "openComplaintsList": { "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_BY_LOCALITY_TOTAL", + "chartName": "DSS_HEALTH_COMPLAINTS_LIST_SUMMARY", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\",\"village\":\"Data.village.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints by Locality\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"size\": 0,\n \"aggs\": {\n \"Open Filter\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": {\n \"value\": \"PENDING_ASSIGNMENT\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Id\": {\n \"terms\": {\n \"field\": \"Data.service.serviceRequestId.keyword\",\n \"size\": 1000000\n },\n \"aggs\": {\n \"Created Time\": {\n \"terms\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"def createdTime = doc['Data.service.auditDetails.createdTime'].value;\\n def dateFormat = new SimpleDateFormat('dd MMM yyyy hh mm ss');\\n def formattedDate = dateFormat.format(new Date(createdTime));\\n def stringDate = formattedDate.toString();\\n def day = stringDate.substring(0, 2);\\n def month = stringDate.substring(3, 6);\\n def year = stringDate.substring(7, 11);\\n def hour = stringDate.substring(12, 14);\\n def minute = stringDate.substring(15, 17);\\n def seconds = stringDate.substring(18, 20);\\n return day + ' ' + month + ' ' + year + ' ' + hour + 'h ' + minute + 'm ' + seconds + 's'\"\n },\n \"size\": 1,\n \"order\": {\n \"_key\": \"asc\"\n }},\n \"aggs\": {\n \"Complaint Type\": {\n \"terms\": {\n \"field\": \"Data.service.serviceCode.keyword\",\n \"size\": 1\n },\n \"aggs\": {\n \"Administrative Area\": {\n \"terms\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"def village = params['_source']['Data']['village']; \\n def locality = params['_source']['Data']['locality']; \\n def administrativeProvince = params['_source']['Data']['administrativeProvince']; \\n def district = params['_source']['Data']['district']; \\n def province = params['_source']['Data']['province']; \\n if(village != null ) {return village;\\n}\\n else if(locality != null ) {return locality;\\n}\\n else if(administrativeProvince != null ) {return administrativeProvince;\\n}\\n else if(district != null ) {return district;\\n}\\n else if(province != null ) {return province;\\n} \\n else {return 'N/A'; \\n}\\n\"\n },\n \"size\": 1\n },\n \"aggs\": {\n \"Complainant Phone Number\": {\n \"terms\": {\n \"field\": \"Data.RequestInfo.userInfo.mobileNumber.keyword\",\n \"size\": 1\n },\n \"aggs\": {\n \"Supervisor Contact Number\": {\n \"terms\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"def additionalDetail = params['_source']['Data']['service']['additionalDetail'];\\nif (additionalDetail != null && additionalDetail.contains('\\\"supervisorContactNumber\\\":\\\"')) {\\n int startIndex = additionalDetail.indexOf('\\\"supervisorContactNumber\\\":') + 27;\\n int endIndex = additionalDetail.indexOf(',', startIndex);\\n if (endIndex != -1) {\\n String supervisorContactNumber = additionalDetail.substring(startIndex, endIndex-1);\\n if (supervisorContactNumber!=':null ') return supervisorContactNumber;\\n }\\n}\\nreturn 'N/A';\"\n },\n \"size\": 1\n },\n \"aggs\": {\n \"Details\": {\n \"terms\": {\n \"field\": \"Data.service.description.keyword\", \n \"size\": 1\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + + "chartType": "table", "valueType": "number", - "showLabel": true, - "drillChart": "complaintsByVillageTotal", - "filterKeys": [{"key": "locality"}], + "drillChart": "none", "documentType": "_doc", "action": "", + "pathDataTypeMapping": [ + { + "Complaints Id": "string" + }, + { + "Created Time": "string" + }, + { + "Complaint Type": "string" + }, + { + "Administrative Area": "string" + }, + { + "Complainant Phone Number": "string" + }, + { + "Supervisor Contact Number": "string" + }, + { + "Details": "string" + } + ], + "plotLabel": "Complaint ID", "aggregationPaths": [ - "Complaints by Locality" + "Complaints Id", + "Created Time", + "Complaint Type", + "Details", + "Administrative Area", + "Complainant Phone Number", + "Supervisor Contact Number" ], - "insight": {}, + "insight": { + }, + "sort": "sortKeyAsc", "_comment": " " }, - "complaintsByVillageTotal": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_BY_VILLAGE_TOTAL", + "checklistCompletionRateOfNationalSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_NATIONAL_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints by Village\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"NATIONAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" } ], "chartType": "line", "isCumulative": false, "valueType": "number", - "showLabel": true, + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", "action": "", - "aggregationPaths": [ - "Complaints by Village" - ], - "insight": {}, + "filterKeys": [], + "aggregationPaths": ["Checklist name"], + "insight": { }, "_comment": " " }, - "complaintsByStatusBreakdownProvincial": { - "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_PROVINCIAL", + "checklistCompletionRateOfProvincialSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_PROVINCIAL_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "indexName": "service-task-v1", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"PROVINCIAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" } ], "chartType": "line", "isCumulative": false, "valueType": "number", "plotLabel": "none", - "drillChart": "complaintsByStatusBreakdownDistrict", - "filterKeys": [{"key": "district"}], + "drillChart": "none", "documentType": "_doc", "action": "", - "aggregationPaths": ["Open Complaints","Resolved Complaints","Rejected Complaints"], + "filterKeys": [], + "aggregationPaths": ["Checklist name"], "insight": { }, "_comment": " " }, - "complaintsByStatusBreakdownDistrict": { - "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_DISTRICT", + "checklistCompletionRateOfDistrictSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_DISTRICT_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints by APs\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints by APs\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints by APs\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "indexName": "service-task-v1", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"DISTRICT_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" } ], "chartType": "line", "isCumulative": false, "valueType": "number", "plotLabel": "none", - "drillChart": "complaintsByStatusBreakdownAP", - "filterKeys": [{"key": "administrativeProvince"}], + "drillChart": "none", "documentType": "_doc", "action": "", - "aggregationPaths": ["Open Complaints by APs","Resolved Complaints by APs","Rejected Complaints by APs"], + "filterKeys": [], + "aggregationPaths": ["Checklist name"], "insight": { }, "_comment": " " }, - "complaintsByStatusBreakdownAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_AP", + "supervisionSummaryNationalSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_SUMMARY_NATIONAL_SUPERVISOR", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Localities\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints by Localities\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints by Localities\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Localities\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints by Localities\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*AS_MONITORING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"NATIONAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled AS\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"NATIONAL_SUPERVISOR.AS_MONITORING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted AS\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*LOCAL_MONITOR_TRAINING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"NATIONAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled LM\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"NATIONAL_SUPERVISOR.LOCAL_MONITOR_TRAINING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted LM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*DISTRICT_MONITOR_TRAINING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"NATIONAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled DMT\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"NATIONAL_SUPERVISOR.DISTRICT_MONITOR_TRAINING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted DMT\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*REGISTRATION_BASIC*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"NATIONAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled RB\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"NATIONAL_SUPERVISOR.REGISTRATION_BASIC\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted RB\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*REGISTRATION_TEAM_TRAINING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"NATIONAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled RTT\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"NATIONAL_SUPERVISOR.REGISTRATION_TEAM_TRAINING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted RTT\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*SOCIAL_MOBILIZATION*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"NATIONAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled SM\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"NATIONAL_SUPERVISOR.SOCIAL_MOBILIZATION\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted SM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"NATIONAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled Total\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.targetType.keyword\": \"NATIONAL_SUPERVISOR.*\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted Total\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "chartType": "xtable", "valueType": "number", - "plotLabel": "none", - "drillChart": "complaintsByStatusBreakdownLocality", - "filterKeys": [{"key": "locality"}], + "drillChart": "", "documentType": "_doc", "action": "", - "aggregationPaths": ["Open Complaints by Localities","Resolved Complaints by Localities","Rejected Complaints by Localities"], - "insight": { }, - "_comment": " " - }, - "complaintsByStatusBreakdownLocality": { - "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_LOCALITY", - "queries": [ + "plotLabel": "UserName", + "filterKeys": [ + {"key": "district", "column": "Inventory summary By District"} + ], + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": [ + "CLs Filled AS", + "CLs Filled LM", + "CLs Filled DMT", + "CLs Filled RB", + "CLs Filled RTT", + "CLs Filled SM", + "CLs Filled Total", + "CLs Targeted AS", + "CLs Targeted LM", + "CLs Targeted DMT", + "CLs Targeted RB", + "CLs Targeted RTT", + "CLs Targeted SM", + "CLs Targeted Total" + ], + "includeConstantColumns": [ + "CLs Targeted AS", + "CLs Targeted LM", + "CLs Targeted DMT", + "CLs Targeted RB", + "CLs Targeted RTT", + "CLs Targeted SM", + "CLs Targeted Total" + ], + "computedFields": [ { - "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints by Villages\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Villages\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints by Villages\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Villages\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints by Villages\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled RB" ], + "newField" : "Checklists Filled Count RB", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted RB" ], + "newField" : "Checklists Targeted RB", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count RB", "Checklists Targeted RB"], + "newField" : "Checklists Filled Percentage RB", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled DMT" ], + "newField" : "Checklists Filled Count DMT", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted DMT" ], + "newField" : "Checklists Targeted DMT", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count DMT", "Checklists Targeted DMT"], + "newField" : "Checklists Filled Percentage DMT", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled AS" ], + "newField" : "Checklists Filled Count AS", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted AS" ], + "newField" : "Checklists Targeted AS", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count AS", "Checklists Targeted AS"], + "newField" : "Checklists Filled Percentage AS", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled LM" ], + "newField" : "Checklists Filled Count LM", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted LM" ], + "newField" : "Checklists Targeted LM", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count LM", "Checklists Targeted LM"], + "newField" : "Checklists Filled Percentage LM", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled RTT" ], + "newField" : "Checklists Filled Count RTT", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted RTT" ], + "newField" : "Checklists Targeted RTT", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count RTT", "Checklists Targeted RTT"], + "newField" : "Checklists Filled Percentage RTT", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled SM" ], + "newField" : "Checklists Filled Count SM", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted SM" ], + "newField" : "Checklists Targeted SM", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count SM", "Checklists Targeted SM"], + "newField" : "Checklists Filled Percentage SM", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled Total" ], + "newField" : "Checklists Filled Count Total", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted Total" ], + "newField" : "Checklists Targeted Total", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count Total", "Checklists Targeted Total"], + "newField" : "Checklists Filled Percentage Total", + "_comments": "" } ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": ["Open Complaints by Villages","Resolved Complaints by Villages","Rejected Complaints by Villages"], - "insight": { }, + "insight": { + }, + "sort": "sortKeyAsc", "_comment": " " }, - "complaintsByStatusSummaryProvince": { - "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_PROVINCE", + "supervisionSummaryProvincialSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_SUMMARY_PROVINCIAL_SUPERVISOR", "queries": [ { "module": "COMMON", - "dateRefField": "", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints by Districts\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints by APs\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints by Districts\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"District Wise Filled Count\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 10\n },\n \"aggs\": {\n \"AS Filter\": {\n \"filter\": {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*AS_MONITORING.PROVINCIAL_SUPERVISOR*\"\n }\n }\n },\n \"aggs\": {\n \"AS Count Entries\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"LM Filter\": {\n \"filter\": {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*LOCAL_MONITOR_TRAINING.PROVINCIAL_SUPERVISOR*\"\n }\n }\n },\n \"aggs\": {\n \"LM Count Entries\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"DMT Filter\": {\n \"filter\": {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*DISTRICT_MONITOR_TRAINING.PROVINCIAL_SUPERVISOR*\"\n }\n }\n },\n \"aggs\": {\n \"DMT Count Entries\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"RTT Filter\": {\n \"filter\": {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*REGISTRATION_TEAM_TRAINING.PROVINCIAL_SUPERVISOR*\"\n }\n }\n },\n \"aggs\": {\n \"RTT Count Entries\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"RB Filter\": {\n \"filter\": {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*REGISTRATION_BASIC.PROVINCIAL_SUPERVISOR*\"\n }\n }\n },\n \"aggs\": {\n \"RB Count Entries\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "district", "column": "Districts"} - ], "chartType": "xtable", "valueType": "number", - "drillChart": "complaintsByStatusSummaryDistrict", + "drillChart": "supervisionSummaryProvincialSupervisorDrill", "documentType": "_doc", "action": "", - "plotLabel": "Districts", - "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "plotLabel": "District", + "filterKeys": [ + {"key": "district", "column": "District"} + ], + "divisorFields": [], + "showFooter": false, "hideInsights": true, - "showFooter": true, "hideHeaderDenomination": true, + "excludedColumns": [ + "AS Count Entries", "RB Count Entries", "RTT Count Entries", "DMT Count Entries", "LM Count Entries" + ], "computedFields": [ { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "newField" : "Registered", + "fields" : [ "AS Count Entries" ], + "newField" : "Checklists Filled Count AS", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count"], - "newField" : "Resolved", + "fields" : [ "RB Count Entries" ], + "newField" : "Checklists Filled Count RB", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Rejected Complaints Count"], - "newField" : "Rejected", + "fields" : [ "RTT Count Entries" ], + "newField" : "Checklists Filled Count RTT", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Open Complaints Count"], - "newField" : "Open", + "fields" : [ "DMT Count Entries" ], + "newField" : "Checklists Filled Count DMT", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ "LM Count Entries" ], + "newField": "Checklists Filled Count LM", "_comments": "" } ], "insight": { }, + "sort": "sortKeyAsc", "_comment": " " }, - "complaintsByStatusSummaryDistrict": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_DISTRICT", + "supervisionSummaryProvincialSupervisorDrill": { + "chartName": "DSS_HEALTH_SUPERVISION_SUMMARY_PROVINCIAL_SUPERVISOR", "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*AS_MONITORING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"PROVINCIAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled AS\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PROVINCIAL_SUPERVISOR.AS_MONITORING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted AS\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*LOCAL_MONITOR_TRAINING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"PROVINCIAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled LM\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PROVINCIAL_SUPERVISOR.LOCAL_MONITOR_TRAINING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted LM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*DISTRICT_MONITOR_TRAINING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"PROVINCIAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled DMT\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PROVINCIAL_SUPERVISOR.DISTRICT_MONITOR_TRAINING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted DMT\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*REGISTRATION_BASIC*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"PROVINCIAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled RB\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PROVINCIAL_SUPERVISOR.REGISTRATION_BASIC\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted RB\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*REGISTRATION_TEAM_TRAINING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"PROVINCIAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled RTT\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PROVINCIAL_SUPERVISOR.REGISTRATION_TEAM_TRAINING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted RTT\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"PROVINCIAL_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled Total\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints by APs\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints by APs\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints by APs\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.targetType.keyword\": \"PROVINCIAL_SUPERVISOR.*\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted Total\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "administrativeProvince", "column": "APs"} - ], "chartType": "xtable", "valueType": "number", - "drillChart": "complaintsByStatusSummaryAP", + "drillChart": "", "documentType": "_doc", "action": "", - "showFooter": true, - "plotLabel": "APs", - "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "plotLabel": "UserName", + "divisorFields": [], + "showFooter": false, "hideInsights": true, "hideHeaderDenomination": true, + "excludedColumns": [ + "CLs Filled AS", + "CLs Filled LM", + "CLs Filled DMT", + "CLs Filled RB", + "CLs Filled RTT", + "CLs Filled Total", + "CLs Targeted AS", + "CLs Targeted LM", + "CLs Targeted DMT", + "CLs Targeted RB", + "CLs Targeted RTT", + "CLs Targeted Total" + ], + "includeConstantColumns": [ + "CLs Targeted AS", + "CLs Targeted LM", + "CLs Targeted DMT", + "CLs Targeted RB", + "CLs Targeted RTT", + "CLs Targeted Total" + ], "computedFields": [ { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "newField" : "Registered", + "fields" : [ "CLs Filled RB" ], + "newField" : "Checklists Filled Count RB", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory" : "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count"], - "newField" : "Resolved", + "fields" : [ "CLs Targeted RB" ], + "newField" : "Checklists Targeted RB", "_comments": "" }, { "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Rejected Complaints Count"], - "newField" : "Rejected", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count RB", "Checklists Targeted RB"], + "newField" : "Checklists Filled Percentage RB", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Open Complaints Count"], - "newField" : "Open", + "fields" : [ "CLs Filled DMT" ], + "newField" : "Checklists Filled Count DMT", "_comments": "" - } - ], - "insight": { - }, - "_comment": " " - }, - "complaintsByStatusSummaryAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_AP", - "queries": [ - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints by Locality\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints by Locality\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints by Locality\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "filterKeys": [ - {"key": "locality", "column": "Locality"} - ], - "chartType": "xtable", - "valueType": "number", - "drillChart": "complaintsByStatusSummaryLocality", - "documentType": "_doc", - "action": "", - "showFooter": true, - "plotLabel": "Locality", - "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "hideInsights": true, - "hideHeaderDenomination": true, - "computedFields": [ + }, { - "postAggregationTheory" : "", + "postAggregationTheory" : "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "newField" : "Registered", + "fields" : [ "CLs Targeted DMT" ], + "newField" : "Checklists Targeted DMT", "_comments": "" }, { "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count"], - "newField" : "Resolved", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count DMT", "Checklists Targeted DMT"], + "newField" : "Checklists Filled Percentage DMT", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Rejected Complaints Count"], - "newField" : "Rejected", + "fields" : [ "CLs Filled AS" ], + "newField" : "Checklists Filled Count AS", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory" : "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : ["Open Complaints Count"], - "newField" : "Open", + "fields" : [ "CLs Targeted AS" ], + "newField" : "Checklists Targeted AS", "_comments": "" - } - ], - "insight": { - }, - "_comment": " " - }, - "complaintsByStatusSummaryLocality": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_Locality", - "queries": [ + }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints by Village\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints by Village\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints by Village\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - - "chartType": "xtable", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "showFooter": true, - "plotLabel": "Village", - "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "hideInsights": true, - "hideHeaderDenomination": true, - "computedFields": [ + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count AS", "Checklists Targeted AS"], + "newField" : "Checklists Filled Percentage AS", + "_comments": "" + }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "newField" : "Registered", + "fields" : [ "CLs Filled LM" ], + "newField" : "Checklists Filled Count LM", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory" : "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count"], - "newField" : "Resolved", + "fields" : [ "CLs Targeted LM" ], + "newField" : "Checklists Targeted LM", "_comments": "" }, { "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Rejected Complaints Count"], - "newField" : "Rejected", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count LM", "Checklists Targeted LM"], + "newField" : "Checklists Filled Percentage LM", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Open Complaints Count"], - "newField" : "Open", + "fields" : [ "CLs Filled RTT" ], + "newField" : "Checklists Filled Count RTT", "_comments": "" - } - ], - "insight": { - }, - "_comment": " " - }, - "averageResolutionTimeProvince":{ - "chartName": "DSS_HEALTH_COMPLAINTS_AVVERAGE_RESOLUTION_TIME_PROVINCE", - "queries": [ + }, { - "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "drillChart": "averageResolutionTimeDistrict", - "documentType": "_doc", - "action": "", - "aggregationPaths": ["Resolution time in hours"], - "filterKeys": [{"key": "district"}], - "insight": { }, - "_comment": " " - }, - "averageResolutionTimeDistrict":{ - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_DISTRICT", - "queries": [ + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted RTT" ], + "newField" : "Checklists Targeted RTT", + "_comments": "" + }, { - "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "drillChart": "averageResolutionTimeAP", - "documentType": "_doc", - "action": "", - "aggregationPaths": ["Resolution time in hours"], - "filterKeys": [{"key": "administrativeProvince"}], - "insight": { }, - "_comment": " " - }, - "averageResolutionTimeAP":{ - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_AP", - "queries": [ + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count RTT", "Checklists Targeted RTT"], + "newField" : "Checklists Filled Percentage RTT", + "_comments": "" + }, { - "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "drillChart": "averageResolutionTimeLocality", - "documentType": "_doc", - "action": "", - "aggregationPaths": ["Resolution time in hours"], - "filterKeys": [{"key": "locality"}], - "insight": { }, - "_comment": " " - }, - "averageResolutionTimeLocality":{ - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_LOCALITY", - "queries": [ + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled Total" ], + "newField" : "Checklists Filled Count Total", + "_comments": "" + }, { - "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted Total" ], + "newField" : "Checklists Targeted Total", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count Total", "Checklists Targeted Total"], + "newField" : "Checklists Filled Percentage Total", + "_comments": "" } ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": ["Resolution time in hours"], - "filterKeys": [{"key": "village"}], - "insight": { }, + "insight": { + }, + "sort": "sortKeyAsc", "_comment": " " }, - "bednetsCoverageHeatMapProvince": { - "chartName": "DSS_HEALTH_BEDNETS_COVERAGE_HEATMAP_PROVINCE", + "supervisionSummaryDistrictSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_SUMMARY_DISTRICT_SUPERVISOR", "queries": [ - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, { "module": "COMMON", "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Bednets covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"total_count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"District Wise Filled Count\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 10\n },\n \"aggs\": {\n \"AS Filter\": {\n \"filter\": {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*AS_MONITORING.DISTRICT_SUPERVISOR*\"\n }\n }\n },\n \"aggs\": {\n \"AS Count Entries\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"LM Filter\": {\n \"filter\": {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*LOCAL_MONITOR_TRAINING.DISTRICT_SUPERVISOR*\"\n }\n }\n },\n \"aggs\": {\n \"LM Count Entries\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"DMT Filter\": {\n \"filter\": {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*DISTRICT_MONITOR_TRAINING.DISTRICT_SUPERVISOR*\"\n }\n }\n },\n \"aggs\": {\n \"DMT Count Entries\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"RTT Filter\": {\n \"filter\": {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*REGISTRATION_TEAM_TRAINING.DISTRICT_SUPERVISOR*\"\n }\n }\n },\n \"aggs\": {\n \"RTT Count Entries\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"RB Filter\": {\n \"filter\": {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*REGISTRATION_BASIC.DISTRICT_SUPERVISOR*\"\n }\n }\n },\n \"aggs\": {\n \"RB Count Entries\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [], "chartType": "xtable", "valueType": "number", - "drillChart": "", + "drillChart": "supervisionSummaryDistrictSupervisorDrill", "documentType": "_doc", "action": "", - "plotLabel": "Districts", + "plotLabel": "District", + "filterKeys": [ + {"key": "district", "column": "District"} + ], + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, "excludedColumns": [ - "S.N.", - "Target for daterange" + "AS Count Entries", "RB Count Entries", "RTT Count Entries", "DMT Count Entries", "LM Count Entries" ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : [ "Target for daterange" ], - "newField" : "Bednets Target", + "fields" : [ "AS Count Entries" ], + "newField" : "Checklists Filled Count AS", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "RB Count Entries" ], + "newField" : "Checklists Filled Count RB", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "RTT Count Entries" ], + "newField" : "Checklists Filled Count RTT", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "DMT Count Entries" ], + "newField" : "Checklists Filled Count DMT", "_comments": "" }, { "postAggregationTheory": "", - "actionName": "PercentageComputedField", - "fields": [ - "total_count", - "Bednets Target" - ], - "newField": "percentage_value", + "actionName": "AdditiveComputedField", + "fields": [ "LM Count Entries" ], + "newField": "Checklists Filled Count LM", "_comments": "" } ], "insight": { }, - "hideInsights": true, - "hideHeaderDenomination": true, + "sort": "sortKeyAsc", "_comment": " " }, - "InventorySummaryByDistrict": { - "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_DISTRICT", + "supervisionSummaryDistrictSupervisorDrill": { + "chartName": "DSS_HEALTH_SUPERVISION_SUMMARY_DISTRICT_SUPERVISOR", "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*AS_MONITORING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"DISTRICT_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled AS\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"DISTRICT_SUPERVISOR.AS_MONITORING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted AS\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*LOCAL_MONITOR_TRAINING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"DISTRICT_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled LM\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"DISTRICT_SUPERVISOR.LOCAL_MONITOR_TRAINING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted LM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*DISTRICT_MONITOR_TRAINING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"DISTRICT_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled DMT\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"DISTRICT_SUPERVISOR.DISTRICT_MONITOR_TRAINING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted DMT\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*REGISTRATION_BASIC*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"DISTRICT_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled RB\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"DISTRICT_SUPERVISOR.REGISTRATION_BASIC\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted RB\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": {\n \"value\": \"*REGISTRATION_TEAM_TRAINING*\"\n }\n }\n },\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"DISTRICT_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled RTT\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"DISTRICT_SUPERVISOR.REGISTRATION_TEAM_TRAINING\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted RTT\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": {\n \"value\": \"DISTRICT_SUPERVISOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Supervisor Names\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"CLs Filled Total\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"Data.targetType.keyword\": \"DISTRICT_SUPERVISOR.*\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"CLs Targeted Total\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.overallTarget'].value * 365\"\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "plotLabel": "Inventory summary By District", - "filterKeys": [ - {"key": "Data.district.keyword", "column": "Inventory summary By District"} - ], + "plotLabel": "UserName", "divisorFields": [], "showFooter": false, "hideInsights": true, "hideHeaderDenomination": true, - "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock"], + "excludedColumns": [ + "CLs Filled AS", + "CLs Filled LM", + "CLs Filled DMT", + "CLs Filled RB", + "CLs Filled RTT", + "CLs Filled Total", + "CLs Targeted AS", + "CLs Targeted LM", + "CLs Targeted DMT", + "CLs Targeted RB", + "CLs Targeted RTT", + "CLs Targeted Total" + ], + "includeConstantColumns": [ + "CLs Targeted AS", + "CLs Targeted LM", + "CLs Targeted DMT", + "CLs Targeted RB", + "CLs Targeted RTT", + "CLs Targeted Total" + ], "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled RB" ], + "newField" : "Checklists Filled Count RB", + "_comments": "" + }, { "postAggregationTheory" : "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : [ "Target for range" ], - "newField" : "Nets Target", + "fields" : [ "CLs Targeted RB" ], + "newField" : "Checklists Targeted RB", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count RB", "Checklists Targeted RB"], + "newField" : "Checklists Filled Percentage RB", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : [ "Incoming" ], - "newField" : "Incoming Stock", + "fields" : [ "CLs Filled DMT" ], + "newField" : "Checklists Filled Count DMT", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted DMT" ], + "newField" : "Checklists Targeted DMT", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count DMT", "Checklists Targeted DMT"], + "newField" : "Checklists Filled Percentage DMT", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : [ "Outgoing" ], - "newField" : "Outgoing Stock", + "fields" : [ "CLs Filled AS" ], + "newField" : "Checklists Filled Count AS", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted AS" ], + "newField" : "Checklists Targeted AS", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count AS", "Checklists Targeted AS"], + "newField" : "Checklists Filled Percentage AS", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : [ "Total Stock" ], - "newField" : "Stock Left", + "fields" : [ "CLs Filled LM" ], + "newField" : "Checklists Filled Count LM", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted LM" ], + "newField" : "Checklists Targeted LM", "_comments": "" }, { "postAggregationTheory" : "", "actionName": "PercentageComputedField", - "fields" : [ "Total Stock","Target for days to last" ], - "newField" : "Days To Last", + "fields" : [ "Checklists Filled Count LM", "Checklists Targeted LM"], + "newField" : "Checklists Filled Percentage LM", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled RTT" ], + "newField" : "Checklists Filled Count RTT", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted RTT" ], + "newField" : "Checklists Targeted RTT", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count RTT", "Checklists Targeted RTT"], + "newField" : "Checklists Filled Percentage RTT", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Filled Total" ], + "newField" : "Checklists Filled Count Total", + "_comments": "" + }, + { + "postAggregationTheory" : "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields" : [ "CLs Targeted Total" ], + "newField" : "Checklists Targeted Total", + "_comments": "" + }, + { + "postAggregationTheory" : "", + "actionName": "PercentageComputedField", + "fields" : [ "Checklists Filled Count Total", "Checklists Targeted Total"], + "newField" : "Checklists Filled Percentage Total", "_comments": "" } ], "insight": { }, + "sort": "sortKeyAsc", "_comment": " " }, - "InventorySummaryByAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_AP", + "userSyncRateByDistrict": { + "chartName": "DSS_HEALTH_SUPERVISION_USER_SYNC_RATE_BY_DISTRICT", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "filterKeys": [{"key": "district"}], + "sort": "sortKeyAsc", + "aggregationPaths": ["Sync Rate Percentage","AGGS"], + "insight": { }, + "_comment": " " + }, + "userSyncRateByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_SUPERVISION_USER_SYNC_RATE_BY_AP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Synced Number\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "sort": "sortKeyAsc", + "aggregationPaths": ["Synced Number"], + "insight": { }, + "_comment": " " + }, + "householdsVisitedLatLongPointsProvince": { + "chartName": "DSS_HEALTH_RD_HH_VISITED_LATLONG", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.boundaryHierarchy.province.keyword\", \"district\": \"Data.boundaryHierarchy.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.boundaryHierarchy.village.keyword\",\n \"size\": 10000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.boundaryHierarchy.province.keyword\", \"district\": \"Data.boundaryHierarchy.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households\": {\n \"terms\": {\n \"field\": \"Data.boundaryHierarchy.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Household Covered Count\" : {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "householdsVisitedLatLongPointsDistrict", "documentType": "_doc", "action": "", - "plotLabel": "Inventory summary By AP", - "filterKeys": [ - {"key": "Data.administrativeProvince.keyword", "column": "Inventory summary By AP"} + "plotLabel": "Households", + "excludedColumns": [ + "S.N.", + "LONGITUDE", "LATITUDE", "Household Covered Count" ], - "divisorFields": [], - "showFooter": false, - "hideInsights": true, - "hideHeaderDenomination": true, - "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock"], "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "AdditiveComputedField", - "fields" : [ "Target for range" ], - "newField" : "Nets Target", - "_comments": "" - }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : [ "Incoming" ], - "newField" : "Incoming Stock", + "newField": "longitude", + "fields" : [ "LONGITUDE" ], "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Outgoing" ], - "newField" : "Outgoing Stock", + "newField": "latitude", + "fields": ["LATITUDE"], "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Total Stock" ], - "newField" : "Stock Left", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : [ "Total Stock","Target for days to last" ], - "newField" : "Days To Last", + "newField": "Households", + "fields": ["Household Covered Count"], "_comments": "" } ], "insight": { }, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "InventorySummaryByLocality": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_LOCALITY", + "householdsVisitedLatLongPointsDistrict": { + "chartName": "DSS_HEALTH_RD_HH_VISITED_LATLONG", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.boundaryHierarchy.province.keyword\", \"district\": \"Data.boundaryHierarchy.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.boundaryHierarchy.village.keyword\",\n \"size\": 10000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.boundaryHierarchy.province.keyword\", \"district\": \"Data.boundaryHierarchy.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households\": {\n \"terms\": {\n \"field\": \"Data.boundaryHierarchy.administrativeProvince.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Household Covered Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Inventory summary By Locality", - "filterKeys": [ - {"key": "Data.locality.keyword", "column": "Inventory summary By Locality"} + "plotLabel": "Households", + "excludedColumns": [ + "S.N.", + "LONGITUDE", "LATITUDE", "Household Covered Count" ], - "divisorFields": [], - "showFooter": false, - "hideInsights": true, - "hideHeaderDenomination": true, - "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock"], "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "AdditiveComputedField", - "fields" : [ "Target for range" ], - "newField" : "Nets Target", - "_comments": "" - }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : [ "Incoming" ], - "newField" : "Incoming Stock", + "newField": "longitude", + "fields" : [ "LONGITUDE" ], "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Outgoing" ], - "newField" : "Outgoing Stock", + "newField": "latitude", + "fields": ["LATITUDE"], "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Total Stock" ], - "newField" : "Stock Left", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : [ "Total Stock","Target for days to last" ], - "newField" : "Days To Last", + "newField": "Households", + "fields": ["Household Covered Count"], "_comments": "" } ], "insight": { }, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "InventorySummaryByVillage": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_VILLAGE", + "householdsVisitedLatLongPointsAp": { + "chartName": "DSS_HEALTH_RD_HH_VISITED_LATLONG", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.boundaryHierarchy.province.keyword\", \"district\": \"Data.boundaryHierarchy.district.keyword\", \"finalFilter\": \"Data.boundaryHierarchy.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.id.keyword\",\n \"size\": 10000000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.boundaryHierarchy.province.keyword\", \"district\": \"Data.boundaryHierarchy.district.keyword\", \"finalFilter\": \"Data.boundaryHierarchy.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households\": {\n \"terms\": {\n \"field\": \"Data.boundaryHierarchy.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Household Covered Count\" : {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "plotLabel": "Inventory summary By Village", - "filterKeys": [ - {"key": "village", "column": "Inventory summary By Village"} + "plotLabel": "Households", + "excludedColumns": [ + "S.N.", + "LONGITUDE", "LATITUDE", "Household Covered Count" ], - "divisorFields": [], - "showFooter": false, - "hideInsights": true, - "hideHeaderDenomination": true, - "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock"], "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "AdditiveComputedField", - "fields" : [ "Target for range" ], - "newField" : "Nets Target", - "_comments": "" - }, { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : [ "Incoming" ], - "newField" : "Incoming Stock", + "newField": "longitude", + "fields" : [ "LONGITUDE" ], "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Outgoing" ], - "newField" : "Outgoing Stock", + "newField": "latitude", + "fields": ["LATITUDE"], "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Total Stock" ], - "newField" : "Stock Left", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : [ "Total Stock","Target for days to last" ], - "newField" : "Days To Last", + "newField": "Households", + "fields": ["Household Covered Count"], "_comments": "" } ], "insight": { }, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "complaintsByTypeBreakdownProvincial": { - "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_PROVINCIAL", - "queries": [ - { - "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", - "drillChart": "complaintsByTypeBreakdownDistrict", - "filterKeys": [{"key": "district"}], - "documentType": "_doc", - "action": "", - "aggregationPaths": ["SyncNotWorking by Districts","NotEnoughStock by Districts","Other by Districts"], - "insight": { }, - "_comment": " " - }, - "complaintsByTypeBreakdownDistrict": { - "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_DISTRICT", - "queries": [ - { - "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", - "drillChart": "complaintsByTypeBreakdownAP", - "filterKeys": [{"key": "administrativeProvince"}], - "documentType": "_doc", - "action": "", - "aggregationPaths": ["SyncNotWorking by APs", "NotEnoughStock by APs", "Other by APs"], - "insight": { }, - "_comment": " " - }, - "complaintsByTypeBreakdownAP": { - "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_AP", - "queries": [ - { - "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", - "drillChart": "complaintsByTypeBreakdownLocality", - "filterKeys": [{"key": "locality"}], - "documentType": "_doc", - "action": "", - "aggregationPaths": ["SyncNotWorking by Locality", "NotEnoughStock by Locality", "Other by Locality"], - "insight": { }, - "_comment": " " - }, - "complaintsByTypeBreakdownLocality": { - "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_LOCALITY", - "queries": [ - { - "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - } - ], - "chartType": "line", - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": ["SyncNotWorking by Village", "NotEnoughStock by Village", "Other by Village"], - "insight": { }, - "_comment": " " - }, - "complaintsByStatusSummaryDay": { - "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_DAY", + "warehouseDistributionLatLongPoints": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - + "filterKeys": [], "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "showFooter": true, - "plotLabel": "Summary Daywise", - "excludedColumns": ["S.N.","Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "hideInsights": true, - "hideHeaderDenomination": true, + "plotLabel": "Warehouse Name", + "excludedColumns": [ + "S.N.", + "LONGITUDE", "LATITUDE" + ], "computedFields": [ { "postAggregationTheory" : "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "newField" : "Registered", + "newField": "longitude", + "fields" : [ "LONGITUDE" ], "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count"], - "newField" : "Resolved", + "newField": "latitude", + "fields": ["LATITUDE"], "_comments": "" - }, + } + ], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " + }, + "warehouseDistributionLatLongTableDaysStockLastsDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "queries": [ { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Rejected Complaints Count"], - "newField" : "Rejected", - "_comments": "" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Will last for\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Open Complaints Count"], - "newField" : "Open", - "_comments": "" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], + "chartType": "line", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "division", + "plotLabel": "District", + "isCumulative" : false, + "aggregationPaths": ["Will last for", "Target Per Day"], "insight": { }, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "ComplaintsShareByDistrict": { - "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "warehouseDistributionLatLongTableAvlRcvdDispDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints by District\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock Received Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"Stock Received\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n },\n \"Stock Dispatched Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"Stock Dispatched\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], "chartType": "line", - "isCumulative": false, - "valueType": "percentage", - "plotLabel": "none", - "drillChart": "ComplaintsShareByAP", + "valueType": "number", + "drillChart": "", "documentType": "_doc", - "action": "divisionbyconstant", - "aggregationPaths": ["% of Total Complaints by District","Total Complaints"], - "filterKeys": [{"key": "district"}], - "insight": { }, + "action": "", + "plotLabel": "District", + "isCumulative" : false, + "aggregationPaths": ["Stock in Hand", "Stock Received", "Stock Dispatched"], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "ComplaintsShareByAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "warehouseDistributionLatLongTableAvlRcvdDispFacilities": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "dateRefField": "", "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints by Administrative Province\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "dateRefField": "", "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock Received Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"Stock Received\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n },\n \"Stock Dispatched Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"Stock Dispatched\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], "chartType": "line", - "isCumulative": false, - "valueType": "percentage", - "plotLabel": "none", - "drillChart": "ComplaintsShareByLocality", + "valueType": "number", + "drillChart": "", "documentType": "_doc", - "action": "divisionbyconstant", - "aggregationPaths": ["% of Total Complaints by Administrative Province","Total Complaints"], - "filterKeys": [{"key": "administrativeProvince"}], - "insight": { }, + "action": "", + "plotLabel": "Warehouse Name", + "isCumulative" : false, + "aggregationPaths": ["Stock in Hand", "Stock Received", "Stock Dispatched"], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "ComplaintsShareByLocality": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "warehouseDistributionLatLongTableStockStatusDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints by Locality\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Overall Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"ot\": \"SUM\"\n },\n \"script\": \"params.ot * (-1)\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by district\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity']\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], "chartType": "line", - "isCumulative": false, - "valueType": "percentage", - "plotLabel": "none", - "drillChart": "ComplaintsShareByVillage", + "valueType": "number", + "drillChart": "", "documentType": "_doc", - "action": "divisionbyconstant", - "aggregationPaths": ["% of Total Complaints by Locality","Total Complaints"], - "filterKeys": [{"key": "locality"}], - "insight": { }, + "action": "", + "plotLabel": "District", + "isCumulative" : false, + "computedFields": [ + { + "postAggregationTheory" : "", + "actionName": "SumComputedField", + "fields" : ["Stock in Hand","Overall Target","Distributions by district"], + "newField" : "Status", + "_comments": "" + } + + ], + "computeMultiPaths": true, + "aggregationPaths": ["Stock in Hand","Overall Target","Distributions by district"], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "ComplaintsShareByVillage": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "warehouseDistributionLatLongTableWarNumDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints by Village\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" - }, - { - "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"match_phrase\": {\n \"Data.facilityType.keyword\": \"Monitor Local\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Warehouses\": {\n \"terms\": {\n \"size\": 50000,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"CARDINALITY\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.facilityId.keyword\"\n }, \n \"init_script\": \"state.list=[]\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], "chartType": "line", - "isCumulative": false, - "valueType": "percentage", - "plotLabel": "none", - "drillChart": "none", + "valueType": "number", + "drillChart": "", "documentType": "_doc", - "action": "divisionbyconstant", - "aggregationPaths": ["% of Total Complaints by Village","Total Complaints"], - "insight": { }, + "action": "", + "plotLabel": "District", + "isCumulative" : false, + "aggregationPaths": ["No. of Warehouses"], + "insight": { + }, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "openComplaintsSummaryByDistrict": { - "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_DISTRICT", + "aggregatesTeamsSummaryReport": { + "chartName": "DSS_HEALTH_NATIONAL_AGGREGATES_SUMMARY", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true, \n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n \n ]\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Distributor Filter\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": {\n \"value\": \"DISTRIBUTOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Districts\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Teams in the District\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n },\n \"Target For all Teams\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"Teams\": \"Teams in the District\"\n },\n \"script\": \"(params.Teams) * 40\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"DISTRIBUTOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Teams Worked\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); int count = 0; for(shardList in states) { if(shardList != null) {for(key in shardList) { if(!uniqueValueMap.containsKey(key)) { count +=1; uniqueValueMap.put(key, key);}}}}return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"DISTRIBUTOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Teams Worked Hundred\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); int count = 0; for(shardList in states) { if(shardList != null) {for(key in shardList) { if(!uniqueValueMap.containsKey(key)) { count +=1; uniqueValueMap.put(key, key);}}}}return count*100 ;\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Districts\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"Delivered Households\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "district", "column": "Open complaints District"} - ], + "filterKeys": [{"key": "district", "column": "District"}], "chartType": "xtable", "valueType": "number", - "drillChart": "openComplaintsSummaryByAP", + "drillChart": "teamsSummaryReport", "documentType": "_doc", "action": "", - "showFooter": true, - "plotLabel": "Open complaints District", - "excludedColumns": [], + "plotLabel": "District", + "excludedColumns": [ + "Teams in the District", "Teams Worked", "Delivered Households", "Teams Worked Hundred", "Target For all Teams" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["Teams in the District"], + "newField": "Total Teams in District", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["Teams Worked"], + "newField": "Total Teams Worked", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": ["Total Teams Worked", "Total Teams in District"], + "newField": "Total Teams Worked Percentage", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": ["Delivered Households", "Teams Worked Hundred"], + "newField": "Distribution Average By Team", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["Target For all Teams"], + "newField": "Total Target For all Teams", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["Delivered Households"], + "newField": "Total Delivered Households", + "_comments": "" + } + ], + "insight": {}, "hideInsights": true, "hideHeaderDenomination": true, - "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], - "computedFields": [], - "insight": { - }, "_comment": " " }, - "openComplaintsSummaryByAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_AP", + "teamsSummaryReport": { + "chartName": "DSS_HEALTH_TEAMS_SUMMARY_REPORT", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Teams\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"Delivered Households\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Teams\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"DayWise Delivered Households\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Teams\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"Teams Target Per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"count\": \"_count\" \n },\n \"script\": \"40 * 365\" \n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"UserNames\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 10000\n },\n \"aggs\": {\n \"distinct_timestamps\": {\n \"cardinality\": {\n \"script\": {\n \"source\": \"def timestamp = doc['Data.@timestamp'].value.toString(); return timestamp.length() >= 10 ? timestamp.substring(0, 10) : timestamp\",\n \"lang\": \"painless\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "administrativeProvince", "column": "Open complaints AP"} - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", - "drillChart": "openComplaintsSummaryByLocality", + "drillChart": "", "documentType": "_doc", "action": "", - "showFooter": true, - "plotLabel": "Open complaints AP", - "excludedColumns": [], + "plotLabel": "Team Name", + "excludedColumns": [ + "Delivered Households", "Teams Worked Hundred", "Target For all Teams", "Teams Target Per Day", "DayWise Delivered Households", "distinct_timestamps" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["distinct_timestamps"], + "newField": "Days Worked", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["DayWise Delivered Households"], + "newField": "Total DayWise Delivered Households", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["Delivered Households"], + "newField": "Total Delivered Households", + "_comments": "" + }, + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": ["Teams Target Per Day"], + "newField": "Teams Target For DateRange", + "_comments": "" + } + ], + "insight": {}, "hideInsights": true, "hideHeaderDenomination": true, - "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], - "computedFields": [], - "insight": { - }, "_comment": " " }, - "openComplaintsSummaryByLocality": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_LOCALITY", + "aggregatesLmSummaryReport": { + "chartName": "DSS_HEALTH_NATIONAL_AGGREGATES_SUMMARY", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"LM Filter\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.role.keyword\": {\n \"value\": \"LOCAL_MONITOR\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Districts\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"LM in the District\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n },\n \"Target For all LM\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"LM\": \"LM in the District\"\n },\n \"script\": \"(params.LM) * 40 * 5\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"FILTERS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.role.keyword\": [\n \"LOCAL_MONITOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"LM Worked\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.createdBy.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); int count = 0; for(shardList in states) { if(shardList != null) {for(key in shardList) { if(!uniqueValueMap.containsKey(key)) { count +=1; uniqueValueMap.put(key, key);}}}}return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Districts\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"Delivered Households\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "locality", "column": "Open complaints Locality"} - ], + "filterKeys": [{"key": "district", "column": "District"}], "chartType": "xtable", "valueType": "number", - "drillChart": "openComplaintsSummaryByVillage", + "drillChart": "lmsSummaryReport", "documentType": "_doc", "action": "", - "showFooter": true, - "plotLabel": "Open complaints Locality", - "excludedColumns": [], + "plotLabel": "District", + "excludedColumns": [ + "LM in the District", "LM Worked", "Target For all LM" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["LM in the District"], + "newField": "Total LM in District", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["LM Worked"], + "newField": "Total LM Worked", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": ["Total LM Worked", "Total LM in District"], + "newField": "Total LM Worked Percentage", + "_comments": "" + } + ], + "insight": {}, "hideInsights": true, "hideHeaderDenomination": true, - "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], - "computedFields": [], - "insight": { - }, "_comment": " " }, - "openComplaintsSummaryByVillage": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_VILLAGE", + "lmsSummaryReport": { + "chartName": "DSS_HEALTH_TEAMS_SUMMARY_REPORT", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\",\"locality\": \"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": \"LOCAL_MONITOR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"UserNames\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 10000\n },\n \"aggs\": {\n \"distinct_timestamps\": {\n \"cardinality\": {\n \"script\": {\n \"source\": \"def timestamp = doc['Data.@timestamp'].value.toString(); return timestamp.length() >= 10 ? timestamp.substring(0, 10) : timestamp\",\n \"lang\": \"painless\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"LM from Teams\": {\n \"terms\": {\n \"script\": {\n \"source\": \"def userName = doc['Data.userName.keyword'].value; if (userName != null) { int lastIndex = userName.lastIndexOf('-'); return lastIndex >= 0 ? userName.substring(0, lastIndex) : userName; } else { return null; }\",\n \"lang\": \"painless\"\n },\n \"size\": 10000\n },\n \"aggs\": {\n \"Delivered Households\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"LM from Teams\": {\n \"terms\": {\n \"script\": {\n \"source\": \"def userName = doc['Data.userName.keyword'].value; if (userName != null) { int lastIndex = userName.lastIndexOf('-'); return lastIndex >= 0 ? userName.substring(0, lastIndex) : userName; } else { return null; }\",\n \"lang\": \"painless\"\n },\n \"size\": 10000\n },\n \"aggs\": {\n \"Total Delivered Households\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": \"LOCAL_MONITOR\"\n }\n },\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": \"*MATERIAL_ISSUED*\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"UserNames\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 10000\n },\n \"aggs\": {\n \"FEM Issued\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.supervisorLevel.keyword\": \"LOCAL_MONITOR\"\n }\n },\n {\n \"wildcard\": {\n \"Data.checklistName.keyword\": \"*MATERIAL_RECEIVED*\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"UserNames\": {\n \"terms\": {\n \"field\": \"Data.userName.keyword\",\n \"size\": 10000\n },\n \"aggs\": {\n \"FEM Received\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - + "filterKeys": [], "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "showFooter": true, - "plotLabel": "Open complaints Village", - "excludedColumns": [], + "plotLabel": "LM Name", + "excludedColumns": [ + "distinct_timestamps","Delivered Households","Total Delivered Households", "FEM Issued", "FEM Received" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["distinct_timestamps"], + "newField": "Days Worked", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["Delivered Households"], + "newField": "Total DayWise Delivered Households", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["Total Delivered Households"], + "newField": "Total Delivered Households by LM", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["FEM Issued"], + "newField": "FEMs Issued", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": ["FEM Received"], + "newField": "FEMs Received", + "_comments": "" + } + ], + "insight": {}, "hideInsights": true, "hideHeaderDenomination": true, - "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], - "computedFields": [], - "insight": { - }, "_comment": " " }, - "checklistCompletionRateOfNationalSupervisor": { - "chartName": "DSS_HEALTH_SUPERVISION_NATIONAL_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "overallCoverageHouseholdProvince": { + "chartName": "DSS_HEALTH_OVERALL_COVERAGE_HOUSEHOLD_PROVINCE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "service-task-v1", - "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"NATIONAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Service name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", + "isCumulative": true, + "valueType": "percentage", "drillChart": "none", "documentType": "_doc", "action": "", - "filterKeys": [], - "aggregationPaths": ["Service name"], + "distributionPath": "Household Distribution", + "appendDistributionPlot": true, + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Household Distribution" + ], "insight": { }, "_comment": " " }, - "checklistCompletionRateOfProvincialSupervisor": { - "chartName": "DSS_HEALTH_SUPERVISION_PROVINCIAL_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "overallCoverageBednetsProvince": { + "chartName": "DSS_HEALTH_OVERALL_COVERAGE_BEDNETS_PROVINCE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "service-task-v1", - "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"PROVINCIAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Service name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", + "isCumulative": true, + "valueType": "percentage", "drillChart": "none", "documentType": "_doc", "action": "", - "filterKeys": [], - "aggregationPaths": ["Service name"], + "distributionPath": "Bednets Distribution", + "appendDistributionPlot": true, + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Bednets Distribution" + ], "insight": { }, "_comment": " " }, - "checklistCompletionRateOfDistrictSupervisor": { - "chartName": "DSS_HEALTH_SUPERVISION_DISTRICT_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "overallCoveragePopulationProvince": { + "chartName": "DSS_HEALTH_OVERALL_COVERAGE_POPULATION_PROVINCE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "service-task-v1", - "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"DISTRICT_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Service name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population distributed\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Day wise distributions\"\n },\n \"script\": \"params.target*1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", + "isCumulative": true, + "valueType": "percentage", "drillChart": "none", "documentType": "_doc", "action": "", - "filterKeys": [], - "aggregationPaths": ["Service name"], + "distributionPath": "Population Distribution", + "appendDistributionPlot": true, + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Population Distribution" + ], "insight": { }, "_comment": " " }, - "userSyncRateByDistrict": { - "chartName": "DSS_HEALTH_SUPERVISION_USER_SYNC_RATE_BY_DISTRICT", + "overallCoverageHouseholdDistrict": { + "chartName": "DSS_HEALTH_OVERALL_COVERAGE_HOUSEHOLD_DISTRICT", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "user-sync-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-staff-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", - "drillChart": "userSyncRateByAP", + "isCumulative": true, + "valueType": "percentage", + "drillChart": "none", "documentType": "_doc", - "action": "percentage", - "filterKeys": [{"key": "district"}], - "aggregationPaths": ["Sync Rate Percentage","AGGS"], + "action": "", + "distributionPath": "Household Distribution", + "appendDistributionPlot": true, + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Household Distribution" + ], "insight": { }, "_comment": " " }, - "userSyncRateByAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_SUPERVISION_USER_SYNC_RATE_BY_AP", + "overallCoverageBednetsDistrict": { + "chartName": "DSS_HEALTH_OVERALL_COVERAGE_BEDNETS_DISTRICT", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "user-sync-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}\n" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", - "indexName": "project-staff-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "isCumulative": false, - "valueType": "number", - "plotLabel": "none", + "isCumulative": true, + "valueType": "percentage", "drillChart": "none", "documentType": "_doc", - "action": "percentage", - "aggregationPaths": ["Sync Rate Percentage","AGGS"], + "action": "", + "distributionPath": "Bednets Distribution", + "appendDistributionPlot": true, + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Bednets Distribution" + ], "insight": { }, "_comment": " " }, - "householdsVisitedLatLongPoints": { - "chartName": "DSS_HEALTH_RD_HH_VISITED_LATLONG", + "overallCoveragePopulationDistrict": { + "chartName": "DSS_HEALTH_OVERALL_COVERAGE_POPULATION_DISTRICT", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.id.keyword\",\n \"size\": 10000000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population distributed\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Day wise distributions\"\n },\n \"script\": \"params.target*1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Household Covered Count\" : {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": true, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "distributionPath": "Population Distribution", + "appendDistributionPlot": true, + "cappedTarget": "Overall Target", + "showPercentageValue": true, + "aggregationPaths": [ + "Population Distribution" + ], + "insight": { }, + "_comment": " " + }, + "censusConfirmedTargetPopulation": { + "chartName": "CENSUS_DSS_CONFIRMED_TARGET_POPULATION", + "queries": [ + { + "module": "CENSUS", + "indexName": "census-index-v1", + "aggrQuery": "{\"query\":{\"match_all\":{}},\"size\":0,\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.additionalFields\"},\"aggs\":{\"filtered_values\":{\"filter\":{\"term\":{\"Data.additionalFields.key.keyword\":\"CONFIRMED_HCM_ADMIN_CONSOLE_TARGET_POPULATION\"}},\"aggs\":{\"total_confirmed_target_population\":{\"sum\":{\"field\":\"Data.additionalFields.value\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.source.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_confirmed_target_population" + ], + "insight": {}, + "_comment": "CENSUS chart for confirmed target population across all records" + }, + "censusUploadedTargetPopulation": { + "chartName": "CENSUS_DSS_UPLOADED_TARGET_POPULATION", + "queries": [ + { + "module": "CENSUS", + "indexName": "census-index-v1", + "aggrQuery": "{\"query\":{\"match_all\":{}},\"size\":0,\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.additionalFields\"},\"aggs\":{\"filtered_values\":{\"filter\":{\"term\":{\"Data.additionalFields.key.keyword\":\"UPLOADED_HCM_ADMIN_CONSOLE_TARGET_POPULATION\"}},\"aggs\":{\"total_uploaded_target_population\":{\"sum\":{\"field\":\"Data.additionalFields.value\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.source.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_uploaded_target_population" + ], + "insight": {}, + "_comment": "CENSUS chart for uploaded target population across all records" + }, + "censusConfirmedTotalPopulation": { + "chartName": "CENSUS_DSS_CONFIRMED_TOTAL_POPULATION", + "queries": [ + { + "module": "CENSUS", + "indexName": "census-index-v1", + "aggrQuery": "{\"query\":{\"match_all\":{}},\"size\":0,\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.additionalFields\"},\"aggs\":{\"filtered_values\":{\"filter\":{\"term\":{\"Data.additionalFields.key.keyword\":\"CONFIRMED_HCM_ADMIN_CONSOLE_TOTAL_POPULATION\"}},\"aggs\":{\"total_confirmed_total_population\":{\"sum\":{\"field\":\"Data.additionalFields.value\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.source.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_confirmed_total_population" + ], + "insight": {}, + "_comment": "CENSUS chart for confirmed total population across all records" + }, + "censusUploadedTotalPopulation": { + "chartName": "CENSUS_DSS_UPLOADED_TOTAL_POPULATION", + "queries": [ + { + "module": "CENSUS", + "indexName": "census-index-v1", + "aggrQuery": "{\"query\":{\"match_all\":{}},\"size\":0,\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.additionalFields\"},\"aggs\":{\"filtered_values\":{\"filter\":{\"term\":{\"Data.additionalFields.key.keyword\":\"UPLOADED_HCM_ADMIN_CONSOLE_TOTAL_POPULATION\"}},\"aggs\":{\"total_uploaded_total_population\":{\"sum\":{\"field\":\"Data.additionalFields.value\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.source.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_uploaded_total_population" + ], + "insight": {}, + "_comment": "CENSUS chart for uploaded total population across all records" + }, + "censusConfirmedTargetPopulationAge3To11": { + "chartName": "CENSUS_DSS_CONFIRMED_TARGET_POPULATION_AGE_3TO11", + "queries": [ + { + "module": "CENSUS", + "indexName": "census-index-v1", + "aggrQuery": "{\"query\":{\"match_all\":{}},\"size\":0,\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.additionalFields\"},\"aggs\":{\"filtered_values\":{\"filter\":{\"term\":{\"Data.additionalFields.key.keyword\":\"CONFIRMED_HCM_ADMIN_CONSOLE_TARGET_POPULATION_AGE_3TO11\"}},\"aggs\":{\"total_confirmed_target_population_age_3to11\":{\"sum\":{\"field\":\"Data.additionalFields.value\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.source.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_confirmed_target_population_age_3to11" + ], + "insight": {}, + "_comment": "CENSUS chart for confirmed target population in the age group 3 to 11 across all records" + }, + "censusUploadedTargetPopulationAge3To11": { + "chartName": "CENSUS_DSS_UPLOADED_TARGET_POPULATION_AGE_3TO11", + "queries": [ + { + "module": "CENSUS", + "indexName": "census-index-v1", + "aggrQuery": "{\"query\":{\"match_all\":{}},\"size\":0,\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.additionalFields\"},\"aggs\":{\"filtered_values\":{\"filter\":{\"term\":{\"Data.additionalFields.key.keyword\":\"UPLOADED_HCM_ADMIN_CONSOLE_TARGET_POPULATION_AGE_3TO11\"}},\"aggs\":{\"total_uploaded_target_population_age_3to11\":{\"sum\":{\"field\":\"Data.additionalFields.value\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.source.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_uploaded_target_population_age_3to11" + ], + "insight": {}, + "_comment": "CENSUS chart for uploaded target population in the age group 3 to 11 across all records" + }, + "censusConfirmedTargetPopulationAge12To59": { + "chartName": "CENSUS_DSS_CONFIRMED_TARGET_POPULATION_AGE_12TO59", + "queries": [ + { + "module": "CENSUS", + "indexName": "census-index-v1", + "aggrQuery": "{\"query\":{\"match_all\":{}},\"size\":0,\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.additionalFields\"},\"aggs\":{\"filtered_values\":{\"filter\":{\"term\":{\"Data.additionalFields.key.keyword\":\"CONFIRMED_HCM_ADMIN_CONSOLE_TARGET_POPULATION_AGE_12TO59\"}},\"aggs\":{\"total_confirmed_target_population_age_12to59\":{\"sum\":{\"field\":\"Data.additionalFields.value\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.source.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_confirmed_target_population_age_12to59" + ], + "insight": {}, + "_comment": "CENSUS chart for confirmed target population in the age group 12 to 59 across all records" + }, + "censusUploadedTargetPopulationAge12To59": { + "chartName": "CENSUS_DSS_UPLOADED_TARGET_POPULATION_AGE_12TO59", + "queries": [ + { + "module": "CENSUS", + "indexName": "census-index-v1", + "aggrQuery": "{\"query\":{\"match_all\":{}},\"size\":0,\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.additionalFields\"},\"aggs\":{\"filtered_values\":{\"filter\":{\"term\":{\"Data.additionalFields.key.keyword\":\"UPLOADED_HCM_ADMIN_CONSOLE_TARGET_POPULATION_AGE_12TO59\"}},\"aggs\":{\"total_uploaded_target_population_age_12to59\":{\"sum\":{\"field\":\"Data.additionalFields.value\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.source.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_uploaded_target_population_age_12to59" + ], + "insight": {}, + "_comment": "CENSUS chart for uploaded target population in the age group 12 to 59 across all records" + }, + + "microplanSumTotalTargetPopulation": { + "chartName": "MICROPLAN_DSS_TOTAL_TARGET_POPULATION", + "queries": [ + { + "module": "MICROPLAN", + "indexName": "plan-index-v1", + "aggrQuery": "{\"size\":0,\"query\":{\"match_all\":{}},\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.resources\"},\"aggs\":{\"filtered_resource\":{\"filter\":{\"term\":{\"Data.resources.resourceType.keyword\":\"TOTAL_TARGET_POPULATION\"}},\"aggs\":{\"sum_of_total_target_population\":{\"sum\":{\"field\":\"Data.resources.estimatedNumber\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.planConfigurationId.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "sum_of_total_target_population" + ], + "insight": {}, + "_comment": "Microplan Sum of total target population" + }, + "microplanNoOfHouseholdsPerBoundary": { + "chartName": "MICROPLAN_DSS_NO_OF_HOUSEHOLDS_PER_BOUNDARY", + "queries": [ + { + "module": "MICROPLAN", + "indexName": "plan-index-v1", + "aggrQuery": "{\"size\":0,\"query\":{\"match_all\":{}},\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.resources\"},\"aggs\":{\"filtered_resource\":{\"filter\":{\"term\":{\"Data.resources.resourceType.keyword\":\"NO_OF_HOUSEHOLDS_PER_BOUNDARY\"}},\"aggs\":{\"sum_of_no_of_households_per_boundary\":{\"sum\":{\"field\":\"Data.resources.estimatedNumber\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.planConfigurationId.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "sum_of_no_of_households_per_boundary" + ], + "insight": {}, + "_comment": "Microplan Sum of number of households per boundary" + }, + "microplanNoOfBednetsPerBoundary": { + "chartName": "MICROPLAN_DSS_NO_OF_BEDNETS_PER_BOUNDARY", + "queries": [ + { + "module": "MICROPLAN", + "indexName": "plan-index-v1", + "aggrQuery": "{\"size\":0,\"query\":{\"match_all\":{}},\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.resources\"},\"aggs\":{\"filtered_resource\":{\"filter\":{\"term\":{\"Data.resources.resourceType.keyword\":\"NO_OF_BEDNETS_PER_BOUNDARY\"}},\"aggs\":{\"sum_of_no_of_bednets_per_boundary\":{\"sum\":{\"field\":\"Data.resources.estimatedNumber\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.planConfigurationId.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "sum_of_no_of_bednets_per_boundary" + ], + "insight": {}, + "_comment": "Microplan Sum of number of bednets per boundary" + }, + "microplanNoOfBalesPerBoundary": { + "chartName": "MICROPLAN_DSS_NO_OF_BALES_PER_BOUNDARY", + "queries": [ + { + "module": "MICROPLAN", + "indexName": "plan-index-v1", + "aggrQuery": "{\"size\":0,\"query\":{\"match_all\":{}},\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.resources\"},\"aggs\":{\"filtered_resource\":{\"filter\":{\"term\":{\"Data.resources.resourceType.keyword\":\"NO_OF_BALES_PER_BOUNDARY\"}},\"aggs\":{\"sum_of_no_of_bales_per_boundary\":{\"sum\":{\"field\":\"Data.resources.estimatedNumber\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.planConfigurationId.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" } ], - "filterKeys": [], - "chartType": "xtable", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", "action": "", - "plotLabel": "Households", - "excludedColumns": [ - "S.N.", - "LONGITUDE", "LATITUDE", "Household Covered Count" + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "sum_of_no_of_bales_per_boundary" ], - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "newField": "longitude", - "fields" : [ "LONGITUDE" ], - "_comments": "" - }, - { - "postAggregationTheory": "", - "actionName": "AdditiveComputedField", - "newField": "latitude", - "fields": ["LATITUDE"], - "_comments": "" - }, + "insight": {}, + "_comment": "Microplan Sum of number of bales per boundary" + }, + "totalSpaq1ForAge3To11Months": { + "chartName": "MICROPLAN_DSS_TOTAL_SPAQ_1_FOR_AGE_3_TO_11_MONTHS", + "queries": [ { - "postAggregationTheory": "", - "actionName": "AdditiveComputedField", - "newField": "Households", - "fields": ["Household Covered Count"], - "_comments": "" + "module": "MICROPLAN", + "indexName": "plan-index-v1", + "aggrQuery": "{\"size\":0,\"query\":{\"match_all\":{}},\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.resources\"},\"aggs\":{\"filtered_resource\":{\"filter\":{\"term\":{\"Data.resources.resourceType.keyword\":\"TOTAL_SPAQ_1_FOR_AGE_3_TO_11_MONTHS\"}},\"aggs\":{\"sum_of_spaq_1_for_age_3to11_months\":{\"sum\":{\"field\":\"Data.resources.estimatedNumber\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.planConfigurationId.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" } ], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "sum_of_spaq_1_for_age_3to11_months" + ], + "insight": {}, + "_comment": "Microplan Sum of SPAQ 1 for age group 3 to 11 months" }, - "warehouseDistributionLatLongPoints": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "totalSpaq1ForAge3To11MonthsWithBuffer": { + "chartName": "MICROPLAN_DSS_TOTAL_SPAQ_1_FOR_AGE_3_TO_11_MONTHS_WITH_BUFFER", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.facilityId.keyword\",\n \"size\": 1000000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "MICROPLAN", + "indexName": "plan-index-v1", + "aggrQuery": "{\"size\":0,\"query\":{\"match_all\":{}},\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.resources\"},\"aggs\":{\"filtered_resource\":{\"filter\":{\"term\":{\"Data.resources.resourceType.keyword\":\"TOTAL_SPAQ_1_FOR_AGE_3_TO_11_MONTHS_WITH_BUFFER\"}},\"aggs\":{\"sum_of_spaq_1_for_age_3to11_months_with_buffer\":{\"sum\":{\"field\":\"Data.resources.estimatedNumber\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.planConfigurationId.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" } ], - "filterKeys": [], - "chartType": "xtable", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", "action": "", - "plotLabel": "Warehouse Id", - "excludedColumns": [ - "S.N.", - "LONGITUDE", "LATITUDE" + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "sum_of_spaq_1_for_age_3to11_months_with_buffer" ], - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "newField": "longitude", - "fields" : [ "LONGITUDE" ], - "_comments": "" - }, + "insight": {}, + "_comment": "Microplan Sum of SPAQ 1 for age group 3 to 11 months with buffer" + }, + "totalSpaq2ForAge12To59Months": { + "chartName": "MICROPLAN_DSS_TOTAL_SPAQ_2_FOR_AGE_12_TO_59_MONTHS", + "queries": [ { - "postAggregationTheory": "", - "actionName": "AdditiveComputedField", - "newField": "latitude", - "fields": ["LATITUDE"], - "_comments": "" + "module": "MICROPLAN", + "indexName": "plan-index-v1", + "aggrQuery": "{\"size\":0,\"query\":{\"match_all\":{}},\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.resources\"},\"aggs\":{\"filtered_resource\":{\"filter\":{\"term\":{\"Data.resources.resourceType.keyword\":\"TOTAL_SPAQ_2_FOR_AGE_12_TO_59_MONTHS\"}},\"aggs\":{\"sum_of_spaq_2_for_age_12to59_months\":{\"sum\":{\"field\":\"Data.resources.estimatedNumber\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.planConfigurationId.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" } ], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "chartType": "metric", + "valueType": "number", + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "sum_of_spaq_2_for_age_12to59_months" + ], + "insight": {}, + "_comment": "Microplan Sum of SPAQ 2 for age group 12 to 59 months" }, - "warehouseDistributionLatLongTableDaysStockLastsDistrictWiseProvincialBoard": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "totalSpaq2ForAge12To59MonthsWithBuffer": { + "chartName": "MICROPLAN_DSS_TOTAL_SPAQ_2_FOR_AGE_12_TO_59_MONTHS_WITH_BUFFER", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Will last for\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "MICROPLAN", + "indexName": "plan-index-v1", + "aggrQuery": "{\"size\":0,\"query\":{\"match_all\":{}},\"aggs\":{\"nestedaggs\":{\"nested\":{\"path\":\"Data.resources\"},\"aggs\":{\"filtered_resource\":{\"filter\":{\"term\":{\"Data.resources.resourceType.keyword\":\"TOTAL_SPAQ_2_FOR_AGE_12_TO_59_MONTHS_WITH_BUFFER\"}},\"aggs\":{\"sum_of_spaq_2_for_age_12to59_months_with_buffer\":{\"sum\":{\"field\":\"Data.resources.estimatedNumber\"}}}}}}}}", + "requestQueryMap": "{\"status\" : \"Data.status.keyword\", \"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.planConfigurationId.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" } ], - "filterKeys": [], - "chartType": "line", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", - "action": "division", - "plotLabel": "District", - "isCumulative" : false, - "aggregationPaths": ["Will last for", "Target Per Day"], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "action": "", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "sum_of_spaq_2_for_age_12to59_months_with_buffer" + ], + "insight": {}, + "_comment": "Microplan Sum of SPAQ 2 for age group 12 to 59 months with buffer" }, - "warehouseDistributionLatLongTableAvlRcvdDispDistrictWiseProvincialBoard": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "totalVillagesWithFacilityAssigned": { + "chartName": "MICROPLAN_DSS_TOTAL_VILLAGES_WITH_FACILITY_ASSIGNED", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock Received Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"Stock Received\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n },\n \"Stock Dispatched Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"Stock Dispatched\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "MICROPLAN-FACILITY", + "indexName": "census-index-v1", + "aggrQuery": "{\"size\":0,\"aggs\":{\"filtered_data\":{\"filter\":{\"term\":{\"Data.facilityAssigned\":true}},\"aggs\":{\"total_villages_with_facility_assigned\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.source.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" } ], - "filterKeys": [], - "chartType": "line", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", "action": "", - "plotLabel": "District", - "isCumulative" : false, - "aggregationPaths": ["Stock in Hand", "Stock Received", "Stock Dispatched"], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_villages_with_facility_assigned" + ], + "insight": {}, + "_comment": "Microplan Total number of villages with facility assigned" }, - "warehouseDistributionLatLongTableAvlRcvdDispFacilities": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "totalFacilitiesWithMappedVillages": { + "chartName": "MICROPLAN_DSS_TOTAL_FACILITIES_WITH_MAPPED_VILLAGES", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityId.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock Received Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"Stock Received\": {\n \"terms\": {\n \"field\": \"Data.facilityId.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n },\n \"Stock Dispatched Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"Stock Dispatched\": {\n \"terms\": {\n \"field\": \"Data.facilityId.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "MICROPLAN-FACILITY", + "indexName": "plan-facility-index-v1", + "aggrQuery": "{\"size\":0,\"aggs\":{\"filtered_data\":{\"filter\":{\"bool\":{\"must\":[{\"exists\":{\"field\":\"Data.serviceBoundaries\"}}],\"must_not\":[{\"term\":{\"Data.serviceBoundaries.keyword\":\"\"}}]}},\"aggs\":{\"total_facilities_with_mapped_villages\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.planConfigurationId.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" } ], - "filterKeys": [], - "chartType": "line", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", "action": "", - "plotLabel": "Warehouse Id", - "isCumulative" : false, - "aggregationPaths": ["Stock in Hand", "Stock Received", "Stock Dispatched"], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_facilities_with_mapped_villages" + ], + "insight": {}, + "_comment": "Microplan Total number of facilities with mapped villages" }, - "warehouseDistributionLatLongTableStockStatusDistrictWiseProvincialBoard": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "microplanTotalVillageCount": { + "chartName": "MICROPLAN_DSS_TOTAL_COUNT_OF_VILLAGES", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Overall Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"ot\": \"SUM\"\n },\n \"script\": \"params.ot * (-1)\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by district\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity']\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "MICROPLAN-FACILITY", + "indexName": "census-index-v1", + "aggrQuery": "{\"size\":0,\"aggs\":{\"total_count_of_villages\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.source.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" } ], - "filterKeys": [], - "chartType": "line", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", "action": "", - "plotLabel": "District", - "isCumulative" : false, - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Stock in Hand","Overall Target","Distributions by district"], - "newField" : "Status", - "_comments": "" - } - + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_count_of_villages" ], - "computeMultiPaths": true, - "aggregationPaths": ["Stock in Hand","Overall Target","Distributions by district"], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "insight": {}, + "_comment": "Microplan Total number of villages" }, - "warehouseDistributionLatLongTableWarNumDistrictWiseProvincialBoard": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "microplanTotalFacilityCount": { + "chartName": "MICROPLAN_DSS_TOTAL_COUNT_OF_FACILITIES", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Warehouses\": {\n \"terms\": {\n \"size\": 50000,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"CARDINALITY\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.facilityId.keyword\"\n }, \n \"init_script\": \"state.list=[]\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "MICROPLAN-FACILITY", + "indexName": "plan-facility-index-v1", + "aggrQuery": "{\"size\":0,\"aggs\":{\"total_count_of_facilities\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"planConfigurationId\" : \"Data.planConfigurationId.keyword\", \"COUNTRY\" : \"Data.jurisdictionMapping.COUNTRY.keyword\", \"PROVINCE\" : \"Data.jurisdictionMapping.PROVINCE.keyword\", \"ADMINISTRATIVEPOST\" : \"Data.jurisdictionMapping.ADMINISTRATIVEPOST.keyword\", \"DISTRICT\" : \"Data.jurisdictionMapping.DISTRICT.keyword\", \"LOCALITY\" : \"Data.jurisdictionMapping.LOCALITY.keyword\", \"VILLAGE\" : \"Data.jurisdictionMapping.VILLAGE.keyword\"}", + "dateRefField": "Data.@timestamp" } ], - "filterKeys": [], - "chartType": "line", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", "action": "", - "plotLabel": "District", - "isCumulative" : false, - "aggregationPaths": ["No. of Warehouses"], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "total_count_of_facilities" + ], + "insight": {}, + "_comment": "Microplan Total number of Facilities" } } diff --git a/egov-dss-dashboards/dashboard-analytics/MasterDashboardConfig.json b/egov-dss-dashboards/dashboard-analytics/MasterDashboardConfig.json index dd81d599..6068b969 100644 --- a/egov-dss-dashboards/dashboard-analytics/MasterDashboardConfig.json +++ b/egov-dss-dashboards/dashboard-analytics/MasterDashboardConfig.json @@ -169,7 +169,12 @@ "id": "provincial-health-dashboard", "isActive": "", "style": "linear", - "hideFilterFields": ["DDR", "Ulb", "Denomination", "ModuleFilter"], + "hideFilterFields": [ + "DDR", + "Ulb", + "Denomination", + "ModuleFilter" + ], "visualizations": [ { "row": 1, @@ -1008,7 +1013,7 @@ ] }, { - "row" : 1, + "row": 1, "name": "DSS_HEALTH_SUPERVISION", "vizArray": [ { @@ -1090,6 +1095,78 @@ ] } ] + }, + { + "row": 1, + "name": "DSS_KIBANA_MAPS", + "vizArray": [ + { + "id": 401, + "name": "DSS_HEALTH_KIBANA_SCREEN", + "label": "DSS_HEALTH_KIBANA_SCREEN", + "vizType": "chart", + "noUnit": true, + "isCollapsible": false, + "charts": [ + { + "id": "checklistCompletionRateOfDistrictSupervisor", + "name": "DSS_HEALTH_SUPERVISION_DISTRICT_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "code": "", + "moduleName": "smc", + "pageName": "national", + "chartType": "kibanaComponent", + "filter": "", + "headers": [] + } + ] + } + ] + }, + { + "row": 2, + "name": "DSS_KIBANA_MAPS", + "vizArray": [ + { + "id": 401, + "name": "DSS_HEALTH_KIBANA_SCREEN", + "label": "DSS_HEALTH_KIBANA_SCREEN", + "vizType": "chart", + "noUnit": true, + "isCollapsible": false, + "charts": [ + { + "id": "checklistCompletionRateOfDistrictSupervisor", + "name": "DSS_HEALTH_SUPERVISION_DISTRICT_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "code": "", + "moduleName": "smc", + "pageName": "province", + "chartType": "kibanaComponent", + "filter": "", + "headers": [] + } + ] + }, + { + "id": 402, + "name": "DSS_HEALTH_KIBANA_SCREEN", + "label": "DSS_HEALTH_KIBANA_SCREEN", + "vizType": "chart", + "noUnit": true, + "isCollapsible": false, + "charts": [ + { + "id": "checklistCompletionRateOfDistrictSupervisor", + "name": "DSS_HEALTH_SUPERVISION_DISTRICT_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "code": "", + "moduleName": "smc", + "pageName": "district", + "chartType": "kibanaComponent", + "filter": "", + "headers": [] + } + ] + } + ] } ] }, @@ -1097,7 +1174,12 @@ "name": "DSS_HEALTH_OVERVIEW_DASHBOARD_LLIN_HEADING", "id": "district-health-dashboard", "isActive": "", - "hideFilterFields": ["DDR", "Ulb", "Denomination", "ModuleFilter"], + "hideFilterFields": [ + "DDR", + "Ulb", + "Denomination", + "ModuleFilter" + ], "style": "linear", "visualizations": [ { @@ -1905,7 +1987,7 @@ ] }, { - "row" : 1, + "row": 1, "name": "DSS_HEALTH_SUPERVISION", "vizArray": [ { diff --git a/egov-indexer/Plan-service-indexer.yml b/egov-indexer/Plan-service-indexer.yml new file mode 100644 index 00000000..59a86ff1 --- /dev/null +++ b/egov-indexer/Plan-service-indexer.yml @@ -0,0 +1,74 @@ +ServiceMaps: + serviceName: plan-service + version: 1.0.0 + mappings: + - topic: save-plan + configKey: INDEX + indexes: + - name: plan-index-v1 + type: general + id: $.id + timeStampField: $.auditDetails.createdTime + jsonPath: $.Plan + customJsonMapping: + indexMapping: {"Data":{}} + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + + - topic: update-plan + configKey: INDEX + indexes: + - name: plan-index-v1 + type: general + id: $.id + timeStampField: $.auditDetails.createdTime + jsonPath: $.Plan + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + + - topic: bulk-update-plan + configKey: INDEX + indexes: + - name: plan-index-v1 + type: general + id: $.id + isBulk: true + timeStampField: $.auditDetails.createdTime + jsonPath: $.Plans + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + + - topic: save-plan-facility + configKey: INDEX + indexes: + - name: plan-facility-index-v1 + type: general + id: $.id + timeStampField: $.auditDetails.createdTime + jsonPath: $.PlanFacility + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + + - topic: update-plan-facility + configKey: INDEX + indexes: + - name: plan-facility-index-v1 + type: general + id: $.id + timeStampField: $.auditDetails.createdTime + jsonPath: $.PlanFacility + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data \ No newline at end of file diff --git a/egov-indexer/billingservices-indexer.yml b/egov-indexer/billingservices-indexer.yml deleted file mode 100644 index d4abb71b..00000000 --- a/egov-indexer/billingservices-indexer.yml +++ /dev/null @@ -1,24 +0,0 @@ -ServiceMaps: - serviceName: Billing Service - version: 1.0.0 - mappings: - - topic: create-demand-index-v1 - configKey: INDEX - indexes: - - name: demandindex-v1 - type: demand - id: $.id, $.tenantId - isBulk: true - jsonPath: $.Demands - timeStampField: $.auditDetail.createdTime - - - topic: demand-reindex - configKey: REINDEX - indexes: - - name: demandindex-v1 - type: demand - id: $.id, $.tenantId - isBulk: true - jsonPath: $.hits - timeStampField: $.auditDetail.createdTime - diff --git a/egov-indexer/census-service-indexer.yml b/egov-indexer/census-service-indexer.yml new file mode 100644 index 00000000..196f2c60 --- /dev/null +++ b/egov-indexer/census-service-indexer.yml @@ -0,0 +1,46 @@ +ServiceMaps: + serviceName: census-service + version: 1.0.0 + mappings: + - topic: census-create-topic + configKey: INDEX + indexes: + - name: census-index-v1 + type: general + id: $.id + timeStampField: $.auditDetails.createdTime + jsonPath: $.Census + customJsonMapping: + indexMapping: {"Data":{}} + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + + - topic: census-update-topic + configKey: INDEX + indexes: + - name: census-index-v1 + type: general + id: $.id + timeStampField: $.auditDetails.createdTime + jsonPath: $.Census + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + + - topic: census-bulk-update-topic + configKey: INDEX + indexes: + - name: census-index-v1 + type: general + id: $.id + isBulk: true + timeStampField: $.auditDetails.createdTime + jsonPath: $.Census + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data \ No newline at end of file diff --git a/egov-indexer/chatbot-telemetry-v2.yaml b/egov-indexer/chatbot-telemetry-v2.yaml deleted file mode 100644 index 6e211266..00000000 --- a/egov-indexer/chatbot-telemetry-v2.yaml +++ /dev/null @@ -1,12 +0,0 @@ -ServiceMaps: - serviceName: chatbot-messages - version: 1.0.0 - mappings: - - topic: chatbot-telemetry-v2 - configKey: INDEX - indexes: - - name: chatbot-messages-v2 - type: general - id: $.id - timeStampField: $.date - fieldsToBeMasked: [ "$.data.user", "$.data.message.input", "$.data.message.output" ] \ No newline at end of file diff --git a/egov-indexer/chatbot-telemetry.yaml b/egov-indexer/chatbot-telemetry.yaml deleted file mode 100644 index daaa7712..00000000 --- a/egov-indexer/chatbot-telemetry.yaml +++ /dev/null @@ -1,12 +0,0 @@ -ServiceMaps: - serviceName: chatbot-messages - version: 1.0.0 - mappings: - - topic: send-message-localized - configKey: INDEX - indexes: - - name: chatbot-messages - type: general - id: $.message.messageId, $.response.timestamp - timeStampField: $.timestamp - fieldsToBeMasked: ["$.user.mobileNumber", "$.user.authToken", "$.user.refreshToken", "$.user.userInfo", "$.user.expiresAt", "$.extraInfo.recipient", "$.extraInfo.params", "$.conversationState.questionDetails", "$.nextConversationState.questionDetails", "$.message.rawInput", "$.message.messageContent", "$.response.localizationCodes", "$.response.text", "$.response.fileStoreId", "$.response.location", "$.response.contactCard"] diff --git a/egov-indexer/collection-indexer.yml b/egov-indexer/collection-indexer.yml deleted file mode 100644 index bdd38ee8..00000000 --- a/egov-indexer/collection-indexer.yml +++ /dev/null @@ -1,87 +0,0 @@ -ServiceMaps: - serviceName: Collection Services - version: 1.0.0 - mappings: - - topic: egov.collection.receipt-create - configKey: INDEX - indexes: - - name: collectionsindex-v1 - type: receipts - id: $.Bill[0].billDetails[0].id - isBulk: true - timeStampField: $.auditDetails.createdDate - jsonPath: $.Receipt.* - customJsonMapping: - indexMapping: {"Data":{"tenantId":"","transactionId":"","Bill":{},"auditDetails":{},"instrument":{},"tenantData":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.transactionId - outJsonPath: $.Data.transactionId - - inJsonPath: $.Bill - outJsonPath: $.Data.Bill - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.instrument - outJsonPath: $.Data.instrument - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: egov.collection.receipt-create-reindex - configKey: REINDEX - indexes: - - name: collectionsreindex-v1.1 - type: receipts - id: $.Bill[0].billDetails[0].id - isBulk: true - timeStampField: $.auditDetails.createdDate - jsonPath: $.hits - - - topic: egov.collection.receipt-create-legacyindex - configKey: LEGACYINDEX - indexes: - - name: collectionsindex-v1 - type: receipts - id: $.Bill[0].billDetails[0].id - isBulk: true - timeStampField: $.auditDetails.createdDate - jsonPath: $.Receipt.* - customJsonMapping: - indexMapping: {"Data":{"tenantId":"","transactionId":"","Bill":{},"auditDetails":{},"instrument":{},"tenantData":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.transactionId - outJsonPath: $.Data.transactionId - - inJsonPath: $.Bill - outJsonPath: $.Data.Bill - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.instrument - outJsonPath: $.Data.instrument - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData diff --git a/egov-indexer/covid-chatbot-telemetry.yaml b/egov-indexer/covid-chatbot-telemetry.yaml deleted file mode 100644 index 3fd6fb43..00000000 --- a/egov-indexer/covid-chatbot-telemetry.yaml +++ /dev/null @@ -1,12 +0,0 @@ -ServiceMaps: - serviceName: covid-chatbot-telemetry - version: 1.0.0 - mappings: - - topic: covid-chatbot-telemetry - configKey: INDEX - indexes: - - name: covid-chatbot-messages - type: general - id: $.id - timeStampField: $.date - fieldsToBeMasked: [ "$.data.user", "$.data.message.input", "$.data.message.output" ] diff --git a/egov-indexer/edcr-indexer.yml b/egov-indexer/edcr-indexer.yml deleted file mode 100644 index b5d2f229..00000000 --- a/egov-indexer/edcr-indexer.yml +++ /dev/null @@ -1,58 +0,0 @@ -ServiceMaps: - serviceName: Edcr Services - version: 1.0.0 - mappings: - - topic: edcr-create-application - configKey: INDEX - indexes: - - name: edcr-index - type: general - id: $.applicationNumber,$.thirdPartyUserTenant - jsonPath: $ - timeStampField: $.applicationDate - customJsonMapping: - indexMapping: {"Data":{"applicationType":"","applicationNumber":"","applicationDate":"","status":"","planPermitNumber":"","permitApplicationDate":"","transactionNumber":"","tenantId":"","applicantName":"","serviceType":"","architectInformation":"","dcrNumber":"","comparisonDcrNumber":"","plotBndryArea":"","buildingHeight":"","occupancyTypes":[],"totalBuitUpArea":"","totalFloorArea":"","totalCarpetArea":"","floorsAboveGround":"","@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.applicationNumber - outJsonPath: $.Data.applicationNumber - - inJsonPath: $.applicationDate - outJsonPath: $.Data.applicationDate - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.planPermitNumber - outJsonPath: $.Data.planPermitNumber - - inJsonPath: $.permitApplicationDate - outJsonPath: $.Data.permitApplicationDate - - inJsonPath: $.transactionNumber - outJsonPath: $.Data.transactionNumber - - inJsonPath: $.thirdPartyUserTenant - outJsonPath: $.Data.tenantId - - inJsonPath: $.applicantName - outJsonPath: $.Data.applicantName - - inJsonPath: $.serviceType - outJsonPath: $.Data.serviceType - - inJsonPath: $.architectInformation - outJsonPath: $.Data.architectInformation - - inJsonPath: $.dcrNumber - outJsonPath: $.Data.dcrNumber - - inJsonPath: $.comparisonDcrNumber - outJsonPath: $.Data.comparisonDcrNumber - - inJsonPath: $.plotBndryArea - outJsonPath: $.Data.plotBndryArea - - inJsonPath: $.buildingHeight - outJsonPath: $.Data.buildingHeight - - inJsonPath: $.occupancyTypes - outJsonPath: $.Data.occupancyTypes - - inJsonPath: $.totalBuitUpArea - outJsonPath: $.Data.totalBuitUpArea - - inJsonPath: $.totalFloorArea - outJsonPath: $.Data.totalFloorArea - - inJsonPath: $.totalCarpetArea - outJsonPath: $.Data.totalCarpetArea - - inJsonPath: $.floorsAboveGround - outJsonPath: $.Data.floorsAboveGround - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - diff --git a/egov-indexer/egov-bpa-indexer.yml b/egov-indexer/egov-bpa-indexer.yml deleted file mode 100644 index ab9b9d0a..00000000 --- a/egov-indexer/egov-bpa-indexer.yml +++ /dev/null @@ -1,281 +0,0 @@ -ServiceMaps: - serviceName: BPA Service - version: 1.0.0 - mappings: - - topic: save-bpa-buildingplan - configKey: INDEX - indexes: - - name: bpa-index - type: bpaapplication - id: $.id, $.tenantId - isBulk: false - timeStampField: $.auditDetails.createdTime - jsonPath: $.BPA - customJsonMapping: - indexMapping: {"Data":{ "workflow":{"action":"", "assignes":[ ]},"businessService":"businessService","edcrNumber":"edcrNumber","riskType":"riskType","applicationNo":"applicationNo","approvalNo":"","approvalDate":"approvalDate","landInfo":{},"applicationDate":"applicationDate","status":"status","tenantId":"tenantId","@timestamp":"timestamp", "serviceType":"", "applicationType":"","auditDetails":{},"plotArea":"plotArea","plotAreaApproved":"plotAreaApproved"}} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.workflow.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.workflow.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.businessService - outJsonPath: $.Data.businessService - - inJsonPath: $.edcrNumber - outJsonPath: $.Data.edcrNumber - - inJsonPath: $.riskType - outJsonPath: $.Data.riskType - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.landInfo - outJsonPath: $.Data.landInfo - - inJsonPath: $.approvalNo - outJsonPath: $.Data.approvalNo - - inJsonPath: $.applicationDate - outJsonPath: $.Data.applicationDate - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.approvalDate - outJsonPath: $.Data.approvalDate - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.landInfo.plotAreaApproved - outJsonPath: $.Data.plotAreaApproved - - inJsonPath: $.landInfo.plotArea - outJsonPath: $.Data.plotArea - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.landInfo.address.locality.code,tenantId=$.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.bpa","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo": { "id": 73 } } } - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - inJsonPath: $.TenantBoundary[0].boundary[0].children - outJsonPath: $.Data.ward.children - filter: "[?(@.code == $locality)]" - filterMapping: - - variable: $locality - valueJsonpath: $.address.locality.code - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pb.amritsar","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pb.amritsar" } ] } } } - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - - topic: update-bpa-buildingplan - configKey: INDEX - indexes: - - name: bpa-index - type: bpaapplication - id: $.id, $.tenantId - isBulk: false - jsonPath: $.BPA - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{ "workflow":{"action":"", "assignes":[ ]},"businessService":"businessService","edcrNumber":"edcrNumber","riskType":"riskType","applicationNo":"applicationNo","approvalNo":"","approvalDate":"approvalDate","landInfo":{},"applicationDate":"applicationDate","status":"status","tenantId":"tenantId","@timestamp":"timestamp", "serviceType":"", "applicationType":"","auditDetails":{},"plotArea":"plotArea","plotAreaApproved":"plotAreaApproved"}} - fieldMapping: - - inJsonPath: $.workflow.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.workflow.assignes - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.businessService - outJsonPath: $.Data.businessService - - inJsonPath: $.edcrNumber - outJsonPath: $.Data.edcrNumber - - inJsonPath: $.riskType - outJsonPath: $.Data.riskType - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.approvalNo - outJsonPath: $.Data.approvalNo - - inJsonPath: $.approvalDate - outJsonPath: $.Data.approvalDate - - inJsonPath: $.landInfo - outJsonPath: $.Data.landInfo - - inJsonPath: $.applicationDate - outJsonPath: $.Data.applicationDate - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.additionalDetails.serviceType - outJsonPath: $.Data.serviceType - - inJsonPath: $.additionalDetails.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.landInfo.plotAreaApproved - outJsonPath: $.Data.plotAreaApproved - - inJsonPath: $.landInfo.plotArea - outJsonPath: $.Data.plotArea - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.landInfo.address.locality.code,tenantId=$.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.bpa","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo": { "id": 73 } } } - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - inJsonPath: $.TenantBoundary[0].boundary[0].children - outJsonPath: $.Data.ward.children - filter: "[?(@.code == $locality)]" - filterMapping: - - variable: $locality - valueJsonpath: $.address.locality.code - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pb.amritsar","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pb.amritsar" } ] } } } - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - - topic: update-bpa-workflow - configKey: INDEX - indexes: - - name: bpa-index - type: bpaapplication - id: $.id, $.tenantId - isBulk: false - jsonPath: $.BPA - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{ "workflow":{"action":"", "assignes":[ ]},"businessService":"businessService","edcrNumber":"edcrNumber","riskType":"riskType","applicationNo":"applicationNo","approvalNo":"approvalNo","approvalDate":"approvalDate","landInfo":{},"applicationDate":"applicationDate","status":"status","tenantId":"tenantId","@timestamp":"timestamp", "serviceType":"", "applicationType":"","auditDetails":{},"plotArea":"plotArea","plotAreaApproved":"plotAreaApproved"}} - fieldMapping: - - inJsonPath: $.workflow.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.workflow.assignes - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.businessService - outJsonPath: $.Data.businessService - - inJsonPath: $.edcrNumber - outJsonPath: $.Data.edcrNumber - - inJsonPath: $.riskType - outJsonPath: $.Data.riskType - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.approvalNo - outJsonPath: $.Data.approvalNo - - inJsonPath: $.approvalDate - outJsonPath: $.Data.approvalDate - - inJsonPath: $.landInfo - outJsonPath: $.Data.landInfo - - inJsonPath: $.applicationDate - outJsonPath: $.Data.applicationDate - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.additionalDetails.serviceType - outJsonPath: $.Data.serviceType - - inJsonPath: $.additionalDetails.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.landInfo.plotAreaApproved - outJsonPath: $.Data.plotAreaApproved - - inJsonPath: $.landInfo.plotArea - outJsonPath: $.Data.plotArea - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.landInfo.address.locality.code,tenantId=$.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.bpa","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo": { "id": 73 } } } - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - inJsonPath: $.TenantBoundary[0].boundary[0].children - outJsonPath: $.Data.ward.children - filter: "[?(@.code == $locality)]" - filterMapping: - - variable: $locality - valueJsonpath: $.address.locality.code - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pb.amritsar","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pb.amritsar" } ] } } } - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - - topic: bpa-connection-legacyIndex - configKey: LEGACYINDEX - indexes: - - name: bpa-index - type: bpaapplication - id: $.id, $.tenantId - isBulk: true - jsonPath: $.BPA.* - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{ "workflow":{"action":"", "assignes":[ ]},"businessService":"businessService","edcrNumber":"edcrNumber","riskType":"riskType","applicationNo":"applicationNo","approvalNo":"approvalNo","approvalDate":"approvalDate","landInfo":{},"applicationDate":"applicationDate","status":"status","tenantId":"tenantId","@timestamp":"timestamp", "serviceType":"", "applicationType":"","auditDetails":{},"plotAreaApproved":"plotAreaApproved"}} - fieldMapping: - - inJsonPath: $.workflow.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.workflow.assignes - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.businessService - outJsonPath: $.Data.businessService - - inJsonPath: $.edcrNumber - outJsonPath: $.Data.edcrNumber - - inJsonPath: $.riskType - outJsonPath: $.Data.riskType - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.approvalNo - outJsonPath: $.Data.approvalNo - - inJsonPath: $.approvalDate - outJsonPath: $.Data.approvalDate - - inJsonPath: $.landInfo - outJsonPath: $.Data.landInfo - - inJsonPath: $.applicationDate - outJsonPath: $.Data.applicationDate - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.additionalDetails.serviceType - outJsonPath: $.Data.serviceType - - inJsonPath: $.additionalDetails.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.landInfo.plotAreaApproved - outJsonPath: $.Data.plotAreaApproved - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.landInfo.address.locality.code,tenantId=$.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.bpa","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo": { "id": 73 } } } - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - inJsonPath: $.TenantBoundary[0].boundary[0].children - outJsonPath: $.Data.ward.children - filter: "[?(@.code == $locality)]" - filterMapping: - - variable: $locality - valueJsonpath: $.address.locality.code - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pb.amritsar","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pb.amritsar" } ] } } } - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - diff --git a/egov-indexer/egov-echallan.yml b/egov-indexer/egov-echallan.yml deleted file mode 100644 index 0f1c66da..00000000 --- a/egov-indexer/egov-echallan.yml +++ /dev/null @@ -1,256 +0,0 @@ -ServiceMaps: - serviceName: echallan Service - rainmaker - version: 1.0.0 - mappings: - - topic: save-challan - configKey: INDEX - indexes: - - name: echallan-services - type: general - id: $.id,$.tenantId - jsonPath: $.Challan - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","tenantId":"","street":"","locality":"","businessService":"","challanNo":"","referenceId":"","description":"","accountId":"","additionalDetail":{},"source":"","taxPeriodFrom":"","taxPeriodTo":"","amount":[],"filestoreid":"","additionalDetails":{},"applicationStatus":"","vendor":"","typeOfExpense":"","billDate":"","billIssuedDate":"","paidDate":"","isBillPaid":"","vendorName":"","totalAmount":"","@timestamp":"timestamp","history":{},"ward":"" }} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.address.street - outJsonPath: $.Data.street - - inJsonPath: $.address.locality.code - outJsonPath: $.Data.locality - - inJsonPath: $.businessService - outJsonPath: $.Data.businessService - - inJsonPath: $.challanNo - outJsonPath: $.Data.challanNo - - inJsonPath: $.referenceId - outJsonPath: $.Data.referenceId - - inJsonPath: $.description - outJsonPath: $.Data.description - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.additionalDetail - outJsonPath: $.Data.additionalDetail - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.taxPeriodFrom - outJsonPath: $.Data.taxPeriodFrom - - inJsonPath: $.taxPeriodTo - outJsonPath: $.Data.taxPeriodTo - - inJsonPath: $.amount - outJsonPath: $.Data.amount - - inJsonPath: $.filestoreid - outJsonPath: $.Data.filestoreid - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.vendor - outJsonPath: $.Data.vendor - - inJsonPath: $.typeOfExpense - outJsonPath: $.Data.typeOfExpense - - inJsonPath: $.billDate - outJsonPath: $.Data.billDate - - inJsonPath: $.billIssuedDate - outJsonPath: $.Data.billIssuedDate - - inJsonPath: $.paidDate - outJsonPath: $.Data.paidDate - - inJsonPath: $.isBillPaid - outJsonPath: $.Data.isBillPaid - - inJsonPath: $.vendorName - outJsonPath: $.Data.vendorName - - inJsonPath: $.totalAmount - outJsonPath: $.Data.totalAmount - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.echallan","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - - - topic: update-challan - configKey: INDEX - indexes: - - name: echallan-services - type: general - id: $.id,$.tenantId - jsonPath: $.Challan - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","tenantId":"","street":"","locality":"","businessService":"","challanNo":"","referenceId":"","description":"","accountId":"","additionalDetail":{},"source":"","taxPeriodFrom":"","taxPeriodTo":"","amount":[],"filestoreid":"","additionalDetails":{},"applicationStatus":"","vendor":"","typeOfExpense":"","billDate":"","billIssuedDate":"","paidDate":"","isBillPaid":"","vendorName":"","totalAmount":"","@timestamp":"timestamp","history":{},"ward":"" }} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.address.street - outJsonPath: $.Data.street - - inJsonPath: $.address.locality.code - outJsonPath: $.Data.locality - - inJsonPath: $.businessService - outJsonPath: $.Data.businessService - - inJsonPath: $.challanNo - outJsonPath: $.Data.challanNo - - inJsonPath: $.referenceId - outJsonPath: $.Data.referenceId - - inJsonPath: $.description - outJsonPath: $.Data.description - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.additionalDetail - outJsonPath: $.Data.additionalDetail - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.taxPeriodFrom - outJsonPath: $.Data.taxPeriodFrom - - inJsonPath: $.taxPeriodTo - outJsonPath: $.Data.taxPeriodTo - - inJsonPath: $.amount - outJsonPath: $.Data.amount - - inJsonPath: $.filestoreid - outJsonPath: $.Data.filestoreid - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.vendor - outJsonPath: $.Data.vendor - - inJsonPath: $.typeOfExpense - outJsonPath: $.Data.typeOfExpense - - inJsonPath: $.billDate - outJsonPath: $.Data.billDate - - inJsonPath: $.billIssuedDate - outJsonPath: $.Data.billIssuedDate - - inJsonPath: $.paidDate - outJsonPath: $.Data.paidDate - - inJsonPath: $.isBillPaid - outJsonPath: $.Data.isBillPaid - - inJsonPath: $.vendorName - outJsonPath: $.Data.vendorName - - inJsonPath: $.totalAmount - outJsonPath: $.Data.totalAmount - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.echallan","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - - - topic: echallan-legacyIndex - configKey: LEGACYINDEX - indexes: - - name: echallan-services - type: general - isBulk: true - id: $.id,$.tenantId - jsonPath: $.challans.* - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","tenantId":"","street":"","locality":"","businessService":"","challanNo":"","referenceId":"","description":"","accountId":"","additionalDetail":{},"source":"","taxPeriodFrom":"","taxPeriodTo":"","amount":[],"filestoreid":"","additionalDetails":{},"applicationStatus":"","vendor":"","typeOfExpense":"","billDate":"","billIssuedDate":"","paidDate":"","isBillPaid":"","vendorName":"","totalAmount":"","@timestamp":"timestamp","history":{},"ward":"" }} - fieldMapping: - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.address.street - outJsonPath: $.Data.street - - inJsonPath: $.address.locality.code - outJsonPath: $.Data.locality - - inJsonPath: $.businessService - outJsonPath: $.Data.businessService - - inJsonPath: $.challanNo - outJsonPath: $.Data.challanNo - - inJsonPath: $.referenceId - outJsonPath: $.Data.referenceId - - inJsonPath: $.description - outJsonPath: $.Data.description - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.additionalDetail - outJsonPath: $.Data.additionalDetail - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.taxPeriodFrom - outJsonPath: $.Data.taxPeriodFrom - - inJsonPath: $.taxPeriodTo - outJsonPath: $.Data.taxPeriodTo - - inJsonPath: $.amount - outJsonPath: $.Data.amount - - inJsonPath: $.filestoreid - outJsonPath: $.Data.filestoreid - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.vendor - outJsonPath: $.Data.vendor - - inJsonPath: $.typeOfExpense - outJsonPath: $.Data.typeOfExpense - - inJsonPath: $.billDate - outJsonPath: $.Data.billDate - - inJsonPath: $.billIssuedDate - outJsonPath: $.Data.billIssuedDate - - inJsonPath: $.paidDate - outJsonPath: $.Data.paidDate - - inJsonPath: $.isBillPaid - outJsonPath: $.Data.isBillPaid - - inJsonPath: $.vendorName - outJsonPath: $.Data.vendorName - - inJsonPath: $.totalAmount - outJsonPath: $.Data.totalAmount - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.echallan","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward diff --git a/egov-indexer/egov-fsm.yaml b/egov-indexer/egov-fsm.yaml deleted file mode 100644 index 2c6b1f0c..00000000 --- a/egov-indexer/egov-fsm.yaml +++ /dev/null @@ -1,234 +0,0 @@ -ServiceMaps: - serviceName: fsm - version: 1.0.0 - mappings: - - topic: save-fsm-application - configKey: INDEX - indexes: - - name: fsm - type: fsmapplication - id: $.id, $.tenantId - isBulk: false - timeStampField: $.auditDetails.createdTime - jsonPath: $.fsm - customJsonMapping: - indexMapping: {"Data":{"fsm":{},"ward":{},"vendor":{"name":"","owner":{"uuid":"","name":"","mobileNumber":"","userName":""}},"tenantData":{}, "history":{},"payments":{},"vehicleTrip":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.fsm - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://collection-services:8080/collection-services/payments/FSM.TRIP_CHARGES/_search - queryParam: consumerCodes=$.applicationNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Payments - outJsonPath: $.Data.payments - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: update-fsm-application - configKey: INDEX - indexes: - - name: fsm - type: fsmapplication - id: $.id, $.tenantId - isBulk: false - timeStampField: $.auditDetails.createdTime - jsonPath: $.fsm - customJsonMapping: - indexMapping: {"Data":{"fsm":{},"ward":{},"vendor":{"name":"","owner":{"uuid":"","name":"","mobileNumber":"","userName":""}},"tenantData":{}, "history":{},"payments":{},"vehicleTrip":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.fsm - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://collection-services:8080/collection-services/payments/FSM.TRIP_CHARGES/_search - queryParam: consumerCodes=$.applicationNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Payments - outJsonPath: $.Data.payments - - path: http://vendor.egov:8080/vendor/v1/_search - queryParam: ids=$.dsoId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.vendor[0].name - outJsonPath: $.Data.vendor.name - - inJsonPath: $.vendor[0].owner.uuid - outJsonPath: $.Data.vendor.owner.uuid - - inJsonPath: $.vendor[0].owner.name - outJsonPath: $.Data.vendor.owner.name - - inJsonPath: $.vendor[0].owner.mobileNumber - outJsonPath: $.Data.vendor.owner.mobileNumber - - inJsonPath: $.vendor[0].owner.userName - outJsonPath: $.Data.vendor.owner.userName - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: update-fsm-workflow-application - configKey: INDEX - indexes: - - name: fsm - type: fsmapplication - id: $.id, $.tenantId - isBulk: false - timeStampField: $.auditDetails.createdTime - jsonPath: $.fsm - customJsonMapping: - indexMapping: {"Data":{"fsm":{},"ward":{},"vendor":{"name":"","owner":{"uuid":"","name":"","mobileNumber":"","userName":""}},"tenantData":{}, "history":{},"payments":{},"vehicleTrip":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.fsm - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://collection-services:8080/collection-services/payments/FSM.TRIP_CHARGES/_search - queryParam: consumerCodes=$.applicationNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Payments - outJsonPath: $.Data.payments - - path: http://vendor.egov:8080/vendor/v1/_search - queryParam: ids=$.dsoId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.vendor[0].name - outJsonPath: $.Data.vendor.name - - inJsonPath: $.vendor[0].owner.uuid - outJsonPath: $.Data.vendor.owner.uuid - - inJsonPath: $.vendor[0].owner.name - outJsonPath: $.Data.vendor.owner.name - - inJsonPath: $.vendor[0].owner.mobileNumber - outJsonPath: $.Data.vendor.owner.mobileNumber - - inJsonPath: $.vendor[0].owner.userName - outJsonPath: $.Data.vendor.owner.userName - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - - topic: fsm-application-legacyindex - configKey: LEGACYINDEX - indexes: - - name: fsm - type: fsmapplication - id: $.id, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.fsm.* - customJsonMapping: - indexMapping: {"Data":{"fsm":{},"ward":{},"vendor":{"name":"","owner":{"uuid":"","name":"","mobileNumber":"","userName":""}},"tenantData":{}, "history":{},"payments":{},"vehicleTrip":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.fsm - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://collection-services:8080/collection-services/payments/FSM.TRIP_CHARGES/_search - queryParam: consumerCodes=$.applicationNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Payments - outJsonPath: $.Data.payments - - path: http://vendor.egov:8080/vendor/v1/_search - queryParam: ids=$.dsoId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.vendor[0].name - outJsonPath: $.Data.vendor.name - - inJsonPath: $.vendor[0].owner.uuid - outJsonPath: $.Data.vendor.owner.uuid - - inJsonPath: $.vendor[0].owner.name - outJsonPath: $.Data.vendor.owner.name - - inJsonPath: $.vendor[0].owner.mobileNumber - outJsonPath: $.Data.vendor.owner.mobileNumber - - inJsonPath: $.vendor[0].owner.userName - outJsonPath: $.Data.vendor.owner.userName - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - - diff --git a/egov-indexer/egov-noc-services.yml b/egov-indexer/egov-noc-services.yml deleted file mode 100644 index 06bd5902..00000000 --- a/egov-indexer/egov-noc-services.yml +++ /dev/null @@ -1,103 +0,0 @@ -ServiceMaps: - serviceName: Noc Service - version: 1.0.0 - mappings: - - topic: save-noc-application - configKey: INDEX - indexes: - - name: noc-index - type: noc - id: $.id, $.tenantId - isBulk: false - timeStampField: $.auditDetails.createdTime - jsonPath: $.Noc - customJsonMapping: - indexMapping: {"Data":{"applicationNo":"applicationNo","nocNo":"nocNo","applicationType":"applicationType","status":"status","applicationStatus":"applicationStatus","nocType":"nocType","landId":"landId","tenantId":"tenantId","auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.nocNo - outJsonPath: $.Data.nocNo - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.nocType - outJsonPath: $.Data.nocType - - inJsonPath: $.landId - outJsonPath: $.Data.landId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - - topic: update-noc-workflow - configKey: INDEX - indexes: - - name: noc-index - type: noc - id: $.id, $.tenantId - isBulk: false - jsonPath: $.Noc - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"applicationNo":"applicationNo","nocNo":"nocNo","applicationType":"applicationType","status":"status","applicationStatus":"applicationStatus","nocType":"nocType","landId":"landId","tenantId":"tenantId","auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.nocNo - outJsonPath: $.Data.nocNo - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.nocType - outJsonPath: $.Data.nocType - - inJsonPath: $.landId - outJsonPath: $.Data.landId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - - topic: update-noc-application - configKey: INDEX - indexes: - - name: noc-index - type: noc - id: $.id, $.tenantId - isBulk: false - jsonPath: $.Noc - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"applicationNo":"applicationNo","nocNo":"nocNo","applicationType":"applicationType","status":"status","applicationStatus":"applicationStatus","nocType":"nocType","landId":"landId","tenantId":"tenantId","auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.nocNo - outJsonPath: $.Data.nocNo - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.nocType - outJsonPath: $.Data.nocType - - inJsonPath: $.landId - outJsonPath: $.Data.landId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - diff --git a/egov-indexer/egov-telemetry-indexer.yml b/egov-indexer/egov-telemetry-indexer.yml deleted file mode 100644 index cead33f1..00000000 --- a/egov-indexer/egov-telemetry-indexer.yml +++ /dev/null @@ -1,35 +0,0 @@ -ServiceMaps: - serviceName: Telemetry - version: 1.0.0 - mappings: - - topic: telemetry-final-messages - configKey: INDEX - indexes: - - name: telemetryindex-v1 - type: general - id: $.mid - isBulk: true - jsonPath: $.events.* - timeStampField: $.ets - - - topic: telemetry-reindex - configKey: REINDEX - indexes: - - name: telemetryindex-v1.1 - type: general - id: $.mid - isBulk: true - jsonPath: $.hits - timeStampField: $.ets - - - topic: batch-telemetry - configKey: INDEX - indexes: - - name: batchtelemetryindex-v1 - type: general - id: $.sessionId - isBulk: false - -#JOURNEY: egovtelemetry -> egovtelemetryreindex -#configKey=INDEX: Index that currently receives live data from the services -#configKey=REINDEX: Configuration for reindexing that will be enabled only during reindexing activity. diff --git a/egov-indexer/egov-url-shortening-indexer.yaml b/egov-indexer/egov-url-shortening-indexer.yaml deleted file mode 100644 index ec83caba..00000000 --- a/egov-indexer/egov-url-shortening-indexer.yaml +++ /dev/null @@ -1,12 +0,0 @@ -ServiceMaps: - serviceName: egov-url-shortening - version: 1.0.0 - mappings: - - topic: save-url-shortening-deatils - configKey: INDEX - indexes: - - name: url-shortening-v1 - type: general - id: $.id - timeStampField: $.timestamp - fieldsToBeMasked: [ "$.actualUrl"] \ No newline at end of file diff --git a/egov-indexer/egov-vehicle.yaml b/egov-indexer/egov-vehicle.yaml deleted file mode 100644 index 95b6210e..00000000 --- a/egov-indexer/egov-vehicle.yaml +++ /dev/null @@ -1,262 +0,0 @@ -ServiceMaps: - serviceName: vehicle - version: 1.0.0 - mappings: - - topic: save-vehicle-application - configKey: INDEX - indexes: - - name: vehicle - type: vehicleapplication - id: $.id, $.tenantId - isBulk: false - timeStampField: $.auditDetails.createdTime - jsonPath: $.vehicle - customJsonMapping: - indexMapping: {"Data":{"vehicle":{},"tenantData":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.vehicle - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: save-vehicle-trip - configKey: INDEX - indexes: - - name: vehicletrip - type: vehicletripapplication - id: $.id, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.vehicleTrip.* - customJsonMapping: - indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.vehicleTrip - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.fsm - outJsonPath: $.Data.fsm - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: FSM - masterName: FSTPPlantInfo - tenantId: pb - filter: "[?(@.ULBS contains $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.FSM.FSTPPlantInfo - outJsonPath: $.Data.fstpPlantInfo - - - topic: update-vehicle-trip - configKey: INDEX - indexes: - - name: vehicletrip - type: vehicletripapplication - id: $.id, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.vehicleTrip.* - customJsonMapping: - indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.vehicleTrip - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.fsm - outJsonPath: $.Data.fsm - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: FSM - masterName: FSTPPlantInfo - tenantId: pb - filter: "[?(@.ULBS contains $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.FSM.FSTPPlantInfo - outJsonPath: $.Data.fstpPlantInfo - - - topic: update-workflow-vehicle-trip - configKey: INDEX - indexes: - - name: vehicletrip - type: vehicletripapplication - id: $.id, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.vehicleTrip.* - customJsonMapping: - indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.vehicleTrip - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.fsm - outJsonPath: $.Data.fsm - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: FSM - masterName: FSTPPlantInfo - tenantId: pb - filter: "[?(@.ULBS contains $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.FSM.FSTPPlantInfo - outJsonPath: $.Data.fstpPlantInfo - - - topic: vehicle-trip-legacyindex - configKey: LEGACYINDEX - indexes: - - name: vehicletrip - type: vehicletripapplication - id: $.id, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.vehicleTrip.* - customJsonMapping: - indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.vehicleTrip - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.fsm - outJsonPath: $.Data.fsm - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: FSM - masterName: FSTPPlantInfo - tenantId: pb - filter: "[?(@.ULBS contains $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.FSM.FSTPPlantInfo - outJsonPath: $.Data.fstpPlantInfo - - - topic: vehicle-application-legacyindex - configKey: LEGACYINDEX - indexes: - - name: vehicle - type: vehicleapplication - id: $.id, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.vehicle.* - customJsonMapping: - indexMapping: {"Data":{"vehicle":{},"tenantData":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.vehicle - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - diff --git a/egov-indexer/egov-vendor.yaml b/egov-indexer/egov-vendor.yaml deleted file mode 100644 index ab7a6ddf..00000000 --- a/egov-indexer/egov-vendor.yaml +++ /dev/null @@ -1,57 +0,0 @@ -ServiceMaps: - serviceName: vendor - version: 1.0.0 - mappings: - - topic: save-vendor-application - configKey: INDEX - indexes: - - name: vendor - type: vendorapplication - id: $.id, $.tenantId - isBulk: false - timeStampField: $.auditDetails.createdTime - jsonPath: $.vendor - customJsonMapping: - indexMapping: {"Data":{"vendor":{},"tenantData":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.vendor - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: vendor-application-legacy-index - configKey: LEGACYINDEX - indexes: - - name: vendor - type: vendorapplication - id: $.id, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.vendor.* - customJsonMapping: - indexMapping: {"Data":{"vendor":{},"tenantData":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.vendor - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData diff --git a/egov-indexer/facility-indexer.yml b/egov-indexer/facility-indexer.yml index 949afd82..6495246c 100644 --- a/egov-indexer/facility-indexer.yml +++ b/egov-indexer/facility-indexer.yml @@ -7,7 +7,16 @@ ServiceMaps: indexes: - name: facility-index-v1 type: facility - id: $.id + id: $.clientReferenceId isBulk: true jsonPath: $.* - timeStampField: $.auditDetails.createdTime \ No newline at end of file + timeStampField: $.auditDetails.createdTime + - topic: update-facility-topic + configKey: INDEX + indexes: + - name: facility-index-v1 + type: facility + id: $.clientReferenceId + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file diff --git a/egov-indexer/finance-rolloutadotpion-indexer.yml b/egov-indexer/finance-rolloutadotpion-indexer.yml deleted file mode 100644 index 9c8befa6..00000000 --- a/egov-indexer/finance-rolloutadotpion-indexer.yml +++ /dev/null @@ -1,31 +0,0 @@ -ServiceMaps: - serviceName: FinanceAdoption - version: 2.0.0 - mappings: - - topic: finance-adoption-topic - configKey: INDEX - indexes: - - name: financeindex-v1 - type: rolloutadoption - id: $.id - isBulk: false - timeStampField: $.timestamp - jsonPath: $.rollOutAdoptionData - - topic: finance-bill-topic - configKey: INDEX - indexes: - - name: financebill-v1 - type: billregister - id: $.id - isBulk: true - timeStampField: $.timestamp - jsonPath: $.egBillRegisterData - - topic: finance-voucher-topic - configKey: INDEX - indexes: - - name: financevoucher-v1 - type: voucher - id: $.id - isBulk: true - timeStampField: $.timestamp - jsonPath: $.voucherHeaderData diff --git a/egov-indexer/fire-noc-service.yml b/egov-indexer/fire-noc-service.yml deleted file mode 100644 index cf99b051..00000000 --- a/egov-indexer/fire-noc-service.yml +++ /dev/null @@ -1,304 +0,0 @@ -ServiceMaps: - serviceName: Fire Noc Service - rainmaker - version: 1.0.0 - mappings: - - topic: save-fn-firenoc - configKey: INDEX - indexes: - - name: firenoc-services - type: general - id: $.id,$.tenantId - isBulk: true - jsonPath: $.FireNOCs - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"channel":"","id":"","tenantId":"","fireNOCDetails":{"status":"","action":"","firestationId":"","applicationNumber":"","fireNOCType":"","buildings":[],"propertyDetails":{},"additionalDetail":{},"applicantDetails":{}},"auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.fireNOCDetails.channel - outJsonPath: $.Data.channel - - inJsonPath: $.fireNOCDetails.status - outJsonPath: $.Data.fireNOCDetails.status - - inJsonPath: $.fireNOCDetails.action - outJsonPath: $.Data.fireNOCDetails.action - - inJsonPath: $.fireNOCDetails.fireNOCType - outJsonPath: $.Data.fireNOCDetails.fireNOCType - - inJsonPath: $.fireNOCDetails.buildings - outJsonPath: $.Data.fireNOCDetails.buildings - - inJsonPath: $.fireNOCDetails.applicationNumber - outJsonPath: $.Data.fireNOCDetails.applicationNumber - - inJsonPath: $.fireNOCDetails.buildings - outJsonPath: $.Data.fireNOCDetails.buildings - - inJsonPath: $.fireNOCDetails.propertyDetails - outJsonPath: $.Data.fireNOCDetails.propertyDetails - - inJsonPath: $.fireNOCDetails.additionalDetail - outJsonPath: $.Data.fireNOCDetails.additionalDetail - - inJsonPath: $.fireNOCDetails.applicantDetails - outJsonPath: $.Data.fireNOCDetails.applicantDetails - - inJsonPath: $.fireNOCDetails.firestationId - outJsonPath: $.Data.fireNOCDetails.firestationId - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.fireNOCDetails.applicationNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://egov-localization.egov:8080/localization/messages/v1/_search - queryParam: locale=en_IN,tenantId=$.tenantId,codes=$.fireNOCDetails.firestationId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.messages[0].message - outJsonPath: $.Data.Department - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - - topic: update-fn-firenoc - configKey: INDEX - indexes: - - name: firenoc-services - type: general - id: $.id,$.tenantId - isBulk: true - jsonPath: $.FireNOCs - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"channel":"","id":"","tenantId":"","fireNOCDetails":{"status":"","action":"","firestationId":"","applicationNumber":"","fireNOCType":"","buildings":[],"propertyDetails":{},"additionalDetail":{},"applicantDetails":{}},"auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.fireNOCDetails.channel - outJsonPath: $.Data.channel - - inJsonPath: $.fireNOCDetails.status - outJsonPath: $.Data.fireNOCDetails.status - - inJsonPath: $.fireNOCDetails.action - outJsonPath: $.Data.fireNOCDetails.action - - inJsonPath: $.fireNOCDetails.fireNOCType - outJsonPath: $.Data.fireNOCDetails.fireNOCType - - inJsonPath: $.fireNOCDetails.buildings - outJsonPath: $.Data.fireNOCDetails.buildings - - inJsonPath: $.fireNOCDetails.applicationNumber - outJsonPath: $.Data.fireNOCDetails.applicationNumber - - inJsonPath: $.fireNOCDetails.buildings - outJsonPath: $.Data.fireNOCDetails.buildings - - inJsonPath: $.fireNOCDetails.propertyDetails - outJsonPath: $.Data.fireNOCDetails.propertyDetails - - inJsonPath: $.fireNOCDetails.additionalDetail - outJsonPath: $.Data.fireNOCDetails.additionalDetail - - inJsonPath: $.fireNOCDetails.applicantDetails - outJsonPath: $.Data.fireNOCDetails.applicantDetails - - inJsonPath: $.fireNOCDetails.firestationId - outJsonPath: $.Data.fireNOCDetails.firestationId - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.fireNOCDetails.applicationNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://egov-localization.egov:8080/localization/messages/v1/_search - queryParam: locale=en_IN,tenantId=$.tenantId,codes=$.fireNOCDetails.firestationId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.messages[0].message - outJsonPath: $.Data.Department - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: update-fn-workflow - configKey: INDEX - indexes: - - name: firenoc-services - type: general - id: $.id,$.tenantId - isBulk: true - jsonPath: $.FireNOCs - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"channel":"","id":"","tenantId":"","fireNOCDetails":{"status":"","action":"","firestationId":"","applicationNumber":"","fireNOCType":"","buildings":[],"propertyDetails":{},"additionalDetail":{},"applicantDetails":{}},"auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.fireNOCDetails.channel - outJsonPath: $.Data.channel - - inJsonPath: $.fireNOCDetails.status - outJsonPath: $.Data.fireNOCDetails.status - - inJsonPath: $.fireNOCDetails.action - outJsonPath: $.Data.fireNOCDetails.action - - inJsonPath: $.fireNOCDetails.fireNOCType - outJsonPath: $.Data.fireNOCDetails.fireNOCType - - inJsonPath: $.fireNOCDetails.buildings - outJsonPath: $.Data.fireNOCDetails.buildings - - inJsonPath: $.fireNOCDetails.applicationNumber - outJsonPath: $.Data.fireNOCDetails.applicationNumber - - inJsonPath: $.fireNOCDetails.buildings - outJsonPath: $.Data.fireNOCDetails.buildings - - inJsonPath: $.fireNOCDetails.propertyDetails - outJsonPath: $.Data.fireNOCDetails.propertyDetails - - inJsonPath: $.fireNOCDetails.additionalDetail - outJsonPath: $.Data.fireNOCDetails.additionalDetail - - inJsonPath: $.fireNOCDetails.applicantDetails - outJsonPath: $.Data.fireNOCDetails.applicantDetails - - inJsonPath: $.fireNOCDetails.firestationId - outJsonPath: $.Data.fireNOCDetails.firestationId - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.fireNOCDetails.applicationNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://egov-localization.egov:8080/localization/messages/v1/_search - queryParam: locale=en_IN,tenantId=$.tenantId,codes=$.fireNOCDetails.firestationId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.messages[0].message - outJsonPath: $.Data.Department - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: legacy-fn-firenoc - configKey: LEGACYINDEX - indexes: - - name: firenoc-services - type: general - id: $.id,$.tenantId - isBulk: true - jsonPath: $.FireNOCs - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"channel":"","id":"","tenantId":"","fireNOCDetails":{"status":"","action":"","firestationId":"","applicationNumber":"","fireNOCType":"","buildings":[],"propertyDetails":{},"additionalDetail":{},"applicantDetails":{}},"auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.fireNOCDetails.channel - outJsonPath: $.Data.channel - - inJsonPath: $.fireNOCDetails.status - outJsonPath: $.Data.fireNOCDetails.status - - inJsonPath: $.fireNOCDetails.action - outJsonPath: $.Data.fireNOCDetails.action - - inJsonPath: $.fireNOCDetails.fireNOCType - outJsonPath: $.Data.fireNOCDetails.fireNOCType - - inJsonPath: $.fireNOCDetails.buildings - outJsonPath: $.Data.fireNOCDetails.buildings - - inJsonPath: $.fireNOCDetails.applicationNumber - outJsonPath: $.Data.fireNOCDetails.applicationNumber - - inJsonPath: $.fireNOCDetails.buildings - outJsonPath: $.Data.fireNOCDetails.buildings - - inJsonPath: $.fireNOCDetails.propertyDetails - outJsonPath: $.Data.fireNOCDetails.propertyDetails - - inJsonPath: $.fireNOCDetails.additionalDetail - outJsonPath: $.Data.fireNOCDetails.additionalDetail - - inJsonPath: $.fireNOCDetails.applicantDetails - outJsonPath: $.Data.fireNOCDetails.applicantDetails - - inJsonPath: $.fireNOCDetails.firestationId - outJsonPath: $.Data.fireNOCDetails.firestationId - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.fireNOCDetails.applicationNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://egov-localization.egov:8080/localization/messages/v1/_search - queryParam: locale=en_IN,tenantId=$.tenantId,codes=$.fireNOCDetails.firestationId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.messages[0].message - outJsonPath: $.Data.Department - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData \ No newline at end of file diff --git a/egov-indexer/household-indexer.yml b/egov-indexer/household-indexer.yml index cfff16b9..237e1842 100644 --- a/egov-indexer/household-indexer.yml +++ b/egov-indexer/household-indexer.yml @@ -2,29 +2,43 @@ ServiceMaps: serviceName: household version: 1.0.0 mappings: - - topic: save-household-topic + - topic: transformer-producer-household-index-v1-topic configKey: INDEX indexes: - name: household-index-v1 - type: household - id: $.id + type: _doc + id: $.household.clientReferenceId isBulk: true jsonPath: $.* - timeStampField: $.auditDetails.createdTime - - topic: update-household-topic + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.household.clientAuditDetails.createdTime + - topic: delete-household-topic configKey: INDEX indexes: - name: household-index-v1 - type: household - id: $.id + type: _doc + id: $.clientReferenceId isBulk: true jsonPath: $.* timeStampField: $.auditDetails.lastModifiedTime - - topic: delete-household-topic + - topic: transformer-producer-household-member-index-v1-topic configKey: INDEX indexes: - - name: household-index-v1 - type: household + - name: household-member-index-v1 + type: _doc + id: $.householdMember.id + isBulk: true + jsonPath: $.* + timeStampField: $.householdMember.auditDetails.createdTime + - topic: delete-household-member-topic + configKey: INDEX + indexes: + - name: household-member-index-v1 + type: _doc id: $.id isBulk: true jsonPath: $.* diff --git a/egov-indexer/individual-indexer.yml b/egov-indexer/individual-indexer.yml index b2b3c725..a53c45c2 100644 --- a/egov-indexer/individual-indexer.yml +++ b/egov-indexer/individual-indexer.yml @@ -7,7 +7,7 @@ ServiceMaps: indexes: - name: individual-index-v1 type: individual - id: $.id + id: $.clientReferenceId isBulk: true jsonPath: $.* timeStampField: $.auditDetails.createdTime @@ -16,7 +16,7 @@ ServiceMaps: indexes: - name: individual-index-v1 type: individual - id: $.id + id: $.clientReferenceId isBulk: true jsonPath: $.* timeStampField: $.auditDetails.lastModifiedTime @@ -25,7 +25,7 @@ ServiceMaps: indexes: - name: individual-index-v1 type: individual - id: $.id + id: $.clientReferenceId isBulk: true jsonPath: $.* timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file diff --git a/egov-indexer/payment-indexer.yml b/egov-indexer/payment-indexer.yml deleted file mode 100644 index 682c633f..00000000 --- a/egov-indexer/payment-indexer.yml +++ /dev/null @@ -1,158 +0,0 @@ -ServiceMaps: - serviceName: Collection Services - version: 1.0.0 - mappings: - - topic: egov.collection.payment-create - configKey: INDEX - indexes: - - name: paymentsindex-v1 - type: payments - id: $.id - isBulk: false - timeStampField: $.auditDetails.createdTime - jsonPath: $.Payment - customJsonMapping: - indexMapping: {"Data":{"tenantId":"","id":"","transactionNumber":"","transactionDate":1,"paymentMode":"","paymentStatus":"","payer":{"id":"","name":""},"paidBy":"","paymentDetails":{},"auditDetails":{},"additionalDetails":{},"tenantData":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.transactionNumber - outJsonPath: $.Data.transactionNumber - - inJsonPath: $.transactionDate - outJsonPath: $.Data.transactionDate - - inJsonPath: $.paymentMode - outJsonPath: $.Data.paymentMode - - inJsonPath: $.paymentStatus - outJsonPath: $.Data.paymentStatus - - inJsonPath: $.payerId - outJsonPath: $.Data.payer.id - - inJsonPath: $.payerName - outJsonPath: $.Data.payer.name - - inJsonPath: $.paidBy - outJsonPath: $.Data.paidBy - - inJsonPath: $.paymentDetails - outJsonPath: $.Data.paymentDetails - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - - topic: egov.collection.payment-update - configKey: INDEX - indexes: - - name: paymentsindex-v1 - type: payments - id: $.id - isBulk: false - timeStampField: $.auditDetails.createdTime - jsonPath: $.Payment - customJsonMapping: - indexMapping: {"Data":{"tenantId":"","id":"","transactionNumber":"","transactionDate":1,"paymentMode":"","paymentStatus":"","payer":{"id":"","name":""},"paidBy":"","paymentDetails":{},"auditDetails":{},"additionalDetails":{},"tenantData":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.transactionNumber - outJsonPath: $.Data.transactionNumber - - inJsonPath: $.transactionDate - outJsonPath: $.Data.transactionDate - - inJsonPath: $.paymentMode - outJsonPath: $.Data.paymentMode - - inJsonPath: $.paymentStatus - outJsonPath: $.Data.paymentStatus - - inJsonPath: $.payerId - outJsonPath: $.Data.payer.id - - inJsonPath: $.payerName - outJsonPath: $.Data.payer.name - - inJsonPath: $.paidBy - outJsonPath: $.Data.paidBy - - inJsonPath: $.paymentDetails - outJsonPath: $.Data.paymentDetails - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - - topic: egov-payment-legacy-index - configKey: LEGACYINDEX - indexes: - - name: paymentsindex-v1 - type: payments - id: $.id - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.Payments.* - customJsonMapping: - indexMapping: {"Data":{"tenantId":"","id":"","transactionNumber":"","transactionDate":1,"paymentMode":"","paymentStatus":"","payer":{"id":"","name":""},"paidBy":"","paymentDetails":{},"auditDetails":{},"additionalDetails":{},"tenantData":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.transactionNumber - outJsonPath: $.Data.transactionNumber - - inJsonPath: $.transactionDate - outJsonPath: $.Data.transactionDate - - inJsonPath: $.paymentMode - outJsonPath: $.Data.paymentMode - - inJsonPath: $.paymentStatus - outJsonPath: $.Data.paymentStatus - - inJsonPath: $.payerId - outJsonPath: $.Data.payer.id - - inJsonPath: $.payerName - outJsonPath: $.Data.payer.name - - inJsonPath: $.paidBy - outJsonPath: $.Data.paidBy - - inJsonPath: $.paymentDetails - outJsonPath: $.Data.paymentDetails - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData diff --git a/egov-indexer/pgr-services.yml b/egov-indexer/pgr-services.yml index 6563ad26..2e319d87 100644 --- a/egov-indexer/pgr-services.yml +++ b/egov-indexer/pgr-services.yml @@ -12,52 +12,56 @@ ServiceMaps: timeStampField: $.service.auditDetails.lastModifiedTime fieldsToBeMasked: ["$.service.citizen.userName", "$.service.citizen.name", "$.service.citizen.mobileNumber", "$.service.citizen.emailId"] customJsonMapping: - indexMapping: {"Data":{"ward":{}, "history":{}, "department":"department", "slaHours":"slaHours", "tenantData":{}}} + indexMapping: {"Data":{"ward":{}, "history":{}, "department":"department", "slaHours":"slaHours", "tenantData":{}, "boundaryHierarchy": {}}} fieldMapping: - inJsonPath: $ outJsonPath: $.Data + - inJsonPath: $.service.tenantId + outJsonPath: $.Data.tenantId externalUriMapping: - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=ADMIN,boundaryType=Provincia,code=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + queryParam: hierarchyTypeCode=ADMIN,boundaryType=Provincia,codes=$.service.address.locality.code,tenantId=$.service.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.province - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Distrito,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.district - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Posto Administrativo,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.administrativeProvince - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Localidade,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.locality - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Aldeia,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.village - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.service.serviceRequestId,history=true,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history + - inJsonPath: $.ProcessInstances[0] + outJsonPath: $.Data.currentProcessInstance mdmsMapping: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: common-masters masterName: Department - tenantId: pb + tenantId: mz filter: "[?(@.code == $department)]" filterMapping: - variable: $department @@ -68,7 +72,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: RAINMAKER-PGR masterName: ServiceDefs - tenantId: pb + tenantId: mz filter: "[?((@.serviceCode == $servicecode) && (@.active == true))]" filterMapping: - variable: $servicecode @@ -79,7 +83,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: mz filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant @@ -102,40 +106,42 @@ ServiceMaps: fieldMapping: - inJsonPath: $ outJsonPath: $.Data + - inJsonPath: $.service.tenantId + outJsonPath: $.Data.tenantId externalUriMapping: - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=ADMIN,boundaryType=Provincia,code=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + queryParam: hierarchyTypeCode=ADMIN,boundaryType=Provincia,codes=$.service.address.locality.code,tenantId=$.service.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.province - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Distrito,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.district - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Posto Administrativo,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.administrativeProvince - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Localidade,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.locality - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Aldeia,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.village - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.service.serviceRequestId,history=true,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history @@ -143,7 +149,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: mz filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant @@ -151,6 +157,17 @@ ServiceMaps: uriResponseMapping: - inJsonPath: $.MdmsRes.tenant.tenants outJsonPath: $.Data.tenantData + - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search + moduleName: RAINMAKER-PGR + masterName: ServiceDefs + tenantId: mz + filter: "[?((@.serviceCode == $servicecode) && (@.active == true))]" + filterMapping: + - variable: $servicecode + valueJsonpath: $.service.serviceCode + uriResponseMapping: + - inJsonPath: $.MdmsRes.RAINMAKER-PGR.ServiceDefs.*.slaHours + outJsonPath: $.Data.slaHours - topic: pgr-services-legacyIndex configKey: LEGACYINDEX @@ -163,44 +180,44 @@ ServiceMaps: timeStampField: $.service.auditDetails.lastModifiedTime fieldsToBeMasked: ["$.service.citizen.userName", "$.service.citizen.name", "$.service.citizen.mobileNumber", "$.service.citizen.emailId"] customJsonMapping: - indexMapping: {"Data":{"PGREntity":{},"ward":{},"tenantData":{}, "history":{}}} + indexMapping: {"Data":{"PGREntity":{},"ward":{},"tenantData":{}, "history":{},"boundaryHierarchy":{}}} fieldMapping: - inJsonPath: $ outJsonPath: $.Data.PGREntity externalUriMapping: - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=ADMIN,code=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + queryParam: hierarchyTypeCode=ADMIN,codes=$.service.address.locality.code,tenantId=$.service.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.province - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Distrito,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.district - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Posto Administrativo,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.administrativeProvince - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Localidade,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.locality - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=ADMIN,boundaryType=Aldeia,codes=$.service.address.locality.code,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0].name outJsonPath: $.Data.village - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.service.serviceRequestId,history=true,tenantId=$.service.tenantId - apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "default","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "default" } ] } } } + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "mz","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "mz" } ] } } } uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history @@ -208,7 +225,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: mz filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant diff --git a/egov-indexer/privacy-audit.yaml b/egov-indexer/privacy-audit.yaml deleted file mode 100644 index 4d6fd7e8..00000000 --- a/egov-indexer/privacy-audit.yaml +++ /dev/null @@ -1,30 +0,0 @@ -ServiceMaps: - serviceName: enc-client - version: 1.0.0 - mappings: - - topic: enc-user-audit-data - configKey: INDEX - indexes: - - name: privacy-audit-data - type: general - id: $.id - timeStampField: $.timestamp - customJsonMapping: - indexMapping: {"Data":{"id":"","userId":"","timestamp":"","purpose":"","model":"","entityIds":"","plainAccessRequest":"","additionalInfo":""}} - fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.userId - outJsonPath: $.Data.userId - - inJsonPath: $.timestamp - outJsonPath: $.Data.timestamp - - inJsonPath: $.purpose - outJsonPath: $.Data.purpose - - inJsonPath: $.model - outJsonPath: $.Data.model - - inJsonPath: $.entityIds - outJsonPath: $.Data.entityIds - - inJsonPath: $.plainAccessRequest - outJsonPath: $.Data.plainAccessRequest - - inJsonPath: $.additionalInfo - outJsonPath: $.Data.additionalInfo diff --git a/egov-indexer/project-indexer.yml b/egov-indexer/project-indexer.yml index 3fee43b1..6d0185cd 100644 --- a/egov-indexer/project-indexer.yml +++ b/egov-indexer/project-indexer.yml @@ -15,37 +15,14 @@ ServiceMaps: fieldMapping: - inJsonPath: $ outJsonPath: $.Data - timeStampField: $.lastModifiedTime - - name: user-sync-index-v1 - type: users - id: $.id - isBulk: true - jsonPath: $ - customJsonMapping: - indexMapping: { "Data": { } } - fieldMapping: - - inJsonPath: $.lastModifiedBy - outJsonPath: $.Data.userId - - inJsonPath: $.lastModifiedTime - outJsonPath: $.Data.createdTime - - inJsonPath: $.province - outJsonPath: $.Data.province - - inJsonPath: $.district - outJsonPath: $.Data.district - - inJsonPath: $.administrativeProvince - outJsonPath: $.Data.administrativeProvince - - inJsonPath: $.locality - outJsonPath: $.Data.locality - - inJsonPath: $.village - outJsonPath: $.Data.village - timeStampField: $.lastModifiedTime + timeStampField: $.auditDetails.lastModifiedTime - topic: save-project-beneficiary-topic configKey: INDEX indexes: - name: project-beneficiary-index-v1 type: project-beneficiary - id: $.id + id: $.clientReferenceId,$.beneficiaryClientReferenceId,$.tenantId isBulk: true jsonPath: $.* timeStampField: $.auditDetails.createdTime @@ -55,7 +32,7 @@ ServiceMaps: indexes: - name: project-beneficiary-index-v1 type: project-beneficiary - id: $.id + id: $.clientReferenceId,$.beneficiaryClientReferenceId,$.tenantId isBulk: true jsonPath: $.* timeStampField: $.auditDetails.lastModifiedTime @@ -65,7 +42,7 @@ ServiceMaps: indexes: - name: project-beneficiary-index-v1 type: project-beneficiary - id: $.id + id: $.clientReferenceId,$.beneficiaryClientReferenceId,$.tenantId isBulk: true jsonPath: $.* timeStampField: $.auditDetails.lastModifiedTime diff --git a/egov-indexer/project-staff-indexer.yml b/egov-indexer/project-staff-indexer.yml index 076a997c..5cad4a33 100644 --- a/egov-indexer/project-staff-indexer.yml +++ b/egov-indexer/project-staff-indexer.yml @@ -15,27 +15,4 @@ ServiceMaps: fieldMapping: - inJsonPath: $ outJsonPath: $.Data - timeStampField: $.lastModifiedTime - - name: user-sync-index-v1 - type: users - id: $.id - isBulk: true - jsonPath: $ - customJsonMapping: - indexMapping: { "Data": {} } - fieldMapping: - - inJsonPath: $.lastModifiedBy - outJsonPath: $.Data.userId - - inJsonPath: $.lastModifiedTime - outJsonPath: $.Data.createdTime - - inJsonPath: $.province - outJsonPath: $.Data.province - - inJsonPath: $.district - outJsonPath: $.Data.district - - inJsonPath: $.administrativeProvince - outJsonPath: $.Data.administrativeProvince - - inJsonPath: $.locality - outJsonPath: $.Data.locality - - inJsonPath: $.village - outJsonPath: $.Data.village - timeStampField: $.lastModifiedTime \ No newline at end of file + timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file diff --git a/egov-indexer/project-task-indexer.yml b/egov-indexer/project-task-indexer.yml index 9a964235..c82f1621 100644 --- a/egov-indexer/project-task-indexer.yml +++ b/egov-indexer/project-task-indexer.yml @@ -7,7 +7,7 @@ ServiceMaps: indexes: - name: project-task-index-v1 type: tasks - id: $.id + id: $.clientReferenceId,$.projectBeneficiaryClientReferenceId,$.tenantId isBulk: true jsonPath: $ customJsonMapping: @@ -24,18 +24,28 @@ ServiceMaps: customJsonMapping: indexMapping: { "Data": {} } fieldMapping: - - inJsonPath: $.lastModifiedBy - outJsonPath: $.Data.userId + - inJsonPath: $.createdBy + outJsonPath: $.Data.syncedUserId + - inJsonPath: $.userName + outJsonPath: $.Data.syncedUserName + - inJsonPath: $.role + outJsonPath: $.Data.role + - inJsonPath: $.boundaryHierarchy + outJsonPath: $.Data.boundaryHierarchy - inJsonPath: $.createdTime + outJsonPath: $.Data.clientCreatedTime + - inJsonPath: $.syncedTime outJsonPath: $.Data.createdTime - - inJsonPath: $.province - outJsonPath: $.Data.province - - inJsonPath: $.district - outJsonPath: $.Data.district - - inJsonPath: $.administrativeProvince - outJsonPath: $.Data.administrativeProvince - - inJsonPath: $.locality - outJsonPath: $.Data.locality - - inJsonPath: $.village - outJsonPath: $.Data.village + - inJsonPath: $.syncedTimeStamp + outJsonPath: $.Data.syncedTimeStamp + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.taskDates + outJsonPath: $.Data.taskDates + - inJsonPath: $.syncedDate + outJsonPath: $.Data.syncedDate + - inJsonPath: $.userAddress + outJsonPath: $.Data.userAddress + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails timeStampField: $.createdTime \ No newline at end of file diff --git a/egov-indexer/property-services.yml b/egov-indexer/property-services.yml deleted file mode 100644 index b6a66881..00000000 --- a/egov-indexer/property-services.yml +++ /dev/null @@ -1,779 +0,0 @@ -ServiceMaps: - serviceName: Property Tax - rainmaker - version: 1.0.0 - mappings: - - topic: save-property-registry - configKey: INDEX - indexes: - - name: pt-fuzzy-search - type: general - id: $.propertyId,$.tenantId - jsonPath: $.Property - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"ownerNames":[],"doorNo":"","street":"","owners":[],"acknowldgementNumber":"","propertyType":"","ownershipCategory":"","creationReason":"","usageCategory":"","noOfFloors":"","landArea":"","superBuiltUpArea":"","source":"","channel":"","units":{},"auditDetails":{},"id":"","propertyId":"","surveyId":"","linkedProperties":{},"tenantId":"","accountId":"","oldPropertyId":"","status":"","@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.owners.*.name - outJsonPath: $.Data.ownerNames - - inJsonPath: $.address.doorNo - outJsonPath: $.Data.doorNo - - inJsonPath: $.address.street - outJsonPath: $.Data.street - - inJsonPath: $.owners.*.uuid - outJsonPath: $.Data.owners - - inJsonPath: $.acknowldgementNumber - outJsonPath: $.Data.acknowldgementNumber - - inJsonPath: $.propertyType - outJsonPath: $.Data.propertyType - - inJsonPath: $.ownershipCategory - outJsonPath: $.Data.ownershipCategory - - inJsonPath: $.creationReason - outJsonPath: $.Data.creationReason - - inJsonPath: $.usageCategory - outJsonPath: $.Data.usageCategory - - inJsonPath: $.noOfFloors - outJsonPath: $.Data.noOfFloors - - inJsonPath: $.landArea - outJsonPath: $.Data.landArea - - inJsonPath: $.superBuiltUpArea - outJsonPath: $.Data.superBuiltUpArea - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.units - outJsonPath: $.Data.units - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.surveyId - outJsonPath: $.Data.surveyId - - inJsonPath: $.linkedProperties - outJsonPath: $.Data.linkedProperties - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.oldPropertyId - outJsonPath: $.Data.oldPropertyId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: PropertyTax - masterName: UsageCategory - tenantId: pb - filter: "[?(@.code == $usageCategory)]" - filterMapping: - - variable: $usageCategory - valueJsonpath: $.usageCategory - uriResponseMapping: - - inJsonPath: $.MdmsRes.PropertyTax.UsageCategory[0].name - outJsonPath: $.Data.usageCategory - - - name: property-application - type: general - id: $.propertyId,$.acknowldgementNumber,$.tenantId - jsonPath: $.Property - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"acknowldgementNumber":"","creationReason":"","auditDetails":{},"propertyId":"","tenantId":"","accountId":"","status":"","@timestamp":""}} - fieldMapping: - - inJsonPath: $.acknowldgementNumber - outJsonPath: $.Data.acknowldgementNumber - - inJsonPath: $.creationReason - outJsonPath: $.Data.creationReason - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - inJsonPath: $.TenantBoundary[0].boundary[0].children - outJsonPath: $.Data.ward.children - filter: "[?(@.code == $locality)]" - filterMapping: - - variable: $locality - valueJsonpath: $.address.locality.code - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: update-property-registry - configKey: INDEX - indexes: - - name: pt-fuzzy-search - type: general - id: $.propertyId,$.tenantId - jsonPath: $.Property - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"ownerNames":[],"doorNo":"","street":"","owners":[],"acknowldgementNumber":"","propertyType":"","ownershipCategory":"","creationReason":"","usageCategory":"","noOfFloors":"","landArea":"","superBuiltUpArea":"","source":"","channel":"","units":{},"auditDetails":{},"id":"","propertyId":"","surveyId":"","linkedProperties":{},"tenantId":"","accountId":"","oldPropertyId":"","status":"","@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.owners.*.name - outJsonPath: $.Data.ownerNames - - inJsonPath: $.address.doorNo - outJsonPath: $.Data.doorNo - - inJsonPath: $.address.street - outJsonPath: $.Data.street - - inJsonPath: $.owners.*.uuid - outJsonPath: $.Data.owners - - inJsonPath: $.acknowldgementNumber - outJsonPath: $.Data.acknowldgementNumber - - inJsonPath: $.propertyType - outJsonPath: $.Data.propertyType - - inJsonPath: $.ownershipCategory - outJsonPath: $.Data.ownershipCategory - - inJsonPath: $.creationReason - outJsonPath: $.Data.creationReason - - inJsonPath: $.usageCategory - outJsonPath: $.Data.usageCategory - - inJsonPath: $.noOfFloors - outJsonPath: $.Data.noOfFloors - - inJsonPath: $.landArea - outJsonPath: $.Data.landArea - - inJsonPath: $.superBuiltUpArea - outJsonPath: $.Data.superBuiltUpArea - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.units - outJsonPath: $.Data.units - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.surveyId - outJsonPath: $.Data.surveyId - - inJsonPath: $.linkedProperties - outJsonPath: $.Data.linkedProperties - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.oldPropertyId - outJsonPath: $.Data.oldPropertyId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: PropertyTax - masterName: UsageCategory - tenantId: pb - filter: "[?(@.code == $usageCategory)]" - filterMapping: - - variable: $usageCategory - valueJsonpath: $.usageCategory - uriResponseMapping: - - inJsonPath: $.MdmsRes.PropertyTax.UsageCategory[0].name - outJsonPath: $.Data.usageCategory - - - name: property-application - type: general - id: $.propertyId,$.acknowldgementNumber,$.tenantId - jsonPath: $.Property - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"acknowldgementNumber":"","creationReason":"","auditDetails":{},"propertyId":"","tenantId":"","accountId":"","status":"","@timestamp":""}} - fieldMapping: - - inJsonPath: $.acknowldgementNumber - outJsonPath: $.Data.acknowldgementNumber - - inJsonPath: $.creationReason - outJsonPath: $.Data.creationReason - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - inJsonPath: $.TenantBoundary[0].boundary[0].children - outJsonPath: $.Data.ward.children - filter: "[?(@.code == $locality)]" - filterMapping: - - variable: $locality - valueJsonpath: $.address.locality.code - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: cancel-property-registry - configKey: INDEX - indexes: - - name: property-services - type: general - id: $.propertyId,$.tenantId - jsonPath: $.Property - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"owners":[],"acknowldgementNumber":"","propertyType":"","ownershipCategory":"","creationReason":"","usageCategory":"","noOfFloors":"","landArea":"","superBuiltUpArea":"","source":"","channel":"","units":{},"auditDetails":{},"id":"","propertyId":"","surveyId":"","linkedProperties":{},"tenantId":"","accountId":"","oldPropertyId":"","status":"","@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.owners.*.uuid - outJsonPath: $.Data.owners - - inJsonPath: $.acknowldgementNumber - outJsonPath: $.Data.acknowldgementNumber - - inJsonPath: $.propertyType - outJsonPath: $.Data.propertyType - - inJsonPath: $.ownershipCategory - outJsonPath: $.Data.ownershipCategory - - inJsonPath: $.creationReason - outJsonPath: $.Data.creationReason - - inJsonPath: $.usageCategory - outJsonPath: $.Data.usageCategory - - inJsonPath: $.noOfFloors - outJsonPath: $.Data.noOfFloors - - inJsonPath: $.landArea - outJsonPath: $.Data.landArea - - inJsonPath: $.superBuiltUpArea - outJsonPath: $.Data.superBuiltUpArea - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.units - outJsonPath: $.Data.units - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.surveyId - outJsonPath: $.Data.surveyId - - inJsonPath: $.linkedProperties - outJsonPath: $.Data.linkedProperties - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.oldPropertyId - outJsonPath: $.Data.oldPropertyId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: PropertyTax - masterName: UsageCategory - tenantId: pb - filter: "[?(@.code == $usageCategory)]" - filterMapping: - - variable: $usageCategory - valueJsonpath: $.usageCategory - uriResponseMapping: - - inJsonPath: $.MdmsRes.PropertyTax.UsageCategory[0].name - outJsonPath: $.Data.usageCategory - - - name: property-application - type: general - id: $.propertyId,$.acknowldgementNumber,$.tenantId - jsonPath: $.Property - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"acknowldgementNumber":"","creationReason":"","auditDetails":{},"propertyId":"","tenantId":"","accountId":"","status":"","@timestamp":""}} - fieldMapping: - - inJsonPath: $.acknowldgementNumber - outJsonPath: $.Data.acknowldgementNumber - - inJsonPath: $.creationReason - outJsonPath: $.Data.creationReason - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - inJsonPath: $.TenantBoundary[0].boundary[0].children - outJsonPath: $.Data.ward.children - filter: "[?(@.code == $locality)]" - filterMapping: - - variable: $locality - valueJsonpath: $.address.locality.code - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: property-registry-legacyIndex - configKey: LEGACYINDEX - indexes: - - name: property-services - type: general - isBulk: true - id: $.propertyId,$.tenantId - jsonPath: $.Properties.* - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"ownerNames":[],"doorNo":"","street":"","owners":[],"acknowldgementNumber":"","propertyType":"","ownershipCategory":"","creationReason":"","usageCategory":"","noOfFloors":"","landArea":"","superBuiltUpArea":"","source":"","channel":"","units":{},"auditDetails":{},"id":"","propertyId":"","surveyId":"","linkedProperties":{},"tenantId":"","accountId":"","oldPropertyId":"","status":"","@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.owners.*.name - outJsonPath: $.Data.ownerNames - - inJsonPath: $.address.doorNo - outJsonPath: $.Data.doorNo - - inJsonPath: $.address.street - outJsonPath: $.Data.street - - inJsonPath: $.owners.*.uuid - outJsonPath: $.Data.owners - - inJsonPath: $.acknowldgementNumber - outJsonPath: $.Data.acknowldgementNumber - - inJsonPath: $.propertyType - outJsonPath: $.Data.propertyType - - inJsonPath: $.ownershipCategory - outJsonPath: $.Data.ownershipCategory - - inJsonPath: $.creationReason - outJsonPath: $.Data.creationReason - - inJsonPath: $.usageCategory - outJsonPath: $.Data.usageCategory - - inJsonPath: $.noOfFloors - outJsonPath: $.Data.noOfFloors - - inJsonPath: $.landArea - outJsonPath: $.Data.landArea - - inJsonPath: $.superBuiltUpArea - outJsonPath: $.Data.superBuiltUpArea - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.units - outJsonPath: $.Data.units - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.surveyId - outJsonPath: $.Data.surveyId - - inJsonPath: $.linkedProperties - outJsonPath: $.Data.linkedProperties - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.oldPropertyId - outJsonPath: $.Data.oldPropertyId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: PropertyTax - masterName: UsageCategory - tenantId: pb - filter: "[?(@.code == $usageCategory)]" - filterMapping: - - variable: $usageCategory - valueJsonpath: $.usageCategory - uriResponseMapping: - - inJsonPath: $.MdmsRes.PropertyTax.UsageCategory[0].name - outJsonPath: $.Data.usageCategory - - - topic: property-application-legacyIndex - configKey: LEGACYINDEX - indexes: - - name: property-application - type: general - isBulk: true - id: $.propertyId,$.acknowldgementNumber,$.tenantId - jsonPath: $.Properties.* - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"acknowldgementNumber":"","creationReason":"","auditDetails":{},"propertyId":"","tenantId":"","accountId":"","status":"","@timestamp":""}} - fieldMapping: - - inJsonPath: $.acknowldgementNumber - outJsonPath: $.Data.acknowldgementNumber - - inJsonPath: $.creationReason - outJsonPath: $.Data.creationReason - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.accountId - outJsonPath: $.Data.accountId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - inJsonPath: $.TenantBoundary[0].boundary[0].children - outJsonPath: $.Data.ward.children - filter: "[?(@.code == $locality)]" - filterMapping: - - variable: $locality - valueJsonpath: $.address.locality.code - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: save-pt-assessment - configKey: INDEX - indexes: - - name: property-assessments - type: general - id: $.assessmentNumber, $.tenantId - jsonPath: $.Assessment - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"id":"","tenantId":"","additionalDetails":"","assessmentNumber":"","financialYear":"","propertyId":"","assessmentDate":"","status":"","source":"","unitUsageList":{},"channel":"","auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.assessmentNumber - outJsonPath: $.Data.assessmentNumber - - inJsonPath: $.financialYear - outJsonPath: $.Data.financialYear - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.assessmentDate - outJsonPath: $.Data.assessmentDate - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.unitUsageList - outJsonPath: $.Data.unitUsageList - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - - topic: update-pt-assessment - configKey: INDEX - indexes: - - name: property-assessments - type: general - id: $.assessmentNumber, $.tenantId - jsonPath: $.Assessment - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"id":"","tenantId":"","additionalDetails":"","assessmentNumber":"","financialYear":"","propertyId":"","assessmentDate":"","status":"","source":"","unitUsageList":{},"channel":"","auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.assessmentNumber - outJsonPath: $.Data.assessmentNumber - - inJsonPath: $.financialYear - outJsonPath: $.Data.financialYear - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.assessmentDate - outJsonPath: $.Data.assessmentDate - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.unitUsageList - outJsonPath: $.Data.unitUsageList - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - - topic: cancel-property-assessment - configKey: INDEX - indexes: - - name: property-assessments - type: general - id: $.assessmentNumber, $.tenantId - jsonPath: $.Assessment - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"id":"","tenantId":"","additionalDetails":"","assessmentNumber":"","financialYear":"","propertyId":"","assessmentDate":"","status":"","source":"","unitUsageList":{},"channel":"","auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.assessmentNumber - outJsonPath: $.Data.assessmentNumber - - inJsonPath: $.financialYear - outJsonPath: $.Data.financialYear - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.assessmentDate - outJsonPath: $.Data.assessmentDate - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.unitUsageList - outJsonPath: $.Data.unitUsageList - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - - topic: pt-assessment-legacyIndex - configKey: LEGACYINDEX - indexes: - - name: property-assessments - type: general - id: $.assessmentNumber, $.tenantId - jsonPath: $.Assessments.* - isBulk: true - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"id":"","tenantId":"","additionalDetails":"","assessmentNumber":"","financialYear":"","propertyId":"","assessmentDate":"","status":"","source":"","unitUsageList":{},"channel":"","auditDetails":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.assessmentNumber - outJsonPath: $.Data.assessmentNumber - - inJsonPath: $.financialYear - outJsonPath: $.Data.financialYear - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.assessmentDate - outJsonPath: $.Data.assessmentDate - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.unitUsageList - outJsonPath: $.Data.unitUsageList - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp diff --git a/egov-indexer/rainmaker-birth-indexer.yml b/egov-indexer/rainmaker-birth-indexer.yml deleted file mode 100644 index 52265008..00000000 --- a/egov-indexer/rainmaker-birth-indexer.yml +++ /dev/null @@ -1,157 +0,0 @@ -ServiceMaps: - serviceName: Birth Certificate Download - version: 1.0.0 - mappings: - - topic: save-birth-topic - configKey: INDEX - indexes: - - name: birth-cert-v1 - type: general - id: $.id - jsonPath: $.birthCertificate - timeStampField: $.dateofissue - customJsonMapping: - indexMapping: {"Data":{}} - fieldMapping: - - inJsonPath: $.birthCertificateNo - outJsonPath: $.Data.birthCertificateNo - - inJsonPath: $.filestoreid - outJsonPath: $.Data.filestoreid - - inJsonPath: $.birthDtlId - outJsonPath: $.Data.birthDtlId - - inJsonPath: $.additionalDetail - outJsonPath: $.Data.additionalDetail - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.dateofissue - outJsonPath: $.Data.dateofissue - - inJsonPath: $.dateofissue - outJsonPath: $.Data.dateofissue - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.embeddedUrl - outJsonPath: $.Data.embeddedUrl - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.birthPlace - outJsonPath: $.Data.birthPlace - - inJsonPath: $.gender - outJsonPath: $.Data.gender - - inJsonPath: $.ward - outJsonPath: $.Data.ward - - inJsonPath: $.state - outJsonPath: $.Data.state - - inJsonPath: $.dateofbirth - outJsonPath: $.Data.dateofbirth - - inJsonPath: $.dateofreport - outJsonPath: $.Data.dateofreport - - inJsonPath: $.district - outJsonPath: $.Data.district - - inJsonPath: $.year - outJsonPath: $.Data.year - - - topic: update-birth-topic - configKey: INDEX - indexes: - - name: birth-cert-v1 - type: general - id: $.id - jsonPath: $.birthCertificate - customJsonMapping: - indexMapping: {"Data":{}} - fieldMapping: - - inJsonPath: $.birthCertificateNo - outJsonPath: $.Data.birthCertificateNo - - inJsonPath: $.filestoreid - outJsonPath: $.Data.filestoreid - - inJsonPath: $.birthDtlId - outJsonPath: $.Data.birthDtlId - - inJsonPath: $.additionalDetail - outJsonPath: $.Data.additionalDetail - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.dateofissue - outJsonPath: $.Data.dateofissue - - inJsonPath: $.dateofissue - outJsonPath: $.Data.dateofissue - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.embeddedUrl - outJsonPath: $.Data.embeddedUrl - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.birthPlace - outJsonPath: $.Data.birthPlace - - inJsonPath: $.gender - outJsonPath: $.Data.gender - - inJsonPath: $.ward - outJsonPath: $.Data.ward - - inJsonPath: $.state - outJsonPath: $.Data.state - - inJsonPath: $.dateofbirth - outJsonPath: $.Data.dateofbirth - - inJsonPath: $.dateofreport - outJsonPath: $.Data.dateofreport - - inJsonPath: $.district - outJsonPath: $.Data.district - - inJsonPath: $.year - outJsonPath: $.Data.year - - - topic: birth-service-legacyindex - configKey: LEGACYINDEX - indexes: - - name: birth-cert-v1 - type: general - id: $.id, $.tenantId - isBulk: true - jsonPath: $.birthCertificate.* - timeStampField: $.dateofissue - customJsonMapping: - indexMapping: {"Data":{}} - fieldMapping: - - inJsonPath: $.birthCertificateNo - outJsonPath: $.Data.birthCertificateNo - - inJsonPath: $.filestoreid - outJsonPath: $.Data.filestoreid - - inJsonPath: $.birthDtlId - outJsonPath: $.Data.birthDtlId - - inJsonPath: $.additionalDetail - outJsonPath: $.Data.additionalDetail - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.dateofissue - outJsonPath: $.Data.dateofissue - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.embeddedUrl - outJsonPath: $.Data.embeddedUrl - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.birthPlace - outJsonPath: $.Data.birthPlace - - inJsonPath: $.gender - outJsonPath: $.Data.gender - - inJsonPath: $.ward - outJsonPath: $.Data.ward - - inJsonPath: $.state - outJsonPath: $.Data.state - - inJsonPath: $.dateofbirth - outJsonPath: $.Data.dateofbirth - - inJsonPath: $.dateofreport - outJsonPath: $.Data.dateofreport - - inJsonPath: $.district - outJsonPath: $.Data.district - - inJsonPath: $.year - outJsonPath: $.Data.year diff --git a/egov-indexer/rainmaker-bpastakeholder-indexer.yml b/egov-indexer/rainmaker-bpastakeholder-indexer.yml deleted file mode 100644 index 14faf199..00000000 --- a/egov-indexer/rainmaker-bpastakeholder-indexer.yml +++ /dev/null @@ -1,24 +0,0 @@ -ServiceMaps: - serviceName: BPA - rainmaker - version: 1.0.0 - mappings: - - topic: save-tl-tradelicense - configKey: INDEX - indexes: - - name: bpastakeholderindex-v1 - type: stakeholder - id: $.id, $.tenantId - isBulk: true - jsonPath: $.Licenses - timeStampField: $.auditDetails.createdTime - fieldsToBeMasked: ["$.tradeLicenseDetail.owners[0].userName","$.tradeLicenseDetail.owners[0].password","$.tradeLicenseDetail.owners[0].mobileNumber","$.tradeLicenseDetail.owners[0].emailId","$.tradeLicenseDetail.owners[0].altContactNumber","$.tradeLicenseDetail.owners[0].pan","$.tradeLicenseDetail.owners[0].aadhaarNumber"] - customJsonMapping: - indexMapping: {"Data":{"owners":{},"tradeUnits": {},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.tradeLicenseDetail.owners - outJsonPath: $.Data.owners - - inJsonPath: $.tradeLicenseDetail.tradeUnits - outJsonPath: $.Data.tradeUnits - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - diff --git a/egov-indexer/rainmaker-death-indexer.yml b/egov-indexer/rainmaker-death-indexer.yml deleted file mode 100644 index 599fd534..00000000 --- a/egov-indexer/rainmaker-death-indexer.yml +++ /dev/null @@ -1,162 +0,0 @@ -ServiceMaps: - serviceName: Death Certificate Download - version: 1.0.0 - mappings: - - topic: save-death-topic - configKey: INDEX - indexes: - - name: death-cert-v1 - type: general - id: $.id - jsonPath: $.deathCertificate - customJsonMapping: - indexMapping: {"Data":{}} - fieldMapping: - - inJsonPath: $.deathCertificateNo - outJsonPath: $.Data.deathCertificateNo - - inJsonPath: $.filestoreid - outJsonPath: $.Data.filestoreid - - inJsonPath: $.deathDtlId - outJsonPath: $.Data.deathDtlId - - inJsonPath: $.additionalDetail - outJsonPath: $.Data.additionalDetail - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.dateofissue - outJsonPath: $.Data.dateofissue - - inJsonPath: $.dateofissue - outJsonPath: $.Data.dateofissue - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.embeddedUrl - outJsonPath: $.Data.embeddedUrl - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.age - outJsonPath: $.Data.age - - inJsonPath: $.gender - outJsonPath: $.Data.gender - - inJsonPath: $.ward - outJsonPath: $.Data.ward - - inJsonPath: $.state - outJsonPath: $.Data.state - - inJsonPath: $.dateofdeath - outJsonPath: $.Data.dateofdeath - - inJsonPath: $.dateofreport - outJsonPath: $.Data.dateofreport - - inJsonPath: $.district - outJsonPath: $.Data.district - - inJsonPath: $.placeofdeath - outJsonPath: $.Data.placeofdeath - - inJsonPath: $.year - outJsonPath: $.Data.year - - - topic: update-death-topic - configKey: INDEX - indexes: - - name: death-cert-v1 - type: general - id: $.id - jsonPath: $.deathCertificate - customJsonMapping: - indexMapping: {"Data":{}} - fieldMapping: - - inJsonPath: $.deathCertificateNo - outJsonPath: $.Data.deathCertificateNo - - inJsonPath: $.filestoreid - outJsonPath: $.Data.filestoreid - - inJsonPath: $.deathDtlId - outJsonPath: $.Data.deathDtlId - - inJsonPath: $.additionalDetail - outJsonPath: $.Data.additionalDetail - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.dateofissue - outJsonPath: $.Data.dateofissue - - inJsonPath: $.dateofissue - outJsonPath: $.Data.dateofissue - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.embeddedUrl - outJsonPath: $.Data.embeddedUrl - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.age - outJsonPath: $.Data.age - - inJsonPath: $.gender - outJsonPath: $.Data.gender - - inJsonPath: $.ward - outJsonPath: $.Data.ward - - inJsonPath: $.state - outJsonPath: $.Data.state - - inJsonPath: $.dateofdeath - outJsonPath: $.Data.dateofdeath - - inJsonPath: $.dateofreport - outJsonPath: $.Data.dateofreport - - inJsonPath: $.district - outJsonPath: $.Data.district - - inJsonPath: $.placeofdeath - outJsonPath: $.Data.placeofdeath - - inJsonPath: $.year - outJsonPath: $.Data.year - - - topic: death-service-legacyindex - configKey: LEGACYINDEX - indexes: - - name: death-cert-v1 - type: general - id: $.id, $.tenantId - isBulk: true - jsonPath: $.deathCertificate.* - timeStampField: $.dateofissue - customJsonMapping: - indexMapping: {"Data":{}} - fieldMapping: - - inJsonPath: $.deathCertificateNo - outJsonPath: $.Data.deathCertificateNo - - inJsonPath: $.filestoreid - outJsonPath: $.Data.filestoreid - - inJsonPath: $.deathDtlId - outJsonPath: $.Data.deathDtlId - - inJsonPath: $.additionalDetail - outJsonPath: $.Data.additionalDetail - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.dateofissue - outJsonPath: $.Data.dateofissue - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.embeddedUrl - outJsonPath: $.Data.embeddedUrl - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.age - outJsonPath: $.Data.age - - inJsonPath: $.gender - outJsonPath: $.Data.gender - - inJsonPath: $.ward - outJsonPath: $.Data.ward - - inJsonPath: $.state - outJsonPath: $.Data.state - - inJsonPath: $.dateofdeath - outJsonPath: $.Data.dateofdeath - - inJsonPath: $.dateofreport - outJsonPath: $.Data.dateofreport - - inJsonPath: $.district - outJsonPath: $.Data.district - - inJsonPath: $.placeofdeath - outJsonPath: $.Data.placeofdeath - - inJsonPath: $.year - outJsonPath: $.Data.year diff --git a/egov-indexer/rainmaker-pgr-indexer.yml b/egov-indexer/rainmaker-pgr-indexer.yml deleted file mode 100644 index 189e77a4..00000000 --- a/egov-indexer/rainmaker-pgr-indexer.yml +++ /dev/null @@ -1,320 +0,0 @@ -ServiceMaps: - serviceName: PGR - rainmaker - version: 1.0.0 - mappings: - - - topic: save-pgr-index-service - configKey: INDEX - indexes: - - name: pgrindex-v1 - type: grievances - id: $.serviceRequestId, $.tenantId - isBulk: true - jsonPath: $.serviceRequests - timeStampField: $.auditDetails.createdTime - fieldsToBeMasked: ["$.phone", "$.citizen.mobileNumber", "$.citizen.address", "$.citizen.aadhaarNumber", "$.citizen.pan", "$.citizen.emailId", "$.citizen.password"] - customJsonMapping: - indexMapping: {"Data":{"serviceRequestId":"serviceRequestId","tenantId":"tenantId","complainCategory":"complainCategory","citizen":{},"phone":"phone","dateOfComplaint":null,"address":"","addressDetail":{},"status":"status","assignee":"assignee","gro":"gro","department":"department","complaintWard":{},"source":"","description":"","slaHours":"slaHours","tenantData":{},"actionHistory":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.serviceRequestId - outJsonPath: $.Data.serviceRequestId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.phone - outJsonPath: $.Data.phone - - inJsonPath: $.auditDetails.createdTime - outJsonPath: $.Data.dateOfComplaint - - inJsonPath: $.description - outJsonPath: $.Data.description - - inJsonPath: $.address - outJsonPath: $.Data.address - - inJsonPath: $.addressDetail - outJsonPath: $.Data.addressDetail - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.complaintCategory - outJsonPath: $.Data.complainCategory - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.actionHistory - outJsonPath: $.Data.actionHistory - - inJsonPath: $.citizen - outJsonPath: $.Data.citizen - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=ADMIN,boundaryType=locality,codes=$.addressDetail.mohalla,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0].name - outJsonPath: $.Data.addressDetail.locality - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=ADMIN,boundaryType=Block,codes=$.addressDetail.mohalla,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.complaintWard - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: common-masters - masterName: Department - tenantId: pb - filter: "[?(@.code == $department)]" - filterMapping: - - variable: $department - valueJsonpath: $.department - uriResponseMapping: - - inJsonPath: $.MdmsRes.common-masters.Department.*.name - outJsonPath: $.Data.department - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: RAINMAKER-PGR - masterName: ServiceDefs - tenantId: pb - filter: "[?((@.serviceCode == $servicecode) && (@.active == true))]" - filterMapping: - - variable: $servicecode - valueJsonpath: $.serviceCode - uriResponseMapping: - - inJsonPath: $.MdmsRes.RAINMAKER-PGR.ServiceDefs.*.slaHours - outJsonPath: $.Data.slaHours - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - - topic: update-pgr-index-service - configKey: INDEX - indexes: - - name: pgrindex-v1 - type: grievances - id: $.serviceRequestId, $.tenantId - isBulk: true - jsonPath: $.serviceRequests - timeStampField: $.auditDetails.createdTime - fieldsToBeMasked: ["$.phone", "$.citizen.mobileNumber", "$.citizen.address", "$.citizen.aadhaarNumber", "$.citizen.pan", "$.citizen.emailId", "$.citizen.password"] - customJsonMapping: - indexMapping: {"Data":{"serviceRequestId":"serviceRequestId","tenantId":"tenantId","complainCategory":"complainCategory","citizen":{},"phone":"phone","dateOfComplaint":null,"address":"","addressDetail":{},"status":"status","assignee":"assignee","gro":"gro","department":"department","complaintWard":{},"source":"source","description":"","slaHours":"slaHours","tenantData":{},"actionHistory":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.serviceRequestId - outJsonPath: $.Data.serviceRequestId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.phone - outJsonPath: $.Data.phone - - inJsonPath: $.auditDetails.createdTime - outJsonPath: $.Data.dateOfComplaint - - inJsonPath: $.description - outJsonPath: $.Data.description - - inJsonPath: $.address - outJsonPath: $.Data.address - - inJsonPath: $.addressDetail - outJsonPath: $.Data.addressDetail - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.complaintCategory - outJsonPath: $.Data.complainCategory - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.actionHistory - outJsonPath: $.Data.actionHistory - - inJsonPath: $.citizen - outJsonPath: $.Data.citizen - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-hrms.egov:8080/egov-hrms/employees/_search - queryParam: tenantId=$.tenantId,ids=$.assignee - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "750d4aa9-2436-4bc4-a8f4-3796e3bfd465","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.Employees[0].user.name - outJsonPath: $.Data.assignee - - path: http://egov-hrms.egov:8080/egov-hrms/employees/_search - queryParam: tenantId=$.tenantId,ids=$.gro - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "750d4aa9-2436-4bc4-a8f4-3796e3bfd465","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.Employees[0].user.name - outJsonPath: $.Data.gro - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=ADMIN,boundaryType=locality,codes=$.addressDetail.mohalla,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "750d4aa9-2436-4bc4-a8f4-3796e3bfd465","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0].name - outJsonPath: $.Data.addressDetail.locality - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=ADMIN,boundaryType=Block,codes=$.addressDetail.mohalla,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "750d4aa9-2436-4bc4-a8f4-3796e3bfd465","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.complaintWard - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: common-masters - masterName: Department - tenantId: pb - filter: "[?(@.code == $department)]" - filterMapping: - - variable: $department - valueJsonpath: $.department - uriResponseMapping: - - inJsonPath: $.MdmsRes.common-masters.Department.*.name - outJsonPath: $.Data.department - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: RAINMAKER-PGR - masterName: ServiceDefs - tenantId: pb - filter: "[?((@.serviceCode == $servicecode) && (@.active == true))]" - filterMapping: - - variable: $servicecode - valueJsonpath: $.serviceCode - uriResponseMapping: - - inJsonPath: $.MdmsRes.RAINMAKER-PGR.ServiceDefs.*.slaHours - outJsonPath: $.Data.slaHours - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: pgr-service-reindex - configKey: REINDEX - indexes: - - name: pgrreindex-v1 - type: grievances - id: $.Data.serviceRequestId, $.Data.tenantId - isBulk: true - jsonPath: $.hits - timeStampField: $.Data.auditDetails.createdTime - - - topic: pgr-service-legacyindex - configKey: LEGACYINDEX - indexes: - - name: pgrindex-v1 - type: grievances - id: $.serviceRequestId, $.tenantId - isBulk: true - jsonPath: $.serviceRequests - fieldsToBeMasked: ["$.phone", "$.citizen.mobileNumber", "$.citizen.address", "$.citizen.aadhaarNumber", "$.citizen.pan", "$.citizen.emailId", "$.citizen.password"] - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"serviceRequestId":"serviceRequestId","tenantId":"tenantId","complainCategory":"complainCategory","citizen":{},"phone":"phone","dateOfComplaint":null,"address":"","addressDetail":{},"status":"status","assignee":"assignee","gro":"gro","department":"department","complaintWard":{},"source":"source","description":"","slaHours":"slaHours","tenantData":{},"actionHistory":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.serviceRequestId - outJsonPath: $.Data.serviceRequestId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.phone - outJsonPath: $.Data.phone - - inJsonPath: $.auditDetails.createdTime - outJsonPath: $.Data.dateOfComplaint - - inJsonPath: $.description - outJsonPath: $.Data.description - - inJsonPath: $.address - outJsonPath: $.Data.address - - inJsonPath: $.addressDetail - outJsonPath: $.Data.addressDetail - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.complaintCategory - outJsonPath: $.Data.complainCategory - - inJsonPath: $.source - outJsonPath: $.Data.source - - inJsonPath: $.actionHistory - outJsonPath: $.Data.actionHistory - - inJsonPath: $.citizen - outJsonPath: $.Data.citizen - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-hrms.egov:8080/egov-hrms/employees/_search - queryParam: tenantId=$.tenantId,id=$.assignee - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "750d4aa9-2436-4bc4-a8f4-3796e3bfd465","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.Employee[0].name - outJsonPath: $.Data.assignee - - path: http://egov-hrms.egov:8080/egov-hrms/employees/_search - queryParam: tenantId=$.tenantId,ids=$.assignee - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "750d4aa9-2436-4bc4-a8f4-3796e3bfd465","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.Employees[0].user.name - outJsonPath: $.Data.assignee - - path: http://egov-hrms.egov:8080/egov-hrms/employees/_search - queryParam: tenantId=$.tenantId,ids=$.gro - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "750d4aa9-2436-4bc4-a8f4-3796e3bfd465","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.Employees[0].user.name - outJsonPath: $.Data.gro - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=ADMIN,boundaryType=Block,codes=$.addressDetail.mohalla,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "750d4aa9-2436-4bc4-a8f4-3796e3bfd465","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.complaintWard - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: common-masters - masterName: Department - tenantId: pb - filter: "[?(@.code == $department)]" - filterMapping: - - variable: $department - valueJsonpath: $.department - uriResponseMapping: - - inJsonPath: $.MdmsRes.common-masters.Department.*.name - outJsonPath: $.Data.department - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: RAINMAKER-PGR - masterName: ServiceDefs - tenantId: pb - filter: "[?((@.serviceCode == $servicecode) && (@.active == true))]" - filterMapping: - - variable: $servicecode - valueJsonpath: $.serviceCode - uriResponseMapping: - - inJsonPath: $.MdmsRes.RAINMAKER-PGR.ServiceDefs.*.slaHours - outJsonPath: $.Data.slaHours - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - -#JOURNEY: rainmakerpgr -> pgrreindextest -> pgrreindex -> pgrnew -#configKey=INDEX: Index that currently receives live data from the services -#configKey=REINDEX: Configuration for reindexing that will be enabled only during reindexing activity. -#configKey=LEGACYINDEX: Configuration for reindexing the database to es that will be enabled only during reindexing activity. - - - -#there was custom mapping config for this index, that needs to be redesigned so has been removed for now. Take from any commit before 22/11/2018. diff --git a/egov-indexer/rainmaker-pt-indexer.yml b/egov-indexer/rainmaker-pt-indexer.yml deleted file mode 100644 index 6a2e4c7d..00000000 --- a/egov-indexer/rainmaker-pt-indexer.yml +++ /dev/null @@ -1,207 +0,0 @@ -ServiceMaps: - serviceName: Property Tax - rainmaker - version: 1.0.0 - mappings: - - topic: save-pt-property - configKey: INDEX - indexes: - - name: ptindex-v1 - type: property - id: $.propertyId, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.Properties.* - customJsonMapping: - indexMapping: {"Data":{"propertyId":"","tenantId":"","propertyDetails":{},"address":{},"ward":{},"tenantData":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.propertyDetails - outJsonPath: $.Data.propertyDetails - - inJsonPath: $.address - outJsonPath: $.Data.address - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - - topic: update-pt-property - configKey: INDEX - indexes: - - name: ptindex-v1 - type: property - id: $.propertyId, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.Properties.* - customJsonMapping: - indexMapping: {"Data":{"propertyId":"","tenantId":"","propertyDetails":{},"address":{},"ward":{},"tenantData":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.propertyDetails - outJsonPath: $.Data.propertyDetails - - inJsonPath: $.address - outJsonPath: $.Data.address - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: pt-property-reindex - configKey: REINDEX - indexes: - - name: ptreindex-v1 - type: property - id: $.propertyId, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.hits.* - - - topic: pt-property-legacyindex - configKey: LEGACYINDEX - indexes: - - name: ptindex-v1 - type: property - id: $.propertyId, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.Properties.* - customJsonMapping: - indexMapping: {"Data":{"propertyId":"","tenantId":"","propertyDetails":{},"address":{},"ward":{},"tenantData":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.propertyDetails - outJsonPath: $.Data.propertyDetails - - inJsonPath: $.address - outJsonPath: $.Data.address - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - - topic: save-pt-property-dcb - configKey: INDEX - indexes: - - name: ptindex-dcb-v1 - type: property - id: $.propertyId, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.Properties.* - customJsonMapping: - indexMapping: {"Data":{"propertyId":"","tenantId":"","propertyDetails":{},"address":{},"ward":{},"tenantData":{},"collections":{},"demands":{},"@timestamp":"timestamp"}} - fieldMapping: - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.propertyDetails - outJsonPath: $.Data.propertyDetails - - inJsonPath: $.address - outJsonPath: $.Data.address - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://collection-services.egov:8080/collection-services/receipts/_search - queryParam: consumerCode=$.consumerCodes - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.Receipt - outJsonPath: $.Data.collections - - path: http://billing-service.egov:8080/billing-service/demand//_search - queryParam: consumerCode=$.consumerCodes,tenantId=$.propertyDetails[0].tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.Demands - outJsonPath: $.Data.demands - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - -#JOURNEY: rainmakerpt -> rainmakerptlegacyindex -#configKey=INDEX: Index that currently receives live data from the services -#configKey=REINDEX: Configuration for reindexing that will be enabled only during reindexing activity. -#configKey=LEGACYINDEX: Configuration for reindexing the database to es that will be enabled only during reindexing activity. diff --git a/egov-indexer/rainmaker-tl-indexer.yml b/egov-indexer/rainmaker-tl-indexer.yml deleted file mode 100644 index 4bd1e221..00000000 --- a/egov-indexer/rainmaker-tl-indexer.yml +++ /dev/null @@ -1,163 +0,0 @@ -ServiceMaps: - serviceName: Trade License - version: 1.0.0 - mappings: - - topic: save-tl-tradelicense - configKey: INDEX - indexes: - - name: tlindex-v1 - type: licenses - id: $.id, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.Licenses - customJsonMapping: - indexMapping: {"Data":{"tradelicense":{},"ward":{},"tenantData":{}, "history":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.tradelicense - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.tradeLicenseDetail.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: update-tl-tradelicense - configKey: INDEX - indexes: - - name: tlindex-v1 - type: licenses - id: $.id, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.Licenses - customJsonMapping: - indexMapping: {"Data":{"tradelicense":{},"ward":{},"tenantData":{}, "history":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.tradelicense - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.tradeLicenseDetail.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: tradelicense-legacyindex - configKey: LEGACYINDEX - indexes: - - name: tlindex-v1 - type: licenses - id: $.id, $.tenantid - isBulk: true - timeStampField: $.auditdetails.createdtime - jsonPath: $.Licenses - customJsonMapping: - indexMapping: {"Data":{"tradelicense":{},"ward":{},"tenantData":{}, "history":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.tradelicense - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.tradelicensedetail.address.locality.code,tenantId=$.tenantid - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationnumber,history=true,tenantId=$.tenantid - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantid - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: update-tl-workflow - configKey: INDEX - indexes: - - name: tlindex-v1 - type: licenses - id: $.id, $.tenantId - isBulk: true - timeStampField: $.auditDetails.createdTime - jsonPath: $.Licenses - customJsonMapping: - indexMapping: {"Data":{"tradelicense":{},"ward":{},"tenantData":{}, "history":{}}} - fieldMapping: - - inJsonPath: $ - outJsonPath: $.Data.tradelicense - externalUriMapping: - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.tradeLicenseDetail.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNumber,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData diff --git a/egov-indexer/referral-management-indexer.yml b/egov-indexer/referral-management-indexer.yml new file mode 100644 index 00000000..88fd006e --- /dev/null +++ b/egov-indexer/referral-management-indexer.yml @@ -0,0 +1,142 @@ +ServiceMaps: + serviceName: referralmanagement + version: 1.0.0 + mappings: + - topic: transformer-producer-referral-index-v1-topic + configKey: INDEX + indexes: + - name: referral-index-v1 + type: referral + id: $.referral.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.referral.auditDetails.createdTime + - name: user-sync-index-v1 + type: users + id: $.referral.id,$.referral.tenantId + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $.referral.clientAuditDetails.createdBy + outJsonPath: $.Data.syncedUserId + - inJsonPath: $.userName + outJsonPath: $.Data.syncedUserName + - inJsonPath: $.role + outJsonPath: $.Data.role + - inJsonPath: $.boundaryHierarchy + outJsonPath: $.Data.boundaryHierarchy + - inJsonPath: $.referral.clientAuditDetails.createdTime + outJsonPath: $.Data.clientCreatedTime + - inJsonPath: $.referral.auditDetails.lastModifiedTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.@timestamp + outJsonPath: $.Data.syncedTimeStamp + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.taskDates + outJsonPath: $.Data.taskDates + - inJsonPath: $.syncedDate + outJsonPath: $.Data.syncedDate + - inJsonPath: $.userAddress + outJsonPath: $.Data.userAddress + timeStampField: $.referral.auditDetails.lastModifiedTime + + - topic: delete-referral-topic + configKey: INDEX + indexes: + - name: referral-index-v1 + type: referral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: transformer-producer-side-effect-index-v1-topic + configKey: INDEX + indexes: + - name: side-effect-index-v1 + type: side-effect + id: $.sideEffect.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.sideEffect.auditDetails.createdTime + - name: user-sync-index-v1 + type: users + id: $.sideEffect.id,$.sideEffect.tenantId + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $.sideEffect.clientAuditDetails.createdBy + outJsonPath: $.Data.syncedUserId + - inJsonPath: $.userName + outJsonPath: $.Data.syncedUserName + - inJsonPath: $.role + outJsonPath: $.Data.role + - inJsonPath: $.boundaryHierarchy + outJsonPath: $.Data.boundaryHierarchy + - inJsonPath: $.sideEffect.clientAuditDetails.createdTime + outJsonPath: $.Data.clientCreatedTime + - inJsonPath: $.sideEffect.auditDetails.lastModifiedTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.@timestamp + outJsonPath: $.Data.syncedTimeStamp + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.taskDates + outJsonPath: $.Data.taskDates + - inJsonPath: $.syncedDate + outJsonPath: $.Data.syncedDate + - inJsonPath: $.userAddress + outJsonPath: $.Data.userAddress + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + timeStampField: $.sideEffect.auditDetails.lastModifiedTime + + - topic: delete-side-effect-topic + configKey: INDEX + indexes: + - name: side-effect-index-v1 + type: side-effect + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: transformer-producer-hfreferral-index-v1-topic + configKey: INDEX + indexes: + - name: hf-referral-index-v1 + type: hfreferral + id: $.hfReferral.id + isBulk: true + jsonPath: $.* + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.hfReferral.clientAuditDetails.lastModifiedTime + + - topic: delete-hfreferral-topic + configKey: INDEX + indexes: + - name: hf-referral-index-v1 + type: hfreferral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file diff --git a/egov-indexer/service-request-indexer.yml b/egov-indexer/service-request-indexer.yml index 2cd0676e..98ad12eb 100644 --- a/egov-indexer/service-request-indexer.yml +++ b/egov-indexer/service-request-indexer.yml @@ -5,7 +5,97 @@ ServiceMaps: - topic: transformer-producer-service-request-index-v1-topic configKey: INDEX indexes: - - name: service-request-index-v1 + - name: service-task-v1 + type: service + id: $.clientReferenceId,$.tenantId + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.createdTime + - name: user-sync-index-v1 + type: users + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $.createdBy + outJsonPath: $.Data.syncedUserId + - inJsonPath: $.userName + outJsonPath: $.Data.syncedUserName + - inJsonPath: $.role + outJsonPath: $.Data.role + - inJsonPath: $.createdTime + outJsonPath: $.Data.clientCreatedTime + - inJsonPath: $.boundaryHierarchy + outJsonPath: $.Data.boundaryHierarchy + - inJsonPath: $.syncedTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.syncedTimeStamp + outJsonPath: $.Data.syncedTimeStamp + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.taskDates + outJsonPath: $.Data.taskDates + - inJsonPath: $.userAddress + outJsonPath: $.Data.userAddress + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + timeStampField: $.createdTime + - topic: transformer-producer-service-index-v2-topic + configKey: INDEX + indexes: + - name: referral-service-task-v1 + type: service + id: $.id,$.ageGroup + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.createdTime + - name: user-sync-index-v1 + type: users + id: $.id,$.ageGroup + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $.createdBy + outJsonPath: $.Data.syncedUserId + - inJsonPath: $.userName + outJsonPath: $.Data.syncedUserName + - inJsonPath: $.role + outJsonPath: $.Data.role + - inJsonPath: $.boundaryHierarchy + outJsonPath: $.Data.boundaryHierarchy + - inJsonPath: $.createdTime + outJsonPath: $.Data.clientCreatedTime + - inJsonPath: $.syncedTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.syncedTimeStamp + outJsonPath: $.Data.syncedTimeStamp + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.taskDates + outJsonPath: $.Data.taskDates + - inJsonPath: $.userAddress + outJsonPath: $.Data.userAddress + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + timeStampField: $.createdTime + - topic: transformer-producer-hfreferral-service-index-topic + configKey: INDEX + indexes: + - name: hf-referral-service-task-v1 type: service id: $.id isBulk: true @@ -15,4 +105,35 @@ ServiceMaps: fieldMapping: - inJsonPath: $ outJsonPath: $.Data - timeStampField: $.*.auditDetails.createdTime \ No newline at end of file + timeStampField: $.createdTime + - name: user-sync-index-v1 + type: users + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $.createdBy + outJsonPath: $.Data.syncedUserId + - inJsonPath: $.userName + outJsonPath: $.Data.syncedUserName + - inJsonPath: $.role + outJsonPath: $.Data.role + - inJsonPath: $.boundaryHierarchy + outJsonPath: $.Data.boundaryHierarchy + - inJsonPath: $.createdTime + outJsonPath: $.Data.clientCreatedTime + - inJsonPath: $.syncedTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.syncedTimeStamp + outJsonPath: $.Data.syncedTimeStamp + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.taskDates + outJsonPath: $.Data.taskDates + - inJsonPath: $.userAddress + outJsonPath: $.Data.userAddress + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + timeStampField: $.createdTime \ No newline at end of file diff --git a/egov-indexer/sewerage-service.yml b/egov-indexer/sewerage-service.yml deleted file mode 100644 index 5673f666..00000000 --- a/egov-indexer/sewerage-service.yml +++ /dev/null @@ -1,411 +0,0 @@ -ServiceMaps: - serviceName: Sewerage Service - rainmaker - version: 1.0.0 - mappings: - - topic: save-sw-connection - configKey: INDEX - indexes: - - name: sewerage-services - type: general - id: $.id,$.tenantId - timeStampField: $.auditDetails.createdTime - jsonPath: $.SewerageConnection - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"auditDetails":{},"id":"","propertyId":"","propertyUsageType":"","tenantId":"","proposedWaterClosets":"","proposedToilets":"","noOfWaterClosets":"","noOfToilets":"","applicationType":"","dateEffectiveFrom":"","channel":"","history":{}}} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.connectionNo - outJsonPath: $.Data.connectionNo - - inJsonPath: $.oldConnectionNo - outJsonPath: $.Data.oldConnectionNo - - inJsonPath: $.plumberInfo - outJsonPath: $.Data.plumberInfo - - inJsonPath: $.roadCuttingInfo - outJsonPath: $.Data.roadCuttingInfo - - inJsonPath: $.connectionHolders - outJsonPath: $.Data.connectionHolders - - inJsonPath: $.roadType - outJsonPath: $.Data.roadType - - inJsonPath: $.roadCuttingArea - outJsonPath: $.Data.roadCuttingArea - - inJsonPath: $.connectionExecutionDate - outJsonPath: $.Data.connectionExecutionDate - - inJsonPath: $.connectionCategory - outJsonPath: $.Data.connectionCategory - - inJsonPath: $.connectionType - outJsonPath: $.Data.connectionType - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.proposedWaterClosets - outJsonPath: $.Data.proposedWaterClosets - - inJsonPath: $.proposedToilets - outJsonPath: $.Data.proposedToilets - - inJsonPath: $.noOfWaterClosets - outJsonPath: $.Data.noOfWaterClosets - - inJsonPath: $.noOfToilets - outJsonPath: $.Data.noOfToilets - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.dateEffectiveFrom - outJsonPath: $.Data.dateEffectiveFrom - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://property-services.egov:8080/property-services/property/_search - queryParam: propertyIds=$.propertyId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Properties[0].usageCategory - outJsonPath: $.Data.propertyUsageType - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.additionalDetails.locality,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: update-sw-connection - configKey: INDEX - indexes: - - name: sewerage-services - type: general - id: $.id,$.tenantId - timeStampField: $.auditDetails.lastModifiedTime - jsonPath: $.SewerageConnection - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"auditDetails":{},"id":"","propertyId":"","propertyUsageType":"","tenantId":"","proposedWaterClosets":"","proposedToilets":"","noOfWaterClosets":"","noOfToilets":"","applicationType":"","dateEffectiveFrom":"","channel":"","@timestamp":"timestamp","history":{}}} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.connectionNo - outJsonPath: $.Data.connectionNo - - inJsonPath: $.oldConnectionNo - outJsonPath: $.Data.oldConnectionNo - - inJsonPath: $.plumberInfo - outJsonPath: $.Data.plumberInfo - - inJsonPath: $.roadCuttingInfo - outJsonPath: $.Data.roadCuttingInfo - - inJsonPath: $.connectionHolders - outJsonPath: $.Data.connectionHolders - - inJsonPath: $.roadType - outJsonPath: $.Data.roadType - - inJsonPath: $.roadCuttingArea - outJsonPath: $.Data.roadCuttingArea - - inJsonPath: $.connectionExecutionDate - outJsonPath: $.Data.connectionExecutionDate - - inJsonPath: $.connectionCategory - outJsonPath: $.Data.connectionCategory - - inJsonPath: $.connectionType - outJsonPath: $.Data.connectionType - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.proposedWaterClosets - outJsonPath: $.Data.proposedWaterClosets - - inJsonPath: $.proposedToilets - outJsonPath: $.Data.proposedToilets - - inJsonPath: $.noOfWaterClosets - outJsonPath: $.Data.noOfWaterClosets - - inJsonPath: $.noOfToilets - outJsonPath: $.Data.noOfToilets - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.dateEffectiveFrom - outJsonPath: $.Data.dateEffectiveFrom - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://property-services.egov:8080/property-services/property/_search - queryParam: propertyIds=$.propertyId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Properties[0].usageCategory - outJsonPath: $.Data.propertyUsageType - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.additionalDetails.locality,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - - topic: update-sw-workflow - configKey: INDEX - indexes: - - name: sewerage-services - type: general - id: $.id,$.tenantId - timeStampField: $.auditDetails.lastModifiedTime - jsonPath: $.SewerageConnection - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"auditDetails":{},"id":"","propertyId":"","tenantId":"","proposedWaterClosets":"","proposedToilets":"","noOfWaterClosets":"","noOfToilets":"","applicationType":"","dateEffectiveFrom":"","channel":"","@timestamp":"timestamp","history":{}}} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.connectionNo - outJsonPath: $.Data.connectionNo - - inJsonPath: $.oldConnectionNo - outJsonPath: $.Data.oldConnectionNo - - inJsonPath: $.plumberInfo - outJsonPath: $.Data.plumberInfo - - inJsonPath: $.roadCuttingInfo - outJsonPath: $.Data.roadCuttingInfo - - inJsonPath: $.connectionHolders - outJsonPath: $.Data.connectionHolders - - inJsonPath: $.roadType - outJsonPath: $.Data.roadType - - inJsonPath: $.roadCuttingArea - outJsonPath: $.Data.roadCuttingArea - - inJsonPath: $.connectionExecutionDate - outJsonPath: $.Data.connectionExecutionDate - - inJsonPath: $.connectionCategory - outJsonPath: $.Data.connectionCategory - - inJsonPath: $.connectionType - outJsonPath: $.Data.connectionType - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.proposedWaterClosets - outJsonPath: $.Data.proposedWaterClosets - - inJsonPath: $.proposedToilets - outJsonPath: $.Data.proposedToilets - - inJsonPath: $.noOfWaterClosets - outJsonPath: $.Data.noOfWaterClosets - - inJsonPath: $.noOfToilets - outJsonPath: $.Data.noOfToilets - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.dateEffectiveFrom - outJsonPath: $.Data.dateEffectiveFrom - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://property-services.egov:8080/property-services/property/_search - queryParam: propertyIds=$.propertyId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Properties[0].usageCategory - outJsonPath: $.Data.propertyUsageType - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.additionalDetails.locality,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: sw-connection-legacyIndex - configKey: LEGACYINDEX - indexes: - - name: sewerage-services - type: general - isBulk: true - id: $.id,$.tenantId - timeStampField: $.auditDetails.createdTime - jsonPath: $.SewerageConnections - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"auditDetails":{},"id":"","propertyId":"","propertyUsageType":"","tenantId":"","proposedWaterClosets":"","proposedToilets":"","noOfWaterClosets":"","noOfToilets":"","applicationType":"","dateEffectiveFrom":"","channel":"","history":{}}} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.connectionNo - outJsonPath: $.Data.connectionNo - - inJsonPath: $.oldConnectionNo - outJsonPath: $.Data.oldConnectionNo - - inJsonPath: $.plumberInfo - outJsonPath: $.Data.plumberInfo - - inJsonPath: $.roadCuttingInfo - outJsonPath: $.Data.roadCuttingInfo - - inJsonPath: $.connectionHolders - outJsonPath: $.Data.connectionHolders - - inJsonPath: $.roadType - outJsonPath: $.Data.roadType - - inJsonPath: $.roadCuttingArea - outJsonPath: $.Data.roadCuttingArea - - inJsonPath: $.connectionExecutionDate - outJsonPath: $.Data.connectionExecutionDate - - inJsonPath: $.connectionCategory - outJsonPath: $.Data.connectionCategory - - inJsonPath: $.connectionType - outJsonPath: $.Data.connectionType - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.proposedWaterClosets - outJsonPath: $.Data.proposedWaterClosets - - inJsonPath: $.proposedToilets - outJsonPath: $.Data.proposedToilets - - inJsonPath: $.noOfWaterClosets - outJsonPath: $.Data.noOfWaterClosets - - inJsonPath: $.noOfToilets - outJsonPath: $.Data.noOfToilets - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.dateEffectiveFrom - outJsonPath: $.Data.dateEffectiveFrom - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://property-services.egov:8080/property-services/property/_search - queryParam: propertyIds=$.propertyId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Properties[0].usageCategory - outJsonPath: $.Data.propertyUsageType - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.additionalDetails.locality,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData diff --git a/egov-indexer/stock-indexer.yml b/egov-indexer/stock-indexer.yml index 1030bcee..74765f28 100644 --- a/egov-indexer/stock-indexer.yml +++ b/egov-indexer/stock-indexer.yml @@ -7,7 +7,7 @@ ServiceMaps: indexes: - name: stock-index-v1 type: stock - id: $.id + id: $.clientReferenceId,$.tenantId isBulk: true jsonPath: $ customJsonMapping: @@ -15,31 +15,53 @@ ServiceMaps: fieldMapping: - inJsonPath: $ outJsonPath: $.Data - timeStampField: $.lastModifiedTime + timeStampField: $.createdTime - name: user-sync-index-v1 type: users - id: $.id + id: $.id,$.tenantId,$.clientReferenceId isBulk: true jsonPath: $ customJsonMapping: indexMapping: { "Data": { } } fieldMapping: - - inJsonPath: $.lastModifiedBy - outJsonPath: $.Data.userId - - inJsonPath: $.lastModifiedTime + - inJsonPath: $.createdBy + outJsonPath: $.Data.syncedUserId + - inJsonPath: $.userName + outJsonPath: $.Data.syncedUserName + - inJsonPath: $.role + outJsonPath: $.Data.role + - inJsonPath: $.boundaryHierarchy + outJsonPath: $.Data.boundaryHierarchy + - inJsonPath: $.createdTime + outJsonPath: $.Data.clientCreatedTime + - inJsonPath: $.syncedTime outJsonPath: $.Data.createdTime - - inJsonPath: $.province - outJsonPath: $.Data.province - - inJsonPath: $.district - outJsonPath: $.Data.district - - inJsonPath: $.administrativeProvince - outJsonPath: $.Data.administrativeProvince - - inJsonPath: $.locality - outJsonPath: $.Data.locality - - inJsonPath: $.village - outJsonPath: $.Data.village - - inJsonPath: $.latitude - outJsonPath: $.Data.latitude - - inJsonPath: $.longitude - outJsonPath: $.Data.longitude - timeStampField: $.lastModifiedTime \ No newline at end of file + - inJsonPath: $.syncedTimeStamp + outJsonPath: $.Data.syncedTimeStamp + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.taskDates + outJsonPath: $.Data.taskDates + - inJsonPath: $.syncedDate + outJsonPath: $.Data.syncedDate + - inJsonPath: $.userAddress + outJsonPath: $.Data.userAddress + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + timeStampField: $.createdTime + + - topic: transformer-producer-stock-recon-index-v1-topic + configKey: INDEX + indexes: + - name: stock-reconciliation-index-v1 + type: reconciliation + id: $.stockReconciliation.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.stockReconciliation.auditDetails.createdTime + diff --git a/egov-indexer/transformer-pgr-services.yml b/egov-indexer/transformer-pgr-services.yml new file mode 100644 index 00000000..61fde397 --- /dev/null +++ b/egov-indexer/transformer-pgr-services.yml @@ -0,0 +1,18 @@ +ServiceMaps: + serviceName: Public Grievance Redressal - rainmaker + version: 1.0.0 + mappings: + - topic: transformer-save-pgr-request + configKey: INDEX + indexes: + - name: transformer-pgr-services + type: general + id: $.service.serviceRequestId + jsonPath: $ + isBulk: true + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.service.auditDetails.lastModifiedTime diff --git a/egov-indexer/water-service.yml b/egov-indexer/water-service.yml deleted file mode 100644 index 1fdcb945..00000000 --- a/egov-indexer/water-service.yml +++ /dev/null @@ -1,453 +0,0 @@ -ServiceMaps: - serviceName: Water Service - rainmaker - version: 1.0.0 - mappings: - - topic: save-ws-connection - configKey: INDEX - indexes: - - name: water-services - type: general - id: $.id,$.tenantId - jsonPath: $.WaterConnection - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"id":"","propertyId":"","propertyUsageType":"","rainWaterHarvesting":"","waterSource":"","tenantId":"","meterId":"","meterInstallationDate":"","proposedPipeSize":"","proposedTaps":"","pipeSize":"","noOfTaps":"","applicationType":"","dateEffectiveFrom":"","channel":"","@timestamp":"timestamp","auditDetails":{},"history":{}}} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.connectionNo - outJsonPath: $.Data.connectionNo - - inJsonPath: $.oldConnectionNo - outJsonPath: $.Data.oldConnectionNo - - inJsonPath: $.plumberInfo - outJsonPath: $.Data.plumberInfo - - inJsonPath: $.roadCuttingInfo - outJsonPath: $.Data.roadCuttingInfo - - inJsonPath: $.connectionHolders - outJsonPath: $.Data.connectionHolders - - inJsonPath: $.roadType - outJsonPath: $.Data.roadType - - inJsonPath: $.roadCuttingArea - outJsonPath: $.Data.roadCuttingArea - - inJsonPath: $.connectionExecutionDate - outJsonPath: $.Data.connectionExecutionDate - - inJsonPath: $.connectionCategory - outJsonPath: $.Data.connectionCategory - - inJsonPath: $.connectionType - outJsonPath: $.Data.connectionType - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.rainWaterHarvesting - outJsonPath: $.Data.rainWaterHarvesting - - inJsonPath: $.waterSource - outJsonPath: $.Data.waterSource - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.meterId - outJsonPath: $.Data.meterId - - inJsonPath: $.meterInstallationDate - outJsonPath: $.Data.meterInstallationDate - - inJsonPath: $.proposedPipeSize - outJsonPath: $.Data.proposedPipeSize - - inJsonPath: $.proposedTaps - outJsonPath: $.Data.proposedTaps - - inJsonPath: $.pipeSize - outJsonPath: $.Data.pipeSize - - inJsonPath: $.noOfTaps - outJsonPath: $.Data.noOfTaps - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.dateEffectiveFrom - outJsonPath: $.Data.dateEffectiveFrom - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://property-services.egov:8080/property-services/property/_search - queryParam: propertyIds=$.propertyId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Properties[0].usageCategory - outJsonPath: $.Data.propertyUsageType - - inJsonPath: $.Properties[0].owners - outJsonPath: $.Data.owners - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.additionalDetails.locality,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - - topic: update-ws-connection - configKey: INDEX - indexes: - - name: water-services - type: general - id: $.id,$.tenantId - jsonPath: $.WaterConnection - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"id":"","propertyId":"","propertyUsageType":"","rainWaterHarvesting":"","waterSource":"","tenantId":"","meterId":"","meterInstallationDate":"","proposedPipeSize":"","proposedTaps":"","pipeSize":"","noOfTaps":"","applicationType":"","dateEffectiveFrom":"","channel":"","@timestamp":"timestamp","auditDetails":{},"history":{}}} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.connectionNo - outJsonPath: $.Data.connectionNo - - inJsonPath: $.oldConnectionNo - outJsonPath: $.Data.oldConnectionNo - - inJsonPath: $.plumberInfo - outJsonPath: $.Data.plumberInfo - - inJsonPath: $.roadCuttingInfo - outJsonPath: $.Data.roadCuttingInfo - - inJsonPath: $.connectionHolders - outJsonPath: $.Data.connectionHolders - - inJsonPath: $.roadType - outJsonPath: $.Data.roadType - - inJsonPath: $.roadCuttingArea - outJsonPath: $.Data.roadCuttingArea - - inJsonPath: $.connectionExecutionDate - outJsonPath: $.Data.connectionExecutionDate - - inJsonPath: $.connectionCategory - outJsonPath: $.Data.connectionCategory - - inJsonPath: $.connectionType - outJsonPath: $.Data.connectionType - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.rainWaterHarvesting - outJsonPath: $.Data.rainWaterHarvesting - - inJsonPath: $.waterSource - outJsonPath: $.Data.waterSource - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.meterId - outJsonPath: $.Data.meterId - - inJsonPath: $.meterInstallationDate - outJsonPath: $.Data.meterInstallationDate - - inJsonPath: $.proposedPipeSize - outJsonPath: $.Data.proposedPipeSize - - inJsonPath: $.proposedTaps - outJsonPath: $.Data.proposedTaps - - inJsonPath: $.pipeSize - outJsonPath: $.Data.pipeSize - - inJsonPath: $.noOfTaps - outJsonPath: $.Data.noOfTaps - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.dateEffectiveFrom - outJsonPath: $.Data.dateEffectiveFrom - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://property-services.egov:8080/property-services/property/_search - queryParam: propertyIds=$.propertyId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Properties[0].usageCategory - outJsonPath: $.Data.propertyUsageType - - inJsonPath: $.Properties[0].owners - outJsonPath: $.Data.owners - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.additionalDetails.locality,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: update-ws-workflow - configKey: INDEX - indexes: - - name: water-services - type: general - id: $.id,$.tenantId - jsonPath: $.WaterConnection - timeStampField: $.auditDetails.lastModifiedTime - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"id":"","propertyId":"","rainWaterHarvesting":"","waterSource":"","tenantId":"","meterId":"","meterInstallationDate":"","proposedPipeSize":"","proposedTaps":"","pipeSize":"","noOfTaps":"","applicationType":"","dateEffectiveFrom":"","channel":"","@timestamp":"timestamp","auditDetails":{},"history":{}}} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.connectionNo - outJsonPath: $.Data.connectionNo - - inJsonPath: $.oldConnectionNo - outJsonPath: $.Data.oldConnectionNo - - inJsonPath: $.plumberInfo - outJsonPath: $.Data.plumberInfo - - inJsonPath: $.roadCuttingInfo - outJsonPath: $.Data.roadCuttingInfo - - inJsonPath: $.connectionHolders - outJsonPath: $.Data.connectionHolders - - inJsonPath: $.roadType - outJsonPath: $.Data.roadType - - inJsonPath: $.roadCuttingArea - outJsonPath: $.Data.roadCuttingArea - - inJsonPath: $.connectionExecutionDate - outJsonPath: $.Data.connectionExecutionDate - - inJsonPath: $.connectionCategory - outJsonPath: $.Data.connectionCategory - - inJsonPath: $.connectionType - outJsonPath: $.Data.connectionType - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.rainWaterHarvesting - outJsonPath: $.Data.rainWaterHarvesting - - inJsonPath: $.waterSource - outJsonPath: $.Data.waterSource - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.meterId - outJsonPath: $.Data.meterId - - inJsonPath: $.meterInstallationDate - outJsonPath: $.Data.meterInstallationDate - - inJsonPath: $.proposedPipeSize - outJsonPath: $.Data.proposedPipeSize - - inJsonPath: $.proposedTaps - outJsonPath: $.Data.proposedTaps - - inJsonPath: $.pipeSize - outJsonPath: $.Data.pipeSize - - inJsonPath: $.noOfTaps - outJsonPath: $.Data.noOfTaps - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.dateEffectiveFrom - outJsonPath: $.Data.dateEffectiveFrom - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://property-services.egov:8080/property-services/property/_search - queryParam: propertyIds=$.propertyId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Properties[0].usageCategory - outJsonPath: $.Data.propertyUsageType - - inJsonPath: $.Properties[0].owners - outJsonPath: $.Data.owners - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.additionalDetails.locality,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData - - - topic: ws-connection-legacyIndex - configKey: LEGACYINDEX - indexes: - - name: water-services - type: general - isBulk: true - id: $.id,$.tenantId - jsonPath: $.WaterConnection.* - timeStampField: $.auditDetails.createdTime - customJsonMapping: - indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"id":"","propertyId":"","propertyUsageType":"","rainWaterHarvesting":"","waterSource":"","tenantId":"","meterId":"","meterInstallationDate":"","proposedPipeSize":"","proposedTaps":"","pipeSize":"","noOfTaps":"","applicationType":"","dateEffectiveFrom":"","channel":"","@timestamp":"timestamp","auditDetails":{},"history":{}}} - fieldMapping: - - inJsonPath: $.applicationStatus.state - outJsonPath: $.Data.workflow.state - - inJsonPath: $.processInstance.action - outJsonPath: $.Data.workflow.action - - inJsonPath: $.processInstance.assignes.*.uuid - outJsonPath: $.Data.workflow.assignes - - inJsonPath: $.applicationNo - outJsonPath: $.Data.applicationNo - - inJsonPath: $.applicationStatus - outJsonPath: $.Data.applicationStatus - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.connectionNo - outJsonPath: $.Data.connectionNo - - inJsonPath: $.oldConnectionNo - outJsonPath: $.Data.oldConnectionNo - - inJsonPath: $.plumberInfo - outJsonPath: $.Data.plumberInfo - - inJsonPath: $.roadCuttingInfo - outJsonPath: $.Data.roadCuttingInfo - - inJsonPath: $.connectionHolders - outJsonPath: $.Data.connectionHolders - - inJsonPath: $.roadType - outJsonPath: $.Data.roadType - - inJsonPath: $.roadCuttingArea - outJsonPath: $.Data.roadCuttingArea - - inJsonPath: $.connectionExecutionDate - outJsonPath: $.Data.connectionExecutionDate - - inJsonPath: $.connectionCategory - outJsonPath: $.Data.connectionCategory - - inJsonPath: $.connectionType - outJsonPath: $.Data.connectionType - - inJsonPath: $.additionalDetails - outJsonPath: $.Data.additionalDetails - - inJsonPath: $.id - outJsonPath: $.Data.id - - inJsonPath: $.propertyId - outJsonPath: $.Data.propertyId - - inJsonPath: $.rainWaterHarvesting - outJsonPath: $.Data.rainWaterHarvesting - - inJsonPath: $.waterSource - outJsonPath: $.Data.waterSource - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.meterId - outJsonPath: $.Data.meterId - - inJsonPath: $.meterInstallationDate - outJsonPath: $.Data.meterInstallationDate - - inJsonPath: $.proposedPipeSize - outJsonPath: $.Data.proposedPipeSize - - inJsonPath: $.proposedTaps - outJsonPath: $.Data.proposedTaps - - inJsonPath: $.pipeSize - outJsonPath: $.Data.pipeSize - - inJsonPath: $.noOfTaps - outJsonPath: $.Data.noOfTaps - - inJsonPath: $.applicationType - outJsonPath: $.Data.applicationType - - inJsonPath: $.dateEffectiveFrom - outJsonPath: $.Data.dateEffectiveFrom - - inJsonPath: $.channel - outJsonPath: $.Data.channel - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances - outJsonPath: $.Data.history - - path: http://property-services.egov:8080/property-services/property/_search - queryParam: propertyIds=$.propertyId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} - uriResponseMapping: - - inJsonPath: $.Properties[0].usageCategory - outJsonPath: $.Data.propertyUsageType - - inJsonPath: $.Properties[0].owners - outJsonPath: $.Data.owners - - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search - queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.additionalDetails.locality,tenantId=$.tenantId - apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61", - "authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}} - uriResponseMapping: - - inJsonPath: $.TenantBoundary[0].boundary[0] - outJsonPath: $.Data.ward - mdmsMapping: - - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search - moduleName: tenant - masterName: tenants - tenantId: pb - filter: "[?(@.code == $tenant)]" - filterMapping: - - variable: $tenant - valueJsonpath: $.tenantId - uriResponseMapping: - - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData \ No newline at end of file diff --git a/egov-indexer/water-services-meter.yml b/egov-indexer/water-services-meter.yml deleted file mode 100644 index b669b121..00000000 --- a/egov-indexer/water-services-meter.yml +++ /dev/null @@ -1,29 +0,0 @@ -ServiceMaps: - serviceName: Meter Connection - rainmaker - version: 1.0.0 - mappings: - - topic: save-ws-meter - configKey: INDEX - indexes: - - name: meter-services - type: general - id: $.id,$.connectionNo - jsonPath: $.meterReadings - customJsonMapping: - indexMapping: {"Data":{"connectionNo":"","meterStatus":"","currentReadingDate":"","currentReading":"","lastReading":"","billingPeriod":"","lastReadingDate":""}} - fieldMapping: - - inJsonPath: $.connectionNo - outJsonPath: $.Data.connectionNo - - inJsonPath: $.meterStatus - outJsonPath: $.Data.meterStatus - - inJsonPath: $.currentReadingDate - outJsonPath: $.Data.currentReadingDate - - inJsonPath: $.currentReading - outJsonPath: $.Data.currentReading - - inJsonPath: $.lastReading - outJsonPath: $.Data.lastReading - - inJsonPath: $.billingPeriod - outJsonPath: $.Data.billingPeriod - - inJsonPath: $.lastReadingDate - outJsonPath: $.Data.lastReadingDate - diff --git a/egov-persister/apportion-persister.yml b/egov-persister/apportion-persister.yml deleted file mode 100644 index 9416d156..00000000 --- a/egov-persister/apportion-persister.yml +++ /dev/null @@ -1,220 +0,0 @@ -serviceMaps: - serviceName: apportion-services - mappings: - - version: 1.0 - description: Persists apportioning request - fromTopic: save-apportion-request - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_appr_bills_request(billId,tenantid,mobileNumber,payerName,payerAddress,payerEmail,paidBy,taxAndPayments,isActive,isCancelled,billDetails,createdBy,createdTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?) - basePath: Bills.* - jsonMaps: - - jsonPath: $.Bills.*.id - - - jsonPath: $.Bills.*.tenantId - - - jsonPath: $.Bills.*.mobileNumber - - - jsonPath: $.Bills.*.payerName - - - jsonPath: $.Bills.*.payerAddress - - - jsonPath: $.Bills.*.payerEmail - - - jsonPath: $.Bills.*.paidBy - - - jsonPath: $.Bills.*.taxAndPayments - type: JSON - dbType: JSONB - - - jsonPath: $.Bills.*.isActive - - - jsonPath: $.Bills.*.isCancelled - - - jsonPath: $.Bills.*.billDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Bills.*.auditDetails.createdBy - - - jsonPath: $.Bills.*.auditDetails.createdTime - - - - version: 1.0 - description: Persists apportioning response - fromTopic: save-apportion-response - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_appr_bills_response(billId,tenantid,mobileNumber,payerName,payerAddress,payerEmail,paidBy,taxAndPayments,isActive,isCancelled,billDetails,createdBy,createdTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?) - basePath: Bills.* - jsonMaps: - - jsonPath: $.Bills.*.id - - - jsonPath: $.Bills.*.tenantId - - - jsonPath: $.Bills.*.mobileNumber - - - jsonPath: $.Bills.*.payerName - - - jsonPath: $.Bills.*.payerAddress - - - jsonPath: $.Bills.*.payerEmail - - - jsonPath: $.Bills.*.paidBy - - - jsonPath: $.Bills.*.taxAndPayments - type: JSON - dbType: JSONB - - - jsonPath: $.Bills.*.isActive - - - jsonPath: $.Bills.*.isCancelled - - - jsonPath: $.Bills.*.billDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Bills.*.auditDetails.createdBy - - - jsonPath: $.Bills.*.auditDetails.createdTime - - - version: 1.0 - description: Persists apportioning request - fromTopic: save-apportion-bill-request - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_appr_bills_request(billId,tenantid,mobileNumber,payerName,payerAddress,payerEmail,paidBy,taxAndPayments,isActive,isCancelled,billDetails,createdBy,createdTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?) - basePath: Bills.* - jsonMaps: - - jsonPath: $.Bills.*.id - - - jsonPath: $.Bills.*.tenantId - - - jsonPath: $.Bills.*.mobileNumber - - - jsonPath: $.Bills.*.payerName - - - jsonPath: $.Bills.*.payerAddress - - - jsonPath: $.Bills.*.payerEmail - - - jsonPath: $.Bills.*.paidBy - - - jsonPath: $.Bills.*.taxAndPayments - type: JSON - dbType: JSONB - - - jsonPath: $.Bills.*.isActive - - - jsonPath: $.Bills.*.isCancelled - - - jsonPath: $.Bills.*.billDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Bills.*.auditDetails.createdBy - - - jsonPath: $.Bills.*.auditDetails.createdTime - - - - version: 1.0 - description: Persists apportioning response - fromTopic: save-apportion-bill-response - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_appr_bills_response(billId,tenantid,mobileNumber,payerName,payerAddress,payerEmail,paidBy,taxAndPayments,isActive,isCancelled,billDetails,createdBy,createdTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?) - basePath: Bills.* - jsonMaps: - - jsonPath: $.Bills.*.id - - - jsonPath: $.Bills.*.tenantId - - - jsonPath: $.Bills.*.mobileNumber - - - jsonPath: $.Bills.*.payerName - - - jsonPath: $.Bills.*.payerAddress - - - jsonPath: $.Bills.*.payerEmail - - - jsonPath: $.Bills.*.paidBy - - - jsonPath: $.Bills.*.taxAndPayments - type: JSON - dbType: JSONB - - - jsonPath: $.Bills.*.isActive - - - jsonPath: $.Bills.*.isCancelled - - - jsonPath: $.Bills.*.billDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Bills.*.auditDetails.createdBy - - - jsonPath: $.Bills.*.auditDetails.createdTime - - - - version: 1.0 - description: Persists apportioning request - fromTopic: save-apportion-demand-request - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_appr_demand_request(demandId,tenantid,consumerCode,demandDetails,taxPeriodFrom,taxPeriodTo,status,createdBy,createdTime) VALUES (?,?,?,?,?,?,?,?,?) - basePath: Demands.* - jsonMaps: - - jsonPath: $.Demands.*.id - - - jsonPath: $.Demands.*.tenantId - - - jsonPath: $.Demands.*.consumerCode - - - jsonPath: $.Demands.*.demandDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Demands.*.taxPeriodFrom - - - jsonPath: $.Demands.*.taxPeriodTo - - - jsonPath: $.Demands.*.status - - - jsonPath: $.Demands.*.auditDetails.createdBy - - - jsonPath: $.Demands.*.auditDetails.createdTime - - - - version: 1.0 - description: Persists apportioning response - fromTopic: save-apportion-demand-response - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_appr_demand_response(demandId,tenantid,consumerCode,demandDetails,taxPeriodFrom,taxPeriodTo,status,createdBy,createdTime) VALUES (?,?,?,?,?,?,?,?,?) - basePath: Demands.* - jsonMaps: - - jsonPath: $.Demands.*.id - - - jsonPath: $.Demands.*.tenantId - - - jsonPath: $.Demands.*.consumerCode - - - jsonPath: $.Demands.*.demandDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Demands.*.taxPeriodFrom - - - jsonPath: $.Demands.*.taxPeriodTo - - - jsonPath: $.Demands.*.status - - - jsonPath: $.Demands.*.auditDetails.createdBy - - - jsonPath: $.Demands.*.auditDetails.createdTime diff --git a/egov-persister/assessment-persister-migration-temp.yml b/egov-persister/assessment-persister-migration-temp.yml deleted file mode 100644 index 26cb84ed..00000000 --- a/egov-persister/assessment-persister-migration-temp.yml +++ /dev/null @@ -1,228 +0,0 @@ -serviceMaps: - serviceName: property-services - mappings: - - version: 1.0 - description: Persists assessment details to eg_pt_asmt_assessment table - fromTopic: save-pt-assessment-batch - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_pt_asmt_assessment(id, tenantid, assessmentnumber, financialyear, propertyid, status, source, channel, assessmentdate, additionaldetails, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Assessment - jsonMaps: - - - jsonPath: $.Assessment.id - - - jsonPath: $.Assessment.tenantId - - - jsonPath: $.Assessment.assessmentNumber - - - jsonPath: $.Assessment.financialYear - - - jsonPath: $.Assessment.propertyId - - - jsonPath: $.Assessment.status - - - jsonPath: $.Assessment.source - - - jsonPath: $.Assessment.channel - - - jsonPath: $.Assessment.assessmentDate - - - jsonPath: $.Assessment.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Assessment.auditDetails.createdBy - - - jsonPath: $.Assessment.auditDetails.createdTime - - - jsonPath: $.Assessment.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_pt_asmt_unitusage (tenantid, id, assessmentid, unitid, usagecategory, occupancytype, occupancydate, active, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Assessment.unitUsageList.* - jsonMaps: - - - jsonPath: $.Assessment.unitUsageList.*.tenantId - - - jsonPath: $.Assessment.unitUsageList.*.id - - - jsonPath: $.Assessment[?({id} in @.unitUsageList[*].id)].id - - - jsonPath: $.Assessment.unitUsageList.*.unitId - - - jsonPath: $.Assessment.unitUsageList.*.usageCategory - - - jsonPath: $.Assessment.unitUsageList.*.occupancyType - - - jsonPath: $.Assessment.unitUsageList.*.occupancyDate - - - jsonPath: $.Assessment.unitUsageList.*.active - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.createdBy - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.createdTime - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_pt_asmt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Assessment.documents.* - jsonMaps: - - - jsonPath: $.Assessment.documents.*.id - - - jsonPath: $.Assessment.tenantId - - - jsonPath: $.Assessment.id - - - jsonPath: $.Assessment.documents.*.documentType - - - jsonPath: $.Assessment.documents.*.fileStoreId - - - jsonPath: $.Assessment.documents.*.documentUid - - - jsonPath: $.Assessment.documents.*.status - - - jsonPath: $.Assessment.documents.*.auditDetails.createdBy - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.documents.*.auditDetails.createdTime - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedTime - - - - - version: 1.0 - description: Updates assessment details to eg_pt_asmt_assessment table - fromTopic: update-pt-assessment - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_pt_asmt_assessment_audit SELECT *, (SELECT extract(epoch from now())) FROM eg_pt_asmt_assessment WHERE id = ?; - basePath: Assessment - jsonMaps: - - - jsonPath: $.Assessment.id - - - - query: INSERT INTO eg_pt_asmt_unitusage_audit SELECT *, (SELECT extract(epoch from now())) FROM eg_pt_asmt_unitusage WHERE id = ?; - basePath: Assessment.unitUsageList.* - jsonMaps: - - - jsonPath: $.Assessment.unitUsageList.*.id - - - - query: UPDATE eg_pt_asmt_assessment SET financialyear = ?, status = ?, source = ?, assessmentDate = ?, additionaldetails = ?, lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Assessment - jsonMaps: - - - jsonPath: $.Assessment.financialYear - - - jsonPath: $.Assessment.status - - - jsonPath: $.Assessment.source - - - jsonPath: $.Assessment.assessmentDate - - - jsonPath: $.Assessment.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Assessment.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.auditDetails.lastModifiedTime - - - jsonPath: $.Assessment.id - - - - - - query: INSERT INTO eg_pt_asmt_unitusage (tenantid, id, assessmentId, unitid, usageCategory, occupancyType, occupancyDate, active, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET usageCategory = ?, occupancyType = ?, occupancyDate = ?, active = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Assessment.unitUsageList.* - jsonMaps: - - - jsonPath: $.Assessment.unitUsageList.*.tenantId - - - jsonPath: $.Assessment.unitUsageList.*.id - - - jsonPath: $.Assessment[?({id} in @.unitUsageList[*].id)].id - - - jsonPath: $.Assessment.unitUsageList.*.unitId - - - jsonPath: $.Assessment.unitUsageList.*.usageCategory - - - jsonPath: $.Assessment.unitUsageList.*.occupancyType - - - jsonPath: $.Assessment.unitUsageList.*.occupancyDate - - - jsonPath: $.Assessment.unitUsageList.*.active - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.createdBy - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.createdTime - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedTime - - - jsonPath: $.Assessment.unitUsageList.*.usageCategory - - - jsonPath: $.Assessment.unitUsageList.*.occupancyType - - - jsonPath: $.Assessment.unitUsageList.*.occupancyDate - - - jsonPath: $.Assessment.unitUsageList.*.active - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedTime - - - - - - query: INSERT INTO eg_pt_asmt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE documenttype = ?, documentuid = ?, status = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: $.Assessment.documents.* - jsonMaps: - - - jsonPath: $.Assessment.documents.*.id - - - jsonPath: $.Assessment.tenantId - - - jsonPath: $.Assessment.id - - - jsonPath: $.Assessment.documents.*.documentType - - - jsonPath: $.Assessment.documents.*.fileStoreId - - - jsonPath: $.Assessment.documents.*.documentUid - - - jsonPath: $.Assessment.documents.*.status - - - jsonPath: $.Assessment.documents.*.auditDetails.createdBy - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.documents.*.auditDetails.createdTime - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedTime - - - jsonPath: $.Assessment.documents.*.documentType - - - jsonPath: $.Assessment.documents.*.documentUid - - - jsonPath: $.Assessment.documents.*.status - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedTime - - diff --git a/egov-persister/assessment-persister.yml b/egov-persister/assessment-persister.yml deleted file mode 100644 index 677f54ac..00000000 --- a/egov-persister/assessment-persister.yml +++ /dev/null @@ -1,228 +0,0 @@ -serviceMaps: - serviceName: property-services - mappings: - - version: 1.0 - description: Persists assessment details to eg_pt_asmt_assessment table - fromTopic: save-pt-assessment - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_pt_asmt_assessment(id, tenantid, assessmentnumber, financialyear, propertyid, status, source, channel, assessmentdate, additionaldetails, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Assessment - jsonMaps: - - - jsonPath: $.Assessment.id - - - jsonPath: $.Assessment.tenantId - - - jsonPath: $.Assessment.assessmentNumber - - - jsonPath: $.Assessment.financialYear - - - jsonPath: $.Assessment.propertyId - - - jsonPath: $.Assessment.status - - - jsonPath: $.Assessment.source - - - jsonPath: $.Assessment.channel - - - jsonPath: $.Assessment.assessmentDate - - - jsonPath: $.Assessment.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Assessment.auditDetails.createdBy - - - jsonPath: $.Assessment.auditDetails.createdTime - - - jsonPath: $.Assessment.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_pt_asmt_unitusage (tenantid, id, assessmentid, unitid, usagecategory, occupancytype, occupancydate, active, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Assessment.unitUsageList.* - jsonMaps: - - - jsonPath: $.Assessment.unitUsageList.*.tenantId - - - jsonPath: $.Assessment.unitUsageList.*.id - - - jsonPath: $.Assessment[?({id} in @.unitUsageList[*].id)].id - - - jsonPath: $.Assessment.unitUsageList.*.unitId - - - jsonPath: $.Assessment.unitUsageList.*.usageCategory - - - jsonPath: $.Assessment.unitUsageList.*.occupancyType - - - jsonPath: $.Assessment.unitUsageList.*.occupancyDate - - - jsonPath: $.Assessment.unitUsageList.*.active - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.createdBy - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.createdTime - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_pt_asmt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Assessment.documents.* - jsonMaps: - - - jsonPath: $.Assessment.documents.*.id - - - jsonPath: $.Assessment.tenantId - - - jsonPath: $.Assessment.id - - - jsonPath: $.Assessment.documents.*.documentType - - - jsonPath: $.Assessment.documents.*.fileStoreId - - - jsonPath: $.Assessment.documents.*.documentUid - - - jsonPath: $.Assessment.documents.*.status - - - jsonPath: $.Assessment.documents.*.auditDetails.createdBy - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.documents.*.auditDetails.createdTime - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedTime - - - - - version: 1.0 - description: Updates assessment details to eg_pt_asmt_assessment table - fromTopic: update-pt-assessment - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_pt_asmt_assessment_audit SELECT *, (SELECT extract(epoch from now())) FROM eg_pt_asmt_assessment WHERE id = ?; - basePath: Assessment - jsonMaps: - - - jsonPath: $.Assessment.id - - - - query: INSERT INTO eg_pt_asmt_unitusage_audit SELECT *, (SELECT extract(epoch from now())) FROM eg_pt_asmt_unitusage WHERE id = ?; - basePath: Assessment.unitUsageList.* - jsonMaps: - - - jsonPath: $.Assessment.unitUsageList.*.id - - - - query: UPDATE eg_pt_asmt_assessment SET financialyear = ?, status = ?, source = ?, assessmentDate = ?, additionaldetails = ?, lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Assessment - jsonMaps: - - - jsonPath: $.Assessment.financialYear - - - jsonPath: $.Assessment.status - - - jsonPath: $.Assessment.source - - - jsonPath: $.Assessment.assessmentDate - - - jsonPath: $.Assessment.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Assessment.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.auditDetails.lastModifiedTime - - - jsonPath: $.Assessment.id - - - - - - query: INSERT INTO eg_pt_asmt_unitusage (tenantid, id, assessmentId, unitid, usageCategory, occupancyType, occupancyDate, active, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET usageCategory = ?, occupancyType = ?, occupancyDate = ?, active = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Assessment.unitUsageList.* - jsonMaps: - - - jsonPath: $.Assessment.unitUsageList.*.tenantId - - - jsonPath: $.Assessment.unitUsageList.*.id - - - jsonPath: $.Assessment[?({id} in @.unitUsageList[*].id)].id - - - jsonPath: $.Assessment.unitUsageList.*.unitId - - - jsonPath: $.Assessment.unitUsageList.*.usageCategory - - - jsonPath: $.Assessment.unitUsageList.*.occupancyType - - - jsonPath: $.Assessment.unitUsageList.*.occupancyDate - - - jsonPath: $.Assessment.unitUsageList.*.active - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.createdBy - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.createdTime - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedTime - - - jsonPath: $.Assessment.unitUsageList.*.usageCategory - - - jsonPath: $.Assessment.unitUsageList.*.occupancyType - - - jsonPath: $.Assessment.unitUsageList.*.occupancyDate - - - jsonPath: $.Assessment.unitUsageList.*.active - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.unitUsageList.*.auditDetails.lastModifiedTime - - - - - - query: INSERT INTO eg_pt_asmt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE documenttype = ?, documentuid = ?, status = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: $.Assessment.documents.* - jsonMaps: - - - jsonPath: $.Assessment.documents.*.id - - - jsonPath: $.Assessment.tenantId - - - jsonPath: $.Assessment.id - - - jsonPath: $.Assessment.documents.*.documentType - - - jsonPath: $.Assessment.documents.*.fileStoreId - - - jsonPath: $.Assessment.documents.*.documentUid - - - jsonPath: $.Assessment.documents.*.status - - - jsonPath: $.Assessment.documents.*.auditDetails.createdBy - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.documents.*.auditDetails.createdTime - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedTime - - - jsonPath: $.Assessment.documents.*.documentType - - - jsonPath: $.Assessment.documents.*.documentUid - - - jsonPath: $.Assessment.documents.*.status - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.Assessment.documents.*.auditDetails.lastModifiedTime - - diff --git a/egov-persister/attendance-service-persister.yml b/egov-persister/attendance-service-persister.yml new file mode 100644 index 00000000..b03444ea --- /dev/null +++ b/egov-persister/attendance-service-persister.yml @@ -0,0 +1,398 @@ +serviceMaps: + serviceName: attendance-service + mappings: + - version: 1.0 + name: attendance + description: Persists attendance details in eg_wms_attendance_register table + fromTopic: save-attendance-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerNumber + auditAttributeBasePath: $.attendanceRegister.* + queryMaps: + - query: INSERT INTO eg_wms_attendance_register(id,tenantid,registernumber,name,startdate,enddate,status,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime,referenceid,servicecode) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.attendanceRegister.* + jsonMaps: + - jsonPath: $.attendanceRegister.*.id + + - jsonPath: $.attendanceRegister.*.tenantId + + - jsonPath: $.attendanceRegister.*.registerNumber + + - jsonPath: $.attendanceRegister.*.name + + - jsonPath: $.attendanceRegister.*.startDate + + - jsonPath: $.attendanceRegister.*.endDate + + - jsonPath: $.attendanceRegister.*.status + + - jsonPath: $.attendanceRegister.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendanceRegister.*.auditDetails.createdBy + + - jsonPath: $.attendanceRegister.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendanceRegister.*.auditDetails.createdTime + + - jsonPath: $.attendanceRegister.*.auditDetails.lastModifiedTime + + - jsonPath: $.attendanceRegister.*.referenceId + + - jsonPath: $.attendanceRegister.*.serviceCode + + - query: INSERT INTO eg_wms_attendance_staff(id,tenantid,individual_id,register_id,enrollment_date,deenrollment_date,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.attendanceRegister.*.staff.* + jsonMaps: + - jsonPath: $.staff.*.id + + - jsonPath: $.staff.*.tenantId + + - jsonPath: $.staff.*.userId + + - jsonPath: $.staff.*.registerId + + - jsonPath: $.staff.*.enrollmentDate + + - jsonPath: $.staff.*.denrollmentDate + + - jsonPath: $.staff.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.staff.*.auditDetails.createdBy + + - jsonPath: $.staff.*.auditDetails.lastModifiedBy + + - jsonPath: $.staff.*.auditDetails.createdTime + + - jsonPath: $.staff.*.auditDetails.lastModifiedTime + + - version: 1.0 + name: attendee + description: Persists attendee details in eg_wms_attendance_attendee table + fromTopic: save-attendee-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.attendees.* + queryMaps: + - query: INSERT INTO eg_wms_attendance_attendee(id,tenantid,individual_id,register_id,enrollment_date,deenrollment_date,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.attendees.* + jsonMaps: + + - jsonPath: $.attendees.*.id + + - jsonPath: $.attendees.*.tenantId + + - jsonPath: $.attendees.*.individualId + + - jsonPath: $.attendees.*.registerId + + - jsonPath: $.attendees.*.enrollmentDate + + - jsonPath: $.attendees.*.denrollmentDate + + - jsonPath: $.attendees.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendees.*.auditDetails.createdBy + + - jsonPath: $.attendees.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendees.*.auditDetails.createdTime + + - jsonPath: $.attendees.*.auditDetails.lastModifiedTime + + - version: 1.0 + name: staff registration + description: Persists staff registration details in eg_wms_attendance_staff table + fromTopic: save-staff-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.staff.* + queryMaps: + - query: INSERT INTO eg_wms_attendance_staff(id,tenantid,individual_id,register_id,enrollment_date,deenrollment_date,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.staff.* + jsonMaps: + - jsonPath: $.staff.*.id + + - jsonPath: $.staff.*.tenantId + + - jsonPath: $.staff.*.userId + + - jsonPath: $.staff.*.registerId + + - jsonPath: $.staff.*.enrollmentDate + + - jsonPath: $.staff.*.denrollmentDate + + - jsonPath: $.staff.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.staff.*.auditDetails.createdBy + + - jsonPath: $.staff.*.auditDetails.lastModifiedBy + + - jsonPath: $.staff.*.auditDetails.createdTime + + - jsonPath: $.staff.*.auditDetails.lastModifiedTime + + - version: 1.0 + name: Attendance Log + description: Persists attendance logs and corresponding documents + fromTopic: save-attendance-log-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.attendance.* + queryMaps: + - query: INSERT INTO eg_wms_attendance_log(id,clientreferenceid,tenantid,individual_id,register_id,status,time,event_type,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime, clientcreatedby, clientlastmodifiedby, clientcreatedtime, clientlastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.attendance.* + jsonMaps: + - jsonPath: $.attendance.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.attendance.*.tenantId + + - jsonPath: $.attendance.*.individualId + + - jsonPath: $.attendance.*.registerId + + - jsonPath: $.attendance.*.status + + - jsonPath: $.attendance.*.time + + - jsonPath: $.attendance.*.type + + - jsonPath: $.attendance.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendance.*.auditDetails.createdBy + + - jsonPath: $.attendance.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendance.*.auditDetails.createdTime + + - jsonPath: $.attendance.*.auditDetails.lastModifiedTime + - jsonPath: $.attendance.*.clientAuditDetails.createdBy + - jsonPath: $.attendance.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.attendance.*.clientAuditDetails.createdTime + - jsonPath: $.attendance.*.clientAuditDetails.lastModifiedTime + + - query: INSERT INTO eg_wms_attendance_document(id,filestore_id,document_type,attendance_log_id,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime,tenantid,status) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.attendance.*.documentIds.* + jsonMaps: + - jsonPath: $.attendance.*.documentIds.*.id + + - jsonPath: $.attendance.*.documentIds.*.fileStore + + - jsonPath: $.attendance.*.documentIds.*.documentType + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].id + + - jsonPath: $.attendance.*.documentIds.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.createdBy + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.createdTime + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].tenantId + + - jsonPath: $.attendance.*.documentIds.*.status + + + - version: 1.0 + name: Attendance Log + description: Update attendance logs and corresponding documents + fromTopic: update-attendance-log-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.attendance.* + queryMaps: + - query: UPDATE eg_wms_attendance_log set status = ?, time = ? ,event_type =? ,additionaldetails = ? ,lastmodifiedby = ? ,lastmodifiedtime = ?, clientlastmodifiedby = ?, clientlastmodifiedtime = ? where id = ? ; + basePath: $.attendance.* + jsonMaps: + + - jsonPath: $.attendance.*.status + + - jsonPath: $.attendance.*.time + + - jsonPath: $.attendance.*.type + + - jsonPath: $.attendance.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendance.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendance.*.auditDetails.lastModifiedTime + - jsonPath: $.attendance.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.attendance.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.attendance.*.id + + + - query: INSERT INTO eg_wms_attendance_document(id, filestore_id, document_type, attendance_log_id, additionaldetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime, tenantid, status) VALUES (?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET filestore_id = ?, document_type = ? , additionaldetails = ? ,lastmodifiedby = ? ,lastmodifiedtime = ?, status = ?; + basePath: $.attendance.*.documentIds.* + jsonMaps: + - jsonPath: $.attendance.*.documentIds.*.id + + - jsonPath: $.attendance.*.documentIds.*.fileStore + + - jsonPath: $.attendance.*.documentIds.*.documentType + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].id + + - jsonPath: $.attendance.*.documentIds.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.createdBy + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.createdTime + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].tenantId + + - jsonPath: $.attendance.*.documentIds.*.status + + - jsonPath: $.attendance.*.documentIds.*.fileStore + + - jsonPath: $.attendance.*.documentIds.*.documentType + + - jsonPath: $.attendance.*.documentIds.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.attendance.*.documentIds.*.status + + + - version: 1.0 + description: update Attendance + fromTopic: update-attendance-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerNumber + auditAttributeBasePath: $.attendanceRegister.* + queryMaps: + - query: UPDATE eg_wms_attendance_register set name=?, startdate=?, enddate=?, status=?,additionaldetails=?,lastmodifiedby=?, lastmodifiedtime=? where id=?; + basePath: $.attendanceRegister.* + jsonMaps: + - jsonPath: $.attendanceRegister.*.name + + - jsonPath: $.attendanceRegister.*.startDate + + - jsonPath: $.attendanceRegister.*.endDate + + - jsonPath: $.attendanceRegister.*.status + + - jsonPath: $.attendanceRegister.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendanceRegister.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendanceRegister.*.auditDetails.lastModifiedTime + + - jsonPath: $.attendanceRegister.*.id + + - version: 1.0 + description: update Attendee + fromTopic: update-attendee-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.attendees.* + queryMaps: + - query: UPDATE eg_wms_attendance_attendee set individual_id=?, register_id=?, enrollment_date=?, deenrollment_date=?,additionaldetails=?,lastmodifiedby=?, lastmodifiedtime=? where id=?; + basePath: $.attendees.* + jsonMaps: + - jsonPath: $.attendees.*.individualId + + - jsonPath: $.attendees.*.registerId + + - jsonPath: $.attendees.*.enrollmentDate + + - jsonPath: $.attendees.*.denrollmentDate + + - jsonPath: $.attendees.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendees.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendees.*.auditDetails.lastModifiedTime + + - jsonPath: $.attendees.*.id + + - version: 1.0 + description: update staff + fromTopic: update-staff-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.staff.* + queryMaps: + - query: UPDATE eg_wms_attendance_staff set individual_id=?, register_id=?, enrollment_date=?, deenrollment_date=?,additionaldetails=?,lastmodifiedby=?, lastmodifiedtime=? where id=?; + basePath: $.staff.* + jsonMaps: + - jsonPath: $.staff.*.userId + + - jsonPath: $.staff.*.registerId + + - jsonPath: $.staff.*.enrollmentDate + + - jsonPath: $.staff.*.denrollmentDate + + - jsonPath: $.staff.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.staff.*.auditDetails.lastModifiedBy + + - jsonPath: $.staff.*.auditDetails.lastModifiedTime + + - jsonPath: $.staff.*.id \ No newline at end of file diff --git a/egov-persister/audit-service-persister.yml b/egov-persister/audit-service-persister.yml index 68143a74..f0458461 100644 --- a/egov-persister/audit-service-persister.yml +++ b/egov-persister/audit-service-persister.yml @@ -33,4 +33,4 @@ serviceMaps: - jsonPath: $.AuditLogs.*.integrityHash - - jsonPath: $.AuditLogs.*.auditcorrelationid \ No newline at end of file + - jsonPath: $.AuditLogs.*.auditCorrelationId diff --git a/egov-persister/billing-services-persist.yml b/egov-persister/billing-services-persist.yml deleted file mode 100644 index f720d59e..00000000 --- a/egov-persister/billing-services-persist.yml +++ /dev/null @@ -1,274 +0,0 @@ -serviceMaps: - serviceName: User Service - mappings: - - version: 1.0 - name: bill create - description: create bill in egbs_bill - fromTopic: save-bill-db - queryMaps: - - query: INSERT into egbs_bill (id, tenantid, payeename, payeeaddress, payeeemail, isactive, iscancelled, createdby, createddate, lastmodifiedby, lastmodifieddate) values(?,?,?,?,?,?,?,?,?,?,?) - basePath: $.Bills.* - jsonMaps: - - - jsonPath: $.Bills.*.id - - - jsonPath: $.Bills.*.tenantId - - - jsonPath: $.Bills.*.payeeName - - - jsonPath: $.Bills.*.payeeAddress - - - jsonPath: $.Bills.*.payeeEmail - - - jsonPath: $.Bills.*.isActive - type: BOOLEAN - - - jsonPath: $.Bills.*.isCancelled - type: BOOLEAN - - - jsonPath: $.RequestInfo.userInfo.id - type: LONG - - - type: CURRENTDATE - dbType: LONG - - - jsonPath: $.RequestInfo.userInfo.id - - - type: CURRENTDATE - dbType: LONG - - - query: INSERT into egbs_billdetail (id, tenantid, billid, businessservice, billno, billdate, consumercode, consumertype, billdescription, displaymessage, minimumamount, totalamount, callbackforapportioning, partpaymentallowed, collectionmodesnotallowed, createdby, createddate, lastmodifiedby, lastmodifieddate) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.Bills.*.billDetails.* - jsonMaps: - - jsonPath: $.Bills.*.billDetails.*.id - - - jsonPath: $.Bills.*.billDetails.*.tenantId - - - jsonPath: $.Bills[?({id} in @.billDetails[*].id)].id - - - jsonPath: $.Bills.*.billDetails.*.businessService - type: DOUBLE - - - jsonPath: $.Bills.*.billDetails.*.billNumber - type: DOUBLE - - - jsonPath: $.Bills.*.billDetails.*.billDate - type: LONG - - - jsonPath: $.Bills.*.billDetails.*.consumerCode - - - jsonPath: $.Bills.*.billDetails.*.consumerType - - - jsonPath: $.Bills.*.billDetails.*.billDescription - - - jsonPath: $.Bills.*.billDetails.*.displayMessage - - - jsonPath: $.Bills.*.billDetails.*.minimumAmount - type: DOUBLE - - - jsonPath: $.Bills.*.billDetails.*.totalAmount - type: DOUBLE - - - jsonPath: $.Bills.*.billDetails.*.callBackForApportioning - type: BOOLEAN - - - jsonPath: $.Bills.*.billDetails.*.partPaymentAllowed - type: BOOLEAN - - - jsonPath: $.Bills.*.billDetails.*.collectionModesNotAllowed - type: ARRAY - dbType: STRING - - - jsonPath: $.RequestInfo.userInfo.id - type: LONG - - - type: CURRENTDATE - dbType: LONG - - - jsonPath: $.RequestInfo.userInfo.id - - - type: CURRENTDATE - dbType: LONG - - - query: INSERT into egbs_billaccountdetail(id, tenantid, billdetail, glcode, orderno, accountdescription, cramounttobepaid, creditamount, debitamount, isactualdemand, purpose, createdby, createddate, lastmodifiedby, lastmodifieddate) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.Bills.*.billDetails.*.billAccountDetails.* - jsonMaps: - - jsonPath: $.Bills.*.billDetails.*.billAccountDetails.*.id - - - jsonPath: $.Bills.*.billDetails.*.billAccountDetails.*.tenantId - - - jsonPath: $.Bills[*].billDetails[?({id} in @.billAccountDetails[*].id)].id - - - jsonPath: $.Bills.*.billDetails.*.billAccountDetails.*.glcode - - - jsonPath: $.Bills.*.billDetails.*.billAccountDetails.*.order - type: INT - - - jsonPath: $.Bills.*.billDetails.*.billAccountDetails.*.accountDescription - - - jsonPath: $.Bills.*.billDetails.*.billAccountDetails.*.crAmountToBePaid - type: DOUBLE - - - jsonPath: $.Bills.*.billDetails.*.billAccountDetails.*.creditAmount - type: DOUBLE - - - jsonPath: $.Bills.*.billDetails.*.billAccountDetails.*.debitAmount - type: DOUBLE - - - jsonPath: $.Bills.*.billDetails.*.billAccountDetails.*.isActualDemand - type: BOOLEAN - - - jsonPath: $.Bills.*.billDetails.*.billAccountDetails.*.purpose - - - jsonPath: $.RequestInfo.userInfo.id - type: LONG - - - type: CURRENTDATE - dbType: LONG - - - jsonPath: $.RequestInfo.userInfo.id - - - type: CURRENTDATE - dbType: LONG - - - version: 1.0 - name: demand create - description: create demand in egbs_demand - fromTopic: save-demand - isTransaction: true - queryMaps: - - query: INSERT INTO egbs_demand (id,consumerCode,consumerType,businessService,owner,taxPeriodFrom,taxPeriodTo,minimumAmountPayable,createdby,lastModifiedby,createdtime,lastModifiedtime,tenantid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.Demands.* - jsonMaps: - - - jsonPath: $.Demands.*.id - type: STRING - - - jsonPath: $.Demands.*.consumerCode - type: STRING - - - jsonPath: $.Demands.*.consumerType - type: STRING - - - jsonPath: $.Demands.*.businessService - type: STRING - - - jsonPath: $.Demands.*.owner.id - type: STRING - - - jsonPath: $.Demands.*.taxPeriodFrom - type: LONG - - - jsonPath: $.Demands.*.taxPeriodTo - type: LONG - - - jsonPath: $.Demands.*.minimumAmountPayable - type: DOUBLE - - - jsonPath: $.Demands.*.auditDetail.createdBy - type: STRING - - - jsonPath: $.Demands.*.auditDetail.lastModifiedBy - type: STRING - - - jsonPath: $.Demands.*.auditDetail.createdTime - type: LONG - - - jsonPath: $.Demands.*.auditDetail.lastModifiedTime - type: LONG - - - jsonPath: $.Demands.*.tenantId - type: STRING - - - query: INSERT INTO egbs_demanddetail (id,demandid,taxHeadCode,taxamount,collectionamount,createdby,lastModifiedby,createdtime,lastModifiedtime,tenantid) VALUES (?,?,?,?,?,?,?,?,?,?); - basePath: $.Demands.*.demandDetails.* - jsonMaps: - - jsonPath: $.Demands.*.demandDetails.*.id - type: STRING - - - jsonPath: $.Demands.*.demandDetails.*.demandId - type: STRING - - - jsonPath: $.Demands.*.demandDetails.*.taxHeadMasterCode - type: STRING - - - jsonPath: $.Demands.*.demandDetails.*.taxAmount - type: DOUBLE - - - jsonPath: $.Demands.*.demandDetails.*.collectionAmount - type: DOUBLE - - - jsonPath: $.Demands.*.demandDetails.*.auditDetail.createdBy - type: STRING - - - jsonPath: $.Demands.*.demandDetails.*.auditDetail.lastModifiedBy - type: STRING - - - jsonPath: $.Demands.*.demandDetails.*.auditDetail.createdTime - type: LONG - - - jsonPath: $.Demands.*.demandDetails.*.auditDetail.lastModifiedTime - type: LONG - - - jsonPath: $.Demands.*.demandDetails.*.tenantId - type: STRING - - - - version: 1.0 - name: demand update - description: update demand in egbs_demand - fromTopic: update-demand - isTransaction: true - queryMaps: - - query: UPDATE egbs_demand SET consumerCode=?,consumerType=?,businessService=?,owner=?,taxPeriodFrom=?,taxPeriodTo=?,minimumAmountPayable=?,lastModifiedby=?,lastModifiedtime=? WHERE id=? AND tenantid=?; - basePath: $.Demands.* - jsonMaps: - - - jsonPath: $.Demands.*.consumerCode - - - jsonPath: $.Demands.*.consumerType - - - jsonPath: $.Demands.*.businessService - - - jsonPath: $.Demands.*.owner.id - - - jsonPath: $.Demands.*.taxPeriodFrom - type: LONG - - - jsonPath: $.Demands.*.taxPeriodTo - type: LONG - - - jsonPath: $.Demands.*.minimumAmountPayable - type: DOUBLE - - - jsonPath: $.Demands.*.auditDetail.lastModifiedBy - - - jsonPath: $.Demands.*.auditDetail.lastModifiedTime - type: LONG - - - jsonPath: $.Demands.*.id - - - jsonPath: $.Demands.*.tenantId - - - query: UPDATE egbs_demanddetail SET demandid=?,taxHeadCode=?,taxamount=?,collectionamount=?,lastModifiedby=?,lastModifiedtime=? WHERE id=? AND tenantid=?; - basePath: $.Demands.*.demandDetails.* - jsonMaps: - - - jsonPath: $.Demands.*.demandDetails.*.demandId - - - jsonPath: $.Demands.*.demandDetails.*.taxHeadMasterCode - - - jsonPath: $.Demands.*.demandDetails.*.taxAmount - type: DOUBLE - - - jsonPath: $.Demands.*.demandDetails.*.collectionAmount - type: DOUBLE - - - jsonPath: $.Demands.*.demandDetails.*.auditDetail.lastModifiedBy - - - jsonPath: $.Demands.*.demandDetails.*.auditDetail.lastModifiedTime - type: LONG - - - jsonPath: $.Demands.*.demandDetails.*.id - - - jsonPath: $.Demands.*.demandDetails.*.tenantId diff --git a/egov-persister/birth-death.yml b/egov-persister/birth-death.yml deleted file mode 100644 index 0e3afb69..00000000 --- a/egov-persister/birth-death.yml +++ /dev/null @@ -1,137 +0,0 @@ -serviceMaps: - serviceName: birth-death-services - mappings: - - version: 1.0 - description: Persists birthCertificate details in eg_birth_cert_request table - fromTopic: save-birth-topic - isTransaction: true - queryMaps: - - - query: INSERT INTO public.eg_birth_cert_request (id, birthcertificateno, createdby, createdtime, birthdtlid, filestoreid, lastmodifiedtime, lastmodifiedby, status, additionaldetail, embeddedurl, dateofissue, source) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: birthCertificate - jsonMaps: - - jsonPath: $.birthCertificate.id - - - jsonPath: $.birthCertificate.birthCertificateNo - - - jsonPath: $.birthCertificate.auditDetails.createdBy - - - jsonPath: $.birthCertificate.auditDetails.createdTime - - - jsonPath: $.birthCertificate.birthDtlId - - - jsonPath: $.birthCertificate.filestoreid - - - jsonPath: $.birthCertificate.auditDetails.lastModifiedTime - - - jsonPath: $.birthCertificate.auditDetails.lastModifiedBy - - - jsonPath: $.birthCertificate.applicationStatus - - - jsonPath: $.birthCertificate.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.birthCertificate.embeddedUrl - - - jsonPath: $.birthCertificate.dateofissue - - - jsonPath: $.birthCertificate.source - - - version: 1.0 - description: Update birthCertificate details in eg_birth_cert_request table - fromTopic: update-birth-topic - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_birth_cert_request_audit SELECT * FROM eg_birth_cert_request WHERE id = ?; - basePath: birthCertificate - jsonMaps: - - - jsonPath: $.birthCertificate.id - - - query: UPDATE eg_birth_cert_request SET status = ?, filestoreid =?, embeddedurl = ? ,dateofissue =?, lastmodifiedby = ?, lastmodifiedtime = ? WHERE id=?; - basePath: birthCertificate - jsonMaps: - - - jsonPath: $.birthCertificate.applicationStatus - - - jsonPath: $.birthCertificate.filestoreid - - - jsonPath: $.birthCertificate.embeddedUrl - - - jsonPath: $.birthCertificate.dateofissue - - - jsonPath: $.birthCertificate.auditDetails.lastModifiedBy - - - jsonPath: $.birthCertificate.auditDetails.lastModifiedTime - - - jsonPath: $.birthCertificate.id - - - - version: 1.0 - description: Persists deathCertificate details in eg_death_cert_request table - fromTopic: save-death-topic - isTransaction: true - queryMaps: - - - query: INSERT INTO public.eg_death_cert_request (id, deathcertificateno, createdby, createdtime, deathdtlid, filestoreid, lastmodifiedtime, lastmodifiedby, status, additionaldetail ,embeddedurl ,dateofissue, source) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: deathCertificate - jsonMaps: - - jsonPath: $.deathCertificate.id - - - jsonPath: $.deathCertificate.deathCertificateNo - - - jsonPath: $.deathCertificate.auditDetails.createdBy - - - jsonPath: $.deathCertificate.auditDetails.createdTime - - - jsonPath: $.deathCertificate.deathDtlId - - - jsonPath: $.deathCertificate.filestoreid - - - jsonPath: $.deathCertificate.auditDetails.lastModifiedTime - - - jsonPath: $.deathCertificate.auditDetails.lastModifiedBy - - - jsonPath: $.deathCertificate.applicationStatus - - - jsonPath: $.deathCertificate.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.deathCertificate.embeddedUrl - - - jsonPath: $.deathCertificate.dateofissue - - - jsonPath: $.deathCertificate.source - - - version: 1.0 - description: Update deathCertificate details in eg_death_cert_request table - fromTopic: update-death-topic - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_death_cert_request_audit SELECT * FROM eg_death_cert_request WHERE id = ?; - basePath: deathCertificate - jsonMaps: - - - jsonPath: $.deathCertificate.id - - - query: UPDATE eg_death_cert_request SET status = ?, filestoreid =?, embeddedurl = ? , dateofissue = ? , lastmodifiedby = ?, lastmodifiedtime = ? WHERE id=?; - basePath: deathCertificate - jsonMaps: - - - jsonPath: $.deathCertificate.applicationStatus - - - jsonPath: $.deathCertificate.filestoreid - - - jsonPath: $.deathCertificate.embeddedUrl - - - jsonPath: $.deathCertificate.dateofissue - - - jsonPath: $.deathCertificate.auditDetails.lastModifiedBy - - - jsonPath: $.deathCertificate.auditDetails.lastModifiedTime - - - jsonPath: $.deathCertificate.id \ No newline at end of file diff --git a/egov-persister/boundary-persister.yml b/egov-persister/boundary-persister.yml new file mode 100644 index 00000000..e7fe8f5a --- /dev/null +++ b/egov-persister/boundary-persister.yml @@ -0,0 +1,122 @@ +serviceMaps: + serviceName: boundary-Service + mappings: + - version: 1.0 + description: Persists the boundary entity data + fromTopic: create-boundary-entity + isTransaction: true + queryMaps: + - query: INSERT INTO boundary (id, tenantId, code, geometry, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Boundary.* + jsonMaps: + - jsonPath: $.Boundary.*.id + + - jsonPath: $.Boundary.*.tenantId + + - jsonPath: $.Boundary.*.code + + - jsonPath: $.Boundary.*.geometry + type: JSON + dbType: JSONB + + - jsonPath: $.Boundary.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Boundary.*.auditDetails.createdBy + + - jsonPath: $.Boundary.*.auditDetails.lastModifiedBy + + - jsonPath: $.Boundary.*.auditDetails.createdTime + + - jsonPath: $.Boundary.*.auditDetails.lastModifiedTime + - version: 1.0 + description: Persists the boundary entity data + fromTopic: update-boundary-entity + isTransaction: true + queryMaps: + - query: UPDATE boundary SET geometry = ? , lastModifiedBy = ? , lastModifiedTime = ? WHERE code = ? AND tenantId = ?; + basePath: $.Boundary.* + jsonMaps: + - jsonPath: $.Boundary.*.geometry + type: JSON + dbType: JSONB + + - jsonPath: $.Boundary.*.auditDetails.lastModifiedBy + + - jsonPath: $.Boundary.*.auditDetails.lastModifiedTime + + - jsonPath: $.Boundary.*.code + + - jsonPath: $.Boundary.*.tenantId + - version: 1.0 + description: Persists the boundary hierarchy definition data + fromTopic: save-boundary-hierarchy-definition + isTransaction: true + queryMaps: + - query: INSERT INTO boundary_hierarchy (id, tenantId, hierarchyType, boundaryHierarchy, createdTime, createdBy, lastModifiedTime, lastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.BoundaryHierarchy + jsonMaps: + - jsonPath: $.BoundaryHierarchy.id + + - jsonPath: $.BoundaryHierarchy.tenantId + + - jsonPath: $.BoundaryHierarchy.hierarchyType + + - jsonPath: $.BoundaryHierarchy.boundaryHierarchyJsonNode + type: JSON + dbType: JSONB + + - jsonPath: $.BoundaryHierarchy.auditDetails.createdTime + + - jsonPath: $.BoundaryHierarchy.auditDetails.createdBy + + - jsonPath: $.BoundaryHierarchy.auditDetails.lastModifiedTime + + - jsonPath: $.BoundaryHierarchy.auditDetails.lastModifiedBy + - version: 1.0 + description: Persists the boundary relationship data + fromTopic: save-boundary-relationship + isTransaction: true + queryMaps: + - query: INSERT INTO boundary_relationship (id, tenantId, code, hierarchyType, boundaryType, parent, ancestralMaterializedPath, createdTime, createdBy, lastModifiedTime, lastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.BoundaryRelationship + jsonMaps: + - jsonPath: $.BoundaryRelationship.id + + - jsonPath: $.BoundaryRelationship.tenantId + + - jsonPath: $.BoundaryRelationship.code + + - jsonPath: $.BoundaryRelationship.hierarchyType + + - jsonPath: $.BoundaryRelationship.boundaryType + + - jsonPath: $.BoundaryRelationship.parent + + - jsonPath: $.BoundaryRelationship.ancestralMaterializedPath + + - jsonPath: $.BoundaryRelationship.auditDetails.createdTime + + - jsonPath: $.BoundaryRelationship.auditDetails.createdBy + + - jsonPath: $.BoundaryRelationship.auditDetails.lastModifiedTime + + - jsonPath: $.BoundaryRelationship.auditDetails.lastModifiedBy + - version: 1.0 + description: Updates boundary relationship data + fromTopic: update-boundary-relationship + isTransaction: true + queryMaps: + - query: UPDATE boundary_relationship SET parent = ?, ancestralmaterializedpath = ?, lastmodifiedtime = ?, lastmodifiedby = ? WHERE id = ?; + basePath: $.BoundaryRelationshipList.* + jsonMaps: + - jsonPath: $.BoundaryRelationshipList.*.parent + + - jsonPath: $.BoundaryRelationshipList.*.ancestralMaterializedPath + + - jsonPath: $.BoundaryRelationshipList.*.auditDetails.lastModifiedTime + + - jsonPath: $.BoundaryRelationshipList.*.auditDetails.lastModifiedBy + + - jsonPath: $.BoundaryRelationshipList.*.id diff --git a/egov-persister/bpa-persister.yml b/egov-persister/bpa-persister.yml deleted file mode 100644 index 2527877b..00000000 --- a/egov-persister/bpa-persister.yml +++ /dev/null @@ -1,229 +0,0 @@ -serviceMaps: - serviceName: bpa-services - mappings: - - version: 1.0 - description: Persists buildingplan details in EG_BPA_BuildingPlan table - fromTopic: save-bpa-buildingplan - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_bpa_buildingplan(id, applicationNo, landId, accountId, edcrNumber, tenantId, status, approvalDate, businessService, additionalDetails, createdBy, lastmodifiedBy, createdTime, lastmodifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: BPA - jsonMaps: - - jsonPath: $.BPA.id - - - jsonPath: $.BPA.applicationNo - - - jsonPath: $.BPA.landId - - - jsonPath: $.BPA.accountId - - - jsonPath: $.BPA.edcrNumber - - - jsonPath: $.BPA.tenantId - - - jsonPath: $.BPA.status - - - jsonPath: $.BPA.approvalDate - - - jsonPath: $.BPA.businessService - - - jsonPath: $.BPA.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.BPA.auditDetails.createdBy - - - jsonPath: $.BPA.auditDetails.lastModifiedBy - - - jsonPath: $.BPA.auditDetails.createdTime - - - jsonPath: $.BPA.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_bpa_document( id, documenttype, fileStoreId, buildingplanid, documentuid, additionalDetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: BPA.documents.* - jsonMaps: - - jsonPath: $.BPA.documents.*.id - - - jsonPath: $.BPA.documents.*.documentType - - - jsonPath: $.BPA.documents.*.fileStoreId - - - jsonPath: $.BPA.id - - - jsonPath: $.BPA.documents.*.documentUid - - - jsonPath: $.BPA.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.BPA.auditDetails.createdBy - - - jsonPath: $.BPA.auditDetails.lastModifiedBy - - - jsonPath: $.BPA.auditDetails.createdTime - - - jsonPath: $.BPA.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_bpa_auditdetails SELECT * FROM eg_bpa_buildingplan WHERE id =?; - basePath: BPA - jsonMaps: - - - jsonPath: $.BPA.id - - - - - - version: 1.0 - description: update buildingplan details in EG_BPA_BuildingPlan table - fromTopic: update-bpa-buildingplan - isTransaction: true - queryMaps: - - - query: UPDATE eg_bpa_buildingplan SET applicationno=?, approvalNo=?, applicationDate=?, status=?, additionaldetails=?, lastmodifiedby=?, lastmodifiedtime=?, approvalDate=? WHERE id=?; - basePath: BPA - jsonMaps: - - jsonPath: $.BPA.applicationNo - - - jsonPath: $.BPA.approvalNo - - - jsonPath: $.BPA.applicationDate - - - jsonPath: $.BPA.status - - - jsonPath: $.BPA.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.BPA.auditDetails.lastModifiedBy - - - jsonPath: $.BPA.auditDetails.lastModifiedTime - - - jsonPath: $.BPA.approvalDate - - - jsonPath: $.BPA.id - - - - query: INSERT INTO eg_bpa_auditdetails SELECT * FROM eg_bpa_buildingplan WHERE id =?; - basePath: BPA - jsonMaps: - - - jsonPath: $.BPA.id - - - - query: INSERT INTO eg_bpa_document(id, documenttype, fileStoreId, buildingplanid, documentuid, additionalDetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET documenttype =?, fileStoreId =?, additionalDetails=?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: BPA.documents.* - jsonMaps: - - - jsonPath: $.BPA.documents.*.id - - - jsonPath: $.BPA.documents.*.documentType - - - jsonPath: $.BPA.documents.*.fileStoreId - - - jsonPath: $.BPA.id - - - jsonPath: $.BPA.documents.*.documentUid - - - jsonPath: $.BPA.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.BPA.auditDetails.createdBy - - - jsonPath: $.BPA.auditDetails.lastModifiedBy - - - jsonPath: $.BPA.auditDetails.createdTime - - - jsonPath: $.BPA.auditDetails.lastModifiedTime - - - jsonPath: $.BPA.documents.*.documentType - - - jsonPath: $.BPA.documents.*.fileStoreId - - - jsonPath: $.BPA.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.BPA.auditDetails.lastModifiedBy - - - jsonPath: $.BPA.auditDetails.lastModifiedTime - - - version: 1.0 - description: update buildingplan details in EG_BPA_BuildingPlan table - fromTopic: update-bpa-workflow - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_bpa_document(id, documentType, fileStoreId, buildingplanid, documentUid, additionalDetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET documenttype =?, fileStoreId =?, additionalDetails=?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: BPA.documents.* - jsonMaps: - - - jsonPath: $.BPA.documents.*.id - - - jsonPath: $.BPA.documents.*.documentType - - - jsonPath: $.BPA.documents.*.fileStoreId - - - jsonPath: $.BPA.id - - - jsonPath: $.BPA.documents.*.documentUid - - - jsonPath: $.BPA.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.BPA.auditDetails.createdBy - - - jsonPath: $.BPA.auditDetails.lastModifiedBy - - - jsonPath: $.BPA.auditDetails.createdTime - - - jsonPath: $.BPA.auditDetails.lastModifiedTime - - - jsonPath: $.BPA.documents.*.documentType - - - jsonPath: $.BPA.documents.*.fileStoreId - - - jsonPath: $.BPA.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.BPA.auditDetails.lastModifiedBy - - - jsonPath: $.BPA.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_bpa_auditdetails SELECT * FROM eg_bpa_buildingplan WHERE id =?; - basePath: BPA - jsonMaps: - - - jsonPath: $.BPA.id - - - - query: UPDATE eg_bpa_buildingplan SET applicationno=?, approvalNo=?, applicationDate=?, status=?, additionaldetails=?, lastmodifiedby=?, lastmodifiedtime=?, approvalDate=? WHERE id=?; - basePath: BPA - jsonMaps: - - jsonPath: $.BPA.applicationNo - - - jsonPath: $.BPA.approvalNo - - - jsonPath: $.BPA.applicationDate - - - jsonPath: $.BPA.status - - - jsonPath: $.BPA.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.BPA.auditDetails.lastModifiedBy - - - jsonPath: $.BPA.auditDetails.lastModifiedTime - - - jsonPath: $.BPA.approvalDate - - - jsonPath: $.BPA.id diff --git a/egov-persister/bulk-bill-generation-audit.yml b/egov-persister/bulk-bill-generation-audit.yml deleted file mode 100644 index 1960e075..00000000 --- a/egov-persister/bulk-bill-generation-audit.yml +++ /dev/null @@ -1,26 +0,0 @@ -serviceMaps: - serviceName: billing-services - mappings: - - version: 1.0 - description: Persists batch audit in EG_BS_BULKBILL_AUDIT table - fromTopic: bulk-bill-generation-audit - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_bs_bulkbill_audit (id,batchoffset,createdtime,tenantid,recordCount,businessservice) VALUES (?,?,?,?,?,?,?); - basePath: MigrationCount - jsonMaps: - - - jsonPath: $.MigrationCount.id - - - jsonPath: $.MigrationCount.offset - - - jsonPath: $.MigrationCount.createdTime - - - jsonPath: $.MigrationCount.tenantid - - - jsonPath: $.MigrationCount.recordCount - - - jsonPath: $.MigrationCount.businessService - diff --git a/egov-persister/bulk-bill-generator-sw.yml b/egov-persister/bulk-bill-generator-sw.yml deleted file mode 100644 index ed7d6bdf..00000000 --- a/egov-persister/bulk-bill-generator-sw.yml +++ /dev/null @@ -1,30 +0,0 @@ -serviceMaps: - serviceName: sw-calculator - mappings: - - version: 1.0 - description: Persists batch audit in EG_SW_BULKBILL_AUDIT table - fromTopic: bulk-bill-generator-audit-sw - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_sw_bulkbill_audit (id,batchoffset,createdtime,tenantid,recordCount,businessservice,message,audittime) VALUES (?,?,?,?,?,?,?,?); - basePath: $ - jsonMaps: - - - jsonPath: $.id - - - jsonPath: $.offset - - - jsonPath: $.createdTime - - - jsonPath: $.tenantid - - - jsonPath: $.recordCount - - - jsonPath: $.businessService - - - jsonPath: $.message - - - jsonPath: $.auditTime - diff --git a/egov-persister/bulk-bill-generator-ws.yml b/egov-persister/bulk-bill-generator-ws.yml deleted file mode 100644 index 6c2c2994..00000000 --- a/egov-persister/bulk-bill-generator-ws.yml +++ /dev/null @@ -1,30 +0,0 @@ -serviceMaps: - serviceName: ws-calculator - mappings: - - version: 1.0 - description: Persists batch audit in EG_WS_BULKBILL_AUDIT table - fromTopic: bulk-bill-generator-audit-ws - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_ws_bulkbill_audit (id,batchoffset,createdtime,tenantid,recordCount,businessservice,message,audittime) VALUES (?,?,?,?,?,?,?,?); - basePath: $ - jsonMaps: - - - jsonPath: $.id - - - jsonPath: $.offset - - - jsonPath: $.createdTime - - - jsonPath: $.tenantid - - - jsonPath: $.recordCount - - - jsonPath: $.businessService - - - jsonPath: $.message - - - jsonPath: $.auditTime - diff --git a/egov-persister/census-service-persister.yml b/egov-persister/census-service-persister.yml new file mode 100644 index 00000000..6c245163 --- /dev/null +++ b/egov-persister/census-service-persister.yml @@ -0,0 +1,126 @@ +serviceMaps: + serviceName: census-service + mappings: + - version: 1.0 + name: census + description: Persists census details + fromTopic: census-create-topic + isTransaction: true + isAuditEnabled: true + module: CENSUS + objectIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.Census + queryMaps: + - query: INSERT INTO .census(id, tenant_id, hierarchy_type, boundary_code, type, total_population, effective_from, effective_to, source, status, assignee, boundary_ancestral_path, facility_assigned, additional_details, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Census + jsonMaps: + - jsonPath: $.Census.id + - jsonPath: $.Census.tenantId + - jsonPath: $.Census.hierarchyType + - jsonPath: $.Census.boundaryCode + - jsonPath: $.Census.type + - jsonPath: $.Census.totalPopulation + - jsonPath: $.Census.effectiveFrom + - jsonPath: $.Census.effectiveTo + - jsonPath: $.Census.source + - jsonPath: $.Census.status + - jsonPath: $.Census.assignee + - jsonPath: $.Census.boundaryAncestralPath + - jsonPath: $.Census.facilityAssigned + - jsonPath: $.Census.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.Census.auditDetails.createdBy + - jsonPath: $.Census.auditDetails.createdTime + - jsonPath: $.Census.auditDetails.lastModifiedBy + - jsonPath: $.Census.auditDetails.lastModifiedTime + + - query: INSERT INTO .population_by_demographics(id, census_id, demographic_variable, population_distribution, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Census.populationByDemographics.* + jsonMaps: + - jsonPath: $.Census.populationByDemographics.*.id + - jsonPath: $.Census.id + - jsonPath: $.Census.populationByDemographics.*.demographicVariable + - jsonPath: $.Census.populationByDemographics.*.populationDistribution + type: JSON + dbType: JSONB + - jsonPath: $.Census.auditDetails.createdBy + - jsonPath: $.Census.auditDetails.createdTime + - jsonPath: $.Census.auditDetails.lastModifiedBy + - jsonPath: $.Census.auditDetails.lastModifiedTime + + - query: INSERT INTO .additional_field(id, census_id, key, value, show_on_ui, editable, "order") VALUES (?, ?, ?, ?, ?, ?, ?); + basePath: $.Census.additionalFields.* + jsonMaps: + - jsonPath: $.Census.additionalFields.*.id + - jsonPath: $.Census.id + - jsonPath: $.Census.additionalFields.*.key + - jsonPath: $.Census.additionalFields.*.value + - jsonPath: $.Census.additionalFields.*.showOnUi + - jsonPath: $.Census.additionalFields.*.editable + - jsonPath: $.Census.additionalFields.*.order + + - version: 1.0 + name: census + description: Updates census details + fromTopic: census-update-topic + isTransaction: true + isAuditEnabled: true + module: CENSUS + objectIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.Census + queryMaps: + - query: UPDATE .census SET status = ?, assignee = ?, additional_details = ?, facility_assigned = ?, effective_to = ?, last_modified_by = ?, last_modified_time = ? WHERE id = ?; + basePath: $.Census + jsonMaps: + - jsonPath: $.Census.status + - jsonPath: $.Census.assignee + - jsonPath: $.Census.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.Census.facilityAssigned + - jsonPath: $.Census.effectiveTo + - jsonPath: $.Census.auditDetails.lastModifiedBy + - jsonPath: $.Census.auditDetails.lastModifiedTime + - jsonPath: $.Census.id + + - query: INSERT INTO .population_by_demographics(id, census_id, demographic_variable, population_distribution, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET demographic_variable = ?, population_distribution = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.Census.populationByDemographics.* + jsonMaps: + - jsonPath: $.Census.populationByDemographics.*.id + - jsonPath: $.Census.id + - jsonPath: $.Census.populationByDemographics.*.demographicVariable + - jsonPath: $.Census.populationByDemographics.*.populationDistribution + type: JSON + dbType: JSONB + - jsonPath: $.Census.auditDetails.createdBy + - jsonPath: $.Census.auditDetails.createdTime + - jsonPath: $.Census.auditDetails.lastModifiedBy + - jsonPath: $.Census.auditDetails.lastModifiedTime + - jsonPath: $.Census.populationByDemographics.*.demographicVariable + - jsonPath: $.Census.populationByDemographics.*.populationDistribution + type: JSON + dbType: JSONB + - jsonPath: $.Census.auditDetails.lastModifiedBy + - jsonPath: $.Census.auditDetails.lastModifiedTime + + - query: INSERT INTO .additional_field(id, census_id, key, value, show_on_ui, editable, "order") VALUES (?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET value = ?, show_on_ui = ?, editable = ?, "order" = ?; + basePath: $.Census.additionalFields.* + jsonMaps: + - jsonPath: $.Census.additionalFields.*.id + - jsonPath: $.Census.id + - jsonPath: $.Census.additionalFields.*.key + - jsonPath: $.Census.additionalFields.*.value + - jsonPath: $.Census.additionalFields.*.showOnUi + - jsonPath: $.Census.additionalFields.*.editable + - jsonPath: $.Census.additionalFields.*.order + - jsonPath: $.Census.additionalFields.*.value + - jsonPath: $.Census.additionalFields.*.showOnUi + - jsonPath: $.Census.additionalFields.*.editable + - jsonPath: $.Census.additionalFields.*.order \ No newline at end of file diff --git a/egov-persister/chatbot.yml b/egov-persister/chatbot.yml deleted file mode 100644 index 5cd87288..00000000 --- a/egov-persister/chatbot.yml +++ /dev/null @@ -1,77 +0,0 @@ -serviceMaps: - serviceName: Chatbot Persister - mappings: - - version: 1.0 - name: chatbot-persister - description: Insert new conversationState to database - fromTopic: chatbot-conversation-state-insert - isTransaction: true - queryMaps: - - query: INSERT INTO eg_chat_conversation_state (conversation_id, user_id, active, locale) VALUES (?, ?, ?, ?); - basePath: $ - jsonMaps: - - - jsonPath: $.conversationId - - - jsonPath: $.userId - - - jsonPath: $.active - - - jsonPath: $.locale - - - version: 1.0 - name: chatbot-persister - description: Update conversationState - fromTopic: chatbot-conversation-state-update - isTransaction: true - queryMaps: - - query: UPDATE eg_chat_conversation_state SET active_node_id=?, question_details=?, last_modified_time=? WHERE conversation_id=?; - basePath: $ - jsonMaps: - - - jsonPath: $.activeNodeId - - - jsonPath: $.questionDetails - type: JSON - dbType: JSONB - - - jsonPath: $.lastModifiedTime - - - jsonPath: $.conversationId - - - version: 1.0 - name: chatbot-persister - description: Mark conversationState inactive - fromTopic: chatbot-conversation-state-deactivate - isTransaction: true - queryMaps: - - query: UPDATE eg_chat_conversation_state SET active=FALSE WHERE conversation_id=?; - basePath: $ - jsonMaps: - - - jsonPath: $.conversationId - - - - version: 1.0 - name: chatbot-persister - description: Save chatbot message - fromTopic: chatbot-message-insert - isTransaction: true - queryMaps: - - query: INSERT INTO eg_chat_message (message_id, conversation_id, node_id, raw_input, message_content, content_type, is_valid) VALUES (?, ?, ?, ?, ?, ?, ?); - basePath: $ - jsonMaps: - - - jsonPath: $.messageId - - - jsonPath: $.conversationId - - - jsonPath: $.nodeId - - - jsonPath: $.rawInput - - - jsonPath: $.messageContent - - - jsonPath: $.contentType - - - jsonPath: $.valid diff --git a/egov-persister/collection-migration-persister.yml b/egov-persister/collection-migration-persister.yml deleted file mode 100644 index 15571824..00000000 --- a/egov-persister/collection-migration-persister.yml +++ /dev/null @@ -1,241 +0,0 @@ -serviceMaps: - serviceName: Payment Service - mappings: - - version: 1.0 - name: collection migration - description: Inserting payment details into egcl_payment - fromTopic: egov-collection-migration-batch - queryMaps: - - - query: INSERT into egcl_payment (id, tenantid, totaldue, totalamountpaid, transactionnumber, transactiondate, paymentmode, instrumentdate, instrumentnumber, instrumentstatus, ifsccode, additionaldetails, paidby, mobilenumber, payername, payeraddress, payeremail, payerid, paymentstatus, createdby, createdtime, lastmodifiedby, lastmodifiedtime) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - basePath: $.Payments.* - jsonMaps: - - jsonPath: $.Payments.*.id - - - jsonPath: $.Payments.*.tenantId - - - jsonPath: $.Payments.*.totalDue - type: DOUBLE - - - jsonPath: $.Payments.*.totalAmountPaid - type: Double - - - jsonPath: $.Payments.*.transactionNumber - - - jsonPath: $.Payments.*.transactionDate - type: LONG - - - jsonPath: $.Payments.*.paymentMode - - - jsonPath: $.Payments.*.instrumentDate - type: LONG - - - jsonPath: $.Payments.*.instrumentNumber - - - jsonPath: $.Payments.*.instrumentStatus - - - jsonPath: $.Payments.*.ifscCode - - - jsonPath: $.Payments.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Payments.*.paidBy - - - jsonPath: $.Payments.*.mobileNumber - - - jsonPath: $.Payments.*.payerName - - - jsonPath: $.Payments.*.payerAddress - - - jsonPath: $.Payments.*.payerEmail - - - jsonPath: $.Payments.*.payerId - - - jsonPath: $.Payments.*.paymentStatus - - - jsonPath: $.Payments.*.auditDetails.createdBy - - - jsonPath: $.Payments.*.auditDetails.createdTime - type: LONG - - - jsonPath: $.Payments.*.auditDetails.lastModifiedBy - - - jsonPath: $.Payments.*.auditDetails.lastModifiedTime - type: LONG - - - - - - query: INSERT into egcl_paymentdetail (id, tenantid, paymentid, due, amountpaid, receiptnumber, receiptdate, receipttype, businessservice, billid, additionaldetails, createdby, createdtime, lastmodifiedby, lastmodifiedtime, manualreceiptnumber, manualreceiptdate) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - basePath: $.Payments.*.paymentDetails.* - jsonMaps: - - jsonPath: $.Payments.*.paymentDetails.*.id - - - jsonPath: $.Payments.*.paymentDetails.*.tenantId - - - jsonPath: $.Payments.*.paymentDetails.*.paymentId - - - jsonPath: $.Payments.*.paymentDetails.*.totalDue - type: DOUBLE - - - jsonPath: $.Payments.*.paymentDetails.*.totalAmountPaid - type: DOUBLE - - - jsonPath: $.Payments.*.paymentDetails.*.receiptNumber - - - jsonPath: $.Payments.*.paymentDetails.*.receiptDate - type: LONG - - - jsonPath: $.Payments.*.paymentDetails.*.receiptType - - - jsonPath: $.Payments.*.paymentDetails.*.businessService - - - jsonPath: $.Payments.*.paymentDetails.*.billId - - - jsonPath: $.Payments.*.paymentDetails.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Payments.*.paymentDetails.*.auditDetails.createdBy - - - jsonPath: $.Payments.*.paymentDetails.*.auditDetails.createdTime - type: LONG - - - jsonPath: $.Payments.*.paymentDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.Payments.*.paymentDetails.*.auditDetails.lastModifiedTime - type: LONG - - - jsonPath: $.Payments.*.paymentDetails.*.manualReceiptNumber - - - jsonPath: $.Payments.*.paymentDetails.*.manualReceiptDate - type: LONG - - - - query: INSERT into egcl_bill (id, status, iscancelled, additionaldetails, tenantid, collectionmodesnotallowed, partpaymentallowed, isadvanceallowed, minimumamounttobepaid, businessservice, totalamount, consumercode, billnumber, billdate, reasonforcancellation, createdby, createdtime, lastmodifiedby, lastmodifiedtime) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - basePath: $.Payments.*.paymentDetails.*.bill - jsonMaps: - - jsonPath: $.Payments.*.paymentDetails.*.bill.id - - - jsonPath: $.Payments.*.paymentDetails.*.bill.status - - - jsonPath: $.Payments.*.paymentDetails.*.bill.isCancelled - type: BOOLEAN - - - jsonPath: $.Payments.*.paymentDetails.*.bill.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Payments.*.paymentDetails.*.bill.tenantId - - - jsonPath: $.Payments.*.paymentDetails.*.bill.collectionModesNotAllowed[0] - - - jsonPath: $.Payments.*.paymentDetails.*.bill.partPaymentAllowed - type: BOOLEAN - - - jsonPath: $.Payments.*.paymentDetails.*.bill.isAdvanceAllowed - type: BOOLEAN - - - jsonPath: $.Payments.*.paymentDetails.*.bill.minimumAmountToBePaid - type: DOUBLE - - - jsonPath: $.Payments.*.paymentDetails.*.bill.businessService - - - jsonPath: $.Payments.*.paymentDetails.*.bill.totalAmount - type: DOUBLE - - - jsonPath: $.Payments.*.paymentDetails.*.bill.consumerCode - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billNumber - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDate - type: LONG - - - jsonPath: $.Payments.*.paymentDetails.*.bill.reasonForCancellation - - - jsonPath: $.Payments.*.paymentDetails.*.bill.auditDetails.createdBy - - - jsonPath: $.Payments.*.paymentDetails.*.bill.auditDetails.createdTime - type: LONG - - - jsonPath: $.Payments.*.paymentDetails.*.bill.auditDetails.lastModifiedBy - - - jsonPath: $.Payments.*.paymentDetails.*.bill.auditDetails.lastModifiedTime - type: LONG - - - - query: INSERT into egcl_billdetial (id, tenantid, demandid, billid, amount, amountpaid, fromperiod, toperiod, additionaldetails, channel, voucherheader, boundary, collectiontype, billdescription, expirydate, displaymessage, callbackforapportioning, cancellationremarks) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - basePath: $.Payments.*.paymentDetails.*.bill.billDetails.* - jsonMaps: - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.id - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.tenantId - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.demandId - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billId - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.amount - type: DOUBLE - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.amountPaid - type: DOUBLE - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.fromPeriod - type: LONG - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.toPeriod - type: LONG - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.channel - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.voucherHeader - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.boundary - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.collectionType - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billDescription - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.expiryDate - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.displayMessage - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.callBackForApportioning - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.cancellationRemarks - - - - query: INSERT into egcl_billaccountdetail (id, tenantid, billdetailid, demanddetailid, "order", amount, adjustedamount, isactualdemand, taxheadcode, additionaldetails) values(?,?,?,?,?,?,?,?,?,?) - basePath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.* - jsonMaps: - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.*.id - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.*.tenantId - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.*.billDetailId - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.*.demandDetailId - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.*.order - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.*.amount - type: DOUBLE - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.*.adjustedAmount - type: DOUBLE - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.*.isActualDemand - type: BOOLEAN - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.*.taxHeadCode - - - jsonPath: $.Payments.*.paymentDetails.*.bill.billDetails.*.billAccountDetails.*.additionalDetails - type: JSON - dbType: JSONB - diff --git a/egov-persister/digit-health-sync-service-persister.yml b/egov-persister/digit-health-sync-service-persister.yml deleted file mode 100644 index bedb5ae7..00000000 --- a/egov-persister/digit-health-sync-service-persister.yml +++ /dev/null @@ -1,47 +0,0 @@ -serviceMaps: - serviceName: Health Sync Service - mappings: - - version: 1.0 - name: health-sync-service - description: Persists sync log into the database - fromTopic: health-sync-log - isTransaction: true - queryMaps: - - query: INSERT INTO sync_log(id,referenceId,referenceIdType,tenantId,fileStoreId,checksum,status,comment,totalCount,successCount,errorCount,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $ - jsonMaps: - - jsonPath: $.syncId - - jsonPath: $.referenceId.id - - jsonPath: $.referenceId.type - - jsonPath: $.tenantId - - jsonPath: $.fileDetails.fileStoreId - - jsonPath: $.fileDetails.checksum - - jsonPath: $.status - - jsonPath: $.comment - - jsonPath: $.totalCount - - jsonPath: $.successCount - - jsonPath: $.errorCount - - jsonPath: $.auditDetails.createdBy - - jsonPath: $.auditDetails.lastModifiedBy - - jsonPath: $.auditDetails.createdTime - - jsonPath: $.auditDetails.lastModifiedTime - - version: 1.0 - name: health-sync-service - description: Persists sync error details log into the database - fromTopic: health-sync-error-details-log - isTransaction: true - queryMaps: - - query: INSERT INTO sync_error_details_log(id,syncLogId,tenantId,recordId,recordIdType,errorCodes,errorMessages,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $ - jsonMaps: - - jsonPath: $.syncErrorDetailsId - - jsonPath: $.syncId - - jsonPath: $.tenantId - - jsonPath: $.recordId - - jsonPath: $.recordIdType - - jsonPath: $.errorCodes - - jsonPath: $.errorMessages - - jsonPath: $.auditDetails.createdBy - - jsonPath: $.auditDetails.lastModifiedBy - - jsonPath: $.auditDetails.createdTime - - jsonPath: $.auditDetails.lastModifiedTime \ No newline at end of file diff --git a/egov-persister/dso-persister.yaml b/egov-persister/dso-persister.yaml deleted file mode 100644 index 9159798d..00000000 --- a/egov-persister/dso-persister.yaml +++ /dev/null @@ -1,103 +0,0 @@ -serviceMaps: - serviceName: vendor-registory - mappings: - - version: 1.0 - description: Vendor Registion Application details in eg_vendor table - fromTopic: save-vendor-application - isTransaction: true - queryMaps: - - - query: INSERT INTO public.eg_vendor( id, name, tenantid, additionaldetails, owner_id, description, source, status,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ); - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.id - - - jsonPath: $.vendor.name - - - jsonPath: $.vendor.tenantId - - - jsonPath: $.vendor.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vendor.owner.uuid - - - jsonPath: $.vendor.description - - - jsonPath: $.vendor.source - - - jsonPath: $.vendor.status - - - jsonPath: $.vendor.auditDetails.createdBy - - - jsonPath: $.vendor.auditDetails.lastModifiedBy - - - jsonPath: $.vendor.auditDetails.createdTime - - - jsonPath: $.vendor.auditDetails.lastModifiedTime - - - - query: INSERT INTO public.eg_vendor_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street, vendor_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.id - - - jsonPath: $.vendor.address.tenantId - - - jsonPath: $.vendor.address.doorNo - - - jsonPath: $.vendor.address.plotNo - - - jsonPath: $.vendor.address.landmark - - - jsonPath: $.vendor.address.city - - - jsonPath: $.vendor.address.district - - - jsonPath: $.vendor.address.region - - - jsonPath: $.vendor.address.state - - - jsonPath: $.vendor.address.country - - - jsonPath: $.vendor.address.locality.code - - - jsonPath: $.vendor.address.pincode - - - jsonPath: $.vendor.address.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vendor.address.buildingName - - - jsonPath: $.vendor.address.street - - - jsonPath: $.vendor.id - - - jsonPath: $.vendor.address.auditDetails.createdBy - - - jsonPath: $.vendor.address.auditDetails.lastModifiedBy - - - jsonPath: $.vendor.address.auditDetails.createdTime - - - jsonPath: $.vendor.address.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_vendor_driver( vendor_id, driver_id) VALUES ( ?, ?); - basePath: vendor.drivers.* - jsonMaps: - - - - jsonPath: $.vendor.id - - - jsonPath: $.vendor.drivers.*.uuid - - - query: INSERT INTO public.eg_vendor_vehicle( vendor_id,vechile_id) VALUES ( ?, ?); - basePath: vendor.vehicles.* - jsonMaps: - - - jsonPath: $.vendor.id - - - jsonPath: $.vendor.vehicles.*.id - diff --git a/egov-persister/echallan.yml b/egov-persister/echallan.yml deleted file mode 100644 index a451facf..00000000 --- a/egov-persister/echallan.yml +++ /dev/null @@ -1,128 +0,0 @@ -serviceMaps: - serviceName: echallan-services - mappings: - - version: 1.0.0 - description: Persists challan details in eg_echallan table - fromTopic: save-challan - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_echallan( id, accountid, tenantid, challanNo, businessService, referenceId, applicationStatus, receiptnumber, taxPeriodFrom,taxPeriodTo, additionalDetail, createdby, lastmodifiedby, createdtime, lastmodifiedtime,description,filestoreid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?,?); - basePath: Challan - jsonMaps: - - jsonPath: $.Challan.id - - - jsonPath: $.Challan.citizen.uuid - - - jsonPath: $.Challan.tenantId - - - jsonPath: $.Challan.challanNo - - - jsonPath: $.Challan.businessService - - - jsonPath: $.Challan.referenceId - - - jsonPath: $.Challan.applicationStatus - - - jsonPath: $.Challan.receiptNumber - - - jsonPath: $.Challan.taxPeriodFrom - - - jsonPath: $.Challan.taxPeriodTo - - - jsonPath: $.Challan.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Challan.auditDetails.createdBy - - - jsonPath: $.Challan.auditDetails.lastModifiedBy - - - jsonPath: $.Challan.auditDetails.createdTime - - - jsonPath: $.Challan.auditDetails.lastModifiedTime - - - jsonPath: $.Challan.description - - - jsonPath: $.Challan.filestoreid - - - query: INSERT INTO eg_challan_address( id, tenantid, doorno,plotNo,street,buildingName, latitude,longitude,locality, district, landmark,city,pincode, region, state,country, detail, echallanId, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Challan.address - jsonMaps: - - jsonPath: $.Challan.address.id - - - jsonPath: $.Challan.address.tenantId - - - jsonPath: $.Challan.address.doorNo - - - jsonPath: $.Challan.address.plotNo - - - jsonPath: $.Challan.address.street - - - jsonPath: $.Challan.address.buildingName - - - jsonPath: $.Challan.address.latitude - - - jsonPath: $.Challan.address.longitude - - - jsonPath: $.Challan.address.locality.code - - - jsonPath: $.Challan.address.district - - - jsonPath: $.Challan.address.landmark - - - jsonPath: $.Challan.address.city - - - jsonPath: $.Challan.address.pincode - - - jsonPath: $.Challan.address.region - - - jsonPath: $.Challan.address.state - - - jsonPath: $.Challan.address.country - - - jsonPath: $.Challan.address.detail - - - jsonPath: $.Challan.id - - - jsonPath: $.Challan.auditDetails.createdBy - - - jsonPath: $.Challan.auditDetails.lastModifiedBy - - - jsonPath: $.Challan.auditDetails.createdTime - - - jsonPath: $.Challan.auditDetails.lastModifiedTime - - - version: 1.0.0 - description: Update Challan details in eg_echallan table - fromTopic: update-challan - isTransaction: true - queryMaps: - - - query: UPDATE eg_echallan SET applicationStatus = ?, receiptnumber = ?, taxPeriodFrom = ?,taxPeriodTo = ?, lastmodifiedby = ?, lastmodifiedtime = ?,description = ?, additionalDetail = ?, filestoreid = ? WHERE id=?; - basePath: Challan - jsonMaps: - - - jsonPath: $.Challan.applicationStatus - - - jsonPath: $.Challan.receiptNumber - - - jsonPath: $.Challan.taxPeriodFrom - - - jsonPath: $.Challan.taxPeriodTo - - - jsonPath: $.Challan.auditDetails.lastModifiedBy - - - jsonPath: $.Challan.auditDetails.lastModifiedTime - - - jsonPath: $.Challan.description - - - jsonPath: $.Challan.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Challan.filestoreid - - - jsonPath: $.Challan.id - - diff --git a/egov-persister/egf-bill.yaml b/egov-persister/egf-bill.yaml deleted file mode 100644 index c8453a0e..00000000 --- a/egov-persister/egf-bill.yaml +++ /dev/null @@ -1,338 +0,0 @@ -serviceMaps: - serviceName: Financial Bill Service - mappings: - - version: 1.0 - name: bill create - description: create bills in egf_billregister - fromTopic: egf-bill-billregister-save-topic - queryMaps: - - query: INSERT INTO egf_billregister( tenantid, billtype, billsubtype, billnumber, billdate, billamount, passedamount, modulename, status, fund, function, fundsource, scheme, subscheme, functionary, location, department, sourcepath, budgetcheckrequired, budgetappropriationno, partybillnumber, partybilldate, description, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.billRegisters.* - jsonMaps: - - - jsonPath: $.billRegisters.*.tenantId - - - jsonPath: $.billRegisters.*.billType - - - jsonPath: $.billRegisters.*.billSubType - - - jsonPath: $.billRegisters.*.billNumber - - - jsonPath: $.billRegisters.*.billDate - dbType: LONG - - - jsonPath: $.billRegisters.*.billAmount - dbType: DOUBLE - - - jsonPath: $.billRegisters.*.passedAmount - dbType: DOUBLE - - - jsonPath: $.billRegisters.*.moduleName - - - jsonPath: $.billRegisters.*.status.code - - - jsonPath: $.billRegisters.*.fund.code - - - jsonPath: $.billRegisters.*.function.code - - - jsonPath: $.billRegisters.*.fundsource.code - - - jsonPath: $.billRegisters.*.scheme.code - - - jsonPath: $.billRegisters.*.subScheme.code - - - jsonPath: $.billRegisters.*.functionary.code - - - jsonPath: $.billRegisters.*.location.code - - - jsonPath: $.billRegisters.*.department.code - - - jsonPath: $.billRegisters.*.sourcePath - - - jsonPath: $.billRegisters.*.budgetCheckRequired - - - jsonPath: $.billRegisters.*.budgetAppropriationNo - - - jsonPath: $.billRegisters.*.partyBillNumber - - - jsonPath: $.billRegisters.*.partyBillDate - dbType: LONG - - - jsonPath: $.billRegisters.*.description - - - jsonPath: $.billRegisters.*.auditDetails.createdBy - - - jsonPath: $.billRegisters.*.auditDetails.lastModifiedBy - - - jsonPath: $.billRegisters.*.auditDetails.createdTime - dbType: LONG - - - jsonPath: $.billRegisters.*.auditDetails.lastModifiedTime - dbType: LONG - - - query: INSERT INTO egf_billdetail(tenantId, id, orderid, chartofaccount, debitamount, creditamount, function, bill, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.billRegisters.*.billDetails.* - jsonMaps: - - - jsonPath: $.billRegisters.*.billDetails.*.tenantId - - - jsonPath: $.billRegisters.*.billDetails.*.id - - - jsonPath: $.billRegisters.*.billDetails.*.orderId - dbType: INTEGER - - - jsonPath: $.billRegisters.*.billDetails.*.chartOfAccount.glcode - - - jsonPath: $.billRegisters.*.billDetails.*.debitAmount - dbType: DOUBLE - - - jsonPath: $.billRegisters.*.billDetails.*.creditAmount - dbType: DOUBLE - - - jsonPath: $.billRegisters.*.billDetails.*.function.code - - - jsonPath: $.billRegisters[?({id} in @.billDetails[*].id)].billNumber - - - jsonPath: $.billRegisters.*.billDetails.*.auditDetails.createdBy - - - jsonPath: $.billRegisters.*.billDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.billRegisters.*.billDetails.*.auditDetails.createdTime - dbType: LONG - - - jsonPath: $.billRegisters.*.billDetails.*.auditDetails.lastModifiedTime - dbType: LONG - - - query: INSERT INTO egf_billpayeedetail(tenantId, id, accountdetailtype, accountdetailkey, amount, billdetail, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.billRegisters.*.billDetails.*.billPayeeDetails.* - jsonMaps: - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.tenantId - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.id - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.accountDetailType.id - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.accountDetailKey.id - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.amount - dbType: DOUBLE - - - jsonPath: $.billRegisters.*.billDetails[?({id} in @.billPayeeDetails[*].id)].id - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.auditDetails.createdBy - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.auditDetails.createdTime - dbType: LONG - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.auditDetails.lastModifiedTime - dbType: LONG - - - query: INSERT INTO egf_billchecklist(tenantId, id, bill, checklist, checklistvalue, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.billRegisters.*.checkLists.* - jsonMaps: - - - jsonPath: $.billRegisters.*.checkLists.*.tenantId - - - jsonPath: $.billRegisters.*.checkLists.*.id - - - jsonPath: $.billRegisters[?({id} in @.checkLists[*].id)].billNumber - - - jsonPath: $.billRegisters.*.checkLists.*.checklist.code - - - jsonPath: $.billRegisters.*.checkLists.*.checklistValue - - - jsonPath: $.billRegisters.*.checkLists.*.auditDetails.createdBy - - - jsonPath: $.billRegisters.*.checkLists.*.auditDetails.lastModifiedBy - - - jsonPath: $.billRegisters.*.checkLists.*.auditDetails.createdTime - dbType: LONG - - - jsonPath: $.billRegisters.*.checkLists.*.auditDetails.lastModifiedTime - dbType: LONG - - - - version: 1.0 - name: bill update - description: update bills in egf_billregister - fromTopic: egf-bill-billregister-update-topic - queryMaps: - - query: update egf_billregister set billtype=? , billsubtype=? , billdate=? , billamount=? , passedamount=? , modulename=? , status=? , fund=? , function=? , fundsource=? , scheme=? , subscheme=? , functionary=? , location=? , department=? , sourcepath=? , budgetcheckrequired=? , budgetappropriationno=? , partybillnumber=? , partybilldate=? , description=? ,lastmodifiedby=? , lastmodifiedtime=? where tenantId=? and billNumber=?; - basePath: $.billRegisters.* - jsonMaps: - - - jsonPath: $.billRegisters.*.billType - - - jsonPath: $.billRegisters.*.billSubType - - - jsonPath: $.billRegisters.*.billDate - dbType: LONG - - - jsonPath: $.billRegisters.*.billAmount - dbType: DOUBLE - - - jsonPath: $.billRegisters.*.passedAmount - dbType: DOUBLE - - - jsonPath: $.billRegisters.*.moduleName - - - jsonPath: $.billRegisters.*.status.code - - - jsonPath: $.billRegisters.*.fund.code - - - jsonPath: $.billRegisters.*.function.code - - - jsonPath: $.billRegisters.*.fundsource.code - - - jsonPath: $.billRegisters.*.scheme.code - - - jsonPath: $.billRegisters.*.subScheme.code - - - jsonPath: $.billRegisters.*.functionary.code - - - jsonPath: $.billRegisters.*.location.code - - - jsonPath: $.billRegisters.*.department.code - - - jsonPath: $.billRegisters.*.sourcePath - - - jsonPath: $.billRegisters.*.budgetCheckRequired - - - jsonPath: $.billRegisters.*.budgetAppropriationNo - - - jsonPath: $.billRegisters.*.partyBillNumber - - - jsonPath: $.billRegisters.*.partyBillDate - dbType: LONG - - - jsonPath: $.billRegisters.*.description - - - jsonPath: $.billRegisters.*.auditDetails.lastModifiedBy - - - jsonPath: $.billRegisters.*.auditDetails.lastModifiedTime - dbType: LONG - - - jsonPath: $.billRegisters.*.tenantId - - - jsonPath: $.billRegisters.*.billNumber - - - query: INSERT INTO egf_billdetail(tenantId, id, orderid, chartofaccount, debitamount, creditamount, function, bill, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.billRegisters.*.billDetails.* - jsonMaps: - - - jsonPath: $.billRegisters.*.billDetails.*.tenantId - - - jsonPath: $.billRegisters.*.billDetails.*.id - - - jsonPath: $.billRegisters.*.billDetails.*.orderId - dbType: INTEGER - - - jsonPath: $.billRegisters.*.billDetails.*.chartOfAccount.glcode - - - jsonPath: $.billRegisters.*.billDetails.*.debitAmount - dbType: DOUBLE - - - jsonPath: $.billRegisters.*.billDetails.*.creditAmount - dbType: DOUBLE - - - jsonPath: $.billRegisters.*.billDetails.*.function.code - - - jsonPath: $.billRegisters[?({id} in @.billDetails[*].id)].billNumber - - - jsonPath: $.billRegisters.*.billDetails.*.auditDetails.createdBy - - - jsonPath: $.billRegisters.*.billDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.billRegisters.*.billDetails.*.auditDetails.createdTime - dbType: LONG - - - jsonPath: $.billRegisters.*.billDetails.*.auditDetails.lastModifiedTime - dbType: LONG - - - query: INSERT INTO egf_billpayeedetail(tenantId, id, accountdetailtype, accountdetailkey, amount, billdetail, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.billRegisters.*.billDetails.*.billPayeeDetails.* - jsonMaps: - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.tenantId - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.id - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.accountDetailType.id - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.accountDetailKey.id - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.amount - dbType: DOUBLE - - - jsonPath: $.billRegisters.*.billDetails[?({id} in @.billPayeeDetails[*].id)].id - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.auditDetails.createdBy - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.auditDetails.createdTime - dbType: LONG - - - jsonPath: $.billRegisters.*.billDetails.*.billPayeeDetails.*.auditDetails.lastModifiedTime - dbType: LONG - - - version: 1.0 - name: checklist create - description: create checklists in egf_checklist - fromTopic: egf-bill-checklist-save-topic - queryMaps: - - query: INSERT INTO egf_checklist(code, type, subType, key, description, createdby, lastmodifiedby, createdtime, lastmodifiedtime, tenantId) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.checklists.* - jsonMaps: - - - jsonPath: $.checklists.*.code - - - jsonPath: $.checklists.*.type - - - jsonPath: $.checklists.*.subType - - - jsonPath: $.checklists.*.key - - - jsonPath: $.checklists.*.description - - - jsonPath: $.checklists.*.auditDetails.createdBy - - - jsonPath: $.checklists.*.auditDetails.lastModifiedBy - - - jsonPath: $.checklists.*.auditDetails.createdTime - dbType: LONG - - - jsonPath: $.checklists.*.auditDetails.lastModifiedTime - dbType: LONG - - - jsonPath: $.checklists.*.tenantId - - - - version: 1.0 - name: checklist update - description: update checklists in egf_checklist - fromTopic: egf-bill-checklist-update-topic - queryMaps: - - query: update egf_checklist set type=?, subType=?, key=?, description=?, lastmodifiedby=?, lastmodifiedtime=? where code=? and tenantId=?; - basePath: $.checklists.* - jsonMaps: - - - jsonPath: $.checklists.*.type - - - jsonPath: $.checklists.*.subType - - - jsonPath: $.checklists.*.key - - - jsonPath: $.checklists.*.description - - - jsonPath: $.checklists.*.auditDetails.lastModifiedBy - - - jsonPath: $.checklists.*.auditDetails.lastModifiedTime - dbType: LONG - - - jsonPath: $.checklists.*.code - - - jsonPath: $.checklists.*.tenantId diff --git a/egov-persister/egov-document-upload-persister.yml b/egov-persister/egov-document-upload-persister.yml deleted file mode 100644 index 7b120ebe..00000000 --- a/egov-persister/egov-document-upload-persister.yml +++ /dev/null @@ -1,80 +0,0 @@ -serviceMaps: - serviceName: egov-document-uploader - mappings: - - version: 1.0 - description: Persists documents in eg_du_document table - fromTopic: save-du-document - isTransaction: true - queryMaps: - - query: INSERT INTO eg_du_document( uuid,tenantid,name,category,description,filestoreId,documentLink,postedby,fileType,fileSize,active,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: DocumentEntity - jsonMaps: - - jsonPath: $.DocumentEntity.uuid - - - jsonPath: $.DocumentEntity.tenantId - - - jsonPath: $.DocumentEntity.name - - - jsonPath: $.DocumentEntity.category - - - jsonPath: $.DocumentEntity.description - - - jsonPath: $.DocumentEntity.filestoreId - - - jsonPath: $.DocumentEntity.documentLink - - - jsonPath: $.DocumentEntity.postedBy - - - jsonPath: $.DocumentEntity.fileType - - - jsonPath: $.DocumentEntity.fileSize - - - jsonPath: $.DocumentEntity.active - - - jsonPath: $.DocumentEntity.auditDetails.createdBy - - - jsonPath: $.DocumentEntity.auditDetails.lastModifiedBy - - - jsonPath: $.DocumentEntity.auditDetails.createdTime - - - jsonPath: $.DocumentEntity.auditDetails.lastModifiedTime - - - version: 1.0 - description: Updates document in tables - fromTopic: update-du-document - isTransaction: true - queryMaps: - - query: UPDATE eg_du_document SET tenantid=?, name=?, category=?, documentLink=?, filestoreId=?, fileType=?, fileSize=?, lastmodifiedby=?, lastmodifiedtime=? WHERE uuid=?; - basePath: DocumentEntity - jsonMaps: - - jsonPath: $.DocumentEntity.tenantId - - - jsonPath: $.DocumentEntity.name - - - jsonPath: $.DocumentEntity.category - - - jsonPath: $.DocumentEntity.documentLink - - - jsonPath: $.DocumentEntity.filestoreId - - - jsonPath: $.DocumentEntity.fileType - - - jsonPath: $.DocumentEntity.fileSize - - - jsonPath: $.DocumentEntity.auditDetails.lastModifiedBy - - - jsonPath: $.DocumentEntity.auditDetails.lastModifiedTime - - - jsonPath: $.DocumentEntity.uuid - - - version: 1.0 - description: Deletes document in tables - fromTopic: delete-du-document - isTransaction: true - queryMaps: - - query: UPDATE eg_du_document SET active=? WHERE uuid=?; - basePath: DocumentEntity - jsonMaps: - - jsonPath: $.DocumentEntity.active - - - jsonPath: $.DocumentEntity.uuid \ No newline at end of file diff --git a/egov-persister/egov-survey-service-persister.yml b/egov-persister/egov-survey-service-persister.yml deleted file mode 100644 index 95b67739..00000000 --- a/egov-persister/egov-survey-service-persister.yml +++ /dev/null @@ -1,193 +0,0 @@ -serviceMaps: - serviceName: egov-survey-services - mappings: - - version: 1.0 - description: Persists surveys in eg_ss_survey table - fromTopic: save-ss-survey - isTransaction: true - queryMaps: - - query: INSERT INTO eg_ss_survey( uuid,tenantid,title,description,status,postedby,startDate,endDate,collectCitizenInfo,active,tags,entityType,entityId,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.* - jsonMaps: - - jsonPath: $.*.uuid - - - jsonPath: $.*.tenantId - - - jsonPath: $.*.title - - - jsonPath: $.*.description - - - jsonPath: $.*.status - - - jsonPath: $.*.postedBy - - - jsonPath: $.*.startDate - - - jsonPath: $.*.endDate - - - jsonPath: $.*.collectCitizenInfo - - - jsonPath: $.*.active - - - jsonPath: $.*.tags - type: ARRAY - dbType: STRING - - - jsonPath: $.*.entityType - - - jsonPath: $.*.entityId - - - jsonPath: $.*.auditDetails.createdBy - - - jsonPath: $.*.auditDetails.lastModifiedBy - - - jsonPath: $.*.auditDetails.createdTime - - - jsonPath: $.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_ss_question( uuid,surveyid,questionstatement,options,status,type,required,extraInfo,createdby,lastmodifiedby,createdtime,lastmodifiedtime,qorder) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.*.questions.* - jsonMaps: - - jsonPath: $.*.questions.*.uuid - - - jsonPath: $.*.questions.*.surveyId - - - jsonPath: $.*.questions.*.questionStatement - - - jsonPath: $.*.questions.*.options - type: ARRAY - dbType: STRING - - - jsonPath: $.*.questions.*.status - - - jsonPath: $.*.questions.*.type - - - jsonPath: $.*.questions.*.required - - - jsonPath: $.*.questions.*.extraInfo - - - jsonPath: $.*.questions.*.auditDetails.createdBy - - - jsonPath: $.*.questions.*.auditDetails.lastModifiedBy - - - jsonPath: $.*.questions.*.auditDetails.createdTime - - - jsonPath: $.*.questions.*.auditDetails.lastModifiedTime - - - jsonPath: $.*.questions.*.qorder - - - version: 1.0 - description: Persists answers in eg_ss_answer table - fromTopic: save-ss-answer - isTransaction: true - queryMaps: - - query: INSERT INTO eg_ss_answer( uuid,questionid,surveyid,answer,citizenid,mobilenumber,emailid,additionalComments,entityId,entityType,additionalDetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: AnswerEntity.answers.* - jsonMaps: - - jsonPath: $.AnswerEntity.answers.*.uuid - - - jsonPath: $.AnswerEntity.answers.*.questionId - - - jsonPath: $.AnswerEntity.surveyId - - - jsonPath: $.AnswerEntity.answers.*.answer - type: ARRAY - dbType: STRING - - - jsonPath: $.AnswerEntity.answers.*.citizenId - - - jsonPath: $.AnswerEntity.answers.*.mobileNumber - - - jsonPath: $.AnswerEntity.answers.*.emailId - - - jsonPath: $.AnswerEntity.answers.*.additionalComments - - - jsonPath: $.AnswerEntity.answers.*.entityId - - - jsonPath: $.AnswerEntity.answers.*.entityType - - - jsonPath: $.AnswerEntity.answers.*.additionalFields - type: JSON - dbType: JSONB - - - jsonPath: $.AnswerEntity.answers.*.auditDetails.createdBy - - - jsonPath: $.AnswerEntity.answers.*.auditDetails.lastModifiedBy - - - jsonPath: $.AnswerEntity.answers.*.auditDetails.createdTime - - - jsonPath: $.AnswerEntity.answers.*.auditDetails.lastModifiedTime - - - version: 1.0 - description: Updates survey in tables - fromTopic: update-ss-survey - isTransaction: true - queryMaps: - - query: UPDATE eg_ss_survey SET tenantid=?, title=?, description=?, status=?, postedBy=?, startDate = ?, endDate = ?, collectCitizenInfo = ?, tags = ?, entityType = ?, entityId = ?, lastmodifiedby=?, lastmodifiedtime=? WHERE uuid=?; - basePath: $.* - jsonMaps: - - jsonPath: $.*.tenantId - - - jsonPath: $.*.title - - - jsonPath: $.*.description - - - jsonPath: $.*.status - - - jsonPath: $.*.postedBy - - - jsonPath: $.*.startDate - - - jsonPath: $.*.endDate - - - jsonPath: $.*.collectCitizenInfo - - - jsonPath: $.*.tags - type: ARRAY - dbType: STRING - - - jsonPath: $.*.entityType - - - jsonPath: $.*.entityId - - - jsonPath: $.*.auditDetails.lastModifiedBy - - - jsonPath: $.*.auditDetails.lastModifiedTime - - - jsonPath: $.*.uuid - - - query: UPDATE eg_ss_question SET questionstatement = ?, options = ?, status = ?, type = ?, required = ?, extraInfo = ?, lastmodifiedby = ?, lastmodifiedtime = ? WHERE uuid = ?; - basePath: $.*.questions.* - jsonMaps: - - - jsonPath: $.*.questions.*.questionStatement - - - jsonPath: $.*.questions.*.options - type: ARRAY - dbType: STRING - - - jsonPath: $.*.questions.*.status - - - jsonPath: $.*.questions.*.type - - - jsonPath: $.*.questions.*.required - - - jsonPath: $.*.questions.*.extraInfo - - - jsonPath: $.*.questions.*.auditDetails.lastModifiedBy - - - jsonPath: $.*.questions.*.auditDetails.lastModifiedTime - - - jsonPath: $.*.questions.*.uuid - - - version: 1.0 - description: Deletes survey in tables - fromTopic: delete-ss-survey - isTransaction: true - queryMaps: - - query: UPDATE eg_ss_survey SET active=? WHERE uuid=?; - basePath: SurveyEntity - jsonMaps: - - jsonPath: $.SurveyEntity.active - - - jsonPath: $.SurveyEntity.uuid \ No newline at end of file diff --git a/egov-persister/facility-persister.yml b/egov-persister/facility-persister.yml index 4259bbd2..a3c59aed 100644 --- a/egov-persister/facility-persister.yml +++ b/egov-persister/facility-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a facility fromTopic: save-facility-topic isTransaction: true + isAuditEnabled: true + module: FACILITY + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO FACILITY(id, clientReferenceId, tenantId, isPermanent, name, usage, storageCapacity, addressId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -51,6 +58,13 @@ serviceMaps: description: Updates a facility fromTopic: update-facility-topic isTransaction: true + isAuditEnabled: true + module: FACILITY + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE FACILITY SET tenantId=?, clientReferenceId=?, isPermanent=?, name=?, usage=?, storageCapacity=?, addressId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; basePath: $.* @@ -109,6 +123,13 @@ serviceMaps: description: Deletes a facility fromTopic: delete-facility-topic isTransaction: true + isAuditEnabled: true + module: FACILITY + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE FACILITY SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* diff --git a/egov-persister/firenoc-calculator-persister.yml b/egov-persister/firenoc-calculator-persister.yml deleted file mode 100644 index 006f77a7..00000000 --- a/egov-persister/firenoc-calculator-persister.yml +++ /dev/null @@ -1,86 +0,0 @@ -serviceMaps: - serviceName: FIRENOC_CALCULATOR - mappings: - - version: 1.0 - name: firenoc-calculator - description: Persists billing slab details in the table - fromTopic: save-firenoc-calculator-billingslab - isTransaction: true - queryMaps: - - query: INSERT INTO eg_firenoc_billingslab (id, tenantid, isactive , firenoctype, buildingusagetype, calculationtype, uom, fromuom, touom, fromdate, todate, rate, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - - basePath: BillingSlabs.* - jsonMaps: - - jsonPath: $.BillingSlabs.*.id - - - jsonPath: $.BillingSlabs.*.tenantId - - - jsonPath: $.BillingSlabs.*.isActive - - - jsonPath: $.BillingSlabs.*.fireNOCType - - - jsonPath: $.BillingSlabs.*.buildingUsageType - - - jsonPath: $.BillingSlabs.*.calculationType - - - jsonPath: $.BillingSlabs.*.uom - - - jsonPath: $.BillingSlabs.*.fromUom - - - jsonPath: $.BillingSlabs.*.toUom - - - jsonPath: $.BillingSlabs.*.fromDate - - - jsonPath: $.BillingSlabs.*.toDate - - - jsonPath: $.BillingSlabs.*.rate - - - jsonPath: $.BillingSlabs.*.auditDetails.createdBy - - - jsonPath: $.BillingSlabs.*.auditDetails.createdDate - - - jsonPath: $.BillingSlabs.*.auditDetails.lastModifiedBy - - - jsonPath: $.BillingSlabs.*.auditDetails.lastModifiedDate - - - version: 1.0 - name: firenoc-calculator - description: Persists billing slab details in the table - fromTopic: update-firenoc-calculator-billingslab - isTransaction: true - queryMaps: - - query: UPDATE eg_firenoc_billingslab SET isactive=?, firenoctype=?, buildingusagetype=?, calculationtype=?, uom=?, fromuom=?, touom=?, fromdate=?, todate=?, rate=?, createdby=?, createddate=?, lastmodifiedby=?, lastModifiedDate=? WHERE id=? AND tenantid=?; - - basePath: BillingSlabs.* - jsonMaps: - - jsonPath: $.BillingSlabs.*.isActive - - - jsonPath: $.BillingSlabs.*.fireNOCType - - - jsonPath: $.BillingSlabs.*.buildingUsageType - - - jsonPath: $.BillingSlabs.*.calculationType - - - jsonPath: $.BillingSlabs.*.uom - - - jsonPath: $.BillingSlabs.*.fromUom - - - jsonPath: $.BillingSlabs.*.toUom - - - jsonPath: $.BillingSlabs.*.fromDate - - - jsonPath: $.BillingSlabs.*.toDate - - - jsonPath: $.BillingSlabs.*.rate - - - jsonPath: $.BillingSlabs.*.auditDetails.createdBy - - - jsonPath: $.BillingSlabs.*.auditDetails.createdDate - - - jsonPath: $.BillingSlabs.*.auditDetails.lastModifiedBy - - - jsonPath: $.BillingSlabs.*.auditDetails.lastModifiedDate - - - jsonPath: $.BillingSlabs.*.id - - - jsonPath: $.BillingSlabs.*.tenantId \ No newline at end of file diff --git a/egov-persister/firenoc_persiter.yaml b/egov-persister/firenoc_persiter.yaml deleted file mode 100644 index 9ad3710f..00000000 --- a/egov-persister/firenoc_persiter.yaml +++ /dev/null @@ -1,585 +0,0 @@ -serviceMaps: - serviceName: fn-services - mappings: - - version: 1.0 - description: Persists fireNOC details in eg_fn_firenoc table - fromTopic: save-fn-firenoc - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_fn_firenoc(uuid, tenantid, firenocnumber, provisionfirenocnumber, oldfirenocnumber, dateofapplied, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: FireNOCs.* - jsonMaps: - - jsonPath: $.FireNOCs.*.id - - - jsonPath: $.FireNOCs.*.tenantId - - - jsonPath: $.FireNOCs.*.firenocnumber - - - jsonPath: $.FireNOCs.*.provisionfirenocnumber - - - jsonPath: $.FireNOCs.*.oldfirenocnumber - - - jsonPath: $.FireNOCs.*.dateofapplied - - - jsonPath: $.FireNOCs.*.auditDetails.createdBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.createdTime - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_fn_firenocdetail(uuid, firenocuuid, applicationnumber, firenoctype, firestationid, applicationdate, financialyear, issueddate, validfrom, validto, action,channel, noofbuildings, tenantid, additionaldetail, createdby, lastmodifiedby, createdtime, lastmodifiedtime, propertyid,status) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?); - basePath: FireNOCs.*.fireNOCDetails - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.id - - - jsonPath: $.FireNOCs.*.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicationNumber - - - jsonPath: $.FireNOCs.*.fireNOCDetails.fireNOCType - - - jsonPath: $.FireNOCs.*.fireNOCDetails.firestationId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicationDate - - - jsonPath: $.FireNOCs.*.fireNOCDetails.financialYear - - - jsonPath: $.FireNOCs.*.fireNOCDetails.issuedDate - - - jsonPath: $.FireNOCs.*.fireNOCDetails.validFrom - - - jsonPath: $.FireNOCs.*.fireNOCDetails.validTo - - - jsonPath: $.FireNOCs.*.fireNOCDetails.action - - - jsonPath: $.FireNOCs.*.fireNOCDetails.channel - - - jsonPath: $.FireNOCs.*.fireNOCDetails.noOfBuildings - - - jsonPath: $.FireNOCs.*.fireNOCDetails.tenantId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.FireNOCs.*.auditDetails.createdBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.createdTime - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.propertyid - - - jsonPath: $.FireNOCs.*.fireNOCDetails.status - - - - query: INSERT INTO eg_fn_owner(uuid, tenantid, firenocdetailsuuid, isactive, isprimaryowner, ownertype, ownershippercentage, relationship, active, institutionid, createdby, createdtime, lastmodifiedby, lastmodifiedtime, useruuid, applicantcategory) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: FireNOCs.*.fireNOCDetails.applicantDetails.owners.* - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.ownerUUID - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.tenantId - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].fireNOCDetails.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.isActive - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.isPrimaryOwner - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].fireNOCDetails.applicantDetails.ownerShipType - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.ownerShipPercentage - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.relationship - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.active - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].fireNOCDetails.applicantDetails.additionalDetail.id - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].auditDetails.createdBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].auditDetails.createdTime - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.uuid - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.ownerType - - - - query: INSERT INTO public.eg_fn_address(uuid, tenantid, doorno, latitude, longitude, buildingname, addressid, addressnumber, type, addressline1, addressline2, landmark, street, city, locality, pincode, detail, firenocdetailsuuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: FireNOCs.*.fireNOCDetails.propertyDetails.address - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.tenantId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.doorNo - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.latitude - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.longitude - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.buildingName - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.addressId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.addressNumber - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.type - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.addressline1 - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.addressline1 - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.landmark - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.street - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.city - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.locality.code - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.pincode - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.detail - - - jsonPath: $.FireNOCs.*.fireNOCDetails.id - - - jsonPath: $.FireNOCs.*.auditDetails.createdBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.createdTime - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - query: INSERT INTO public.eg_fn_institution(uuid, tenantid, firenocdetailsuuid, name, type, designation, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail - jsonMaps: - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.tenantId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.name - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.type - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.designation - - - jsonPath: $.FireNOCs.*.auditDetails.createdBy - - - jsonPath: $.FireNOCs.*.auditDetails.createdTime - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_fn_buidlings(uuid, firenocdetailsuuid, tenantid, name, createdby, lastmodifiedby, createdtime, lastmodifiedtime, usagetype) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: FireNOCs.*.fireNOCDetails.buildings.* - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.id - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].fireNOCDetails.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.tenantId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.name - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].auditDetails.createdBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].auditDetails.createdTime - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.usageType - - - query: INSERT INTO eg_fn_buildingdocuments(uuid, tenantid, documenttype, filestoreid, active, documentuid, createdby, createdtime, lastmodifiedby, lastmodifiedtime, buildinguuid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.* - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.id - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].tenantId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.documentType - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.fileStoreId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.active - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.documentUid - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings[*][?({id} in @.applicationDocuments[*].id)].id - - - query: INSERT INTO eg_fn_buildinguoms(uuid, code, activeuom, active, createdby, lastmodifiedby, createdtime, lastmodifiedtime, buildinguuid,value) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?,?); - basePath: FireNOCs.*.fireNOCDetails.buildings.*.uoms.* - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.code - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.isActiveUom - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.active - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.uoms[*].id)].auditDetails.createdBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.uoms[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.uoms[*].id)].auditDetails.createdTime - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.uoms[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings[*][?({id} in @.uoms[*].id)].id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.value - - - version: 1.0 - description: Update fire NOC details in eg_fn_firenoc table - fromTopic: update-fn-firenoc - isTransaction: true - queryMaps: - - - query: UPDATE eg_fn_firenoc SET provisionFireNOCNumber = ?,oldFireNOCNumber = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE uuid=?; - basePath: FireNOCs.* - jsonMaps: - - jsonPath: $.FireNOCs.*.provisionFireNOCNumber - - - jsonPath: $.FireNOCs.*.oldFireNOCNumber - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.id - - - - query: UPDATE eg_fn_firenocdetail SET fireNOCType = ?, firestationId = ?, additionaldetail = ?,financialYear = ?,action = ?,status=?,channel = ?,noOfBuildings = ?,propertyId = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE uuid = ?; - basePath: FireNOCs.*.fireNOCDetails - jsonMaps: - - - jsonPath: $.FireNOCs.*.fireNOCDetails.fireNOCType - - - jsonPath: $.FireNOCs.*.fireNOCDetails.firestationId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.FireNOCs.*.fireNOCDetails.financialYear - - - jsonPath: $.FireNOCs.*.fireNOCDetails.action - - - jsonPath: $.FireNOCs.*.fireNOCDetails.status - - - jsonPath: $.FireNOCs.*.fireNOCDetails.channel - - - jsonPath: $.FireNOCs.*.fireNOCDetails.noOfBuildings - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.propertyId - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.id - - - - query: INSERT INTO eg_fn_buidlings(uuid, tenantid, name, usageType, firenocdetailsuuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (uuid) DO UPDATE SET active = ?, name = ?, usageType = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: FireNOCs.*.fireNOCDetails.buildings.* - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.tenantId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.name - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.usageType - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].fireNOCDetails.id - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].auditDetails.createdBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].auditDetails.createdTime - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.active - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.name - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.usageType - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_fn_buildingdocuments(uuid, tenantid, documenttype, filestoreid, active, documentuid, createdby, createdtime, lastmodifiedby, lastmodifiedtime, buildinguuid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (uuid) DO UPDATE SET active = ?,documentType = ?, fileStoreId = ?, documentUid=?,lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.* - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.id - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].tenantId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.documentType - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.fileStoreId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.active - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.documentUid - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings[*][?({id} in @.applicationDocuments[*].id)].id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.active - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.documentType - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.fileStoreId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.applicationDocuments.*.documentUid - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - query: INSERT INTO eg_fn_buildinguoms(uuid, code, activeuom, active, createdby, lastmodifiedby, createdtime, lastmodifiedtime, buildinguuid,value) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?,?) ON CONFLICT (uuid) DO UPDATE SET active = ?,code = ?, activeuom = ?, value=?,lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: FireNOCs.*.fireNOCDetails.buildings.*.uoms.* - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.code - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.isActiveUom - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.active - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.uoms[*].id)].auditDetails.createdBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.uoms[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.uoms[*].id)].auditDetails.createdTime - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.uoms[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings[*][?({id} in @.uoms[*].id)].id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.value - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.active - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.code - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.isActiveUom - - - jsonPath: $.FireNOCs.*.fireNOCDetails.buildings.*.uoms.*.value - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.uoms[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.buildings.*.uoms[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_fn_owner(uuid, tenantid, firenocdetailsuuid, isactive, isprimaryowner, ownertype, ownershippercentage, relationship, active, institutionid, createdby, createdtime, lastmodifiedby, lastmodifiedtime, useruuid, applicantcategory) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT ON CONSTRAINT pk_eg_fn_owner DO UPDATE SET active = ?, isprimaryowner = ?, ownertype = ?, ownershippercentage = ?, relationship = ?, useruuid = ?, applicantcategory = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: FireNOCs.*.fireNOCDetails.applicantDetails.owners.* - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.ownerUUID - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.tenantId - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].fireNOCDetails.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.userActive - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.isPrimaryOwner - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].fireNOCDetails.applicantDetails.ownerShipType - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.ownerShipPercentage - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.relationship - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.active - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].fireNOCDetails.applicantDetails.additionalDetail.id - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].auditDetails.createdBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].auditDetails.createdTime - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.uuid - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.ownerType - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.userActive - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.isPrimaryOwner - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].fireNOCDetails.applicantDetails.ownerShipType - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.ownerShipPercentage - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.relationship - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.uuid - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.owners.*.ownerType - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs[*][?({id} in @.fireNOCDetails.applicantDetails.owners[*].id)].auditDetails.lastModifiedTime - - - query: UPDATE eg_fn_address SET doorno =?,street = ?,buildingName = ?, latitude =?, longitude =?, addressid =?, addressnumber =?,locality =?, type =?, addressline1 =?, addressline2 =?, landmark =?, city =?, pincode =?, detail =?,lastmodifiedby =?, lastmodifiedtime =? WHERE uuid =?; - basePath: FireNOCs.*.fireNOCDetails.propertyDetails.address - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.doorNo - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.street - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.buildingName - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.latitude - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.longitude - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.addressId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.addressNumber - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.locality.code - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.type - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.addressline1 - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.addressline1 - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.landmark - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.city - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.pincode - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.detail - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.propertyDetails.address.id - - - - query: INSERT INTO eg_fn_institution(tenantId,uuid, firenocdetailsuuid, name, type,designation, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (uuid) DO UPDATE SET active = ?,name = ?,type = ?,designation = ?, lastmodifiedby = ?,lastmodifiedtime = ?; - basePath: FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail - jsonMaps: - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.tenantId - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.id - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.name - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.type - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.designation - - - jsonPath: $.FireNOCs.*.auditDetails.createdBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.createdTime - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.active - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.name - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.type - - - jsonPath: $.FireNOCs.*.fireNOCDetails.applicantDetails.additionalDetail.designation - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - - version: 1.0 - description: Persists tradeLicense details in eg_fn_firenoc table - fromTopic: update-fn-workflow - isTransaction: true - queryMaps: - - - query: UPDATE eg_fn_firenoc SET fireNOCNumber = ?, lastmodifiedby = ?, lastmodifiedtime = ? WHERE uuid=?; - basePath: FireNOCs.* - jsonMaps: - - - jsonPath: $.FireNOCs.*.fireNOCNumber - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.id - - - - query: UPDATE eg_fn_firenocdetail SET validFrom=?,validTo=?,issueddate = ?, action = ?,status=?, additionaldetail = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE uuid = ?; - basePath: FireNOCs.*.fireNOCDetails - jsonMaps: - - - jsonPath: $.FireNOCs.*.fireNOCDetails.validFrom - - - jsonPath: $.FireNOCs.*.fireNOCDetails.validTo - - - jsonPath: $.FireNOCs.*.fireNOCDetails.issuedDate - - - jsonPath: $.FireNOCs.*.fireNOCDetails.action - - - jsonPath: $.FireNOCs.*.fireNOCDetails.status - - - jsonPath: $.FireNOCs.*.fireNOCDetails.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedBy - - - jsonPath: $.FireNOCs.*.auditDetails.lastModifiedTime - - - jsonPath: $.FireNOCs.*.fireNOCDetails.id - diff --git a/egov-persister/fsm-calculator-persister.yaml b/egov-persister/fsm-calculator-persister.yaml deleted file mode 100644 index c6e0e4c6..00000000 --- a/egov-persister/fsm-calculator-persister.yaml +++ /dev/null @@ -1,73 +0,0 @@ -serviceMaps: - serviceName: fsm-calculator - mappings: - - version: 1.0 - description: Persists FSM-CALCULATOR Application details in eg_billing_slab table - fromTopic: save-fsm-billing-slab - isTransaction: true - queryMaps: - - - query: INSERT INTO public.eg_billing_slab(id,tenantid,capacityfrom,capacityto,propertytype,slum,price,status,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); - basePath: billingSlab - jsonMaps: - - jsonPath: $.billingSlab.id - - - jsonPath: $.billingSlab.tenantId - - - jsonPath: $.billingSlab.capacityFrom - - - jsonPath: $.billingSlab.capacityTo - - - jsonPath: $.billingSlab.propertyType - - - jsonPath: $.billingSlab.slum - - - jsonPath: $.billingSlab.price - - - jsonPath: $.billingSlab.status - - - jsonPath: $.billingSlab.auditDetails.createdBy - - - jsonPath: $.billingSlab.auditDetails.lastModifiedBy - - - jsonPath: $.billingSlab.auditDetails.createdTime - - - jsonPath: $.billingSlab.auditDetails.lastModifiedTime - - - version: 1.0 - description: updates FSM-CALCULATOR Application details in eg_billing_slab table - fromTopic: update-fsm-billing-slab - isTransaction: true - queryMaps: - - - query: INSERT INTO public.eg_billing_slab_auditlog SELECT * FROM public.eg_billing_slab WHERE id =? - basePath: billingSlab - jsonMaps: - - jsonPath: $.billingSlab.id - - - query: UPDATE public.eg_billing_slab SET tenantid=?, capacityfrom=?, capacityto=?, propertytype=?, slum=?, price=?, status=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? - basePath: billingSlab - jsonMaps: - - jsonPath: $.billingSlab.tenantId - - - jsonPath: $.billingSlab.capacityFrom - - - jsonPath: $.billingSlab.capacityTo - - - jsonPath: $.billingSlab.propertyType - - - jsonPath: $.billingSlab.slum - - - jsonPath: $.billingSlab.price - - - jsonPath: $.billingSlab.status - - - jsonPath: $.billingSlab.auditDetails.createdBy - - - jsonPath: $.billingSlab.auditDetails.lastModifiedBy - - - jsonPath: $.billingSlab.auditDetails.createdTime - - - jsonPath: $.billingSlab.auditDetails.lastModifiedTime - - - jsonPath: $.billingSlab.id diff --git a/egov-persister/fsm-persister.yaml b/egov-persister/fsm-persister.yaml deleted file mode 100644 index e63806cd..00000000 --- a/egov-persister/fsm-persister.yaml +++ /dev/null @@ -1,448 +0,0 @@ ---- -serviceMaps: - mappings: - - - description: "Persists FSM Application details in eg_fsm_application table" - fromTopic: save-fsm-application - isTransaction: true - queryMaps: - - - basePath: fsm - jsonMaps: - - - jsonPath: $.fsm.id - - - jsonPath: $.fsm.applicationNo - - - jsonPath: $.fsm.tenantId - - - dbType: JSONB - jsonPath: $.fsm.additionalDetails - type: JSON - - - jsonPath: $.fsm.accountId - - - jsonPath: $.fsm.description - - - jsonPath: $.fsm.applicationStatus - - - jsonPath: $.fsm.source - - - jsonPath: $.fsm.sanitationtype - - - jsonPath: $.fsm.propertyUsage - - - jsonPath: $.fsm.noOfTrips - - - jsonPath: $.fsm.status - - - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.vehicleType - - - jsonPath: $.fsm.vehicleCapacity - - - jsonPath: $.fsm.paymentPreference - - - jsonPath: $.fsm.applicationType - - - jsonPath: $.fsm.oldApplicationNo - - - jsonPath: $.fsm.auditDetails.createdBy - - - jsonPath: $.fsm.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.auditDetails.createdTime - - - jsonPath: $.fsm.auditDetails.lastModifiedTime - query: "INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id, vehicletype, vehicleCapacity, paymentPreference, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);" - - - basePath: fsm.address - jsonMaps: - - - jsonPath: $.fsm.address.id - - - jsonPath: $.fsm.address.tenantId - - - jsonPath: $.fsm.address.doorNo - - - jsonPath: $.fsm.address.plotNo - - - jsonPath: $.fsm.address.landmark - - - jsonPath: $.fsm.address.city - - - jsonPath: $.fsm.address.district - - - jsonPath: $.fsm.address.region - - - jsonPath: $.fsm.address.state - - - jsonPath: $.fsm.address.country - - - jsonPath: $.fsm.address.locality.code - - - jsonPath: $.fsm.address.pincode - - - dbType: JSONB - jsonPath: $.fsm.address.additionalDetails - type: JSON - - - jsonPath: $.fsm.address.buildingName - - - jsonPath: $.fsm.address.street - - - jsonPath: $.fsm.address.slumName - - - jsonPath: $.fsm.id - - - jsonPath: $.fsm.address.auditDetails.createdBy - - - jsonPath: $.fsm.address.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.address.auditDetails.createdTime - - - jsonPath: $.fsm.address.auditDetails.lastModifiedTime - query: "INSERT INTO eg_fsm_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street,slumname, fsm_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);" - - - basePath: fsm.address.geoLocation - jsonMaps: - - - jsonPath: $.fsm.address.geoLocation.id - - - dbType: DOUBLE - jsonPath: $.fsm.address.geoLocation.latitude - type: DOUBLE - - - dbType: DOUBLE - jsonPath: $.fsm.address.geoLocation.longitude - type: DOUBLE - - - dbType: JSONB - jsonPath: $.fsm.address.geoLocation.additionalDetails - type: JSON - - - jsonPath: $.fsm.address.id - query: "INSERT INTO eg_fsm_geolocation( id, latitude, longitude, additionaldetails, address_id) VALUES (?, ?, ?, ?, ?);" - - - basePath: fsm.pitDetail - jsonMaps: - - - jsonPath: $.fsm.pitDetail.id - - - jsonPath: $.fsm.pitDetail.tenantId - - - jsonPath: $.fsm.pitDetail.height - - - jsonPath: $.fsm.pitDetail.length - - - jsonPath: $.fsm.pitDetail.width - - - jsonPath: $.fsm.pitDetail.diameter - - - jsonPath: $.fsm.pitDetail.distanceFromRoad - - - jsonPath: $.fsm.id - - - dbType: JSONB - jsonPath: $.fsm.pitDetail.additionalDetails - type: JSON - - - jsonPath: $.fsm.pitDetail.auditDetails.createdBy - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.pitDetail.auditDetails.createdTime - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime - query: "INSERT INTO eg_fsm_pit_detail( id, tenantid, height, length, width, diameter, distancefromroad, fsm_id, additionaldetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);" - version: 1.0 - - - description: "Persists FSM Application details in eg_fsm_application table" - fromTopic: update-fsm-application - isTransaction: true - queryMaps: - - - basePath: fsm - jsonMaps: - - - jsonPath: $.fsm.id - query: "INSERT INTO eg_fsm_application_auditlog SELECT * FROM eg_fsm_application WHERE id =?" - - - basePath: fsm - jsonMaps: - - - dbType: JSONB - jsonPath: $.fsm.additionalDetails - type: JSON - - - jsonPath: $.fsm.description - - - jsonPath: $.fsm.applicationStatus - - - jsonPath: $.fsm.source - - - jsonPath: $.fsm.sanitationtype - - - jsonPath: $.fsm.propertyUsage - - - jsonPath: $.fsm.noOfTrips - - - jsonPath: $.fsm.status - - - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.vehicleType - - - jsonPath: $.fsm.vehicleCapacity - - - jsonPath: $.fsm.paymentPreference - - - jsonPath: $.fsm.auditDetails.createdBy - - - jsonPath: $.fsm.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.auditDetails.createdTime - - - jsonPath: $.fsm.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.possibleServiceDate - - - jsonPath: $.fsm.dsoId - - - jsonPath: $.fsm.id - query: "UPDATE eg_fsm_application SET additionaldetails=?, description=?, applicationstatus=?, source=?, sanitationtype=?, propertyusage=?, nooftrips=?, status=?, vehicle_id=?, vehicletype=?,vehicleCapacity=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=?" - - - basePath: fsm.address - jsonMaps: - - - jsonPath: $.fsm.address.id - query: "INSERT INTO eg_fsm_address_auditlog SELECT * FROM eg_fsm_address WHERE id =?;" - - - basePath: fsm.address - jsonMaps: - - - jsonPath: $.fsm.address.doorNo - - - jsonPath: $.fsm.address.plotNo - - - jsonPath: $.fsm.address.landmark - - - jsonPath: $.fsm.address.city - - - jsonPath: $.fsm.address.district - - - jsonPath: $.fsm.address.region - - - jsonPath: $.fsm.address.state - - - jsonPath: $.fsm.address.slumName - - - jsonPath: $.fsm.address.country - - - jsonPath: $.fsm.address.locality.code - - - jsonPath: $.fsm.address.pincode - - - dbType: JSONB - jsonPath: $.fsm.address.additionalDetails - type: JSON - - - jsonPath: $.fsm.address.buildingName - - - jsonPath: $.fsm.address.street - - - jsonPath: $.fsm.address.auditDetails.createdBy - - - jsonPath: $.fsm.address.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.address.auditDetails.createdTime - - - jsonPath: $.fsm.address.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.address.id - query: "UPDATE eg_fsm_address SET doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?,slumname=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?" - - - basePath: fsm.address.geoLocation - jsonMaps: - - - jsonPath: $.fsm.address.geoLocation.id - query: "INSERT INTO eg_fsm_geolocation_auditlog SELECT * FROM eg_fsm_geolocation WHERE id =?;" - - - basePath: fsm.address.geoLocation - jsonMaps: - - - dbType: DOUBLE - jsonPath: $.fsm.address.geoLocation.latitude - type: DOUBLE - - - dbType: DOUBLE - jsonPath: $.fsm.address.geoLocation.longitude - type: DOUBLE - - - dbType: JSONB - jsonPath: $.fsm.address.geoLocation.additionalDetails - type: JSON - - - jsonPath: $.fsm.address.geoLocation.id - query: "UPDATE eg_fsm_geolocation SET latitude=?, longitude=?, additionaldetails=? where id=?" - - - basePath: fsm.pitDetail - jsonMaps: - - - jsonPath: $.fsm.pitDetail.id - query: "INSERT INTO eg_fsm_pit_detail_auditlog SELECT * FROM eg_fsm_pit_detail WHERE id =?;" - - - basePath: fsm.pitDetail - jsonMaps: - - - dbType: JSONB - jsonPath: $.fsm.pitDetail.additionalDetails - type: JSON - - - jsonPath: $.fsm.pitDetail.height - - - jsonPath: $.fsm.pitDetail.length - - - jsonPath: $.fsm.pitDetail.width - - - jsonPath: $.fsm.pitDetail.diameter - - - jsonPath: $.fsm.pitDetail.distanceFromRoad - - - jsonPath: $.fsm.pitDetail.auditDetails.createdBy - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.pitDetail.auditDetails.createdTime - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.pitDetail.id - query: "UPDATE eg_fsm_pit_detail SET additionaldetails=?,height=?, length=?, width=?, diameter=?, distancefromroad=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?" - version: 1.0 - - - description: "Persists FSM Application details in eg_fsm_application table" - fromTopic: update-fsm-workflow-application - isTransaction: true - queryMaps: - - - basePath: fsm - jsonMaps: - - - jsonPath: $.fsm.id - query: "INSERT INTO eg_fsm_application_auditlog SELECT * FROM eg_fsm_application WHERE id =?" - - - basePath: fsm - jsonMaps: - - - dbType: JSONB - jsonPath: $.fsm.additionalDetails - type: JSON - - - jsonPath: $.fsm.applicationStatus - - - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.vehicleType - - - jsonPath: $.fsm.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.possibleServiceDate - - - jsonPath: $.fsm.dsoId - - - jsonPath: $.fsm.id - query: "UPDATE eg_fsm_application SET additionaldetails=?, applicationstatus=?, vehicle_id =?, vehicletype=?, lastmodifiedby=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=?" - - - basePath: fsm.pitDetail - jsonMaps: - - - jsonPath: $.fsm.pitDetail.id - query: "INSERT INTO eg_fsm_pit_detail_auditlog SELECT * FROM eg_fsm_pit_detail WHERE id =?;" - - - basePath: fsm.pitDetail - jsonMaps: - - - dbType: JSONB - jsonPath: $.fsm.pitDetail.additionalDetails - type: JSON - - - jsonPath: $.fsm.pitDetail.height - - - jsonPath: $.fsm.pitDetail.length - - - jsonPath: $.fsm.pitDetail.width - - - jsonPath: $.fsm.pitDetail.diameter - - - jsonPath: $.fsm.pitDetail.distanceFromRoad - - - jsonPath: $.fsm.pitDetail.auditDetails.createdBy - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.pitDetail.auditDetails.createdTime - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.pitDetail.id - query: "UPDATE eg_fsm_pit_detail SET additionaldetails=?,height=?, length=?, width=?, diameter=?, distancefromroad=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?" - version: 1.0 - - - description: "Persists FSTP-employee mapping in eg_fsm_plantmapping table" - fromTopic: save-plant-map-application - isTransaction: true - queryMaps: - - - basePath: plantMapping - jsonMaps: - - - jsonPath: $.plantMapping.id - - - jsonPath: $.plantMapping.tenantId - - - jsonPath: $.plantMapping.status - - - jsonPath: $.plantMapping.employeeUuid - - - jsonPath: $.plantMapping.plantCode - - - jsonPath: $.plantMapping.auditDetails.createdBy - - - jsonPath: $.plantMapping.auditDetails.lastModifiedBy - - - jsonPath: $.plantMapping.auditDetails.createdTime - - - jsonPath: $.plantMapping.auditDetails.lastModifiedTime - query: "INSERT INTO eg_fsm_plantmapping( id, tenantId, status, employeeUuid, plantCode, createdBy, lastmodifiedBy, createdTime, lastmodifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);" - version: 1.0 - - - description: "Update FSTP-employee mapping in eg_fsm_plantmapping table" - fromTopic: update-plant-map-application - isTransaction: true - queryMaps: - - - basePath: plantMapping - jsonMaps: - - - jsonPath: $.plantMapping.status - - - jsonPath: $.plantMapping.employeeUuid - - - jsonPath: $.plantMapping.plantCode - - - jsonPath: $.plantMapping.auditDetails.createdBy - - - jsonPath: $.plantMapping.auditDetails.lastModifiedBy - - - jsonPath: $.plantMapping.auditDetails.createdTime - - - jsonPath: $.plantMapping.auditDetails.lastModifiedTime - - - jsonPath: $.plantMapping.id - query: "UPDATE eg_fsm_plantmapping SET status=?, employeeuuid=?, plantcode=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?" - version: 1.0 - serviceName: fsm diff --git a/egov-persister/household-persister.yml b/egov-persister/household-persister.yml index 1c8fd53c..4d2eb7d0 100644 --- a/egov-persister/household-persister.yml +++ b/egov-persister/household-persister.yml @@ -5,8 +5,15 @@ serviceMaps: description: Persists household. fromTopic: save-household-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: INSERT INTO HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -23,6 +30,10 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - query: INSERT INTO ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address jsonMaps: @@ -47,8 +58,15 @@ serviceMaps: description: Updates household. fromTopic: update-household-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -62,6 +80,8 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.id - query: INSERT INTO ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; basePath: $.*.address @@ -101,12 +121,21 @@ serviceMaps: description: Deletes household. fromTopic: delete-household-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + - query: UPDATE HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - jsonPath: $.*.additionalFields @@ -118,12 +147,20 @@ serviceMaps: description: Persists household member. fromTopic: save-household-member-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: INSERT INTO HOUSEHOLD_MEMBER(id, tenantId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* jsonMaps: - jsonPath: $.*.id - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId - jsonPath: $.*.individualId - jsonPath: $.*.individualClientReferenceId - jsonPath: $.*.householdId @@ -138,15 +175,27 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - version: 1.0 description: Update household member. fromTopic: update-household-member-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE individualId=? AND householdId=? AND isDeleted=false; + - query: UPDATE HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.isHeadOfHousehold + - jsonPath: $.*.clientReferenceId - jsonPath: $.*.additionalFields type: JSON dbType: JSONB @@ -154,18 +203,29 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.individualId - jsonPath: $.*.householdId - version: 1.0 description: Deletes household Member. fromTopic: delete-household-member-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + - query: UPDATE HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - jsonPath: $.*.additionalFields diff --git a/egov-persister/hrms-employee-persister.yml b/egov-persister/hrms-employee-persister.yml index bbee07cb..ca570019 100644 --- a/egov-persister/hrms-employee-persister.yml +++ b/egov-persister/hrms-employee-persister.yml @@ -1,533 +1,533 @@ serviceMaps: serviceName: HRMS mappings: - - version: 1.0 - name: hrms - description: Persists employee details in the table - fromTopic: save-hrms-employee - isTransaction: true - queryMaps: - - query: INSERT INTO eg_hrms_employee(tenantid, id, uuid, code, dateOfAppointment, employeestatus, employeetype, active, createdby, createddate, lastmodifiedby, lastModifiedDate, reactivateemployee) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - version: 1.0 + name: hrms + description: Persists employee details in the table + fromTopic: save-hrms-employee + isTransaction: true + queryMaps: + - query: INSERT INTO eg_hrms_employee(tenantid, id, uuid, code, dateOfAppointment, employeestatus, employeetype, active, createdby, createddate, lastmodifiedby, lastModifiedDate, reactivateemployee) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.* - jsonMaps: + basePath: Employees.* + jsonMaps: - - jsonPath: $.Employees.*.tenantId + - jsonPath: $.Employees.*.tenantId - - jsonPath: $.Employees.*.id + - jsonPath: $.Employees.*.id - - jsonPath: $.Employees.*.uuid + - jsonPath: $.Employees.*.uuid - - jsonPath: $.Employees.*.code + - jsonPath: $.Employees.*.code - - jsonPath: $.Employees.*.dateOfAppointment + - jsonPath: $.Employees.*.dateOfAppointment - - jsonPath: $.Employees.*.employeeStatus + - jsonPath: $.Employees.*.employeeStatus - - jsonPath: $.Employees.*.employeeType + - jsonPath: $.Employees.*.employeeType - - jsonPath: $.Employees.*.isActive + - jsonPath: $.Employees.*.isActive - - jsonPath: $.Employees.*.auditDetails.createdBy + - jsonPath: $.Employees.*.auditDetails.createdBy - - jsonPath: $.Employees.*.auditDetails.createdDate + - jsonPath: $.Employees.*.auditDetails.createdDate - - jsonPath: $.Employees.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.auditDetails.lastModifiedDate - - jsonPath: $.Employees.*.reActivateEmployee + - jsonPath: $.Employees.*.reActivateEmployee - - query: INSERT INTO eg_hrms_assignment(tenantid, uuid, position, department, designation, fromdate, todate, govtordernumber, reportingto, isHOD, iscurrentassignment, employeeid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_assignment(tenantid, uuid, position, department, designation, fromdate, todate, govtordernumber, reportingto, isHOD, iscurrentassignment, employeeid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.assignments.* - jsonMaps: + basePath: Employees.*.assignments.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].tenantId - - jsonPath: $.Employees.*.assignments.*.id + - jsonPath: $.Employees.*.assignments.*.id - - jsonPath: $.Employees.*.assignments.*.position + - jsonPath: $.Employees.*.assignments.*.position - - jsonPath: $.Employees.*.assignments.*.department + - jsonPath: $.Employees.*.assignments.*.department - - jsonPath: $.Employees.*.assignments.*.designation + - jsonPath: $.Employees.*.assignments.*.designation - - jsonPath: $.Employees.*.assignments.*.fromDate + - jsonPath: $.Employees.*.assignments.*.fromDate - - jsonPath: $.Employees.*.assignments.*.toDate + - jsonPath: $.Employees.*.assignments.*.toDate - - jsonPath: $.Employees.*.assignments.*.govtOrderNumber + - jsonPath: $.Employees.*.assignments.*.govtOrderNumber - - jsonPath: $.Employees.*.assignments.*.reportingTo + - jsonPath: $.Employees.*.assignments.*.reportingTo - - jsonPath: $.Employees.*.assignments.*.isHOD + - jsonPath: $.Employees.*.assignments.*.isHOD - - jsonPath: $.Employees.*.assignments.*.isCurrentAssignment + - jsonPath: $.Employees.*.assignments.*.isCurrentAssignment - - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].uuid - - jsonPath: $.Employees.*.assignments.*.auditDetails.createdBy + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdBy - - jsonPath: $.Employees.*.assignments.*.auditDetails.createdDate + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdDate - - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_educationaldetails(tenantid, uuid, employeeid, qualification, stream, yearofpassing, university, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_educationaldetails(tenantid, uuid, employeeid, qualification, stream, yearofpassing, university, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.education.* - jsonMaps: + basePath: Employees.*.education.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.education[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].tenantId - - jsonPath: $.Employees.*.education.*.id + - jsonPath: $.Employees.*.education.*.id - - jsonPath: $.Employees[*][?({id} in @.education[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].uuid - - jsonPath: $.Employees.*.education.*.qualification + - jsonPath: $.Employees.*.education.*.qualification - - jsonPath: $.Employees.*.education.*.stream + - jsonPath: $.Employees.*.education.*.stream - - jsonPath: $.Employees.*.education.*.yearOfPassing + - jsonPath: $.Employees.*.education.*.yearOfPassing - - jsonPath: $.Employees.*.education.*.university + - jsonPath: $.Employees.*.education.*.university - - jsonPath: $.Employees.*.education.*.remarks + - jsonPath: $.Employees.*.education.*.remarks - - jsonPath: $.Employees.*.education.*.isActive + - jsonPath: $.Employees.*.education.*.isActive - - jsonPath: $.Employees.*.education.*.auditDetails.createdBy + - jsonPath: $.Employees.*.education.*.auditDetails.createdBy - - jsonPath: $.Employees.*.education.*.auditDetails.createdDate + - jsonPath: $.Employees.*.education.*.auditDetails.createdDate - - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_departmentaltests(tenantid, uuid, employeeid, test, yearofpassing, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_departmentaltests(tenantid, uuid, employeeid, test, yearofpassing, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.tests.* - jsonMaps: + basePath: Employees.*.tests.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].tenantId - - jsonPath: $.Employees.*.tests.*.id + - jsonPath: $.Employees.*.tests.*.id - - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].uuid - - jsonPath: $.Employees.*.tests.*.test + - jsonPath: $.Employees.*.tests.*.test - - jsonPath: $.Employees.*.tests.*.yearOfPassing + - jsonPath: $.Employees.*.tests.*.yearOfPassing - - jsonPath: $.Employees.*.tests.*.remarks + - jsonPath: $.Employees.*.tests.*.remarks - - jsonPath: $.Employees.*.tests.*.isActive + - jsonPath: $.Employees.*.tests.*.isActive - - jsonPath: $.Employees.*.tests.*.auditDetails.createdBy + - jsonPath: $.Employees.*.tests.*.auditDetails.createdBy - - jsonPath: $.Employees.*.tests.*.auditDetails.createdDate + - jsonPath: $.Employees.*.tests.*.auditDetails.createdDate - - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_empdocuments(tenantid, uuid, employeeid, documentid, documentname, referencetype, referenceid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_empdocuments(tenantid, uuid, employeeid, documentid, documentname, referencetype, referenceid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.documents.* - jsonMaps: + basePath: Employees.*.documents.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].tenantId - - jsonPath: $.Employees.*.documents.*.id + - jsonPath: $.Employees.*.documents.*.id - - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].uuid - - jsonPath: $.Employees.*.documents.*.documentId + - jsonPath: $.Employees.*.documents.*.documentId - - jsonPath: $.Employees.*.documents.*.documentName + - jsonPath: $.Employees.*.documents.*.documentName - - jsonPath: $.Employees.*.documents.*.referenceType + - jsonPath: $.Employees.*.documents.*.referenceType - - jsonPath: $.Employees.*.documents.*.referenceId + - jsonPath: $.Employees.*.documents.*.referenceId - - jsonPath: $.Employees.*.documents.*.auditDetails.createdBy + - jsonPath: $.Employees.*.documents.*.auditDetails.createdBy - - jsonPath: $.Employees.*.documents.*.auditDetails.createdDate + - jsonPath: $.Employees.*.documents.*.auditDetails.createdDate - - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_servicehistory(tenantid, uuid, employeeid, servicestatus, servicefrom, serviceto, ordernumber, isCurrentPosition, location, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_servicehistory(tenantid, uuid, employeeid, servicestatus, servicefrom, serviceto, ordernumber, isCurrentPosition, location, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.serviceHistory.* - jsonMaps: + basePath: Employees.*.serviceHistory.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].tenantId - - jsonPath: $.Employees.*.serviceHistory.*.id + - jsonPath: $.Employees.*.serviceHistory.*.id - - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].uuid - - jsonPath: $.Employees.*.serviceHistory.*.serviceStatus + - jsonPath: $.Employees.*.serviceHistory.*.serviceStatus - - jsonPath: $.Employees.*.serviceHistory.*.serviceFrom + - jsonPath: $.Employees.*.serviceHistory.*.serviceFrom - - jsonPath: $.Employees.*.serviceHistory.*.serviceTo + - jsonPath: $.Employees.*.serviceHistory.*.serviceTo - - jsonPath: $.Employees.*.serviceHistory.*.orderNo + - jsonPath: $.Employees.*.serviceHistory.*.orderNo - - jsonPath: $.Employees.*.serviceHistory.*.isCurrentPosition + - jsonPath: $.Employees.*.serviceHistory.*.isCurrentPosition - - jsonPath: $.Employees.*.serviceHistory.*.location + - jsonPath: $.Employees.*.serviceHistory.*.location - - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdBy + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdBy - - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdDate + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdDate - - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_jurisdiction (uuid, employeeid, hierarchy, boundarytype, boundary, tenantid, isActive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_jurisdiction (uuid, employeeid, hierarchy, boundarytype, boundary, tenantid, isActive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.jurisdictions.* - jsonMaps: + basePath: Employees.*.jurisdictions.* + jsonMaps: - - jsonPath: $.Employees.*.jurisdictions.*.id + - jsonPath: $.Employees.*.jurisdictions.*.id - - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].uuid - - jsonPath: $.Employees.*.jurisdictions.*.hierarchy + - jsonPath: $.Employees.*.jurisdictions.*.hierarchy - - jsonPath: $.Employees.*.jurisdictions.*.boundaryType + - jsonPath: $.Employees.*.jurisdictions.*.boundaryType - - jsonPath: $.Employees.*.jurisdictions.*.boundary + - jsonPath: $.Employees.*.jurisdictions.*.boundary - - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].tenantId - - jsonPath: $.Employees.*.jurisdictions.*.isActive + - jsonPath: $.Employees.*.jurisdictions.*.isActive - - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdBy + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdBy - - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdDate + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdDate - - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedDate - - version: 1.0 - name: hrms - description: Persists employee details in the table - fromTopic: update-hrms-employee - isTransaction: true - queryMaps: - - query: DELETE from eg_hrms_employee WHERE uuid=? + - version: 1.0 + name: hrms + description: Persists employee details in the table + fromTopic: update-hrms-employee + isTransaction: true + queryMaps: + - query: DELETE from eg_hrms_employee WHERE uuid=? - basePath: Employees.* - jsonMaps: + basePath: Employees.* + jsonMaps: - - jsonPath: $.Employees.*.uuid + - jsonPath: $.Employees.*.uuid - - query: INSERT INTO eg_hrms_employee(tenantid, id, uuid, code, dateOfAppointment, employeestatus, employeetype, active, createdby, createddate, lastmodifiedby, lastModifiedDate, reactivateemployee) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_employee(tenantid, id, uuid, code, dateOfAppointment, employeestatus, employeetype, active, createdby, createddate, lastmodifiedby, lastModifiedDate, reactivateemployee) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.* - jsonMaps: + basePath: Employees.* + jsonMaps: - - jsonPath: $.Employees.*.tenantId + - jsonPath: $.Employees.*.tenantId - - jsonPath: $.Employees.*.id + - jsonPath: $.Employees.*.id - - jsonPath: $.Employees.*.uuid + - jsonPath: $.Employees.*.uuid - - jsonPath: $.Employees.*.code + - jsonPath: $.Employees.*.code - - jsonPath: $.Employees.*.dateOfAppointment + - jsonPath: $.Employees.*.dateOfAppointment - - jsonPath: $.Employees.*.employeeStatus + - jsonPath: $.Employees.*.employeeStatus - - jsonPath: $.Employees.*.employeeType + - jsonPath: $.Employees.*.employeeType - - jsonPath: $.Employees.*.isActive + - jsonPath: $.Employees.*.isActive - - jsonPath: $.Employees.*.auditDetails.createdBy + - jsonPath: $.Employees.*.auditDetails.createdBy - - jsonPath: $.Employees.*.auditDetails.createdDate + - jsonPath: $.Employees.*.auditDetails.createdDate - - jsonPath: $.Employees.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.auditDetails.lastModifiedDate - - jsonPath: $.Employees.*.reActivateEmployee + - jsonPath: $.Employees.*.reActivateEmployee - - query: INSERT INTO eg_hrms_assignment(tenantid, uuid, position, department, designation, fromdate, todate, govtordernumber, reportingto, isHOD, iscurrentassignment, employeeid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_assignment(tenantid, uuid, position, department, designation, fromdate, todate, govtordernumber, reportingto, isHOD, iscurrentassignment, employeeid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.assignments.* - jsonMaps: + basePath: Employees.*.assignments.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].tenantId - - jsonPath: $.Employees.*.assignments.*.id + - jsonPath: $.Employees.*.assignments.*.id - - jsonPath: $.Employees.*.assignments.*.position + - jsonPath: $.Employees.*.assignments.*.position - - jsonPath: $.Employees.*.assignments.*.department + - jsonPath: $.Employees.*.assignments.*.department - - jsonPath: $.Employees.*.assignments.*.designation + - jsonPath: $.Employees.*.assignments.*.designation - - jsonPath: $.Employees.*.assignments.*.fromDate + - jsonPath: $.Employees.*.assignments.*.fromDate - - jsonPath: $.Employees.*.assignments.*.toDate + - jsonPath: $.Employees.*.assignments.*.toDate - - jsonPath: $.Employees.*.assignments.*.govtOrderNumber + - jsonPath: $.Employees.*.assignments.*.govtOrderNumber - - jsonPath: $.Employees.*.assignments.*.reportingTo + - jsonPath: $.Employees.*.assignments.*.reportingTo - - jsonPath: $.Employees.*.assignments.*.isHOD + - jsonPath: $.Employees.*.assignments.*.isHOD - - jsonPath: $.Employees.*.assignments.*.isCurrentAssignment + - jsonPath: $.Employees.*.assignments.*.isCurrentAssignment - - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].uuid - - jsonPath: $.Employees.*.assignments.*.auditDetails.createdBy + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdBy - - jsonPath: $.Employees.*.assignments.*.auditDetails.createdDate + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdDate - - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_educationaldetails(tenantid, uuid, employeeid, qualification, stream, yearofpassing, university, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_educationaldetails(tenantid, uuid, employeeid, qualification, stream, yearofpassing, university, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.education.* - jsonMaps: + basePath: Employees.*.education.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.education[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].tenantId - - jsonPath: $.Employees.*.education.*.id + - jsonPath: $.Employees.*.education.*.id - - jsonPath: $.Employees[*][?({id} in @.education[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].uuid - - jsonPath: $.Employees.*.education.*.qualification + - jsonPath: $.Employees.*.education.*.qualification - - jsonPath: $.Employees.*.education.*.stream + - jsonPath: $.Employees.*.education.*.stream - - jsonPath: $.Employees.*.education.*.yearOfPassing + - jsonPath: $.Employees.*.education.*.yearOfPassing - - jsonPath: $.Employees.*.education.*.university + - jsonPath: $.Employees.*.education.*.university - - jsonPath: $.Employees.*.education.*.remarks + - jsonPath: $.Employees.*.education.*.remarks - - jsonPath: $.Employees.*.education.*.isActive + - jsonPath: $.Employees.*.education.*.isActive - - jsonPath: $.Employees.*.education.*.auditDetails.createdBy + - jsonPath: $.Employees.*.education.*.auditDetails.createdBy - - jsonPath: $.Employees.*.education.*.auditDetails.createdDate + - jsonPath: $.Employees.*.education.*.auditDetails.createdDate - - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_departmentaltests(tenantid, uuid, employeeid, test, yearofpassing, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_departmentaltests(tenantid, uuid, employeeid, test, yearofpassing, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.tests.* - jsonMaps: + basePath: Employees.*.tests.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].tenantId - - jsonPath: $.Employees.*.tests.*.id + - jsonPath: $.Employees.*.tests.*.id - - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].uuid - - jsonPath: $.Employees.*.tests.*.test + - jsonPath: $.Employees.*.tests.*.test - - jsonPath: $.Employees.*.tests.*.yearOfPassing + - jsonPath: $.Employees.*.tests.*.yearOfPassing - - jsonPath: $.Employees.*.tests.*.remarks + - jsonPath: $.Employees.*.tests.*.remarks - - jsonPath: $.Employees.*.tests.*.isActive + - jsonPath: $.Employees.*.tests.*.isActive - - jsonPath: $.Employees.*.tests.*.auditDetails.createdBy + - jsonPath: $.Employees.*.tests.*.auditDetails.createdBy - - jsonPath: $.Employees.*.tests.*.auditDetails.createdDate + - jsonPath: $.Employees.*.tests.*.auditDetails.createdDate - - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_empdocuments(tenantid, uuid, employeeid, documentid, documentname, referencetype, referenceid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_empdocuments(tenantid, uuid, employeeid, documentid, documentname, referencetype, referenceid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.documents.* - jsonMaps: + basePath: Employees.*.documents.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].tenantId - - jsonPath: $.Employees.*.documents.*.id + - jsonPath: $.Employees.*.documents.*.id - - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].uuid - - jsonPath: $.Employees.*.documents.*.documentId + - jsonPath: $.Employees.*.documents.*.documentId - - jsonPath: $.Employees.*.documents.*.documentName + - jsonPath: $.Employees.*.documents.*.documentName - - jsonPath: $.Employees.*.documents.*.referenceType + - jsonPath: $.Employees.*.documents.*.referenceType - - jsonPath: $.Employees.*.documents.*.referenceId + - jsonPath: $.Employees.*.documents.*.referenceId - - jsonPath: $.Employees.*.documents.*.auditDetails.createdBy + - jsonPath: $.Employees.*.documents.*.auditDetails.createdBy - - jsonPath: $.Employees.*.documents.*.auditDetails.createdDate + - jsonPath: $.Employees.*.documents.*.auditDetails.createdDate - - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_servicehistory(tenantid, uuid, employeeid, servicestatus, servicefrom, serviceto, ordernumber, isCurrentPosition, location, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_servicehistory(tenantid, uuid, employeeid, servicestatus, servicefrom, serviceto, ordernumber, isCurrentPosition, location, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.serviceHistory.* - jsonMaps: + basePath: Employees.*.serviceHistory.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].tenantId - - jsonPath: $.Employees.*.serviceHistory.*.id + - jsonPath: $.Employees.*.serviceHistory.*.id - - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].uuid - - jsonPath: $.Employees.*.serviceHistory.*.serviceStatus + - jsonPath: $.Employees.*.serviceHistory.*.serviceStatus - - jsonPath: $.Employees.*.serviceHistory.*.serviceFrom + - jsonPath: $.Employees.*.serviceHistory.*.serviceFrom - - jsonPath: $.Employees.*.serviceHistory.*.serviceTo + - jsonPath: $.Employees.*.serviceHistory.*.serviceTo - - jsonPath: $.Employees.*.serviceHistory.*.orderNo + - jsonPath: $.Employees.*.serviceHistory.*.orderNo - - jsonPath: $.Employees.*.serviceHistory.*.isCurrentPosition + - jsonPath: $.Employees.*.serviceHistory.*.isCurrentPosition - - jsonPath: $.Employees.*.serviceHistory.*.location + - jsonPath: $.Employees.*.serviceHistory.*.location - - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdBy + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdBy - - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdDate + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdDate - - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_jurisdiction (uuid, employeeid, hierarchy, boundarytype, boundary, tenantid, isActive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_jurisdiction (uuid, employeeid, hierarchy, boundarytype, boundary, tenantid, isActive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.jurisdictions.* - jsonMaps: + basePath: Employees.*.jurisdictions.* + jsonMaps: - - jsonPath: $.Employees.*.jurisdictions.*.id + - jsonPath: $.Employees.*.jurisdictions.*.id - - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].uuid - - jsonPath: $.Employees.*.jurisdictions.*.hierarchy + - jsonPath: $.Employees.*.jurisdictions.*.hierarchy - - jsonPath: $.Employees.*.jurisdictions.*.boundaryType + - jsonPath: $.Employees.*.jurisdictions.*.boundaryType - - jsonPath: $.Employees.*.jurisdictions.*.boundary + - jsonPath: $.Employees.*.jurisdictions.*.boundary - - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].tenantId - - jsonPath: $.Employees.*.jurisdictions.*.isActive + - jsonPath: $.Employees.*.jurisdictions.*.isActive - - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdBy + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdBy - - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdDate + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdDate - - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedDate - - query: INSERT INTO eg_hrms_deactivationdetails(uuid, employeeid, reasonfordeactivation, effectivefrom, ordernumber, remarks, tenantid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_hrms_deactivationdetails(uuid, employeeid, reasonfordeactivation, effectivefrom, ordernumber, remarks, tenantid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.deactivationDetails.* - jsonMaps: + basePath: Employees.*.deactivationDetails.* + jsonMaps: - - jsonPath: $.Employees.*.deactivationDetails.*.id + - jsonPath: $.Employees.*.deactivationDetails.*.id - - jsonPath: $.Employees[*][?({id} in @.deactivationDetails[*].id)].uuid + - jsonPath: $.Employees[*][?({id} in @.deactivationDetails[*].id)].uuid - - jsonPath: $.Employees.*.deactivationDetails.*.reasonForDeactivation + - jsonPath: $.Employees.*.deactivationDetails.*.reasonForDeactivation - - jsonPath: $.Employees.*.deactivationDetails.*.effectiveFrom + - jsonPath: $.Employees.*.deactivationDetails.*.effectiveFrom - - jsonPath: $.Employees.*.deactivationDetails.*.orderNo + - jsonPath: $.Employees.*.deactivationDetails.*.orderNo - - jsonPath: $.Employees.*.deactivationDetails.*.remarks + - jsonPath: $.Employees.*.deactivationDetails.*.remarks - - jsonPath: $.Employees[*][?({id} in @.deactivationDetails[*].id)].tenantId + - jsonPath: $.Employees[*][?({id} in @.deactivationDetails[*].id)].tenantId - - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.createdBy + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.createdBy - - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.createdDate + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.createdDate - - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.lastModifiedBy - - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.lastModifiedDate - - - query: INSERT INTO eg_hrms_reactivationdetails(uuid, employeeid, reasonforreactivation, effectivefrom, ordernumber, remarks, tenantid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Employees.*.reactivationDetails.* - jsonMaps: + - query: INSERT INTO eg_hrms_reactivationdetails(uuid, employeeid, reasonforreactivation, effectivefrom, ordernumber, remarks, tenantid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - - jsonPath: $.Employees.*.reactivationDetails.*.id + basePath: Employees.*.reactivationDetails.* + jsonMaps: - - jsonPath: $.Employees[*][?({id} in @.reactivationDetails[*].id)].uuid + - jsonPath: $.Employees.*.reactivationDetails.*.id - - jsonPath: $.Employees.*.reactivationDetails.*.reasonForReactivation + - jsonPath: $.Employees[*][?({id} in @.reactivationDetails[*].id)].uuid - - jsonPath: $.Employees.*.reactivationDetails.*.effectiveFrom + - jsonPath: $.Employees.*.reactivationDetails.*.reasonForReactivation - - jsonPath: $.Employees.*.reactivationDetails.*.orderNo + - jsonPath: $.Employees.*.reactivationDetails.*.effectiveFrom - - jsonPath: $.Employees.*.reactivationDetails.*.remarks + - jsonPath: $.Employees.*.reactivationDetails.*.orderNo - - jsonPath: $.Employees[*][?({id} in @.reactivationDetails[*].id)].tenantId + - jsonPath: $.Employees.*.reactivationDetails.*.remarks - - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.createdBy + - jsonPath: $.Employees[*][?({id} in @.reactivationDetails[*].id)].tenantId - - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.createdDate + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.createdBy - - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.lastModifiedBy + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.createdDate - - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.lastModifiedDate + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.lastModifiedDate diff --git a/egov-persister/individual-persister.yml b/egov-persister/individual-persister.yml index 0bae277a..42a8bb0e 100644 --- a/egov-persister/individual-persister.yml +++ b/egov-persister/individual-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Persists Individual fromTopic: save-individual-topic isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address.* @@ -26,11 +33,12 @@ serviceMaps: - jsonPath: $.*.address.*.street - jsonPath: $.*.address.*.locality.code - jsonPath: $.*.address.*.ward.code - - query: INSERT INTO individual(id, userId, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, password, type, roles, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* jsonMaps: - jsonPath: $.*.id - jsonPath: $.*.userId + - jsonPath: $.*.userUuid - jsonPath: $.*.clientReferenceId - jsonPath: $.*.tenantId - jsonPath: $.*.name.givenName @@ -58,6 +66,18 @@ serviceMaps: - jsonPath: $.*.individualId - jsonPath: $.*.relationship - jsonPath: $.*.isSystemUser + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.userDetails.username + - jsonPath: $.*.userDetails.password + - jsonPath: $.*.userDetails.type + - jsonPath: $.*.userDetails.roles + type: JSON + dbType: JSONB + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - query: INSERT INTO individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address.* jsonMaps: @@ -101,11 +121,19 @@ serviceMaps: description: Updates Individual fromTopic: update-individual-topic isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE individual SET userId=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; + - query: UPDATE individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, password = ?, type = ?, roles = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.userId + - jsonPath: $.*.userUuid - jsonPath: $.*.tenantId - jsonPath: $.*.name.givenName - jsonPath: $.*.name.familyName @@ -121,12 +149,21 @@ serviceMaps: - jsonPath: $.*.husbandName - jsonPath: $.*.relationship - jsonPath: $.*.photo + - jsonPath: $.*.isSystemUserActive - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion + - jsonPath: $.*.userDetails.username + - jsonPath: $.*.userDetails.password + - jsonPath: $.*.userDetails.type + - jsonPath: $.*.userDetails.roles + type: JSON + dbType: JSONB + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.id - query: INSERT INTO address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET doorno=?, latitude=?, longitude=?, locationaccuracy=?, type=?, addressline1=?, addressline2=?, landmark=?, city=?, pincode=?, buildingname=?, street=?, localitycode=?, wardCode=?; basePath: $.*.address.* @@ -216,14 +253,24 @@ serviceMaps: description: Deletes Individual and related Entities fromTopic: delete-individual-topic isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE individual SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id=?; + - query: UPDATE individual SET lastModifiedBy=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, lastModifiedTime=?, rowVersion=?, isDeleted=?, isSystemUserActive=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.isSystemUserActive - jsonPath: $.*.id - query: UPDATE individual_address SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE individualId=? AND addressId=?; basePath: $.*.address.* @@ -249,12 +296,20 @@ serviceMaps: - jsonPath: $.*.skills.*.id - version: 1.0 - description: Updates userId received from user-service into an individual + description: Updates userId and userUuid received from user-service into an individual fromTopic: update-user-id-topic isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE individual SET userId=? WHERE id=?; + - query: UPDATE individual SET userId=?, userUuid=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.userId + - jsonPath: $.*.userUuid - jsonPath: $.*.id \ No newline at end of file diff --git a/egov-persister/land-persister.yml b/egov-persister/land-persister.yml deleted file mode 100644 index bf2677fe..00000000 --- a/egov-persister/land-persister.yml +++ /dev/null @@ -1,546 +0,0 @@ -serviceMaps: - serviceName: land-services - mappings: - - version: 1.0 - description: Persists landinfo details in EG_LandInfo_BuildingPlan table - fromTopic: save-landinfo - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_land_landInfo(id, landUId,landUniqueRegNo,tenantId, status, ownershipCategory, source, channel, additionalDetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: LandInfo - jsonMaps: - - jsonPath: $.LandInfo.id - - - jsonPath: $.LandInfo.landUId - - - jsonPath: $.LandInfo.landUniqueRegNo - - - jsonPath: $.LandInfo.tenantId - - - jsonPath: $.LandInfo.status - - - jsonPath: $.LandInfo.ownershipCategory - - - jsonPath: $.LandInfo.source - - - jsonPath: $.LandInfo.channel - - - jsonPath: $.LandInfo.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.auditDetails.createdBy - - - jsonPath: $.LandInfo.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.auditDetails.createdTime - - - jsonPath: $.LandInfo.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_land_Address( id, tenantid, doorno, plotno,landmark, city, district, region, state, country, pincode, additiondetails, buildingname, street, locality, landInfoId, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - basePath: LandInfo.address - jsonMaps: - - jsonPath: $.LandInfo.address.id - - - jsonPath: $.LandInfo.address.tenantId - - - jsonPath: $.LandInfo.address.doorNo - - - jsonPath: $.LandInfo.address.plotNo - - - jsonPath: $.LandInfo.address.landmark - - - jsonPath: $.LandInfo.address.city - - - jsonPath: $.LandInfo.address.district - - - jsonPath: $.LandInfo.address.region - - - jsonPath: $.LandInfo.address.state - - - jsonPath: $.LandInfo.address.country - - - jsonPath: $.LandInfo.address.pincode - - - jsonPath: $.LandInfo.address.additionDetails - - - jsonPath: $.LandInfo.address.buildingName - - - jsonPath: $.LandInfo.address.street - - - jsonPath: $.LandInfo.address.locality.code - - - jsonPath: $.LandInfo.id - - - jsonPath: $.LandInfo.address.auditDetails.createdBy - - - jsonPath: $.LandInfo.address.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.address.auditDetails.createdTime - - - jsonPath: $.LandInfo.address.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_land_ownerInfo( id, uuid, isprimaryowner, status, ownershippercentage, institutionId, relationship, additionalDetails, landInfoId, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: LandInfo.owners.* - jsonMaps: - - jsonPath: $.LandInfo.owners.*.ownerId - - - jsonPath: $.LandInfo.owners.*.uuid - - - jsonPath: $.LandInfo.owners.*.isPrimaryOwner - - - jsonPath: $.LandInfo.owners.*.status - - - jsonPath: $.LandInfo.owners.*.ownerShipPercentage - - - jsonPath: $.LandInfo.owners.*.institutionId - - - jsonPath: $.LandInfo.owners.*.relationship - - - jsonPath: $.LandInfo.owners.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.id - - - jsonPath: $.LandInfo.owners.*.auditDetails.createdBy - - - jsonPath: $.LandInfo.owners.*.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.owners.*.auditDetails.createdTime - - - jsonPath: $.LandInfo.owners.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_land_institution( id, tenantId, type, designation, nameOfAuthorizedPerson, additionalDetails, landInfoId) VALUES (?, ?, ?, ?, ?, ?, ?); - basePath: LandInfo.institution - jsonMaps: - - jsonPath: $.LandInfo.institution.id - - - jsonPath: $.LandInfo.institution.tenantId - - - jsonPath: $.LandInfo.institution.type - - - jsonPath: $.LandInfo.institution.designation - - - jsonPath: $.LandInfo.institution.nameOfAuthorizedPerson - - - jsonPath: $.LandInfo.institution.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.id - - - - query: INSERT INTO eg_land_document( id, documenttype, fileStoreId, documentUid, additionalDetails, landInfoId, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: LandInfo.documents.* - jsonMaps: - - jsonPath: $.LandInfo.documents.*.id - - - jsonPath: $.LandInfo.documents.*.documentType - - - jsonPath: $.LandInfo.documents.*.fileStoreId - - - jsonPath: $.LandInfo.documents.*.documentuid - - - jsonPath: $.LandInfo.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.id - - - jsonPath: $.LandInfo.documents.*.auditDetails.createdBy - - - jsonPath: $.LandInfo.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.documents.*.auditDetails.createdTime - - - jsonPath: $.LandInfo.documents.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_land_unit( id,tenantid, floorNo, unitType, usageCategory,occupancyType, occupancyDate,additionaldetails, landInfoId, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: LandInfo.unit.* - jsonMaps: - - jsonPath: $.LandInfo.unit.*.id - - - jsonPath: $.LandInfo.unit.*.tenantId - - - jsonPath: $.LandInfo.unit.*.floorNo - - - jsonPath: $.LandInfo.unit.*.unitType - - - jsonPath: $.LandInfo.unit.*.usageCategory - - - jsonPath: $.LandInfo.unit.*.occupancyType - - - jsonPath: $.LandInfo.unit.*.occupancyDate - - - jsonPath: $.LandInfo.unit.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.id - - - jsonPath: $.LandInfo.unit.*.auditDetails.createdBy - - - jsonPath: $.LandInfo.unit.*.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.unit.*.auditDetails.createdTime - - - jsonPath: $.LandInfo.unit.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_land_geolocation( id, latitude, longitude, additionaldetails, addressid) VALUES (?, ?, ?, ?, ?); - basePath: LandInfo.address.geoLocation - jsonMaps: - - jsonPath: $.LandInfo.address.geoLocation.id - - - jsonPath: $.LandInfo.address.geoLocation.latitude - type: DOUBLE - dbType: DOUBLE - - - jsonPath: $.LandInfo.address.geoLocation.longitude - type: DOUBLE - dbType: DOUBLE - - - jsonPath: $.LandInfo.address.geoLocation.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.address.id - - - - query: INSERT INTO eg_land_auditdetails SELECT * FROM eg_land_landInfo WHERE id =?; - basePath: LandInfo - jsonMaps: - - - jsonPath: $.LandInfo.id - - - query: INSERT INTO eg_land_owner_auditdetails SELECT * FROM eg_land_ownerInfo WHERE id =?; - basePath: LandInfo.owners.* - jsonMaps: - - - jsonPath: $.LandInfo.owners.*.ownerId - - - - query: INSERT INTO eg_land_institution_auditdetails SELECT * FROM eg_land_institution WHERE id =?; - basePath: LandInfo.institution - jsonMaps: - - - jsonPath: $.LandInfo.institution.id - - - - query: INSERT INTO eg_land_unit_auditdetails SELECT * FROM eg_land_unit WHERE id =?; - basePath: LandInfo.unit.* - jsonMaps: - - - jsonPath: $.LandInfo.unit.*.id - - - - query: INSERT INTO eg_land_address_auditdetails SELECT * FROM eg_land_address WHERE id =?; - basePath: LandInfo.address - jsonMaps: - - - jsonPath: $.LandInfo.address.id - - - - query: INSERT INTO eg_land_geolocation_auditdetails SELECT * FROM eg_land_geolocation WHERE id =?; - basePath: LandInfo.address.geoLocation - jsonMaps: - - - jsonPath: $.LandInfo.address.geoLocation.id - - - - version: 1.0 - description: update LandInfo details in eg_land_landinfo table - fromTopic: update-landinfo - isTransaction: true - queryMaps: - - query: UPDATE eg_land_landInfo SET landUId =? ,landUniqueRegNo =?,tenantId =?, status =?, ownershipCategory =?, source =? , channel =?, additionalDetails =?, lastmodifiedby =?, lastmodifiedtime =? WHERE id=?; - basePath: LandInfo - jsonMaps: - - jsonPath: $.LandInfo.landUId - - - jsonPath: $.LandInfo.landUniqueRegNo - - - jsonPath: $.LandInfo.tenantId - - - jsonPath: $.LandInfo.status - - - jsonPath: $.LandInfo.ownershipCategory - - - jsonPath: $.LandInfo.source - - - jsonPath: $.LandInfo.channel - - - jsonPath: $.LandInfo.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.auditDetails.lastModifiedTime - - - jsonPath: $.LandInfo.id - - - - query: INSERT INTO eg_land_auditdetails SELECT * FROM eg_land_landInfo WHERE id =?; - basePath: LandInfo - jsonMaps: - - - jsonPath: $.LandInfo.id - - - - query: UPDATE eg_land_address SET doorno=?, plotno=?, district=?, region=?, state=?, country=?, pincode=?, additiondetails=?, buildingname=?, street=?, landmark=?, city=?, locality=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=?; - basePath: LandInfo.address - jsonMaps: - - - jsonPath: $.LandInfo.address.doorNo - - - jsonPath: $.LandInfo.address.plotNo - - - jsonPath: $.LandInfo.address.district - - - jsonPath: $.LandInfo.address.region - - - jsonPath: $.LandInfo.address.state - - - jsonPath: $.LandInfo.address.country - - - jsonPath: $.LandInfo.address.pincode - - - jsonPath: $.LandInfo.address.additionDetails - - - jsonPath: $.LandInfo.address.buildingName - - - jsonPath: $.LandInfo.address.street - - - jsonPath: $.LandInfo.address.landmark - - - jsonPath: $.LandInfo.address.city - - - jsonPath: $.LandInfo.address.locality.code - - - jsonPath: $.LandInfo.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.auditDetails.lastModifiedTime - - - jsonPath: $.LandInfo.address.id - - - query: UPDATE eg_land_geolocation SET latitude =?, longitude=?, additionaldetails=?, addressid=? WHERE id = ?; - basePath: LandInfo.address.geoLocation - jsonMaps: - - jsonPath: $.LandInfo.address.geoLocation.latitude - type: DOUBLE - dbType: DOUBLE - - - jsonPath: $.LandInfo.address.geoLocation.longitude - type: DOUBLE - dbType: DOUBLE - - - jsonPath: $.LandInfo.address.geoLocation.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.address.id - - - jsonPath: $.LandInfo.address.geoLocation.id - - - - query: INSERT INTO eg_land_ownerInfo( id, uuid, isprimaryowner, status, ownershippercentage, institutionId, relationship, additionalDetails, landInfoId, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id, landInfoId) WHERE id IS NOT NULL DO UPDATE SET uuid = ?, isPrimaryOwner=?, status=?, ownerShipPercentage=?, institutionId=?, relationship=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?; - basePath: LandInfo.owners.* - jsonMaps: - - jsonPath: $.LandInfo.owners.*.ownerId - - - jsonPath: $.LandInfo.owners.*.uuid - - - jsonPath: $.LandInfo.owners.*.isPrimaryOwner - - - jsonPath: $.LandInfo.owners.*.status - - - jsonPath: $.LandInfo.owners.*.ownerShipPercentage - - - jsonPath: $.LandInfo.owners.*.institutionId - - - jsonPath: $.LandInfo.owners.*.relationship - - - jsonPath: $.LandInfo.owners.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.id - - - jsonPath: $.LandInfo.owners.*.auditDetails.createdBy - - - jsonPath: $.LandInfo.owners.*.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.owners.*.auditDetails.createdTime - - - jsonPath: $.LandInfo.owners.*.auditDetails.lastModifiedTime - - - jsonPath: $.LandInfo.owners.*.uuid - - - jsonPath: $.LandInfo.owners.*.isPrimaryOwner - - - jsonPath: $.LandInfo.owners.*.status - - - jsonPath: $.LandInfo.owners.*.ownerShipPercentage - - - jsonPath: $.LandInfo.owners.*.institutionId - - - jsonPath: $.LandInfo.owners.*.relationship - - - jsonPath: $.LandInfo.owners.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.owners.*.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.owners.*.auditDetails.lastModifiedTime - - - query: UPDATE eg_land_institution SET type=?, designation=?, nameOfAuthorizedPerson=?, additionalDetails=? WHERE id=?; - basePath: LandInfo.institution - jsonMaps: - - - jsonPath: $.LandInfo.institution.type - - - jsonPath: $.LandInfo.institution.designation - - - jsonPath: $.LandInfo.institution.nameOfAuthorizedPerson - - - jsonPath: $.LandInfo.institution.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.institution.id - - - - query: INSERT INTO eg_land_document( id, documenttype, fileStoreId, documentUid, additionalDetails, landInfoId, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id, landinfoid) WHERE id IS NOT NULL DO UPDATE SET documentType=?, filestoreid=?, documentuid=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?; - basePath: LandInfo.documents.* - jsonMaps: - - jsonPath: $.LandInfo.documents.*.id - - - jsonPath: $.LandInfo.documents.*.documentType - - - jsonPath: $.LandInfo.documents.*.fileStoreId - - - jsonPath: $.LandInfo.documents.*.documentuid - - - jsonPath: $.LandInfo.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.id - - - jsonPath: $.LandInfo.documents.*.auditDetails.createdBy - - - jsonPath: $.LandInfo.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.documents.*.auditDetails.createdTime - - - jsonPath: $.LandInfo.documents.*.auditDetails.lastModifiedTime - - - jsonPath: $.LandInfo.documents.*.documentType - - - jsonPath: $.LandInfo.documents.*.fileStoreId - - - jsonPath: $.LandInfo.documents.*.documentuid - - - jsonPath: $.LandInfo.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.documents.*.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_land_unit( id,tenantid, floorNo, unitType, usageCategory,occupancyType, occupancyDate,additionaldetails, landInfoId, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id, landinfoid, tenantid) WHERE id IS NOT NULL DO UPDATE SET floorNo=?, unitType=?, usageCategory=?, occupancyType=?, occupancyDate=?, additionalDetails=?,lastModifiedBy=?, lastModifiedTime=?; - basePath: LandInfo.unit.* - jsonMaps: - - jsonPath: $.LandInfo.unit.*.id - - - jsonPath: $.LandInfo.unit.*.tenantId - - - jsonPath: $.LandInfo.unit.*.floorNo - - - jsonPath: $.LandInfo.unit.*.unitType - - - jsonPath: $.LandInfo.unit.*.usageCategory - - - jsonPath: $.LandInfo.unit.*.occupancyType - - - jsonPath: $.LandInfo.unit.*.occupancyDate - - - jsonPath: $.LandInfo.unit.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.id - - - jsonPath: $.LandInfo.unit.*.auditDetails.createdBy - - - jsonPath: $.LandInfo.unit.*.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.unit.*.auditDetails.createdTime - - - jsonPath: $.LandInfo.unit.*.auditDetails.lastModifiedTime - - - jsonPath: $.LandInfo.unit.*.floorNo - - - jsonPath: $.LandInfo.unit.*.unitType - - - jsonPath: $.LandInfo.unit.*.usageCategory - - - jsonPath: $.LandInfo.unit.*.occupancyType - - - jsonPath: $.LandInfo.unit.*.occupancyDate - - - jsonPath: $.LandInfo.unit.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.LandInfo.unit.*.auditDetails.lastModifiedBy - - - jsonPath: $.LandInfo.unit.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_land_owner_auditdetails SELECT * FROM eg_land_ownerInfo WHERE id =?; - basePath: LandInfo.owners.* - jsonMaps: - - - jsonPath: $.LandInfo.owners.*.ownerId - - - - query: INSERT INTO eg_land_institution_auditdetails SELECT * FROM eg_land_institution WHERE id =?; - basePath: LandInfo.institution - jsonMaps: - - - jsonPath: $.LandInfo.institution.id - - - - query: INSERT INTO eg_land_unit_auditdetails SELECT * FROM eg_land_unit WHERE id =?; - basePath: LandInfo.unit.* - jsonMaps: - - - jsonPath: $.LandInfo.unit.*.id - - - - query: INSERT INTO eg_land_address_auditdetails SELECT * FROM eg_land_address WHERE id =?; - basePath: LandInfo.address - jsonMaps: - - - jsonPath: $.LandInfo.address.id - - - - query: INSERT INTO eg_land_geolocation_auditdetails SELECT * FROM eg_land_geolocation WHERE id =?; - basePath: LandInfo.address.geoLocation - jsonMaps: - - - jsonPath: $.LandInfo.address.geoLocation.id - - diff --git a/egov-persister/mdms-persister.yml b/egov-persister/mdms-persister.yml new file mode 100644 index 00000000..005fa83b --- /dev/null +++ b/egov-persister/mdms-persister.yml @@ -0,0 +1,83 @@ +serviceMaps: + serviceName: Mdms-Service + mappings: + - version: 1.0 + description: Persists the schema definition + fromTopic: save-mdms-schema-definition + isTransaction: true + queryMaps: + - query: INSERT INTO eg_mdms_schema_definition (id ,tenantid, code, description, definition, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.SchemaDefinition + jsonMaps: + - jsonPath: $.SchemaDefinition.id + + - jsonPath: $.SchemaDefinition.tenantId + + - jsonPath: $.SchemaDefinition.code + + - jsonPath: $.SchemaDefinition.description + + - jsonPath: $.SchemaDefinition.definition + type: JSON + dbType: JSONB + + - jsonPath: $.SchemaDefinition.isActive + + - jsonPath: $.SchemaDefinition.auditDetails.createdBy + + - jsonPath: $.SchemaDefinition.auditDetails.lastModifiedBy + + - jsonPath: $.SchemaDefinition.auditDetails.createdTime + + - jsonPath: $.SchemaDefinition.auditDetails.lastModifiedTime + + + - version: 1.0 + description: Persists the mdms data + fromTopic: save-mdms-data + isTransaction: true + queryMaps: + - query: INSERT INTO eg_mdms_data (id, tenantid, uniqueidentifier, schemacode, data, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Mdms + jsonMaps: + - jsonPath: $.Mdms.id + + - jsonPath: $.Mdms.tenantId + + - jsonPath: $.Mdms.uniqueIdentifier + + - jsonPath: $.Mdms.schemaCode + + - jsonPath: $.Mdms.data + type: JSON + dbType: JSONB + + - jsonPath: $.Mdms.isActive + + - jsonPath: $.Mdms.auditDetails.createdBy + + - jsonPath: $.Mdms.auditDetails.lastModifiedBy + + - jsonPath: $.Mdms.auditDetails.createdTime + + - jsonPath: $.Mdms.auditDetails.lastModifiedTime + + - version: 1.0 + description: Updates the mdms data + fromTopic: update-mdms-data + isTransaction: true + queryMaps: + - query: UPDATE eg_mdms_data SET data = ?, isActive = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.Mdms + jsonMaps: + - jsonPath: $.Mdms.data + type: JSON + dbType: JSONB + + - jsonPath: $.Mdms.isActive + + - jsonPath: $.Mdms.auditDetails.lastModifiedBy + + - jsonPath: $.Mdms.auditDetails.lastModifiedTime + + - jsonPath: $.Mdms.id \ No newline at end of file diff --git a/egov-persister/migration-batch-count-persister.yml b/egov-persister/migration-batch-count-persister.yml deleted file mode 100644 index 46295c65..00000000 --- a/egov-persister/migration-batch-count-persister.yml +++ /dev/null @@ -1,27 +0,0 @@ -serviceMaps: - serviceName: property-services - mappings: - - version: 1.0 - description: Persists property details in EG_PT_PROPERTY table - fromTopic: migartion-batch-count - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_pt_property_migration (id,batch,batchsize,createdtime,tenantid,recordCount) VALUES (?,?,?,?,?,?); - basePath: MigrationCount - jsonMaps: - - - jsonPath: $.MigrationCount.id - - - jsonPath: $.MigrationCount.offset - - - jsonPath: $.MigrationCount.limit - - - jsonPath: $.MigrationCount.createdTime - - - jsonPath: $.MigrationCount.tenantid - - - jsonPath: $.MigrationCount.recordCount - - \ No newline at end of file diff --git a/egov-persister/noc-persister.yml b/egov-persister/noc-persister.yml deleted file mode 100644 index 7a58325f..00000000 --- a/egov-persister/noc-persister.yml +++ /dev/null @@ -1,235 +0,0 @@ -serviceMaps: - serviceName: noc-services - mappings: - - version: 1.0 - description: Persists noc details in EG_NOC table - fromTopic: save-noc-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_Noc(id, applicationno, applicationstatus, tenantid, status, landid, Noctype, applicationtype, accountid, source, sourcerefid, additionaldetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Noc - jsonMaps: - - jsonPath: $.Noc.id - - - jsonPath: $.Noc.applicationNo - - - jsonPath: $.Noc.applicationStatus - - - jsonPath: $.Noc.tenantId - - - jsonPath: $.Noc.status - - - jsonPath: $.Noc.landId - - - jsonPath: $.Noc.nocType - - - jsonPath: $.Noc.applicationType - - - jsonPath: $.Noc.accountId - - - jsonPath: $.Noc.source - - - jsonPath: $.Noc.sourceRefId - - - jsonPath: $.Noc.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Noc.auditDetails.createdBy - - - jsonPath: $.Noc.auditDetails.lastModifiedBy - - - jsonPath: $.Noc.auditDetails.createdTime - - - jsonPath: $.Noc.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_noc_auditdetails SELECT * FROM eg_noc WHERE id =?; - basePath: Noc - jsonMaps: - - - jsonPath: $.Noc.id - - - query: INSERT INTO eg_noc_document(id, documentType, fileStoreId, nocid, documentUid, additionalDetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET documenttype =?, fileStoreId =?, additionalDetails=?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: Noc.documents.* - jsonMaps: - - - jsonPath: $.Noc.documents.*.id - - - jsonPath: $.Noc.documents.*.documentType - - - jsonPath: $.Noc.documents.*.fileStoreId - - - jsonPath: $.Noc.id - - - jsonPath: $.Noc.documents.*.documentUid - - - jsonPath: $.Noc.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Noc.auditDetails.createdBy - - - jsonPath: $.Noc.auditDetails.lastModifiedBy - - - jsonPath: $.Noc.auditDetails.createdTime - - - jsonPath: $.Noc.auditDetails.lastModifiedTime - - - jsonPath: $.Noc.documents.*.documentType - - - jsonPath: $.Noc.documents.*.fileStoreId - - - jsonPath: $.Noc.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Noc.auditDetails.lastModifiedBy - - - jsonPath: $.Noc.auditDetails.lastModifiedTime - - - - version: 1.0 - description: update noc details in EG_NOC table - fromTopic: update-noc-application - isTransaction: true - queryMaps: - - - query: UPDATE eg_noc SET nocNo=?, applicationStatus=?, additionaldetails=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=?; - basePath: Noc - jsonMaps: - - jsonPath: $.Noc.nocNo - - - jsonPath: $.Noc.applicationStatus - - - jsonPath: $.Noc.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Noc.auditDetails.lastModifiedBy - - - jsonPath: $.Noc.auditDetails.lastModifiedTime - - - jsonPath: $.Noc.id - - - query: INSERT INTO eg_noc_auditdetails SELECT * FROM eg_noc WHERE id =?; - basePath: Noc - jsonMaps: - - - jsonPath: $.Noc.id - - - query: INSERT INTO eg_noc_document(id, documentType, fileStoreId, nocid, documentUid, additionalDetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET documenttype =?, fileStoreId =?, additionalDetails=?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: Noc.documents.* - jsonMaps: - - - jsonPath: $.Noc.documents.*.id - - - jsonPath: $.Noc.documents.*.documentType - - - jsonPath: $.Noc.documents.*.fileStoreId - - - jsonPath: $.Noc.id - - - jsonPath: $.Noc.documents.*.documentUid - - - jsonPath: $.Noc.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Noc.auditDetails.createdBy - - - jsonPath: $.Noc.auditDetails.lastModifiedBy - - - jsonPath: $.Noc.auditDetails.createdTime - - - jsonPath: $.Noc.auditDetails.lastModifiedTime - - - jsonPath: $.Noc.documents.*.documentType - - - jsonPath: $.Noc.documents.*.fileStoreId - - - jsonPath: $.Noc.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Noc.auditDetails.lastModifiedBy - - - jsonPath: $.Noc.auditDetails.lastModifiedTime - - - - version: 1.0 - description: update noc workflow details in EG_NOC table - fromTopic: update-noc-workflow - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_noc_document(id, documentType, fileStoreId, nocid, documentUid, additionalDetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET documenttype =?, fileStoreId =?, additionalDetails=?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: Noc.documents.* - jsonMaps: - - - jsonPath: $.Noc.documents.*.id - - - jsonPath: $.Noc.documents.*.documentType - - - jsonPath: $.Noc.documents.*.fileStoreId - - - jsonPath: $.Noc.id - - - jsonPath: $.Noc.documents.*.documentUid - - - jsonPath: $.Noc.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Noc.auditDetails.createdBy - - - jsonPath: $.Noc.auditDetails.lastModifiedBy - - - jsonPath: $.Noc.auditDetails.createdTime - - - jsonPath: $.Noc.auditDetails.lastModifiedTime - - - jsonPath: $.Noc.documents.*.documentType - - - jsonPath: $.Noc.documents.*.fileStoreId - - - jsonPath: $.Noc.documents.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Noc.auditDetails.lastModifiedBy - - - jsonPath: $.Noc.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_noc_auditdetails SELECT * FROM eg_noc WHERE id =?; - basePath: Noc - jsonMaps: - - - jsonPath: $.Noc.id - - - - query: UPDATE eg_noc SET nocNo=?, status=?, applicationStatus=?, additionaldetails=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=?; - basePath: Noc - jsonMaps: - - jsonPath: $.Noc.nocNo - - - jsonPath: $.Noc.status - - - jsonPath: $.Noc.applicationStatus - - - jsonPath: $.Noc.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Noc.auditDetails.lastModifiedBy - - - jsonPath: $.Noc.auditDetails.lastModifiedTime - - - jsonPath: $.Noc.id - - - - diff --git a/egov-persister/nss-persister.yml b/egov-persister/nss-persister.yml deleted file mode 100644 index 7b981d5f..00000000 --- a/egov-persister/nss-persister.yml +++ /dev/null @@ -1,15 +0,0 @@ -serviceMaps: - serviceName: national-dashboard-ingest - mappings: - - version: 1.0 - description: Persists ingest data details in - fromTopic: nss-ingest-keydata - isTransaction: true - queryMaps: - - - query: INSERT INTO nss_ingest_data( uuid, datakey) VALUES (?, ?); - basePath: AckData.* - jsonMaps: - - jsonPath: $.AckData.*.uuid - - - jsonPath: $.AckData.*.datakey \ No newline at end of file diff --git a/egov-persister/pdf-filestoreid-update.yml b/egov-persister/pdf-filestoreid-update.yml deleted file mode 100644 index 1549d28d..00000000 --- a/egov-persister/pdf-filestoreid-update.yml +++ /dev/null @@ -1,30 +0,0 @@ -serviceMaps: - serviceName: pdf-service - mappings: - - version: 1.0 - description: Update fileStoreIds - fromTopic: PDF_GEN_CREATE - isTransaction: true - queryMaps: - - - - query: UPDATE eg_tl_tradelicense SET filestoreid=? WHERE id = ? - basePath: jobs.* - jsonMaps: - - - jsonPath: $.jobs.*.filestoreids - type: ARRAY - dbType: STRING - - - jsonPath: $.jobs.*.entityid - - - - query: UPDATE egbs_bill_v1 SET filestoreid=? WHERE id = ? - basePath: jobs.* - jsonMaps: - - - jsonPath: $.jobs.*.filestoreids - type: ARRAY - dbType: STRING - - - jsonPath: $.jobs.*.entityid diff --git a/egov-persister/pg-service-persister.yml b/egov-persister/pg-service-persister.yml deleted file mode 100644 index 341954f9..00000000 --- a/egov-persister/pg-service-persister.yml +++ /dev/null @@ -1,147 +0,0 @@ -serviceMaps: - serviceName: PaymentGateway - mappings: - - version: 1.0 - name: pg-service - description: Persists transactions - fromTopic: save-pg-txns - isTransaction: true - queryMaps: - - query: INSERT INTO eg_pg_transactions (txn_id, txn_amount, txn_status, txn_status_msg, gateway, consumer_code, bill_id, product_info, user_uuid, user_name, mobile_number, email_id, name, user_tenant_id, tenant_id, gateway_txn_id, gateway_payment_mode, gateway_status_code, gateway_status_msg, receipt, additional_details, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?::numeric, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - - basePath: Transaction - jsonMaps: - - - jsonPath: $.Transaction.txnId - - - jsonPath: $.Transaction.txnAmount - - - jsonPath: $.Transaction.txnStatus - - - jsonPath: $.Transaction.txnStatusMsg - - - jsonPath: $.Transaction.gateway - - - jsonPath: $.Transaction.consumerCode - - - jsonPath: $.Transaction.billId - - - jsonPath: $.Transaction.productInfo - - - jsonPath: $.Transaction.user.uuid - - - jsonPath: $.Transaction.user.userName - - - jsonPath: $.Transaction.user.mobileNumber - - - jsonPath: $.Transaction.user.emailId - - - jsonPath: $.Transaction.user.name - - - jsonPath: $.Transaction.user.tenantId - - - jsonPath: $.Transaction.tenantId - - - jsonPath: $.Transaction.gatewayTxnId - - - jsonPath: $.Transaction.gatewayPaymentMode - - - jsonPath: $.Transaction.gatewayStatusCode - - - jsonPath: $.Transaction.gatewayStatusMsg - - - jsonPath: $.Transaction.receipt - - - jsonPath: $.Transaction.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Transaction.auditDetails.createdBy - - - jsonPath: $.Transaction.auditDetails.createdTime - - - jsonPath: $.Transaction.auditDetails.lastModifiedBy - - - jsonPath: $.Transaction.auditDetails.lastModifiedTime - - - - - version: 1.0 - name: pg-service - description: Persists transaction requests / response to and from gateways - fromTopic: save-pg-txns-dump - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_pg_transactions_dump (txn_id, txn_request, txn_response, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?); - - basePath: TransactionDump - jsonMaps: - - - jsonPath: $.TransactionDump.txnId - - - jsonPath: $.TransactionDump.txnRequest - - - jsonPath: $.TransactionDump.txnResponse - type: JSON - dbType: JSONB - - - jsonPath: $.TransactionDump.auditDetails.createdBy - - - jsonPath: $.TransactionDump.auditDetails.createdTime - - - jsonPath: $.TransactionDump.auditDetails.lastModifiedBy - - - jsonPath: $.TransactionDump.auditDetails.lastModifiedTime - - - version: 1.0 - description: Update transaction - fromTopic: update-pg-txns - isTransaction: true - queryMaps: - - - query: UPDATE eg_pg_transactions SET txn_status=?, txn_status_msg=?, gateway_txn_id=?,gateway_payment_mode=?,gateway_status_code=?, gateway_status_msg=?, receipt=?, last_modified_by=?, last_modified_time=? where txn_id=? AND tenant_id=?; - basePath: Transaction - jsonMaps: - - - jsonPath: $.Transaction.txnStatus - - - jsonPath: $.Transaction.txnStatusMsg - - - jsonPath: $.Transaction.gatewayTxnId - - - jsonPath: $.Transaction.gatewayPaymentMode - - - jsonPath: $.Transaction.gatewayStatusCode - - - jsonPath: $.Transaction.gatewayStatusMsg - - - jsonPath: $.Transaction.receipt - - - jsonPath: $.Transaction.auditDetails.lastModifiedBy - - - jsonPath: $.Transaction.auditDetails.lastModifiedTime - - - jsonPath: $.Transaction.txnId - - - jsonPath: $.Transaction.tenantId - - - version: 1.0 - description: Update transaction dump - fromTopic: update-pg-txns-dump - isTransaction: true - queryMaps: - - - query: UPDATE eg_pg_transactions_dump SET txn_response=?, last_modified_by=?, last_modified_time=? where txn_id=? ; - basePath: TransactionDump - jsonMaps: - - - jsonPath: $.TransactionDump.txnResponse - type: JSON - dbType: JSONB - - - jsonPath: $.TransactionDump.auditDetails.lastModifiedBy - - - jsonPath: $.TransactionDump.auditDetails.lastModifiedTime - - - jsonPath: $.TransactionDump.txnId \ No newline at end of file diff --git a/egov-persister/pgr-migration-batch.yml b/egov-persister/pgr-migration-batch.yml deleted file mode 100644 index 90255198..00000000 --- a/egov-persister/pgr-migration-batch.yml +++ /dev/null @@ -1,181 +0,0 @@ -serviceMaps: - serviceName: pgr-services - mappings: - - version: 1.0 - description: Persists pgr service request in tables - fromTopic: save-pgr-request-batch - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_pgr_service_v2(id, tenantid, servicecode, servicerequestid, description, accountid, additionaldetails, applicationstatus, rating, source, createdby, createdtime, lastmodifiedby, lastmodifiedtime, active) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: service - jsonMaps: - - jsonPath: $.service.id - - - jsonPath: $.service.tenantId - - - jsonPath: $.service.serviceCode - - - jsonPath: $.service.serviceRequestId - - - jsonPath: $.service.description - - - jsonPath: $.service.accountId - - - jsonPath: $.service.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.service.applicationStatus - - - jsonPath: $.service.rating - - - jsonPath: $.service.source - - - jsonPath: $.service.auditDetails.createdBy - - - jsonPath: $.service.auditDetails.createdTime - - - jsonPath: $.service.auditDetails.lastModifiedBy - - - jsonPath: $.service.auditDetails.lastModifiedTime - - - jsonPath: $.service.active - - - query: INSERT INTO eg_pgr_address_v2(id, tenantid, parentid, doorno, plotno, buildingname, street, landmark, city, pincode, locality, district, region, state, country, latitude, longitude, additionaldetails, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: service.address - jsonMaps: - - jsonPath: $.service.address.id - - - jsonPath: $.service.address.tenantId - - - jsonPath: $.service.id - - - jsonPath: $.service.address.doorNo - - - jsonPath: $.service.address.plotNo - - - jsonPath: $.service.address.buildingName - - - jsonPath: $.service.address.street - - - jsonPath: $.service.address.landmark - - - jsonPath: $.service.address.city - - - jsonPath: $.service.address.pincode - - - jsonPath: $.service.address.locality.code - - - jsonPath: $.service.address.district - - - jsonPath: $.service.address.region - - - jsonPath: $.service.address.state - - - jsonPath: $.service.address.country - - - jsonPath: $.service.address.geoLocation.latitude - - - jsonPath: $.service.address.geoLocation.longitude - - - jsonPath: $.service.address.additionDetails - type: JSON - dbType: JSONB - - - jsonPath: $.service.auditDetails.createdBy - - - jsonPath: $.service.auditDetails.createdTime - - - jsonPath: $.service.auditDetails.lastModifiedBy - - - jsonPath: $.service.auditDetails.lastModifiedTime - - - version: 1.0 - description: Persists workflow processInstanceFromRequest details in eg_workflow_v2 table - fromTopic: save-wf-transitions-batch - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_wf_processinstance_v2( id,tenantid,businessService,businessId,moduleName,action,status,comment, assigner, stateSla,businessServiceSla, previousStatus, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: ProcessInstances.* - jsonMaps: - - jsonPath: $.ProcessInstances.*.id - - - jsonPath: $.ProcessInstances.*.tenantId - - - jsonPath: $.ProcessInstances.*.businessService - - - jsonPath: $.ProcessInstances.*.businessId - - - jsonPath: $.ProcessInstances.*.moduleName - - - jsonPath: $.ProcessInstances.*.action - - - jsonPath: $.ProcessInstances.*.state.uuid - - - jsonPath: $.ProcessInstances.*.comment - - - jsonPath: $.ProcessInstances.*.assigner.uuid - - - jsonPath: $.ProcessInstances.*.stateSla - - - jsonPath: $.ProcessInstances.*.businesssServiceSla - - - jsonPath: $.ProcessInstances.*.previousStatus - - - jsonPath: $.ProcessInstances.*.auditDetails.createdBy - - - jsonPath: $.ProcessInstances.*.auditDetails.lastModifiedBy - - - jsonPath: $.ProcessInstances.*.auditDetails.createdTime - - - jsonPath: $.ProcessInstances.*.auditDetails.lastModifiedTime - - - - - - query: INSERT INTO eg_wf_document_v2( id, tenantid, active, documenttype,documentUid, processinstanceid, filestoreid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: ProcessInstances.*.documents.* - jsonMaps: - - jsonPath: $.ProcessInstances.documents.*.id - - - jsonPath: $.ProcessInstances.documents.*.tenantId - - - jsonPath: $.ProcessInstances.documents.*.active - - - jsonPath: $.ProcessInstances.documents.*.documentType - - - jsonPath: $.ProcessInstances.documents.*.documentUid - - - jsonPath: $.ProcessInstances[*][?({id} in @.documents[*].id)].id - - - jsonPath: $.ProcessInstances.documents.*.fileStoreId - - - jsonPath: $.ProcessInstances.documents.*.auditDetails.createdBy - - - jsonPath: $.ProcessInstances.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.ProcessInstances.documents.*.auditDetails.createdTime - - - jsonPath: $.ProcessInstances.documents.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_wf_assignee_v2(processinstanceid, tenantid, assignee, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?); - basePath: ProcessInstances.*.assignes.* - jsonMaps: - - jsonPath: $.ProcessInstances[*][?({uuid} in @.assignes[*].uuid)].id - - - jsonPath: $.ProcessInstances[*][?({uuid} in @.assignes[*].uuid)].tenantId - - - jsonPath: $.ProcessInstances.*.assignes.*.uuid - - - jsonPath: $.ProcessInstances[*][?({uuid} in @.assignes[*].uuid)].auditDetails.createdBy - - - jsonPath: $.ProcessInstances[*][?({uuid} in @.assignes[*].uuid)].auditDetails.lastModifiedBy - - - jsonPath: $.ProcessInstances[*][?({uuid} in @.assignes[*].uuid)].auditDetails.createdTime - - - jsonPath: $.ProcessInstances[*][?({uuid} in @.assignes[*].uuid)].auditDetails.lastModifiedTime - - diff --git a/egov-persister/pgr.yml b/egov-persister/pgr.yml deleted file mode 100644 index fda7078f..00000000 --- a/egov-persister/pgr.yml +++ /dev/null @@ -1,203 +0,0 @@ -serviceMaps: - serviceName: User Service - mappings: - - version: 1.0 - name: Asset - description: Persists asset details in eg_asset table - fromTopic: save-pgr-servicereq - isTransaction: true - queryMaps: - - query: INSERT INTO eg_pgr_servicereq(tenantId,serviceCode,serviceRequestId,description,lat,long,address,addressId,email,deviceId,accountId,firstName,lastName,phone,attributes,status,assignedTo,source,expectedTime,createdby,createdtime,lastmodifiedby,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - - basePath: serviceReq.* - jsonMaps: - - - - jsonPath: $.serviceReq.*.tenantId - - - jsonPath: $.serviceReq.*.serviceCode - - - jsonPath: $.serviceReq.*.serviceRequestId - - - jsonPath: $.serviceReq.*.description - - - jsonPath: $.serviceReq.*.lat - - - jsonPath: $.serviceReq.*._long - - - jsonPath: $.serviceReq.*.address - - - jsonPath: $.serviceReq.*.addressId - - - jsonPath: $.serviceReq.*.email - - - jsonPath: $.serviceReq.*.deviceId - - - jsonPath: $.serviceReq.*.accountId - - - jsonPath: $.serviceReq.*.firstName - - - jsonPath: $.serviceReq.*.lastName - - - jsonPath: $.serviceReq.*.phone - - - jsonPath: $.serviceReq.*.attributes - type: JSON - dbType: JSONB - - - jsonPath: $.serviceReq.*.status - - - jsonPath: $.serviceReq.*.assignedTo - - - jsonPath: $.serviceReq.*.source - - - jsonPath: $.serviceReq.*.expectedTime - - - jsonPath: $.serviceReq.*.auditDetails.createdBy - - - jsonPath: $.serviceReq.*.auditDetails.createdTime - - - jsonPath: $.serviceReq.*.auditDetails.lastModifiedBy - - - jsonPath: $.serviceReq.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pgr_media(id, by, "when",url, tenantId,serviceRequestId) VALUES (?,?,?,?,?,?); - - basePath: serviceReq.*.media.* - jsonMaps: - - - jsonPath: $.serviceReq.*.media.*.id - - - jsonPath: $.serviceReq.*.media.*.by - - - jsonPath: $.serviceReq[?({id} in @.media[*].id)].auditDetails.createdTime - - - jsonPath: $.serviceReq.*.media.*.url - - - jsonPath: $.serviceReq[?({id} in @.media[*].id)].tenantId - - - jsonPath: $.serviceReq[?({id} in @.media[*].id)].serviceRequestId - - - - query: INSERT INTO eg_pgr_comment(id, by, "when", message, tenantId,serviceRequestId, isInternal) VALUES (?,?,?,?,?,?,?); - - basePath: serviceReq.*.comments.* - jsonMaps: - - - jsonPath: $.serviceReq.*.comments.*.id - - - jsonPath: $.serviceReq.*.comments.*.by - - - jsonPath: $.serviceReq[?({id} in @.comments[*].id)].auditDetails.createdTime - - - jsonPath: $.serviceReq.*.comments.*.message - - - jsonPath: $.serviceReq[?({id} in @.comments[*].id)].tenantId - - - jsonPath: $.serviceReq[?({id} in @.comments[*].id)].serviceRequestId - - - jsonPath: $.serviceReq.*.comments.*.isInternal - - - - version: 1.0 - name: Asset - description: Persists asset details in eg_asset table - fromTopic: update-pgr-servicereq - isTransaction: true - queryMaps: - - query: INSERT INTO eg_pgr_servicereq_audit (tenantid, servicecode, servicerequestid, description, lat, "long", address, addressid, email, deviceid, accountid, firstname,lastname, phone, attributes, status, assignedto, source, expectedtime, createdby, createdtime,auditcreatedtime) SELECT tenantid, servicecode, servicerequestid, description, lat, "long", address, addressid, email, deviceid, accountid,firstname, lastname, phone, attributes, status, assignedto, source, expectedtime,lastmodifiedby,lastmodifiedtime,(select extract (EPOCH from now())*1000) FROM eg_pgr_servicereq where tenantId=? AND servicerequestid=?; - - basePath: serviceReq.* - jsonMaps: - - - jsonPath: $.serviceReq.*.tenantId - - - jsonPath: $.serviceReq.*.serviceRequestId - - - - query: UPDATE eg_pgr_servicereq SET description=?, lat=?, long=?,address=?, addressid=?, email=?, deviceid=?, accountid=?, firstname=?, lastname=?, phone=?, attributes=?, status=?, assignedto=?, source=?, expectedtime=?, lastmodifiedby=?, lastmodifiedtime=? WHERE tenantid=? AND servicerequestid=?; - - basePath: serviceReq.* - jsonMaps: - - - jsonPath: $.serviceReq.*.description - - - jsonPath: $.serviceReq.*.lat - - - jsonPath: $.serviceReq.*._long - - - jsonPath: $.serviceReq.*.address - - - jsonPath: $.serviceReq.*.addressId - - - jsonPath: $.serviceReq.*.email - - - jsonPath: $.serviceReq.*.deviceId - - - jsonPath: $.serviceReq.*.accountId - - - jsonPath: $.serviceReq.*.firstName - - - jsonPath: $.serviceReq.*.lastName - - - jsonPath: $.serviceReq.*.phone - - - jsonPath: $.serviceReq.*.attributes - type: JSON - dbType: JSONB - - - jsonPath: $.serviceReq.*.status - - - jsonPath: $.serviceReq.*.assignedTo - - - jsonPath: $.serviceReq.*.source - - - jsonPath: $.serviceReq.*.expectedTime - - - jsonPath: $.serviceReq.*.auditDetails.lastModifiedBy - - - jsonPath: $.serviceReq.*.auditDetails.lastModifiedTime - - - jsonPath: $.serviceReq.*.tenantId - - - jsonPath: $.serviceReq.*.serviceRequestId - - - - - query: INSERT INTO eg_pgr_media(id, by, "when",url, tenantId,serviceRequestId) VALUES (?,?,?,?,?,?) ON CONFLICT (id,TenantId) DO NOTHING; - - basePath: serviceReq.*.media.* - jsonMaps: - - - jsonPath: $.serviceReq.*.media.*.id - - - jsonPath: $.serviceReq.*.media.*.by - - - jsonPath: $.serviceReq[?({id} in @.media[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.serviceReq.*.media.*.url - - - jsonPath: $.serviceReq[?({id} in @.media[*].id)].tenantId - - - jsonPath: $.serviceReq[?({id} in @.media[*].id)].serviceRequestId - - - - query: INSERT INTO eg_pgr_comment(id, by, "when", message, tenantId,serviceRequestId, isInternal) VALUES (?,?,?,?,?,?,?) ON CONFLICT (id,tenantId) DO NOTHING; - - basePath: serviceReq.*.comments.* - jsonMaps: - - - jsonPath: $.serviceReq.*.comments.*.id - - - jsonPath: $.serviceReq.*.comments.*.by - - - jsonPath: $.serviceReq[?({id} in @.comments[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.serviceReq.*.comments.*.message - - - jsonPath: $.serviceReq[?({id} in @.comments[*].id)].tenantId - - - jsonPath: $.serviceReq[?({id} in @.comments[*].id)].serviceRequestId - - - jsonPath: $.serviceReq.*.comments.*.isInternal diff --git a/egov-persister/plan-service-persister.yml b/egov-persister/plan-service-persister.yml new file mode 100644 index 00000000..1cb92949 --- /dev/null +++ b/egov-persister/plan-service-persister.yml @@ -0,0 +1,589 @@ +serviceMaps: + serviceName: plan-service + mappings: + - version: 1.0 + name: plan-configuration + description: Persists plan configuration details + fromTopic: plan-config-create-topic + isTransaction: true + isAuditEnabled: true + module: PLAN + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.PlanConfiguration + queryMaps: + - query: INSERT INTO plan_configuration(id, tenant_id, name, campaign_id, status, created_by, created_time, last_modified_by, last_modified_time, additional_details) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration + jsonMaps: + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.tenantId + - jsonPath: $.PlanConfiguration.name + - jsonPath: $.PlanConfiguration.campaignId + - jsonPath: $.PlanConfiguration.status + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.additionalDetails + type: JSON + dbType: JSONB + + - query: INSERT INTO plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, template_identifier, active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.files.* + jsonMaps: + - jsonPath: $.PlanConfiguration.files.*.id + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.files.*.filestoreId + - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.files.*.templateIdentifier + - jsonPath: $.PlanConfiguration.files.*.active + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + + - query: INSERT INTO plan_configuration_assumptions(id, key, value, source, category, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.assumptions.* + jsonMaps: + - jsonPath: $.PlanConfiguration.assumptions.*.id + - jsonPath: $.PlanConfiguration.assumptions.*.key + - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.assumptions.*.source + - jsonPath: $.PlanConfiguration.assumptions.*.category + - jsonPath: $.PlanConfiguration.assumptions.*.active + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_configuration_operations(id, input, operator, assumption_value, output, source, category, active, execution_order, show_on_estimation_dashboard, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.operations.* + jsonMaps: + - jsonPath: $.PlanConfiguration.operations.*.id + - jsonPath: $.PlanConfiguration.operations.*.input + - jsonPath: $.PlanConfiguration.operations.*.operator + - jsonPath: $.PlanConfiguration.operations.*.assumptionValue + - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.operations.*.source + - jsonPath: $.PlanConfiguration.operations.*.category + - jsonPath: $.PlanConfiguration.operations.*.active + - jsonPath: $.PlanConfiguration.operations.*.executionOrder + - jsonPath: $.PlanConfiguration.operations.*.showOnEstimationDashboard + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_configuration_mapping(id, filestore_id, mapped_from, mapped_to, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.resourceMapping.* + jsonMaps: + - jsonPath: $.PlanConfiguration.resourceMapping.*.id + - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.resourceMapping.*.active + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + + - version: 1.0 + name: plan-configuration + description: Updates plan configuration details + fromTopic: plan-config-update-topic + isTransaction: true + isAuditEnabled: true + module: PLAN + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.PlanConfiguration + queryMaps: + - query: UPDATE plan_configuration SET tenant_id = ?, name = ?, campaign_id = ?, status = ?, last_modified_by = ?, last_modified_time = ?, additional_details = ? WHERE id = ?; + basePath: $.PlanConfiguration + jsonMaps: + - jsonPath: $.PlanConfiguration.tenantId + - jsonPath: $.PlanConfiguration.name + - jsonPath: $.PlanConfiguration.campaignId + - jsonPath: $.PlanConfiguration.status + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.PlanConfiguration.id + + + - query: INSERT INTO plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, template_identifier, active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET filestore_id =?, input_file_type = ?, template_identifier = ?, active = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.files.* + jsonMaps: + - jsonPath: $.PlanConfiguration.files.*.id + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.files.*.filestoreId + - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.files.*.templateIdentifier + - jsonPath: $.PlanConfiguration.files.*.active + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.files.*.filestoreId + - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.files.*.templateIdentifier + - jsonPath: $.PlanConfiguration.files.*.active + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: DELETE FROM plan_configuration_files WHERE id = ? and active = false; + basePath: $.PlanConfiguration.files.* + jsonMaps: + - jsonPath: $.PlanConfiguration.files.*.id + + - query: INSERT INTO plan_configuration_assumptions(id, key, value, source, category, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET key = ?, value = ?, active = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.assumptions.* + jsonMaps: + - jsonPath: $.PlanConfiguration.assumptions.*.id + - jsonPath: $.PlanConfiguration.assumptions.*.key + - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.assumptions.*.source + - jsonPath: $.PlanConfiguration.assumptions.*.category + - jsonPath: $.PlanConfiguration.assumptions.*.active + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.assumptions.*.key + - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.assumptions.*.active + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: DELETE FROM plan_configuration_assumptions WHERE id = ? and active = false; + basePath: $.PlanConfiguration.assumptions.* + jsonMaps: + - jsonPath: $.PlanConfiguration.assumptions.*.id + + - query: INSERT INTO plan_configuration_operations(id, input, operator, assumption_value, output, source, category, active, execution_order, show_on_estimation_dashboard, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET input = ?, operator = ?, assumption_value = ?, output = ?, active = ?, execution_order = ?, show_on_estimation_dashboard = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.operations.* + jsonMaps: + - jsonPath: $.PlanConfiguration.operations.*.id + - jsonPath: $.PlanConfiguration.operations.*.input + - jsonPath: $.PlanConfiguration.operations.*.operator + - jsonPath: $.PlanConfiguration.operations.*.assumptionValue + - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.operations.*.source + - jsonPath: $.PlanConfiguration.operations.*.category + - jsonPath: $.PlanConfiguration.operations.*.active + - jsonPath: $.PlanConfiguration.operations.*.executionOrder + - jsonPath: $.PlanConfiguration.operations.*.showOnEstimationDashboard + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.operations.*.input + - jsonPath: $.PlanConfiguration.operations.*.operator + - jsonPath: $.PlanConfiguration.operations.*.assumptionValue + - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.operations.*.active + - jsonPath: $.PlanConfiguration.operations.*.executionOrder + - jsonPath: $.PlanConfiguration.operations.*.showOnEstimationDashboard + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: DELETE FROM plan_configuration_operations WHERE id = ? and active = false; + basePath: $.PlanConfiguration.operations.* + jsonMaps: + - jsonPath: $.PlanConfiguration.operations.*.id + + - query: INSERT INTO plan_configuration_mapping(id, filestore_id, mapped_from, mapped_to, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET mapped_from = ?, mapped_to = ?, filestore_id = ?, active = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.resourceMapping.* + jsonMaps: + - jsonPath: $.PlanConfiguration.resourceMapping.*.id + - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.resourceMapping.*.active + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId + - jsonPath: $.PlanConfiguration.resourceMapping.*.active + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + + + + - version: 1.0 + description: Persists the plan employee assignment details + fromTopic: plan-employee-assignment-create-topic + isTransaction: true + queryMaps: + - query: INSERT INTO plan_employee_assignment(id, tenant_id, plan_configuration_id, plan_configuration_name, employee_id, role, hierarchy_level, jurisdiction, additional_details, active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanEmployeeAssignment + jsonMaps: + - jsonPath: $.PlanEmployeeAssignment.id + - jsonPath: $.PlanEmployeeAssignment.tenantId + - jsonPath: $.PlanEmployeeAssignment.planConfigurationId + - jsonPath: $.PlanEmployeeAssignment.planConfigurationName + - jsonPath: $.PlanEmployeeAssignment.employeeId + - jsonPath: $.PlanEmployeeAssignment.role + - jsonPath: $.PlanEmployeeAssignment.hierarchyLevel + - jsonPath: $.PlanEmployeeAssignment.jurisdiction + - jsonPath: $.PlanEmployeeAssignment.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.PlanEmployeeAssignment.active + - jsonPath: $.PlanEmployeeAssignment.auditDetails.createdBy + - jsonPath: $.PlanEmployeeAssignment.auditDetails.createdTime + - jsonPath: $.PlanEmployeeAssignment.auditDetails.lastModifiedBy + - jsonPath: $.PlanEmployeeAssignment.auditDetails.lastModifiedTime + + - version: 1.0 + description: Updates the plan employee assignment details + fromTopic: plan-employee-assignment-update-topic + isTransaction: true + queryMaps: + - query: UPDATE plan_employee_assignment SET jurisdiction = ?, hierarchy_level = ?, additional_details = ?, active = ?, last_modified_by = ?, last_modified_time = ? WHERE id = ?; + basePath: $.PlanEmployeeAssignment + jsonMaps: + - jsonPath: $.PlanEmployeeAssignment.jurisdiction + - jsonPath: $.PlanEmployeeAssignment.hierarchyLevel + - jsonPath: $.PlanEmployeeAssignment.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.PlanEmployeeAssignment.active + - jsonPath: $.PlanEmployeeAssignment.auditDetails.lastModifiedBy + - jsonPath: $.PlanEmployeeAssignment.auditDetails.lastModifiedTime + - jsonPath: $.PlanEmployeeAssignment.id + + - version: 1.0.0 + description: Persists the plan + fromTopic: save-plan + isTransaction: true + queryMaps: + - query: INSERT INTO plan(id, tenant_id, locality, campaign_id, plan_configuration_id, status, assignee, boundary_ancestral_path, additional_details, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan + jsonMaps: + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.tenantId + + - jsonPath: $.Plan.locality + + - jsonPath: $.Plan.campaignId + + - jsonPath: $.Plan.planConfigurationId + + - jsonPath: $.Plan.status + + - jsonPath: $.Plan.assignee + + - jsonPath: $.Plan.boundaryAncestralPath + + - jsonPath: $.Plan.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_activity(id, code, description, planned_start_date, planned_end_date, dependencies, plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.activities.* + jsonMaps: + - jsonPath: $.Plan.activities.*.id + + - jsonPath: $.Plan.activities.*.code + + - jsonPath: $.Plan.activities.*.description + + - jsonPath: $.Plan.activities.*.plannedStartDate + + - jsonPath: $.Plan.activities.*.plannedEndDate + + - jsonPath: $.Plan.activities.*.dependencies + type: ARRAY + dbType: STRING + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_activity_condition(id, entity, entity_property, expression, activity_id, is_active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.activities.*.conditions.* + jsonMaps: + - jsonPath: $.Plan.activities.*.conditions.*.id + + - jsonPath: $.Plan.activities.*.conditions.*.entity + + - jsonPath: $.Plan.activities.*.conditions.*.entityProperty + + - jsonPath: $.Plan.activities.*.conditions.*.expression + + - jsonPath: $.Plan.activities[*][?({id} in @.conditions[*].id)].id + + - jsonPath: $.Plan.activities.*.conditions.*.isActive + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_resource(id, resource_type, estimated_number, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.resources.* + jsonMaps: + - jsonPath: $.Plan.resources.*.id + + - jsonPath: $.Plan.resources.*.resourceType + + - jsonPath: $.Plan.resources.*.estimatedNumber + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.resources.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_target(id, metric, metric_value, metric_comparator, metric_unit, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.targets.* + jsonMaps: + - jsonPath: $.Plan.targets.*.id + + - jsonPath: $.Plan.targets.*.metric + + - jsonPath: $.Plan.targets.*.metricDetail.value + + - jsonPath: $.Plan.targets.*.metricDetail.comparator + + - jsonPath: $.Plan.targets.*.metricDetail.unit + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.targets.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - version: 1.0.0 + description: Updates the plan + fromTopic: update-plan + isTransaction: true + queryMaps: + - query: UPDATE plan SET status = ?, assignee = ?, additional_details = ?, last_modified_by=?, last_modified_time=? WHERE id = ?; + basePath: $.Plan + jsonMaps: + - jsonPath: $.Plan.status + + - jsonPath: $.Plan.assignee + + - jsonPath: $.Plan.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - jsonPath: $.Plan.id + + - query: INSERT INTO plan_activity(id, code, description, planned_start_date, planned_end_date, dependencies, plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET description = EXCLUDED.description, planned_start_date = EXCLUDED.planned_start_date, planned_end_date = EXCLUDED.planned_end_date, dependencies = EXCLUDED.dependencies, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.activities.* + jsonMaps: + - jsonPath: $.Plan.activities.*.id + + - jsonPath: $.Plan.activities.*.code + + - jsonPath: $.Plan.activities.*.description + + - jsonPath: $.Plan.activities.*.plannedStartDate + + - jsonPath: $.Plan.activities.*.plannedEndDate + + - jsonPath: $.Plan.activities.*.dependencies + type: ARRAY + dbType: STRING + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_activity_condition(id, entity, entity_property, expression, activity_id, is_active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET entity = EXCLUDED.entity, entity_property = EXCLUDED.entity_property, expression = EXCLUDED.expression, is_active = EXCLUDED.is_active, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.activities.*.conditions.* + jsonMaps: + - jsonPath: $.Plan.activities.*.conditions.*.id + + - jsonPath: $.Plan.activities.*.conditions.*.entity + + - jsonPath: $.Plan.activities.*.conditions.*.entityProperty + + - jsonPath: $.Plan.activities.*.conditions.*.expression + + - jsonPath: $.Plan.activities[*][?({id} in @.conditions[*].id)].id + + - jsonPath: $.Plan.activities.*.conditions.*.isActive + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_resource(id, resource_type, estimated_number, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET resource_type = EXCLUDED.resource_type, estimated_number = EXCLUDED.estimated_number, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.resources.* + jsonMaps: + - jsonPath: $.Plan.resources.*.id + + - jsonPath: $.Plan.resources.*.resourceType + + - jsonPath: $.Plan.resources.*.estimatedNumber + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.resources.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_target(id, metric, metric_value, metric_comparator, metric_unit, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET metric = EXCLUDED.metric, metric_value = EXCLUDED.metric_value, metric_comparator = EXCLUDED.metric_comparator, metric_unit = EXCLUDED.metric_unit, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.targets.* + jsonMaps: + - jsonPath: $.Plan.targets.*.id + + - jsonPath: $.Plan.targets.*.metric + + - jsonPath: $.Plan.targets.*.metricDetail.value + + - jsonPath: $.Plan.targets.*.metricDetail.comparator + + - jsonPath: $.Plan.targets.*.metricDetail.unit + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.targets.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + + - version: 1.0.0 + description: Persists the plan facility + fromTopic: save-plan-facility + isTransaction: true + isAuditEnabled: true + queryMaps: + - query: INSERT INTO plan_facility_linkage(id, tenant_id, plan_configuration_id, plan_configuration_name, facility_id, facility_name, residing_boundary, service_boundaries, boundary_ancestral_path, additional_details, active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanFacility + jsonMaps: + - jsonPath: $.PlanFacility.id + + - jsonPath: $.PlanFacility.tenantId + + - jsonPath: $.PlanFacility.planConfigurationId + + - jsonPath: $.PlanFacility.planConfigurationName + + - jsonPath: $.PlanFacility.facilityId + + - jsonPath: $.PlanFacility.facilityName + + - jsonPath: $.PlanFacility.residingBoundary + + - jsonPath: $.PlanFacility.serviceBoundaries + + - jsonPath: $.PlanFacility.boundaryAncestralPath + + - jsonPath: $.PlanFacility.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.PlanFacility.active + + - jsonPath: $.PlanFacility.auditDetails.createdBy + + - jsonPath: $.PlanFacility.auditDetails.createdTime + + - jsonPath: $.PlanFacility.auditDetails.lastModifiedBy + + - jsonPath: $.PlanFacility.auditDetails.lastModifiedTime + + - version: 1.0.0 + description: Updates the plan facility + fromTopic: update-plan-facility + isTransaction: true + queryMaps: + - query: UPDATE plan_facility_linkage SET residing_boundary = ?, service_boundaries = ?, additional_details = ?, active = ?, last_modified_by = ?, last_modified_time = ? WHERE id = ?; + basePath: $.PlanFacility + jsonMaps: + - jsonPath: $.PlanFacility.residingBoundary + + - jsonPath: $.PlanFacility.serviceBoundaries + + - jsonPath: $.PlanFacility.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.PlanFacility.active + + - jsonPath: $.PlanFacility.auditDetails.lastModifiedBy + + - jsonPath: $.PlanFacility.auditDetails.lastModifiedTime + + - jsonPath: $.PlanFacility.id \ No newline at end of file diff --git a/egov-persister/privacy-audit.yml b/egov-persister/privacy-audit.yml deleted file mode 100644 index d58f1244..00000000 --- a/egov-persister/privacy-audit.yml +++ /dev/null @@ -1,33 +0,0 @@ -serviceMaps: - serviceName: enc-client - mappings: - - version: 1.0 - name: privacyAuditData - description: save audit details of user info access - fromTopic: enc-user-audit-data - isTransaction: true - queryMaps: - - query: INSERT INTO eg_privacy_userinfo_access_audit (id, userid, accesstime, purpose, model, entityids, plainaccessrequest, additionalinfo) VALUES (?, ?, ?, ?, ?, ?, ?, ?); - basePath: $ - jsonMaps: - - jsonPath: $.id - - - jsonPath: $.userId - - - jsonPath: $.timestamp - - - jsonPath: $.purpose - - - jsonPath: $.model - - - jsonPath: $.entityIds - type: JSON - dbType: JSONB - - - jsonPath: $.plainAccessRequest - type: JSON - dbType: JSONB - - - jsonPath: $.additionalInfo - type: JSON - dbType: JSONB \ No newline at end of file diff --git a/egov-persister/product-persister.yml b/egov-persister/product-persister.yml index fd566922..b13d622e 100644 --- a/egov-persister/product-persister.yml +++ b/egov-persister/product-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Persists Product fromTopic: save-product-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO product(id, tenantId, type, name, manufacturer, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* @@ -28,6 +35,13 @@ serviceMaps: description: Updates Product fromTopic: update-product-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE product SET tenantId = ?, type = ?, name = ?, manufacturer = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ? basePath: $.* @@ -49,6 +63,13 @@ serviceMaps: description: Saves a product variant fromTopic: save-product-variant-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO product_variant(id, tenantId, productId, sku, variation, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -72,6 +93,13 @@ serviceMaps: description: Updates a product variant fromTopic: update-product-variant-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE product_variant SET tenantId = ?, productId = ?, sku = ?, variation = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ?; basePath: $.* diff --git a/egov-persister/project-factory-persister.yml b/egov-persister/project-factory-persister.yml new file mode 100644 index 00000000..59075431 --- /dev/null +++ b/egov-persister/project-factory-persister.yml @@ -0,0 +1,233 @@ +serviceMaps: + serviceName: API Resource Service + mappings: + - version: 1.0 + name: CreateResourceDetails + description: Create resource details in the eg_cm_resource_details table + fromTopic: create-resource-details + isTransaction: true + queryMaps: + - query: INSERT INTO eg_cm_resource_details(id, "status", tenantId, fileStoreId,processedFileStoreId,"action", campaignId,"type", createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails) VALUES (?, ?,?, ?,?,?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.ResourceDetails + jsonMaps: + - jsonPath: $.ResourceDetails.id + - jsonPath: $.ResourceDetails.status + - jsonPath: $.ResourceDetails.tenantId + - jsonPath: $.ResourceDetails.fileStoreId + - jsonPath: $.ResourceDetails.processedFileStoreId + - jsonPath: $.ResourceDetails.action + - jsonPath: $.ResourceDetails.campaignId + - jsonPath: $.ResourceDetails.type + - jsonPath: $.ResourceDetails.auditDetails.createdBy + - jsonPath: $.ResourceDetails.auditDetails.createdTime + - jsonPath: $.ResourceDetails.auditDetails.lastModifiedBy + - jsonPath: $.ResourceDetails.auditDetails.lastModifiedTime + - jsonPath: $.ResourceDetails.additionalDetails + type: JSON + dbType: JSONB + + + + - version: 1.0 + name: UpdateResourceDetails + description: Update resource details in the eg_cm_resource_details table + fromTopic: update-resource-details + isTransaction: true + queryMaps: + - query: UPDATE eg_cm_resource_details SET "status" = ?, processedFileStoreId = ?, lastModifiedBy = ?, lastModifiedTime = ?,additionalDetails = ? WHERE id = ?; + basePath: $.ResourceDetails + jsonMaps: + - jsonPath: $.ResourceDetails.status + - jsonPath: $.ResourceDetails.processedFileStoreId + - jsonPath: $.ResourceDetails.auditDetails.lastModifiedBy + - jsonPath: $.ResourceDetails.auditDetails.lastModifiedTime + - jsonPath: $.ResourceDetails.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.ResourceDetails.id + + + - version: 1.0 + name: CreateResourceActivity + description: Create resource activity in the eg_cm_resource_activity table + fromTopic: create-resource-activity + isTransaction: true + queryMaps: + - query: INSERT INTO eg_cm_resource_activity (id, "status", retryCount,tenantId, type, url, requestPayload, responsePayload, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails, resourceDetailsId) VALUES (?, ?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?); + basePath: $.Activities.* + jsonMaps: + - jsonPath: $.Activities.*.id + - jsonPath: $.Activities.*.status + - jsonPath: $.Activities.*.retryCount + - jsonPath: $.Activities.*.tenantId + - jsonPath: $.Activities.*.type + - jsonPath: $.Activities.*.url + - jsonPath: $.Activities.*.requestPayload + type: JSON + dbType: JSONB + - jsonPath: $.Activities.*.responsePayload + type: JSON + dbType: JSONB + - jsonPath: $.Activities.*.auditDetails.createdBy + - jsonPath: $.Activities.*.auditDetails.createdTime + - jsonPath: $.Activities.*.auditDetails.lastModifiedBy + - jsonPath: $.Activities.*.auditDetails.lastModifiedTime + - jsonPath: $.Activities.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.Activities.*.resourceDetailsId + + + - version: 1.0 + name: CreateForGenerateApiResources + description: Create Api resource in the eg_cm_generated_resource_details table + fromTopic: create-generated-resource-details + isTransaction: true + queryMaps: + - query: INSERT INTO eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails, campaignid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: generatedResource.* + jsonMaps: + - jsonPath: $.generatedResource.*.id + - jsonPath: $.generatedResource.*.fileStoreid + - jsonPath: $.generatedResource.*.type + - jsonPath: $.generatedResource.*.status + - jsonPath: $.generatedResource.*.count + - jsonPath: $.generatedResource.*.tenantId + - jsonPath: $.generatedResource.*.hierarchyType + - jsonPath: $.generatedResource.*.auditDetails.createdBy + - jsonPath: $.generatedResource.*.auditDetails.createdTime + - jsonPath: $.generatedResource.*.auditDetails.lastModifiedBy + - jsonPath: $.generatedResource.*.auditDetails.lastModifiedTime + - jsonPath: $.generatedResource.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.generatedResource.*.campaignId + + + + + - version: 1.0 + name: UpdateForGenerateApiResources + description: Update Api resource in the eg_cm_generated_resource_details table + fromTopic: update-generated-resource-details + isTransaction: true + queryMaps: + - query: UPDATE eg_cm_generated_resource_details SET status = ?,count=?, lastModifiedby =? , lastModifiedtime = ? , fileStoreid= ?, additionalDetails= ? WHERE id= ?; + basePath: generatedResource.* + jsonMaps: + - jsonPath: $.generatedResource.*.status + - jsonPath: $.generatedResource.*.count + - jsonPath: $.generatedResource.*.auditDetails.lastModifiedBy + - jsonPath: $.generatedResource.*.auditDetails.lastModifiedTime + - jsonPath: $.generatedResource.*.fileStoreid + - jsonPath: $.generatedResource.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.generatedResource.*.id + + + - version: 1.0 + name: CreateCampaignDetails + description: Create campaign details in the eg_cm_campaign_details table + fromTopic: save-project-campaign-details + isTransaction: true + queryMaps: + - query: INSERT INTO eg_cm_campaign_details(id, tenantId, "status","action",campaignName,projectType, campaignNumber,hierarchyType,boundaryCode, projectId,startDate,endDate, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails,campaignDetails) VALUES (?,?,?,?,?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?,?,?); + basePath: $.CampaignDetails + jsonMaps: + - jsonPath: $.CampaignDetails.id + - jsonPath: $.CampaignDetails.tenantId + - jsonPath: $.CampaignDetails.status + - jsonPath: $.CampaignDetails.action + - jsonPath: $.CampaignDetails.campaignName + - jsonPath: $.CampaignDetails.projectType + - jsonPath: $.CampaignDetails.campaignNumber + - jsonPath: $.CampaignDetails.hierarchyType + - jsonPath: $.CampaignDetails.boundaryCode + - jsonPath: $.CampaignDetails.projectId + - jsonPath: $.CampaignDetails.startDate + - jsonPath: $.CampaignDetails.endDate + - jsonPath: $.CampaignDetails.auditDetails.createdBy + - jsonPath: $.CampaignDetails.auditDetails.createdTime + - jsonPath: $.CampaignDetails.auditDetails.lastModifiedBy + - jsonPath: $.CampaignDetails.auditDetails.lastModifiedTime + - jsonPath: $.CampaignDetails.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.CampaignDetails.campaignDetails + type: JSON + dbType: JSONB + + + - version: 1.0 + name: UpdateCampaignDetails + description: Update campaign details in the eg_cm_campaign_details table + fromTopic: update-project-campaign-details + isTransaction: true + queryMaps: + - query: UPDATE eg_cm_campaign_details SET campaignName = ?, "status" = ?, action = ?, projectType = ?, hierarchyType = ?, boundaryCode = ?, projectId = ?,startDate=?,endDate=?, lastModifiedBy = ?, lastModifiedTime = ?, additionalDetails = ?, campaignDetails = ? WHERE id = ?; + basePath: $.CampaignDetails + jsonMaps: + - jsonPath: $.CampaignDetails.campaignName + - jsonPath: $.CampaignDetails.status + - jsonPath: $.CampaignDetails.action + - jsonPath: $.CampaignDetails.projectType + - jsonPath: $.CampaignDetails.hierarchyType + - jsonPath: $.CampaignDetails.boundaryCode + - jsonPath: $.CampaignDetails.projectId + - jsonPath: $.CampaignDetails.startDate + - jsonPath: $.CampaignDetails.endDate + - jsonPath: $.CampaignDetails.auditDetails.lastModifiedBy + - jsonPath: $.CampaignDetails.auditDetails.lastModifiedTime + - jsonPath: $.CampaignDetails.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.CampaignDetails.campaignDetails + type: JSON + dbType: JSONB + - jsonPath: $.CampaignDetails.id + + + - version: 1.0 + name: CreateProcessTrack + description: Create process track in the eg_cm_campaign_process table + fromTopic: save-process-track + isTransaction: true + queryMaps: + - query: INSERT INTO eg_cm_campaign_process(id, campaignId, "type","status",details,createdtime, lastmodifiedtime,additionaldetails) VALUES (?,?,?,?,?,?,?,?); + basePath: processDetails.* + jsonMaps: + - jsonPath: $.processDetails.*.id + - jsonPath: $.processDetails.*.campaignId + - jsonPath: $.processDetails.*.type + - jsonPath: $.processDetails.*.status + - jsonPath: $.processDetails.*.details + type: JSON + dbType: JSONB + - jsonPath: $.processDetails.*.createdTime + - jsonPath: $.processDetails.*.lastModifiedTime + - jsonPath: $.processDetails.*.additionalDetails + type: JSON + dbType: JSONB + + - version: 1.0 + name: UpdateProcessTrack + description: Update process track in the eg_cm_campaign_process table + fromTopic: update-process-track + isTransaction: true + queryMaps: + - query: UPDATE eg_cm_campaign_process SET campaignId = ?, "type" = ?, "status" = ?,details = ?,createdtime = ?,lastmodifiedtime = ?,additionaldetails = ? WHERE id = ?; + basePath: $.processDetails + jsonMaps: + - jsonPath: $.processDetails.campaignId + - jsonPath: $.processDetails.type + - jsonPath: $.processDetails.status + - jsonPath: $.processDetails.details + type: JSON + dbType: JSONB + - jsonPath: $.processDetails.createdTime + - jsonPath: $.processDetails.lastModifiedTime + - jsonPath: $.processDetails.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.processDetails.id diff --git a/egov-persister/project-persister.yml b/egov-persister/project-persister.yml index c1d85198..5bad1143 100644 --- a/egov-persister/project-persister.yml +++ b/egov-persister/project-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a project staff fromTopic: save-project-staff-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO project_staff (id, tenantId, projectId, staffId, startDate, endDate, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -29,8 +36,15 @@ serviceMaps: description: Update Project Staff fromTopic: update-project-staff-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE project_staff SET projectId=?, staffId=?, startDate=?, endDate=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? + - query: UPDATE project_staff SET projectId=?, staffId=?, startDate=?, endDate=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* jsonMaps: - jsonPath: $.*.projectId @@ -50,6 +64,13 @@ serviceMaps: description: Deletes Project Staff fromTopic: delete-project-staff-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE project_staff SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* @@ -67,8 +88,15 @@ serviceMaps: description: Saves a project beneficiary fromTopic: save-project-beneficiary-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: INSERT INTO project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy, tag) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -87,13 +115,25 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.tag - version: 1.0 description: Update Project Beneficiary fromTopic: update-project-beneficiary-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? AND isDeleted=false + - query: UPDATE project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, tag=? WHERE id = ? AND isDeleted=false basePath: $.* jsonMaps: - jsonPath: $.*.projectId @@ -108,18 +148,30 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.tag - jsonPath: $.*.id - version: 1.0 description: Deletes Project Beneficiaries fromTopic: delete-project-beneficiary-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE project_beneficiary SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + - query: UPDATE project_beneficiary SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - jsonPath: $.*.additionalFields @@ -132,6 +184,13 @@ serviceMaps: description: Persists project details in project table fromTopic: save-project isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO project(id,tenantId,projectNumber,name,projectType,projectTypeId,projectSubType,department,description,referenceId,startDate,endDate,isTaskEnabled,parent,projectHierarchy,natureOfWork,additionalDetails,isDeleted,rowVersion,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.Projects.* @@ -256,7 +315,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStore + - jsonPath: $.Projects.*.documents.*.fileStoreId - jsonPath: $.Projects.*.documents.*.documentUid @@ -280,6 +339,13 @@ serviceMaps: description: Updates project details in project table fromTopic: update-project isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE project SET name = ?, projectType = ?, projectTypeId = ?, projectSubType = ?, department = ?, description = ?, referenceId = ?, startDate = ?, endDate = ?, isTaskEnabled = ?, natureOfWork = ?, additionalDetails = ?, isDeleted = ?, rowVersion = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; basePath: $.Projects.* @@ -404,7 +470,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStore + - jsonPath: $.Projects.*.documents.*.fileStoreId - jsonPath: $.Projects.*.documents.*.documentUid @@ -424,7 +490,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStore + - jsonPath: $.Projects.*.documents.*.fileStoreId - jsonPath: $.Projects.*.documents.*.documentUid @@ -440,9 +506,16 @@ serviceMaps: - version: 1.0 - description: Saves a project resourcce + description: Saves a project resource fromTopic: save-project-resource-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO project_resource (id, tenantId, projectId, productVariantId, isBaseUnitVariant, startDate, endDate, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -466,8 +539,15 @@ serviceMaps: description: Update a project resourcce fromTopic: update-project-resource-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE project_resource SET tenantId=?, projectId=?, productVariantId=?, isBaseUnitVariant=?, startDate=?, endDate=?, type=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? + - query: UPDATE project_resource SET tenantId=?, projectId=?, productVariantId=?, isBaseUnitVariant=?, startDate=?, endDate=?, type=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -487,23 +567,34 @@ serviceMaps: description: Delete a project resourcce fromTopic: delete-project-resource-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id = ? + - query: UPDATE project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - jsonPath: $.*.id - version: 1.0 description: Saves a project facility fromTopic: save-project-facility-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO project_facility (id, tenantId, projectId, facilityId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?); @@ -537,9 +628,16 @@ serviceMaps: description: Update Project Facility fromTopic: update-project-facility-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE project_facility SET projectId=?, facilityId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? + - query: UPDATE project_facility SET projectId=?, facilityId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* jsonMaps: - jsonPath: $.*.projectId @@ -564,6 +662,13 @@ serviceMaps: description: Deletes Project Facility fromTopic: delete-project-facility-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE project_facility SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* @@ -575,4 +680,22 @@ serviceMaps: - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.*.id + + - version: 1.0 + name: Projects + description: Updates project dates only in project table + fromTopic: update-project-date + isTransaction: true + queryMaps: + - query: UPDATE project SET startDate = ?, endDate = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.Projects.* + jsonMaps: + - jsonPath: $.Projects.*.startDate + - jsonPath: $.Projects.*.endDate + - jsonPath: $.Projects.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.Projects.*.auditDetails.lastModifiedBy + - jsonPath: $.Projects.*.auditDetails.lastModifiedTime + - jsonPath: $.Projects.*.id diff --git a/egov-persister/project-task-persister.yml b/egov-persister/project-task-persister.yml index a682834b..98ef5ee1 100644 --- a/egov-persister/project-task-persister.yml +++ b/egov-persister/project-task-persister.yml @@ -5,8 +5,15 @@ serviceMaps: description: Saves a project task fromTopic: save-project-task-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: INSERT INTO PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -30,6 +37,10 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - query: INSERT INTO ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address @@ -72,8 +83,15 @@ serviceMaps: description: Updates a project task fromTopic: update-project-task-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -93,6 +111,8 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.id - query: UPDATE ADDRESS SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ? WHERE ID = ?; @@ -143,12 +163,21 @@ serviceMaps: description: Deletes a project task fromTopic: delete-project-task-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + - query: UPDATE PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - jsonPath: $.*.additionalFields @@ -161,4 +190,88 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Saves a adverse event + fromTopic: save-adverse-event-topic + isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: INSERT INTO ADVERSE_EVENT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, symptoms, reAttempts, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedTime, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.symptoms + type: JSON + dbType: JSONB + - jsonPath: $.*.reAttempts + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a adverse event + fromTopic: update-adverse-event-topic + isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: UPDATE ADVERSE_EVENT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, symptoms = ?, reAttempts = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.symptoms + type: JSON + dbType: JSONB + - jsonPath: $.*.reAttempts + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a adverse event + fromTopic: delete-adverse-event-topic + isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: UPDATE ADVERSE_EVENT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted - jsonPath: $.*.id \ No newline at end of file diff --git a/egov-persister/property-services-migration-temp-config.yml b/egov-persister/property-services-migration-temp-config.yml deleted file mode 100644 index fa057f50..00000000 --- a/egov-persister/property-services-migration-temp-config.yml +++ /dev/null @@ -1,418 +0,0 @@ -serviceMaps: - serviceName: property-services - mappings: - - version: 1.0 - description: Persists property details in EG_PT_PROPERTY table - fromTopic: save-property-registry-batch - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_pt_property_audit (audituuid, propertyid, property, auditcreatedtime) VALUES ((select nextval('seq_eg_pt_registry_audit')), ?, ?, (SELECT extract(epoch from now()))); - basePath: Property - jsonMaps: - - - jsonPath: $.Property.propertyId - - - jsonPath: $.Property - type: JSON - dbType: JSONB - - - query: INSERT INTO eg_pt_property (id, propertyid, tenantid, surveyid, accountid, oldpropertyid, status, acknowldgementnumber, propertytype, ownershipcategory, usagecategory, creationreason, nooffloors, landarea, superbuiltuparea, source, channel, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO NOTHING; - basePath: Property - jsonMaps: - - - jsonPath: $.Property.id - - - jsonPath: $.Property.propertyId - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.surveyId - - - jsonPath: $.Property.accountId - - - jsonPath: $.Property.oldPropertyId - - - jsonPath: $.Property.status - - - jsonPath: $.Property.acknowldgementNumber - - - jsonPath: $.Property.propertyType - - - jsonPath: $.Property.ownershipCategory - - - jsonPath: $.Property.usageCategory - - - jsonPath: $.Property.creationReason - - - jsonPath: $.Property.noOfFloors - - - jsonPath: $.Property.landArea - - - jsonPath: $.Property.superBuiltUpArea - - - jsonPath: $.Property.source - - - jsonPath: $.Property.channel - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - jsonPath: $.Property.additionalDetails - type: JSON - dbType: JSONB - - - query: INSERT INTO eg_pt_address(tenantid, id, propertyid, doorno, plotno, buildingname, street, landmark, city, pincode, locality, district, region, state, country, latitude, longitude, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO NOTHING; - basePath: Property.address - jsonMaps: - - - jsonPath: $.Property.address.tenantId - - - jsonPath: $.Property.address.id - - - jsonPath: $.Property.id - - - jsonPath: $.Property.address.doorNo - - - jsonPath: $.Property.address.plotNo - - - jsonPath: $.Property.address.buildingName - - - jsonPath: $.Property.address.street - - - jsonPath: $.Property.address.landmark - - - jsonPath: $.Property.address.city - - - jsonPath: $.Property.address.pincode - - - jsonPath: $.Property.address.locality.code - - - jsonPath: $.Property.address.district - - - jsonPath: $.Property.address.region - - - jsonPath: $.Property.address.state - - - jsonPath: $.Property.address.country - - - jsonPath: $.Property.address.geoLocation.latitude - - - jsonPath: $.Property.address.geoLocation.longitude - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - jsonPath: $.Property.address.additionalDetails - type: JSON - dbType: JSONB - - - - query: INSERT INTO eg_pt_unit(id, tenantid, propertyid, floorno, unittype, usagecategory, occupancytype, occupancydate, carpetarea, builtuparea, plintharea, superbuiltuparea, arv, constructiontype, constructiondate, dimensions, active, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO NOTHING; - basePath: Property.units.* - jsonMaps: - - - jsonPath: $.Property.units.*.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.id - - - jsonPath: $.Property.units.*.floorNo - - - jsonPath: $.Property.units.*.unitType - - - jsonPath: $.Property.units.*.usageCategory - - - jsonPath: $.Property.units.*.occupancyType - - - jsonPath: $.Property.units.*.occupancyDate - - - jsonPath: $.Property.units.*.constructionDetail.carpetArea - - - jsonPath: $.Property.units.*.constructionDetail.builtUpArea - - - jsonPath: $.Property.units.*.constructionDetail.plinthArea - - - jsonPath: $.Property.units.*.constructionDetail.superBuiltUpArea - - - jsonPath: $.Property.units.*.arv - - - jsonPath: $.Property.units.*.constructionDetail.constructionType - - - jsonPath: $.Property.units.*.constructionDetail.constructionDate - - - jsonPath: $.Property.units.*.constructionDetail.dimensions - type: JSON - dbType: JSONB - - - jsonPath: $.Property.units.*.active - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - query: UPDATE eg_pt_property SET propertyid=?, surveyid=?, accountid=?, oldpropertyid=?, status=?, propertytype=?, ownershipcategory=?, usagecategory=?, nooffloors=?, landarea=?, superbuiltuparea=?, lastmodifiedby=?, lastmodifiedtime=?, additionaldetails=? WHERE Id=? AND tenantId=?; - basePath: Property - jsonMaps: - - - jsonPath: $.Property.propertyId - - - jsonPath: $.Property.surveyId - - - jsonPath: $.Property.accountId - - - jsonPath: $.Property.oldPropertyId - - - jsonPath: $.Property.status - - - jsonPath: $.Property.propertyType - - - jsonPath: $.Property.ownershipCategory - - - jsonPath: $.Property.usageCategory - - - jsonPath: $.Property.noOfFloors - - - jsonPath: $.Property.landArea - - - jsonPath: $.Property.superBuiltUpArea - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - jsonPath: $.Property.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Property.id - - - jsonPath: $.Property.tenantId - - - - query: INSERT INTO eg_pt_owner (ownerinfouuid, tenantid, propertyid, userid, status, isprimaryowner, ownertype, ownershippercentage, institutionid, relationship, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (userid, propertyid) DO UPDATE SET status=EXCLUDED.status, isprimaryowner=EXCLUDED.isprimaryowner, ownertype=EXCLUDED.ownertype, ownershippercentage=EXCLUDED.ownershippercentage, institutionid=EXCLUDED.institutionid, relationship=EXCLUDED.relationship, lastmodifiedby=EXCLUDED.lastModifiedby, lastmodifiedtime=EXCLUDED.lastmodifiedtime; - basePath: Property.owners.* - jsonMaps: - - - jsonPath: $.Property.owners.*.ownerInfoUuid - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.id - - - jsonPath: $.Property.owners.*.uuid - - - jsonPath: $.Property.owners.*.status - - - jsonPath: $.Property.owners.*.isPrimaryOwner - - - jsonPath: $.Property.owners.*.ownerType - - - jsonPath: $.Property.owners.*.ownerShipPercentage - - - jsonPath: $.Property.owners.*.institutionId - - - jsonPath: $.Property.owners.*.relationship - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_pt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET documenttype = EXCLUDED.documenttype,fileStoreid = EXCLUDED.filestoreid, documentuid=EXCLUDED.documentuid, status=EXCLUDED.status, lastmodifiedby = EXCLUDED.lastModifiedby, lastmodifiedtime = EXCLUDED.lastmodifiedtime; - basePath: $.Property.documents.* - jsonMaps: - - - jsonPath: $.Property.documents.*.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.id - - - jsonPath: $.Property.documents.*.documentType - - - jsonPath: $.Property.documents.*.fileStoreId - - - jsonPath: $.Property.documents.*.documentUid - - - jsonPath: $.Property.documents.*.status - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_pt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET documenttype = EXCLUDED.documenttype,fileStoreid = EXCLUDED.filestoreid, documentuid=EXCLUDED.documentuid, status=EXCLUDED.status, lastmodifiedby = EXCLUDED.lastModifiedby, lastmodifiedtime = EXCLUDED.lastmodifiedtime; - basePath: $.Property.owners.*.documents.* - jsonMaps: - - - jsonPath: $.Property.owners.*.documents.*.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.owners[*][?({id} in @.documents[*].id)].ownerInfoUuid - - - jsonPath: $.Property.owners.*.documents.*.documentType - - - jsonPath: $.Property.owners.*.documents.*.fileStoreId - - - jsonPath: $.Property.owners.*.documents.*.documentUid - - - jsonPath: $.Property.owners.*.documents.*.status - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - query: UPDATE eg_pt_address SET doorno=?, plotno=?, buildingname=?, street=?, landmark=?, city=?, pincode=?, locality=?, district=?, region=?, state=?, country=?, latitude=?, longitude=?, lastmodifiedby=?, lastmodifiedtime=?, additionaldetails=? WHERE id=?; - basePath: Property.address - jsonMaps: - - - jsonPath: $.Property.address.doorNo - - - jsonPath: $.Property.address.plotNo - - - jsonPath: $.Property.address.buildingName - - - jsonPath: $.Property.address.street - - - jsonPath: $.Property.address.landmark - - - jsonPath: $.Property.address.city - - - jsonPath: $.Property.address.pincode - - - jsonPath: $.Property.address.locality.code - - - jsonPath: $.Property.address.district - - - jsonPath: $.Property.address.region - - - jsonPath: $.Property.address.state - - - jsonPath: $.Property.address.country - - - jsonPath: $.Property.address.geoLocation.latitude - - - jsonPath: $.Property.address.geoLocation.longitude - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - jsonPath: $.Property.address.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Property.address.id - - - query: INSERT INTO eg_pt_institution (id, propertyid, tenantid, name, nameofauthorizedperson, type, designation, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET name=EXCLUDED.name, type=EXCLUDED.type, designation=EXCLUDED.designation, lastmodifiedby=EXCLUDED.lastModifiedby, lastmodifiedtime=EXCLUDED.lastmodifiedtime; - basePath: $.Property.institution - jsonMaps: - - - jsonPath: $.Property.institution.id - - - jsonPath: $.Property.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.institution.name - - - jsonPath: $.Property.institution.nameOfAuthorizedPerson - - - jsonPath: $.Property.institution.type - - - jsonPath: $.Property.institution.designation - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - - query: UPDATE eg_pt_unit SET floorno=?, unittype=?, usagecategory=?, occupancytype=?, occupancydate=?, carpetarea=?, builtuparea=?, plintharea=?, superbuiltuparea=?, arv=?, constructiontype=?, constructiondate=?, dimensions=?, active=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=?; - basePath: Property.units.* - jsonMaps: - - - jsonPath: $.Property.units.*.floorNo - - - jsonPath: $.Property.units.*.unitType - - - jsonPath: $.Property.units.*.usageCategory - - - jsonPath: $.Property.units.*.occupancyType - - - jsonPath: $.Property.units.*.occupancyDate - - - jsonPath: $.Property.units.*.constructionDetail.carpetArea - - - jsonPath: $.Property.units.*.constructionDetail.builtUpArea - - - jsonPath: $.Property.units.*.constructionDetail.plinthArea - - - jsonPath: $.Property.units.*.constructionDetail.superBuiltUpArea - - - jsonPath: $.Property.units.*.arv - - - jsonPath: $.Property.units.*.constructionDetail.constructionType - - - jsonPath: $.Property.units.*.constructionDetail.constructionDate - - - jsonPath: $.Property.units.*.constructionDetail.dimensions - type: JSON - dbType: JSONB - - - jsonPath: $.Property.units.*.active - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - jsonPath: $.Property.units.*.id - - - - query: UPDATE eg_pt_unit SET active=false WHERE propertyid=? AND createdtime < (SELECT MAXTIME FROM (SELECT propertyid,MAX(createdtime) AS MAXTIME FROM eg_pt_unit GROUP BY propertyid) AS UNIT WHERE propertyid=?); - basePath: Property - jsonMaps: - - - jsonPath: $.Property.id - - - jsonPath: $.Property.id - - - - query: UPDATE eg_pt_owner SET status='INACTIVE' WHERE propertyid=? AND createdtime < (SELECT MAXTIME FROM (SELECT propertyid,MAX(createdtime) AS MAXTIME FROM eg_pt_owner GROUP BY propertyid) AS OWNER WHERE propertyid=?); - basePath: Property - jsonMaps: - - - jsonPath: $.Property.id - - - jsonPath: $.Property.id diff --git a/egov-persister/property-services-registry.yml b/egov-persister/property-services-registry.yml deleted file mode 100644 index d557677a..00000000 --- a/egov-persister/property-services-registry.yml +++ /dev/null @@ -1,580 +0,0 @@ -serviceMaps: - serviceName: property-services - mappings: - - version: 1.0 - description: Persists property details in EG_PT_PROPERTY table - fromTopic: save-property-registry - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_pt_property_audit (audituuid, propertyid, property, auditcreatedtime) VALUES ((select nextval('seq_eg_pt_registry_audit')), ?, ?, (SELECT extract(epoch from now()))); - basePath: Property - jsonMaps: - - - jsonPath: $.Property.propertyId - - - jsonPath: $.Property - type: JSON - dbType: JSONB - - - query: INSERT INTO eg_pt_property (id, propertyid, tenantid, surveyid, accountid, oldpropertyid, status, acknowldgementnumber, propertytype, ownershipcategory, usagecategory, creationreason, nooffloors, landarea, superbuiltuparea, linkedproperties, source, channel, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Property - jsonMaps: - - - jsonPath: $.Property.id - - - jsonPath: $.Property.propertyId - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.surveyId - - - jsonPath: $.Property.accountId - - - jsonPath: $.Property.oldPropertyId - - - jsonPath: $.Property.status - - - jsonPath: $.Property.acknowldgementNumber - - - jsonPath: $.Property.propertyType - - - jsonPath: $.Property.ownershipCategory - - - jsonPath: $.Property.usageCategory - - - jsonPath: $.Property.creationReason - - - jsonPath: $.Property.noOfFloors - - - jsonPath: $.Property.landArea - - - jsonPath: $.Property.superBuiltUpArea - - - jsonPath: $.Property.linkedProperties - type: ARRAY - dbType: STRING - - - jsonPath: $.Property.source - - - jsonPath: $.Property.channel - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - jsonPath: $.Property.additionalDetails - type: JSON - dbType: JSONB - - - - - query: INSERT INTO eg_pt_owner(ownerinfouuid, tenantid, propertyid, userid, status, isprimaryowner, ownertype, ownershippercentage, institutionid, relationship, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Property.owners.* - jsonMaps: - - - jsonPath: $.Property.owners.*.ownerInfoUuid - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.id - - - jsonPath: $.Property.owners.*.uuid - - - jsonPath: $.Property.owners.*.status - - - jsonPath: $.Property.owners.*.isPrimaryOwner - - - jsonPath: $.Property.owners.*.ownerType - - - jsonPath: $.Property.owners.*.ownerShipPercentage - - - jsonPath: $.Property.owners.*.institutionId - - - jsonPath: $.Property.owners.*.relationship - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Property.documents.* - jsonMaps: - - - jsonPath: $.Property.documents.*.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.id - - - jsonPath: $.Property.documents.*.documentType - - - jsonPath: $.Property.documents.*.fileStoreId - - - jsonPath: $.Property.documents.*.documentUid - - - jsonPath: $.Property.documents.*.status - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Property.owners.*.documents.* - jsonMaps: - - - jsonPath: $.Property.owners.*.documents.*.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.owners[*][?({id} in @.documents[*].id)].ownerInfoUuid - - - jsonPath: $.Property.owners.*.documents.*.documentType - - - jsonPath: $.Property.owners.*.documents.*.fileStoreId - - - jsonPath: $.Property.owners.*.documents.*.documentUid - - - jsonPath: $.Property.documents.*.status - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pt_institution (id, propertyid, tenantid, name, nameofauthorizedperson, type, designation, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Property.institution - jsonMaps: - - - jsonPath: $.Property.institution.id - - - jsonPath: $.Property.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.institution.name - - - jsonPath: $.Property.institution.nameOfAuthorizedPerson - - - jsonPath: $.Property.institution.type - - - jsonPath: $.Property.institution.designation - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pt_address(tenantid, id, propertyid, doorno, plotno, buildingname, street, landmark, city, pincode, locality, district, region, state, country, latitude, longitude, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Property.address - jsonMaps: - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.address.id - - - jsonPath: $.Property.id - - - jsonPath: $.Property.address.doorNo - - - jsonPath: $.Property.address.plotNo - - - jsonPath: $.Property.address.buildingName - - - jsonPath: $.Property.address.street - - - jsonPath: $.Property.address.landmark - - - jsonPath: $.Property.address.city - - - jsonPath: $.Property.address.pincode - - - jsonPath: $.Property.address.locality.code - - - jsonPath: $.Property.address.district - - - jsonPath: $.Property.address.region - - - jsonPath: $.Property.address.state - - - jsonPath: $.Property.address.country - - - jsonPath: $.Property.address.geoLocation.latitude - - - jsonPath: $.Property.address.geoLocation.longitude - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - jsonPath: $.Property.address.additionalDetails - type: JSON - dbType: JSONB - - - - query: INSERT INTO eg_pt_unit(id, tenantid, propertyid, floorno, unittype, usagecategory, occupancytype, occupancydate, carpetarea, builtuparea, plintharea, superbuiltuparea, arv, constructiontype, constructiondate, dimensions, active, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Property.units.* - jsonMaps: - - - jsonPath: $.Property.units.*.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.id - - - jsonPath: $.Property.units.*.floorNo - - - jsonPath: $.Property.units.*.unitType - - - jsonPath: $.Property.units.*.usageCategory - - - jsonPath: $.Property.units.*.occupancyType - - - jsonPath: $.Property.units.*.occupancyDate - - - jsonPath: $.Property.units.*.constructionDetail.carpetArea - - - jsonPath: $.Property.units.*.constructionDetail.builtUpArea - - - jsonPath: $.Property.units.*.constructionDetail.plinthArea - - - jsonPath: $.Property.units.*.constructionDetail.superBuiltUpArea - - - jsonPath: $.Property.units.*.arv - - - jsonPath: $.Property.units.*.constructionDetail.constructionType - - - jsonPath: $.Property.units.*.constructionDetail.constructionDate - - - jsonPath: $.Property.units.*.constructionDetail.dimensions - type: JSON - dbType: JSONB - - - jsonPath: $.Property.units.*.active - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - version: 1.0 - description: Update property EG_PT_PROPERTY ltable - fromTopic: update-property-registry - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_pt_property_audit (audituuid, propertyid, property, auditcreatedtime) VALUES ((select nextval('seq_eg_pt_registry_audit')), ?, ?, (SELECT extract(epoch from now()))); - basePath: Property - jsonMaps: - - - jsonPath: $.Property.propertyId - - - jsonPath: $.Property - type: JSON - dbType: JSONB - - - query: UPDATE eg_pt_property SET propertyid=?, surveyid=?, accountid=?, oldpropertyid=?, status=?, propertytype=?, ownershipcategory=?, usagecategory=?, nooffloors=?, landarea=?, superbuiltuparea=?, linkedproperties=?, lastmodifiedby=?, lastmodifiedtime=?, additionaldetails=? WHERE Id=? AND tenantId=?; - basePath: Property - jsonMaps: - - - jsonPath: $.Property.propertyId - - - jsonPath: $.Property.surveyId - - - jsonPath: $.Property.accountId - - - jsonPath: $.Property.oldPropertyId - - - jsonPath: $.Property.status - - - jsonPath: $.Property.propertyType - - - jsonPath: $.Property.ownershipCategory - - - jsonPath: $.Property.usageCategory - - - jsonPath: $.Property.noOfFloors - - - jsonPath: $.Property.landArea - - - jsonPath: $.Property.superBuiltUpArea - - - jsonPath: $.Property.linkedProperties - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - jsonPath: $.Property.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Property.id - - - jsonPath: $.Property.tenantId - - - - query: INSERT INTO eg_pt_owner (ownerinfouuid, tenantid, propertyid, userid, status, isprimaryowner, ownertype, ownershippercentage, institutionid, relationship, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (userid, propertyid) DO UPDATE SET status=EXCLUDED.status, isprimaryowner=EXCLUDED.isprimaryowner, ownertype=EXCLUDED.ownertype, ownershippercentage=EXCLUDED.ownershippercentage, institutionid=EXCLUDED.institutionid, relationship=EXCLUDED.relationship, lastmodifiedby=EXCLUDED.lastModifiedby, lastmodifiedtime=EXCLUDED.lastmodifiedtime; - basePath: Property.owners.* - jsonMaps: - - - jsonPath: $.Property.owners.*.ownerInfoUuid - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.id - - - jsonPath: $.Property.owners.*.uuid - - - jsonPath: $.Property.owners.*.status - - - jsonPath: $.Property.owners.*.isPrimaryOwner - - - jsonPath: $.Property.owners.*.ownerType - - - jsonPath: $.Property.owners.*.ownerShipPercentage - - - jsonPath: $.Property.owners.*.institutionId - - - jsonPath: $.Property.owners.*.relationship - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_pt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET documenttype = EXCLUDED.documenttype,fileStoreid = EXCLUDED.filestoreid, documentuid=EXCLUDED.documentuid, status=EXCLUDED.status, lastmodifiedby = EXCLUDED.lastModifiedby, lastmodifiedtime = EXCLUDED.lastmodifiedtime; - basePath: $.Property.documents.* - jsonMaps: - - - jsonPath: $.Property.documents.*.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.id - - - jsonPath: $.Property.documents.*.documentType - - - jsonPath: $.Property.documents.*.fileStoreId - - - jsonPath: $.Property.documents.*.documentUid - - - jsonPath: $.Property.documents.*.status - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_pt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET documenttype = EXCLUDED.documenttype,fileStoreid = EXCLUDED.filestoreid, documentuid=EXCLUDED.documentuid, status=EXCLUDED.status, lastmodifiedby = EXCLUDED.lastModifiedby, lastmodifiedtime = EXCLUDED.lastmodifiedtime; - basePath: $.Property.owners.*.documents.* - jsonMaps: - - - jsonPath: $.Property.owners.*.documents.*.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.owners[*][?({id} in @.documents[*].id)].ownerInfoUuid - - - jsonPath: $.Property.owners.*.documents.*.documentType - - - jsonPath: $.Property.owners.*.documents.*.fileStoreId - - - jsonPath: $.Property.owners.*.documents.*.documentUid - - - jsonPath: $.Property.owners.*.documents.*.status - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - query: UPDATE eg_pt_address SET doorno=?, plotno=?, buildingname=?, street=?, landmark=?, city=?, pincode=?, locality=?, district=?, region=?, state=?, country=?, latitude=?, longitude=?, lastmodifiedby=?, lastmodifiedtime=?, additionaldetails=? WHERE id=?; - basePath: Property.address - jsonMaps: - - - jsonPath: $.Property.address.doorNo - - - jsonPath: $.Property.address.plotNo - - - jsonPath: $.Property.address.buildingName - - - jsonPath: $.Property.address.street - - - jsonPath: $.Property.address.landmark - - - jsonPath: $.Property.address.city - - - jsonPath: $.Property.address.pincode - - - jsonPath: $.Property.address.locality.code - - - jsonPath: $.Property.address.district - - - jsonPath: $.Property.address.region - - - jsonPath: $.Property.address.state - - - jsonPath: $.Property.address.country - - - jsonPath: $.Property.address.geoLocation.latitude - - - jsonPath: $.Property.address.geoLocation.longitude - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - jsonPath: $.Property.address.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Property.address.id - - - query: INSERT INTO eg_pt_institution (id, propertyid, tenantid, name, nameofauthorizedperson, type, designation, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET name=EXCLUDED.name, type=EXCLUDED.type, designation=EXCLUDED.designation, lastmodifiedby=EXCLUDED.lastModifiedby, lastmodifiedtime=EXCLUDED.lastmodifiedtime; - basePath: $.Property.institution - jsonMaps: - - - jsonPath: $.Property.institution.id - - - jsonPath: $.Property.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.institution.name - - - jsonPath: $.Property.institution.nameOfAuthorizedPerson - - - jsonPath: $.Property.institution.type - - - jsonPath: $.Property.institution.designation - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pt_unit(id, tenantid, propertyid, floorno, unittype, usagecategory, occupancytype, occupancydate, carpetarea, builtuparea, plintharea, superbuiltuparea, arv, constructiontype, constructiondate, dimensions, active, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET floorno=EXCLUDED.floorno, unittype=EXCLUDED.unittype, usagecategory=EXCLUDED.usagecategory, occupancytype=EXCLUDED.occupancytype, occupancydate=EXCLUDED.occupancydate, carpetarea=EXCLUDED.carpetarea, builtuparea=EXCLUDED.builtuparea, plintharea=EXCLUDED.plintharea, superbuiltuparea=EXCLUDED.superbuiltuparea, arv=EXCLUDED.arv, constructiontype=EXCLUDED.constructiontype, constructiondate=EXCLUDED.constructiondate, dimensions=excluded.dimensions, active=EXCLUDED.active, lastmodifiedby=EXCLUDED.lastmodifiedby, lastmodifiedtime=EXCLUDED.lastmodifiedtime; - basePath: Property.units.* - jsonMaps: - - - jsonPath: $.Property.units.*.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.id - - - jsonPath: $.Property.units.*.floorNo - - - jsonPath: $.Property.units.*.unitType - - - jsonPath: $.Property.units.*.usageCategory - - - jsonPath: $.Property.units.*.occupancyType - - - jsonPath: $.Property.units.*.occupancyDate - - - jsonPath: $.Property.units.*.constructionDetail.carpetArea - - - jsonPath: $.Property.units.*.constructionDetail.builtUpArea - - - jsonPath: $.Property.units.*.constructionDetail.plinthArea - - - jsonPath: $.Property.units.*.constructionDetail.superBuiltUpArea - - - jsonPath: $.Property.units.*.arv - - - jsonPath: $.Property.units.*.constructionDetail.constructionType - - - jsonPath: $.Property.units.*.constructionDetail.constructionDate - - - jsonPath: $.Property.units.*.constructionDetail.dimensions - type: JSON - dbType: JSONB - - - jsonPath: $.Property.units.*.active - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.lastModifiedTime - - - version: 1.0 - description: Update documents in EG_PT_PROPERTY ltable - fromTopic: update-property-doc-registry - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_pt_document (id, tenantid, entityid, documenttype, filestoreid, documentuid, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET documenttype = EXCLUDED.documenttype,fileStoreid = EXCLUDED.filestoreid, documentuid=EXCLUDED.documentuid, status=EXCLUDED.status, lastmodifiedby = EXCLUDED.lastModifiedby, lastmodifiedtime = EXCLUDED.lastmodifiedtime; - basePath: $.Property.documents.* - jsonMaps: - - - jsonPath: $.Property.documents.*.id - - - jsonPath: $.Property.tenantId - - - jsonPath: $.Property.id - - - jsonPath: $.Property.documents.*.documentType - - - jsonPath: $.Property.documents.*.fileStoreId - - - jsonPath: $.Property.documents.*.documentUid - - - jsonPath: $.Property.documents.*.status - - - jsonPath: $.Property.auditDetails.createdBy - - - jsonPath: $.Property.auditDetails.lastModifiedBy - - - jsonPath: $.Property.auditDetails.createdTime - - - jsonPath: $.Property.auditDetails.lastModifiedTime diff --git a/egov-persister/property-services.yml b/egov-persister/property-services.yml deleted file mode 100644 index 0e4514f5..00000000 --- a/egov-persister/property-services.yml +++ /dev/null @@ -1,819 +0,0 @@ -serviceMaps: - serviceName: property-services - mappings: - - version: 1.0 - description: Persists property details in EG_PT_PROPERTY table - fromTopic: save-pt-property - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_pt_property_v2(tenantId,propertyId, status,acknowldgementNumber, oldPropertyId, creationReason, occupancyDate,additionalDetails ,createdBy,createdTime,lastModifiedBy,lastModifiedTime ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); - basePath: Properties.* - jsonMaps: - - jsonPath: $.Properties.*.tenantId - - - jsonPath: $.Properties.*.propertyId - - - jsonPath: $.Properties.*.status - - - jsonPath: $.Properties.*.acknowldgementNumber - - - jsonPath: $.Properties.*.oldPropertyId - - - jsonPath: $.Properties.*.creationReason - - - jsonPath: $.Properties.*.occupancyDate - - - jsonPath: $.Properties.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.auditDetails.createdBy - - - jsonPath: $.Properties.*.auditDetails.createdTime - - - jsonPath: $.Properties.*.auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pt_propertydetail_v2(tenantId,assessmentNumber,property,accountId,ownershipCategory,subOwnershipCategory,source,usage,noOfFloors,landArea,buildUpArea,additionalDetails,channel,financialYear,propertyType,propertySubType,usageCategoryMajor,usageCategoryMinor,assessmentDate,adhocExemption,adhocPenalty,adhocExemptionReason,adhocPenaltyReason,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: Properties.*.propertyDetails.* - jsonMaps: - - - jsonPath: $.Properties[*][?({assessmentNumber} in @.propertyDetails[*].assessmentNumber)].tenantId - - - jsonPath: $.Properties.*.propertyDetails.*.assessmentNumber - - - jsonPath: $.Properties[*][?({assessmentNumber} in @.propertyDetails[*].assessmentNumber)].propertyId - - - jsonPath: $.Properties.*.propertyDetails.*.citizenInfo.uuid - - - jsonPath: $.Properties.*.propertyDetails.*.ownershipCategory - - - jsonPath: $.Properties.*.propertyDetails.*.subOwnershipCategory - - - jsonPath: $.Properties.*.propertyDetails.*.source - - - jsonPath: $.Properties.*.propertyDetails.*.usage - - - jsonPath: $.Properties.*.propertyDetails.*.noOfFloors - - - jsonPath: $.Properties.*.propertyDetails.*.landArea - - - jsonPath: $.Properties.*.propertyDetails.*.buildUpArea - - - jsonPath: $.Properties.*.propertyDetails.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.channel - - - jsonPath: $.Properties.*.propertyDetails.*.financialYear - - - jsonPath: $.Properties.*.propertyDetails.*.propertyType - - - jsonPath: $.Properties.*.propertyDetails.*.propertySubType - - - jsonPath: $.Properties.*.propertyDetails.*.usageCategoryMajor - - - jsonPath: $.Properties.*.propertyDetails.*.usageCategoryMinor - - - jsonPath: $.Properties.*.propertyDetails.*.assessmentDate - - - jsonPath: $.Properties.*.propertyDetails.*.adhocExemption - - - jsonPath: $.Properties.*.propertyDetails.*.adhocPenalty - - - jsonPath: $.Properties.*.propertyDetails.*.adhocExemptionReason - - - jsonPath: $.Properties.*.propertyDetails.*.adhocPenaltyReason - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.createdBy - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.createdTime - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_pt_owner_v2(tenantId,propertyDetail, userid,additionalDetails, isactive,isPrimaryOwner,ownerShipPercentage, ownerType,institutionId,relationship,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Properties.*.propertyDetails.*.owners.* - jsonMaps: - - - jsonPath: $.Properties[*][?({uuid} in @.propertyDetails.*.owners[*].uuid)].tenantId - - - jsonPath: $.Properties.*.propertyDetails[*][?({persisterRefId} in @.owners[*].persisterRefId)].assessmentNumber - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.uuid - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.isActive - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.isPrimaryOwner - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.ownerShipPercentage - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.ownerType - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.institutionId - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.relationship - - - jsonPath: $.Properties.*.propertyDetails[*][?({uuid} in @.owners[*].uuid)].auditDetails.createdBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({uuid} in @.owners[*].uuid)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({uuid} in @.owners[*].uuid)].auditDetails.createdTime - - - jsonPath: $.Properties.*.propertyDetails[*][?({uuid} in @.owners[*].uuid)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_pt_document_propertydetail_v2(tenantId,id, propertydetail, documenttype, fileStore,documentuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?,?,?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Properties.*.propertyDetails.*.documents.* - jsonMaps: - - - jsonPath: $.Properties[*][?({id} in @.propertyDetails.*.documents[*].id)].tenantId - - - jsonPath: $.Properties.*.propertyDetails.*.documents.*.id - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].assessmentNumber - - - jsonPath: $.Properties.*.propertyDetails.*.documents.*.documentType - - - jsonPath: $.Properties.*.propertyDetails.*.documents.*.fileStore - - - jsonPath: $.Properties.*.propertyDetails.*.documents.*.documentUid - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].auditDetails.createdBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].auditDetails.createdTime - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pt_document_owner_v2(tenantId,id,userid, propertydetail, documenttype, fileStore,documentuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?,?,?,?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Properties.*.propertyDetails.*.owners.*.documents.* - jsonMaps: - - - jsonPath: $.Properties[*][?({id} in @.propertyDetails.*.owners.*.documents[*].id)].tenantId - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.id - - - jsonPath: $.Properties.*.propertyDetails.*.owners[*][?({id} in @.documents[*].id)].uuid - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].assessmentNumber - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.documentType - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.fileStore - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.documentUid - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].auditDetails.createdBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].auditDetails.createdTime - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_pt_address_v2(tenantId, id, property,additionalDetails,doorNo, latitude,longitude, addressid, addressnumber, type, addressline1, addressline2, landmark, city, pincode, detail,buildingName,street, locality, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ? , ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Properties.*.address - jsonMaps: - - - jsonPath: $.Properties.*.tenantId - - - jsonPath: $.Properties.*.address.id - - - jsonPath: $.Properties.*.propertyId - - - jsonPath: $.Properties.*.address.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.address.doorNo - - - jsonPath: $.Properties.*.address.latitude - - - jsonPath: $.Properties.*.address.longitude - - - jsonPath: $.Properties.*.address.addressId - - - jsonPath: $.Properties.*.address.addressNumber - - - jsonPath: $.Properties.*.address.type - - - jsonPath: $.Properties.*.address.addressLine1 - - - jsonPath: $.Properties.*.address.addressLine2 - - - jsonPath: $.Properties.*.address.landmark - - - jsonPath: $.Properties.*.address.city - - - jsonPath: $.Properties.*.address.pincode - - - jsonPath: $.Properties.*.address.detail - - - jsonPath: $.Properties.*.address.buildingName - - - jsonPath: $.Properties.*.address.street - - - jsonPath: $.Properties.*.address.locality.code - - - jsonPath: $.Properties.*.auditDetails.createdBy - - - jsonPath: $.Properties.*.auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.auditDetails.createdTime - - - jsonPath: $.Properties.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pt_unit_v2(tenantId,id,propertyDetail,additionalDetails,floorNo,unitType,unitArea,usageCategoryMajor,usageCategoryMinor,usageCategorySubMinor,usageCategoryDetail,occupancyType,occupancyDate,constructionType,constructionSubType,arv,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: Properties.*.propertyDetails.*.units.* - jsonMaps: - - - jsonPath: $.Properties[*][?({id} in @.propertyDetails.*.units[*].id)].tenantId - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.id - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].assessmentNumber - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.floorNo - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.unitType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.unitArea - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategoryMajor - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategoryMinor - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategorySubMinor - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategoryDetail - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.occupancyType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.occupancyDate - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.constructionType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.constructionSubType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.arv - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].auditDetails.createdBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].auditDetails.createdTime - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].auditDetails.lastModifiedTime - - - query: INSERT INTO eg_pt_institution_v2(tenantId,id, propertyDetail,additionalDetails, name, type,designation, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT ON CONSTRAINT pk_eg_pt_institution_v2 DO NOTHING; - basePath: $.Properties.*.propertyDetails.*.institution - jsonMaps: - - - jsonPath: $.Properties.*.propertyDetails.*.tenantId - - - jsonPath: $.Properties.*.propertyDetails.*.institution.id - - - jsonPath: $.Properties.*.propertyDetails.*.assessmentNumber - - - jsonPath: $.Properties.*.propertyDetails.*.institution.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.institution.name - - - jsonPath: $.Properties.*.propertyDetails.*.institution.type - - - jsonPath: $.Properties.*.propertyDetails.*.institution.designation - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.createdBy - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.createdTime - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedTime - - - - - - - version: 1.0 - description: Update property details in EG_PT_PROPERTY table - fromTopic: update-pt-property - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_pt_property_audit_v2 SELECT * FROM eg_pt_property_v2 WHERE propertyid = ?; - basePath: Properties.* - jsonMaps: - - - jsonPath: $.Properties.*.propertyId - - - - query: INSERT INTO eg_pt_address_audit_v2 SELECT * FROM eg_pt_address_v2 WHERE id = ?; - basePath: Properties.*.address - jsonMaps: - - - jsonPath: $.Properties.*.address.id - - - - - query: UPDATE eg_pt_property_v2 SET additionalDetails=?,status=?,acknowldgementNumber=?,oldPropertyId=?,creationReason=?, occupancyDate=?,lastModifiedBy=?, lastModifiedTime=? where propertyId=? AND tenantId=?; - basePath: Properties.* - jsonMaps: - - - jsonPath: $.Properties.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.status - - - jsonPath: $.Properties.*.acknowldgementNumber - - - jsonPath: $.Properties.*.oldPropertyId - - - jsonPath: $.Properties.*.creationReason - - - jsonPath: $.Properties.*.occupancyDate - - - jsonPath: $.Properties.*.auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.propertyId - - - jsonPath: $.Properties.*.tenantId - - - - - - query: INSERT INTO eg_pt_propertydetail_v2(tenantId,assessmentNumber,property,accountId,ownershipCategory,subOwnershipCategory,source,usage,noOfFloors,landArea,buildUpArea,additionalDetails,channel,financialYear,propertyType,propertySubType,usageCategoryMajor,usageCategoryMinor,assessmentDate,adhocExemption,adhocPenalty,adhocExemptionReason,adhocPenaltyReason,createdby, lastmodifiedby, createdtime,lastmodifiedtime) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (assessmentNumber) DO UPDATE SET accountId=?,financialYear=?, propertyType=?, propertySubType=?,usageCategoryMajor=?,usageCategoryMinor=?, assessmentDate=?,ownershipCategory=?,subOwnershipCategory=?,source=?,usage=?,noOfFloors=?,landArea=?,buildUpArea=?,additionalDetails=?,channel=?,adhocExemption=?,adhocPenalty=?,adhocExemptionReason=?,adhocPenaltyReason=?,lastModifiedBy=?, lastModifiedTime=?; - basePath: Properties.*.propertyDetails.* - jsonMaps: - - - jsonPath: $.Properties[*][?({assessmentNumber} in @.propertyDetails[*].assessmentNumber)].tenantId - - - jsonPath: $.Properties.*.propertyDetails.*.assessmentNumber - - - jsonPath: $.Properties[*][?({assessmentNumber} in @.propertyDetails[*].assessmentNumber)].propertyId - - - jsonPath: $.Properties.*.propertyDetails.*.citizenInfo.uuid - - - jsonPath: $.Properties.*.propertyDetails.*.ownershipCategory - - - jsonPath: $.Properties.*.propertyDetails.*.subOwnershipCategory - - - jsonPath: $.Properties.*.propertyDetails.*.source - - - jsonPath: $.Properties.*.propertyDetails.*.usage - - - jsonPath: $.Properties.*.propertyDetails.*.noOfFloors - - - jsonPath: $.Properties.*.propertyDetails.*.landArea - - - jsonPath: $.Properties.*.propertyDetails.*.buildUpArea - - - jsonPath: $.Properties.*.propertyDetails.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.channel - - - jsonPath: $.Properties.*.propertyDetails.*.financialYear - - - jsonPath: $.Properties.*.propertyDetails.*.propertyType - - - jsonPath: $.Properties.*.propertyDetails.*.propertySubType - - - jsonPath: $.Properties.*.propertyDetails.*.usageCategoryMajor - - - jsonPath: $.Properties.*.propertyDetails.*.usageCategoryMinor - - - jsonPath: $.Properties.*.propertyDetails.*.assessmentDate - - - jsonPath: $.Properties.*.propertyDetails.*.adhocExemption - - - jsonPath: $.Properties.*.propertyDetails.*.adhocPenalty - - - jsonPath: $.Properties.*.propertyDetails.*.adhocExemptionReason - - - jsonPath: $.Properties.*.propertyDetails.*.adhocPenaltyReason - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.createdBy - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.createdTime - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.propertyDetails.*.citizenInfo.uuid - - - jsonPath: $.Properties.*.propertyDetails.*.financialYear - - - jsonPath: $.Properties.*.propertyDetails.*.propertyType - - - jsonPath: $.Properties.*.propertyDetails.*.propertySubType - - - jsonPath: $.Properties.*.propertyDetails.*.usageCategoryMajor - - - jsonPath: $.Properties.*.propertyDetails.*.usageCategoryMinor - - - jsonPath: $.Properties.*.propertyDetails.*.assessmentDate - - - jsonPath: $.Properties.*.propertyDetails.*.ownershipCategory - - - jsonPath: $.Properties.*.propertyDetails.*.subOwnershipCategory - - - jsonPath: $.Properties.*.propertyDetails.*.source - - - jsonPath: $.Properties.*.propertyDetails.*.usage - - - jsonPath: $.Properties.*.propertyDetails.*.noOfFloors - - - jsonPath: $.Properties.*.propertyDetails.*.landArea - - - jsonPath: $.Properties.*.propertyDetails.*.buildUpArea - - - jsonPath: $.Properties.*.propertyDetails.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.channel - - - jsonPath: $.Properties.*.propertyDetails.*.adhocExemption - - - jsonPath: $.Properties.*.propertyDetails.*.adhocPenalty - - - jsonPath: $.Properties.*.propertyDetails.*.adhocExemptionReason - - - jsonPath: $.Properties.*.propertyDetails.*.adhocPenaltyReason - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_pt_owner_v2(tenantId,propertyDetail, userid,additionalDetails, isActive,isPrimaryOwner,ownerShipPercentage, ownerType,institutionId,relationship, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT ON CONSTRAINT pk_eg_pt_owner_v2 DO UPDATE SET additionalDetails=?,isActive =?,isPrimaryOwner=?,ownerShipPercentage=?,ownerType=?,institutionId=?,relationship=?,lastmodifiedby =?,lastmodifiedtime =?; - basePath: Properties.*.propertyDetails.*.owners.* - jsonMaps: - - - jsonPath: $.Properties[*][?({uuid} in @.propertyDetails.*.owners[*].uuid)].tenantId - - - jsonPath: $.Properties.*.propertyDetails[*][?({persisterRefId} in @.owners[*].persisterRefId)].assessmentNumber - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.uuid - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.isActive - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.isPrimaryOwner - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.ownerShipPercentage - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.ownerType - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.institutionId - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.relationship - - - jsonPath: $.Properties.*.propertyDetails[*][?({persisterRefId} in @.owners[*].persisterRefId)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({persisterRefId} in @.owners[*].persisterRefId)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({persisterRefId} in @.owners[*].persisterRefId)].auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.propertyDetails[*][?({persisterRefId} in @.owners[*].persisterRefId)].auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.isActive - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.isPrimaryOwner - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.ownerShipPercentage - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.ownerType - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.institutionId - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.relationship - - - jsonPath: $.Properties.*.propertyDetails[*][?({persisterRefId} in @.owners[*].persisterRefId)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({persisterRefId} in @.owners[*].persisterRefId)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pt_document_propertydetail_v2(tenantId,id, propertydetail, documenttype, fileStore,documentuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?,?) ON CONFLICT (id) DO UPDATE SET documenttype = ?, fileStore = ?,documentuid=?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: $.Properties.*.propertyDetails.*.documents.* - jsonMaps: - - - jsonPath: $.Properties[*][?({id} in @.propertyDetails.*.documents[*].id)].tenantId - - - jsonPath: $.Properties.*.propertyDetails.*.documents.*.id - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].assessmentNumber - - - jsonPath: $.Properties.*.propertyDetails.*.documents.*.documentType - - - jsonPath: $.Properties.*.propertyDetails.*.documents.*.fileStore - - - jsonPath: $.Properties.*.propertyDetails.*.documents.*.documentUid - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.propertyDetails.documents.*.documentType - - - jsonPath: $.Properties.*.propertyDetails.*.documents.*.fileStore - - - jsonPath: $.Properties.*.propertyDetails.*.documents.*.documentUid - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_pt_document_owner_v2(tenantId,id, userid,propertydetail, documenttype, fileStore,documentuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?) ON CONFLICT (userid,propertydetail) DO UPDATE SET documenttype = ?, fileStore = ?,documentuid=?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: $.Properties.*.propertyDetails.*.owners.*.documents.* - jsonMaps: - - - jsonPath: $.Properties[*][?({id} in @.propertyDetails.*.owners.*.documents[*].id)].tenantId - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.id - - - jsonPath: $.Properties.*.propertyDetails.*.owners[*][?({id} in @.documents[*].id)].uuid - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].assessmentNumber - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.documentType - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.fileStore - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.documentUid - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].auditDetails.createdBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].auditDetails.createdTime - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.documentType - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.fileStore - - - jsonPath: $.Properties.*.propertyDetails.*.owners.*.documents.*.documentUid - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_pt_unit_v2(tenantId,id,propertyDetail,additionalDetails,floorNo,unitType,unitArea,usageCategoryMajor,usageCategoryMinor,usageCategorySubMinor,usageCategoryDetail,occupancyType,occupancyDate,constructionType,constructionSubType,arv,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET additionalDetails=?,floorNo=?,unitType=?,unitArea=?,usageCategoryMajor=?,usageCategoryMinor=?,usageCategorySubMinor=?,usageCategoryDetail=?,occupancyType=?,occupancyDate=?,constructionType=?,constructionSubType=?,arv=?,lastmodifiedby=?,lastmodifiedtime=?; - basePath: Properties.*.propertyDetails.*.units.* - jsonMaps: - - - jsonPath: $.Properties[*][?({id} in @.propertyDetails.*.units[*].id)].tenantId - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.id - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].assessmentNumber - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.floorNo - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.unitType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.unitArea - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategoryMajor - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategoryMinor - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategorySubMinor - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategoryDetail - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.occupancyType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.occupancyDate - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.constructionType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.constructionSubType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.arv - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.floorNo - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.unitType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.unitArea - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategoryMajor - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategoryMinor - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategorySubMinor - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.usageCategoryDetail - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.occupancyType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.occupancyDate - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.constructionType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.constructionSubType - - - jsonPath: $.Properties.*.propertyDetails.*.units.*.arv - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails[*][?({id} in @.units[*].id)].auditDetails.lastModifiedTime - - - - - query: UPDATE eg_pt_address_v2 SET additionalDetails=?,doorNo=?,latitude=?,longitude=?, addressid=?, addressnumber=?, type=?, addressline1=?, addressline2=?, landmark=?, city=?, pincode=?, detail=?,buildingName=?,street=?, locality=?, lastmodifiedby=?, lastmodifiedtime=? where id=?; - basePath: Properties.*.address - jsonMaps: - - - jsonPath: $.Properties.*.address.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.address.doorNo - - - jsonPath: $.Properties.*.address.latitude - - - jsonPath: $.Properties.*.address.longitude - - - jsonPath: $.Properties.*.address.addressId - - - jsonPath: $.Properties.*.address.addressNumber - - - jsonPath: $.Properties.*.address.type - - - jsonPath: $.Properties.*.address.addressLine1 - - - jsonPath: $.Properties.*.address.addressLine2 - - - jsonPath: $.Properties.*.address.landmark - - - jsonPath: $.Properties.*.address.city - - - jsonPath: $.Properties.*.address.pincode - - - jsonPath: $.Properties.*.address.detail - - - jsonPath: $.Properties.*.address.buildingName - - - jsonPath: $.Properties.*.address.street - - - jsonPath: $.Properties.*.address.locality.code - - - jsonPath: $.Properties.*.auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.address.id - - - - query: INSERT INTO eg_pt_institution_v2(tenantId,id, propertyDetail,additionalDetails, name, type,designation, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?) ON CONFLICT (id) DO UPDATE SET additionalDetails=?,name=?,type=?,designation=?,lastmodifiedby=?,lastmodifiedtime=?; - basePath: $.Properties.*.propertyDetails.*.institution - jsonMaps: - - - jsonPath: $.Properties.*.propertyDetails.*.tenantId - - - jsonPath: $.Properties.*.propertyDetails.*.institution.id - - - jsonPath: $.Properties.*.propertyDetails.*.assessmentNumber - - - jsonPath: $.Properties.*.propertyDetails.*.institution.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.institution.name - - - jsonPath: $.Properties.*.propertyDetails.*.institution.type - - - jsonPath: $.Properties.*.propertyDetails.*.institution.designation - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.createdBy - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.createdTime - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedTime - - - jsonPath: $.Properties.*.propertyDetails.*.institution.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Properties.*.propertyDetails.*.institution.name - - - jsonPath: $.Properties.*.propertyDetails.*.institution.type - - - jsonPath: $.Properties.*.propertyDetails.*.institution.designation - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.Properties.*.propertyDetails.*.auditDetails.lastModifiedTime - - - - version: 1.0 - description: Cancel property details in eg_pt_propertydetail_v2 table - fromTopic: cancel-pt-propertyDetail - isTransaction: true - queryMaps: - - - query: UPDATE eg_pt_propertydetail_v2 SET status=? where propertyId=? AND assessmentNumber=? AND tenantId=?; - basePath: Properties.*.propertyDetails.* - jsonMaps: - - - jsonPath: $.Properties.*.propertyDetails.*.status - - - jsonPath: $.Properties[*][?({assessmentNumber} in @.propertyDetails[*].assessmentNumber)].propertyId - - - jsonPath: $.Properties.*.propertyDetails.*.assessmentNumber - - - jsonPath: $.Properties[*][?({assessmentNumber} in @.propertyDetails[*].assessmentNumber)].tenantId - - - version: 1.0 - description: Cancel property in eg_pt_property_v2 table - fromTopic: cancel-pt-property - isTransaction: true - queryMaps: - - - query: UPDATE eg_pt_property_v2 SET status=? where propertyId=? AND tenantId=?; - basePath: Properties.* - jsonMaps: - - - jsonPath: $.Properties.*.status - - - jsonPath: $.Properties.*.propertyId - - - jsonPath: $.Properties.*.tenantId - - - query: UPDATE eg_pt_propertydetail_v2 SET status=? where propertyId=? AND assessmentNumber=? AND tenantId=?; - basePath: Properties.*.propertyDetails.* - jsonMaps: - - - jsonPath: $.Properties.*.propertyDetails.*.status - - - jsonPath: $.Properties[*][?({assessmentNumber} in @.propertyDetails[*].assessmentNumber)].propertyId - - - jsonPath: $.Properties.*.propertyDetails.*.assessmentNumber - - - jsonPath: $.Properties[*][?({assessmentNumber} in @.propertyDetails[*].assessmentNumber)].tenantId diff --git a/egov-persister/pt-calculator-v2-persister.yml b/egov-persister/pt-calculator-v2-persister.yml deleted file mode 100644 index 5cef6585..00000000 --- a/egov-persister/pt-calculator-v2-persister.yml +++ /dev/null @@ -1,118 +0,0 @@ -serviceMaps: - serviceName: PropertyTax Calculator - mappings: - - version: 1.0 - name: pt-calculator - description: Persists the pt-calculator related records to db - fromTopic: save-pt-billingslab - isTransaction: true - queryMaps: - - query: INSERT INTO eg_pt_Billingslab_v2(id, tenantid, propertyType, propertySubType, usageCategoryMajor, usageCategoryMinor, usageCategorySubMinor, usageCategoryDetail, ownerShipCategory, subOwnerShipCategory, fromFloor, toFloor, areaType, fromPlotSize, toPlotSize, occupancyType, unitRate, unbuiltunitrate, arvpercent, isPropertyMultiFloored, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, cast(? as double precision), cast(? as double precision), ?, ?, cast(? as double precision), ?, ?, ?, ?, ?, ?, ?, ?, ?); - - basePath: BillingSlab.* - jsonMaps: - - - jsonPath: $.BillingSlab.*.id - - - jsonPath: $.BillingSlab.*.tenantId - - - jsonPath: $.BillingSlab.*.propertyType - - - jsonPath: $.BillingSlab.*.propertySubType - - - jsonPath: $.BillingSlab.*.usageCategoryMajor - - - jsonPath: $.BillingSlab.*.usageCategoryMinor - - - jsonPath: $.BillingSlab.*.usageCategorySubMinor - - - jsonPath: $.BillingSlab.*.usageCategoryDetail - - - jsonPath: $.BillingSlab.*.ownerShipCategory - - - jsonPath: $.BillingSlab.*.subOwnerShipCategory - - - jsonPath: $.BillingSlab.*.fromFloor - - - jsonPath: $.BillingSlab.*.toFloor - - - jsonPath: $.BillingSlab.*.areaType - - - jsonPath: $.BillingSlab.*.fromPlotSize - - - jsonPath: $.BillingSlab.*.toPlotSize - - - jsonPath: $.BillingSlab.*.occupancyType - - - jsonPath: $.BillingSlab.*.unitRate - - - jsonPath: $.BillingSlab.*.unBuiltUnitRate - - - jsonPath: $.BillingSlab.*.arvPercent - - - jsonPath: $.BillingSlab.*.isPropertyMultiFloored - - - jsonPath: $.BillingSlab.*.auditDetails.createdBy - - - jsonPath: $.BillingSlab.*.auditDetails.createdTime - - - jsonPath: $.BillingSlab.*.auditDetails.lastmodifiedBy - - - jsonPath: $.BillingSlab.*.auditDetails.lastmodifiedTime - - - - version: 1.0 - name: pt-calculator - description: Persists the pt-calculator related records to db - fromTopic: update-pt-billingslab - isTransaction: true - queryMaps: - - - query: UPDATE eg_pt_Billingslab_v2 SET propertyType=?, propertySubType=?, usageCategoryMajor=?, usageCategoryMinor=?, usageCategorySubMinor=?, usageCategoryDetail=?, ownerShipCategory=?, subOwnerShipCategory=?, fromFloor=cast(? as double precision), toFloor=cast(? as double precision), areaType=?, fromPlotSize=?, toPlotSize=cast(? as double precision), occupancyType=?, unitRate=?, unbuiltunitrate=?, arvpercent=?, isPropertyMultiFloored=?, lastmodifiedby=?, lastmodifiedtime=? WHERE tenantid=? AND id=?; - - basePath: BillingSlab.* - jsonMaps: - - - jsonPath: $.BillingSlab.*.propertyType - - - jsonPath: $.BillingSlab.*.propertySubType - - - jsonPath: $.BillingSlab.*.usageCategoryMajor - - - jsonPath: $.BillingSlab.*.usageCategoryMinor - - - jsonPath: $.BillingSlab.*.usageCategorySubMinor - - - jsonPath: $.BillingSlab.*.usageCategoryDetail - - - jsonPath: $.BillingSlab.*.ownerShipCategory - - - jsonPath: $.BillingSlab.*.subOwnerShipCategory - - - jsonPath: $.BillingSlab.*.fromFloor - - - jsonPath: $.BillingSlab.*.toFloor - - - jsonPath: $.BillingSlab.*.areaType - - - jsonPath: $.BillingSlab.*.fromPlotSize - - - jsonPath: $.BillingSlab.*.toPlotSize - - - jsonPath: $.BillingSlab.*.occupancyType - - - jsonPath: $.BillingSlab.*.unitRate - - - jsonPath: $.BillingSlab.*.unBuiltUnitRate - - - jsonPath: $.BillingSlab.*.arvPercent - - - jsonPath: $.BillingSlab.*.isPropertyMultiFloored - - - jsonPath: $.BillingSlab.*.auditDetails.lastmodifiedBy - - - jsonPath: $.BillingSlab.*.auditDetails.lastmodifiedTime - - - jsonPath: $.BillingSlab.*.tenantId - - - jsonPath: $.BillingSlab.*.id diff --git a/egov-persister/pt-drafts.yml b/egov-persister/pt-drafts.yml deleted file mode 100644 index 0c5422b1..00000000 --- a/egov-persister/pt-drafts.yml +++ /dev/null @@ -1,65 +0,0 @@ -serviceMaps: - serviceName: PropertyTax - mappings: - - version: 1.0 - name: pt-service-v2 - description: Persists the property tax requests - fromTopic: save-pt-drafts - isTransaction: true - queryMaps: - - query: INSERT INTO eg_pt_drafts_v2(id, userid, tenantid, draft, isActive, createdBy, createdTime, lastModifiedBy, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); - - basePath: draft - jsonMaps: - - - jsonPath: $.draft.id - - - jsonPath: $.draft.userId - - - jsonPath: $.draft.tenantId - - - jsonPath: $.draft.draftRecord - type: JSON - dbType: JSONB - - - jsonPath: $.draft.isActive - - - jsonPath: $.draft.auditDetails.createdBy - - - jsonPath: $.draft.auditDetails.createdTime - - - jsonPath: $.draft.auditDetails.lastModifiedBy - - - jsonPath: $.draft.auditDetails.lastModifiedTime - - - - version: 1.0 - name: pt-service-v2 - description: Persists asset details in eg_asset table - fromTopic: update-pt-drafts - isTransaction: true - queryMaps: - - - query: UPDATE eg_pt_drafts_v2 SET userid=?, tenantid=?, draft=?, isActive=?, assessmentNumber=? ,lastModifiedBy = ?, lastModifiedTime = ? WHERE id=?; - - basePath: draft - jsonMaps: - - - jsonPath: $.draft.userId - - - jsonPath: $.draft.tenantId - - - jsonPath: $.draft.draftRecord - type: JSON - dbType: JSONB - - - jsonPath: $.draft.isActive - - - jsonPath: $.draft.assessmentNumber - - - jsonPath: $.draft.auditDetails.lastModifiedBy - - - jsonPath: $.draft.auditDetails.lastModifiedTime - - - jsonPath: $.draft.id - diff --git a/egov-persister/pt-mutation-calculator-persister.yml b/egov-persister/pt-mutation-calculator-persister.yml deleted file mode 100644 index 42b72687..00000000 --- a/egov-persister/pt-mutation-calculator-persister.yml +++ /dev/null @@ -1,87 +0,0 @@ -serviceMaps: - serviceName: Property Mutation Calculator - mappings: - - version: 1.0 - name: pt-mutation-calculator - description: Persists the pt-mutation-calculator related records to db - fromTopic: save-pt-mutation-billingslab - isTransaction: true - queryMaps: - - query: INSERT INTO eg_pt_mutation_billingslab(id, tenantid, propertyType, propertySubType, usageCategoryMajor, usageCategoryMinor, usageCategorySubMinor, usageCategoryDetail, ownershipCategory, subOwnershipCategory, minMarketValue, maxMarketValue, fixedAmount, rate, method) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, cast(? as double precision), cast(? as double precision), cast(? as double precision), cast(? as double precision), ?); - - basePath: MutationBillingSlab.* - jsonMaps: - - - jsonPath: $.MutationMutationBillingSlab.*.id - - - jsonPath: $.MutationMutationBillingSlab.*.tenantId - - - jsonPath: $.MutationBillingSlab.*.propertyType - - - jsonPath: $.MutationBillingSlab.*.propertySubType - - - jsonPath: $.MutationBillingSlab.*.usageCategoryMajor - - - jsonPath: $.MutationBillingSlab.*.usageCategoryMinor - - - jsonPath: $.MutationBillingSlab.*.usageCategorySubMinor - - - jsonPath: $.MutationBillingSlab.*.usageCategoryDetail - - - jsonPath: $.MutationBillingSlab.*.ownerShipCategory - - - jsonPath: $.MutationBillingSlab.*.subOwnerShipCategory - - - jsonPath: $.MutationBillingSlab.*.minMarketValue - - - jsonPath: $.MutationBillingSlab.*.maxMarketValue - - - jsonPath: $.MutationBillingSlab.*.fixedAmount - - - jsonPath: $.MutationBillingSlab.*.rate - - - jsonPath: $.MutationBillingSlab.*.type - - - - - version: 1.0 - name: pt-mutation-calculator - description: Persists the pt-mutation-calculator related records to db - fromTopic: update-pt-mutation-billingslab - isTransaction: true - queryMaps: - - - query: UPDATE eg_pt_mutation_billingslab SET propertyType=?, propertySubType=?, usageCategoryMajor=?, usageCategoryMinor=?, usageCategorySubMinor=?, usageCategoryDetail=?, ownershipCategory=?, subOwnershipCategory=?, minMarketValue=cast(? as double precision), maxMarketValue=cast(? as double precision), fixedAmount=cast(? as double precision), rate=cast(? as double precision), method=? WHERE tenantid=? AND id=?; - - basePath: MutationBillingSlab.* - jsonMaps: - - - jsonPath: $.MutationBillingSlab.*.propertyType - - - jsonPath: $.MutationBillingSlab.*.propertySubType - - - jsonPath: $.MutationBillingSlab.*.usageCategoryMajor - - - jsonPath: $.MutationBillingSlab.*.usageCategoryMinor - - - jsonPath: $.MutationBillingSlab.*.usageCategorySubMinor - - - jsonPath: $.MutationBillingSlab.*.usageCategoryDetail - - - jsonPath: $.MutationBillingSlab.*.ownerShipCategory - - - jsonPath: $.MutationBillingSlab.*.subOwnerShipCategory - - - jsonPath: $.MutationBillingSlab.*.minMarketValue - - - jsonPath: $.MutationBillingSlab.*.maxMarketValue - - - jsonPath: $.MutationBillingSlab.*.fixedAmount - - - jsonPath: $.MutationBillingSlab.*.rate - - - jsonPath: $.MutationBillingSlab.*.type - - - jsonPath: $.MutationBillingSlab.*.tenantId - - - jsonPath: $.MutationBillingSlab.*.id diff --git a/egov-persister/pt-persist.yml b/egov-persister/pt-persist.yml deleted file mode 100644 index 5efedcc5..00000000 --- a/egov-persister/pt-persist.yml +++ /dev/null @@ -1,582 +0,0 @@ -serviceMaps: - serviceName: Property Tax Service - mappings: - - version: 1.0 - name: property tax create - description: create property tax in egpt_property - fromTopic: property-create-validated - queryMaps: - - query: INSERT INTO egpt_property (id,tenantId, upicNumber, oldUpicNumber, vltUpicNumber,creationReason, assessmentDate,occupancyDate, gisRefNo,isAuthorised, isUnderWorkflow, channel, createdBy,lastModifiedBy, createdTime,lastModifiedTime,sequenceNo,demands,oldestUpicNumber)VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.properties.* - jsonMaps: - - - jsonPath: $.properties.*.id - - - jsonPath: $.properties.*.tenantId - - - jsonPath: $.properties.*.upicNumber - - - jsonPath: $.properties.*.oldUpicNumber - - - jsonPath: $.properties.*.vltUpicNumber - - - jsonPath: $.properties.*.creationReason - - - jsonPath: $.properties.*.assessmentDate - type: DATE - dbType: DATE - - - jsonPath: $.properties.*.occupancyDate - type: DATE - dbType: DATE - - - jsonPath: $.properties.*.gisRefNo - - - jsonPath: $.properties.*.isAuthorised - type: BOOLEAN - - - jsonPath: $.properties.*.isUnderWorkflow - type: BOOLEAN - - - jsonPath: $.properties.*.channel - - - jsonPath: $.properties.*.auditDetails.createdBy - - - jsonPath: $.properties.*.auditDetails.lastModifiedBy - - - jsonPath: $.properties.*.auditDetails.createdTime - type: LONG - - - jsonPath: $.properties.*.auditDetails.lastModifiedTime - type: LONG - - - jsonPath: $.properties.*.sequenceNo - type: INT - - - jsonPath: $.properties.*.demandsJsonObject - type: JSON - dbType: JSONB - - - jsonPath: $.properties.*.oldestUpicNumber - - - query: INSERT INTO egpt_propertydetails (id, source, regdDocNo, regdDocDate,reason, status, isVerified,verificationDate, isExempted, exemptionReason, propertyType, category, usage,department, apartment, siteLength, siteBreadth, sitalArea,totalBuiltupArea, undividedShare, noOfFloors, isSuperStructure, landOwner, floorType,woodType, roofType, wallType, stateId, applicationNo, createdBy, lastModifiedBy,createdTime, lastModifiedTime, property, taxCalculations,factors,assessmentDates,builderDetails,bpaNo,bpaDate,subUsage)VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.properties.*.propertyDetail - jsonMaps: - - jsonPath: $.properties.*.propertyDetail.id - - - jsonPath: $.properties.*.propertyDetail.source - - - jsonPath: $.properties.*.propertyDetail.regdDocNo - - - jsonPath: $.properties.*.propertyDetail.regdDocDate - type: DATE - dbType: DATE - - - jsonPath: $.properties.*.propertyDetail.reason - - - jsonPath: $.properties.*.propertyDetail.status - - - jsonPath: $.properties.*.propertyDetail.isVerified - type: BOOLEAN - - - jsonPath: $.properties.*.propertyDetail.verificationDate - type: DATE - dbType: DATE - - - jsonPath: $.properties.*.propertyDetail.isExempted - type: BOOLEAN - - - jsonPath: $.properties.*.propertyDetail.exemptionReason - - - jsonPath: $.properties.*.propertyDetail.propertyType - - - jsonPath: $.properties.*.propertyDetail.category - - - jsonPath: $.properties.*.propertyDetail.usage - - - jsonPath: $.properties.*.propertyDetail.department - - - jsonPath: $.properties.*.propertyDetail.apartment - - - jsonPath: $.properties.*.propertyDetail.siteLength - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.siteBreadth - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.sitalArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.totalBuiltupArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.undividedShare - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.noOfFloors - type: LONG - - - jsonPath: $.properties.*.propertyDetail.isSuperStructure - type: BOOLEAN - - - jsonPath: $.properties.*.propertyDetail.landOwner - - - jsonPath: $.properties.*.propertyDetail.floorType - - - jsonPath: $.properties.*.propertyDetail.woodType - - - jsonPath: $.properties.*.propertyDetail.roofType - - - jsonPath: $.properties.*.propertyDetail.wallType - - - jsonPath: $.properties.*.propertyDetail.stateId - - - jsonPath: $.properties.*.propertyDetail.applicationNo - - - jsonPath: $.properties.*.propertyDetail.auditDetails.createdBy - - - jsonPath: $.properties.*.propertyDetail.auditDetails.lastModifiedBy - - - jsonPath: $.properties.*.propertyDetail.auditDetails.createdTime - type: LONG - - - jsonPath: $.properties.*.propertyDetail.auditDetails.lastModifiedTime - type: LONG - - - jsonPath: $.properties.*.id - - - jsonPath: $.properties.*.propertyDetail.taxCalculations - type: JSON - dbType: JSONB - - - jsonPath: $.properties.*.propertyDetail.factors - type: JSON - dbType: JSONB - - - jsonPath: $.properties.*.propertyDetail.assessmentDates - type: JSON - dbType: JSONB - - - jsonPath: $.properties.*.propertyDetail.builderDetails - type: JSON - dbType: JSONB - - - jsonPath: $.properties.*.propertyDetail.bpaNo - - - jsonPath: $.properties.*.propertyDetail.bpaDate - - - jsonPath: $.properties.*.propertyDetail.subUsage - - - - query: INSERT INTO egpt_Address (id, tenantId, latitude, longitude, addressNumber, addressLine1, addressLine2, landmark, city, pincode, detail,createdBy, lastModifiedBy, createdTime, lastModifiedTime, property, surveyNo, plotNo )VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.properties.*.address - jsonMaps: - - - jsonPath: $.properties.*.address.id - - - jsonPath: $.properties.*.address.tenantId - - - jsonPath: $.properties.*.address.latitude - type: DOUBLE - - - jsonPath: $.properties.*.address.longitude - type: DOUBLE - - - jsonPath: $.properties.*.address.addressNumber - - - jsonPath: $.properties.*.address.addressLine1 - - - jsonPath: $.properties.*.address.addressLine2 - - - jsonPath: $.properties.*.address.landmark - - - jsonPath: $.properties.*.address.city - - - jsonPath: $.properties.*.address.pincode - - - jsonPath: $.properties.*.address.detail - - - jsonPath: $.properties.*.address.auditDetails.createdBy - - - jsonPath: $.properties.*.address.auditDetails.lastModifiedBy - - - jsonPath: $.properties.*.address.auditDetails.createdTime - type: LONG - - - jsonPath: $.properties.*.address.auditDetails.lastModifiedTime - type: LONG - - - jsonPath: $.properties.*.id - type: LONG - - - jsonPath: $.properties.*.address.surveyNo - - - jsonPath: $.properties.*.address.plotNo - - - - query: INSERT INTO egpt_floors (id,floorNo,createdBy, lastModifiedBy, createdTime, lastModifiedTime, propertydetails)VALUES(?,?,?,?,?,?,?); - basePath: $.properties.*.propertyDetail.floors.* - jsonMaps: - - - jsonPath: $.properties.*.propertyDetail.floors.*.id - - - jsonPath: $.properties.*.propertyDetail.floors.*.floorNo - - - jsonPath: $.properties.*.propertyDetail.floors.*.auditDetails.createdBy - - - jsonPath: $.properties.*.propertyDetail.floors.*.auditDetails.lastModifiedBy - - - jsonPath: $.properties.*.propertyDetail.floors.*.auditDetails.createdTime - type: LONG - - - jsonPath: $.properties.*.propertyDetail.floors.*.auditDetails.lastModifiedTime - type: LONG - - - jsonPath: $.properties.*.propertyDetail[?( {id} in @.floors[*].id)].id - - - query: INSERT INTO egpt_unit (id, unitNo, unitType, length,width,builtupArea,assessableArea,bpaBuiltupArea,bpaNo,bpaDate,usage,occupancytype,occupierName,firmName,rentCollected, structure, age,exemptionReason, isStructured, occupancyDate, constCompletionDate, manualArv, arv,electricMeterNo, waterMeterNo, createdBy, lastModifiedBy, createdTime, lastModifiedTime,floor,isAuthorised,constructionStartDate,landCost,buildingCost,subusage,carpetArea,exemptionArea,rv) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.properties.*.propertyDetail.floors.*.units.* - jsonMaps: - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.id - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.unitNo - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.unitType - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.length - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.width - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.builtupArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.assessableArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.bpaBuiltupArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.bpaNo - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.bpaDate - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.usage - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.occupancyType - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.occupierName - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.firmName - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.rentCollected - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.structure - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.age - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.exemptionReason - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.isStructured - type: BOOLEAN - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.occupancyDate - type: DATE - dbType: DATE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.constCompletionDate - type: DATE - dbType: DATE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.manualArv - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.arv - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.electricMeterNo - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.waterMeterNo - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.auditDetails.createdBy - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.auditDetails.lastModifiedBy - type: LONG - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.auditDetails.createdTime - type: LONG - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.auditDetails.lastModifiedTime - type: LONG - - - jsonPath: $.properties.*.propertyDetail.floors[?( {id} in @.units[*].id)].id - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.isAuthorised - type: BOOLEAN - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.constructionStartDate - type: DATE - dbType: DATE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.landCost - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.buildingCost - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.subUsage - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.carpetArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.exemptionArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.rv - type: DOUBLE - - - query: INSERT INTO egpt_unit (id, unitNo, unitType, length,width,builtupArea,assessableArea,bpaBuiltupArea,bpaNo,bpaDate,usage,occupancytype,occupierName,firmName,rentCollected, structure, age,exemptionReason, isStructured, occupancyDate, constCompletionDate, manualArv, arv,electricMeterNo, waterMeterNo, createdBy, lastModifiedBy, createdTime, lastModifiedTime,floor,parentid,isAuthorised,constructionStartDate,landCost,buildingCost,subusage,carpetArea,exemptionArea,rv) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.properties.*.propertyDetail.floors.*.units.*.units.* - jsonMaps: - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.id - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.unitNo - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.unitType - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.length - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.width - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.builtupArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.assessableArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.bpaBuiltupArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.bpaNo - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.bpaDate - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.usage - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.occupancyType - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.occupierName - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.firmName - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.rentCollected - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.structure - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.age - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.exemptionReason - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.isStructured - type: BOOLEAN - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.occupancyDate - type: DATE - dbType: DATE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.constCompletionDate - type: DATE - dbType: DATE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.manualArv - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.arv - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.electricMeterNo - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.waterMeterNo - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.auditDetails.createdBy - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.auditDetails.lastModifiedBy - type: LONG - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.auditDetails.createdTime - type: LONG - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.auditDetails.lastModifiedTime - type: LONG - - - jsonPath: $.properties.*.propertyDetail.floors[?( {id} in @.units[*].id)].id - - - jsonPath: $.properties.*.propertyDetail.floors.*.units[?( {id} in @.units[*].id)].id - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.isAuthorised - type: BOOLEAN - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.constructionStartDate - type: DATE - dbType: DATE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.landCost - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.buildingCost - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.subUsage - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.carpetArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.exemptionArea - type: DOUBLE - - - jsonPath: $.properties.*.propertyDetail.floors.*.units.*.units.*.rv - type: DOUBLE - - - query: INSERT INTO egpt_document (id, fileStore, createdBy, lastModifiedBy, createdTime, lastModifiedTime,propertydetails,documenttype) VALUES(?,?,?,?,?,?,?,?); - basePath: $.properties.*.propertyDetail.documents.* - jsonMaps: - - - jsonPath: $.properties.*.propertyDetail.documents.*.id - - - jsonPath: $.properties.*.propertyDetail.documents.*.fileStore - - - jsonPath: $.properties.*.propertyDetail.documents.*.auditDetails.createdBy - - - jsonPath: $.properties.*.propertyDetail.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.properties.*.propertyDetail.documents.*.auditDetails.createdTime - type: LONG - - - jsonPath: $.properties.*.propertyDetail.documents.*.auditDetails.lastModifiedTime - type: LONG - - - jsonPath: $.properties.*.propertyDetail[?({id} in @.documents[*].id)].id - - - jsonPath: $.properties.*.propertyDetail.documents.*.documentType - - - - query: INSERT INTO egpt_vacantland (id,surveyNumber,pattaNumber, marketValue,capitalValue,layoutApprovedAuth,layoutPermissionNo,layoutPermissionDate, resdPlotArea,nonResdPlotArea,createdBy, lastModifiedBy, createdTime,lastModifiedTime, property) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.properties.*.vacantLand - jsonMaps: - - - jsonPath: $.properties.*.vacantLand.id - - - jsonPath: $.properties.*.vacantLand.surveyNumber - - - jsonPath: $.properties.*.vacantLand.pattaNumber - - - jsonPath: $.properties.*.vacantLand.marketValue - type: DOUBLE - - - jsonPath: $.properties.*.vacantLand.capitalValue - type: DOUBLE - - - jsonPath: $.properties.*.vacantLand.layoutApprovedAuth - - - jsonPath: $.properties.*.vacantLand.layoutPermissionNo - - - jsonPath: $.properties.*.vacantLand.layoutPermissionDate - - - jsonPath: $.properties.*.vacantLand.resdPlotArea - type: DOUBLE - - - jsonPath: $.properties.*.vacantLand.nonResdPlotArea - type: DOUBLE - - - jsonPath: $.properties.*.vacantLand.auditDetails.createdBy - - - jsonPath: $.properties.*.vacantLand.auditDetails.lastModifiedBy - - - jsonPath: $.properties.*.vacantLand.auditDetails.createdTime - type: LONG - - - jsonPath: $.properties.*.vacantLand.auditDetails.lastModifiedTime - type: LONG - - - jsonPath: $.properties.*.id - type: LONG - - - - query: INSERT INTO egpt_propertylocation (id,revenueBoundary, locationBoundary, adminBoundary, northBoundedBy,eastBoundedBy, westBoundedBy, southBoundedBy,createdBy, lastModifiedBy, createdTime,lastModifiedTime,property,guidanceValueBoundary) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.properties.*.boundary - jsonMaps: - - - jsonPath: $.properties.*.boundary.id - - - jsonPath: $.properties.*.boundary.revenueBoundary.id - type: LONG - - - jsonPath: $.properties.*.boundary.locationBoundary.id - type: LONG - - - jsonPath: $.properties.*.boundary.adminBoundary.id - type: BOOLEAN - - - jsonPath: $.properties.*.boundary.northBoundedBy - - - jsonPath: $.properties.*.boundary.eastBoundedBy - - - jsonPath: $.properties.*.boundary.westBoundedBy - - - jsonPath: $.properties.*.boundary.southBoundedBy - - - jsonPath: $.properties.*.boundary.auditDetails.createdBy - - - jsonPath: $.properties.*.boundary.auditDetails.lastModifiedBy - - - jsonPath: $.properties.*.boundary.auditDetails.createdTime - type: LONG - - - jsonPath: $.properties.*.boundary.auditDetails.lastModifiedTime - type: LONG - - - jsonPath: $.properties.*.id - type: LONG - - - jsonPath: $.properties.*.boundary.guidanceValueBoundary - type: LONG - - - query: INSERT INTO egpt_property_owner (id, owner,property,isPrimaryOwner, isSecondaryOwner,ownerShipPercentage, ownerType,createdBy, lastModifiedBy, createdTime, lastModifiedTime ) VALUES(?,?,?,?,?,?,?,?,?,?,?); - basePath: $.properties.*.owners.* - jsonMaps: - - - - jsonPath: $.properties.*.owners.*.id - - - jsonPath: $.properties.*.owners.*.owner - type: LONG - - - jsonPath: $.properties[?({id} in @.owners[*].id)].id - - - jsonPath: $.properties.*.owners.*.isPrimaryOwner - type: BOOLEAN - - - jsonPath: $.properties.*.owners.*.isSecondaryOwner - type: BOOLEAN - - - jsonPath: $.properties.*.owners.*.ownerShipPercentage - type: DOUBLE - - - jsonPath: $.properties.*.owners.*.ownerType - - - jsonPath: $.properties.*.owners.*.auditDetails.createdBy - - - jsonPath: $.properties.*.owners.*.auditDetails.lastModifiedBy - - - jsonPath: $.properties.*.owners.*.auditDetails.createdTime - type: LONG - - - jsonPath: $.properties.*.owners.*.auditDetails.lastModifiedTime - type: LONG diff --git a/egov-persister/referral-management-persister.yml b/egov-persister/referral-management-persister.yml new file mode 100644 index 00000000..a3c8a2fd --- /dev/null +++ b/egov-persister/referral-management-persister.yml @@ -0,0 +1,296 @@ +serviceMaps: + serviceName: referralmanagement + mappings: + - version: 1.0 + description: Saves a side effect + fromTopic: save-side-effect-topic + isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: INSERT INTO SIDE_EFFECT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, symptoms, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.symptoms + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a side effect + fromTopic: update-side-effect-topic + isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: UPDATE SIDE_EFFECT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, symptoms = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.symptoms + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a side effect + fromTopic: delete-side-effect-topic + isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: UPDATE SIDE_EFFECT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Saves a referral + fromTopic: save-referral-topic + isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: INSERT INTO REFERRAL(id, clientReferenceId, tenantId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, referrerId, recipientId, recipientType, reasons, additionalDetails, sideEffectId, sideEffectClientReferenceId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.referrerId + - jsonPath: $.*.recipientId + - jsonPath: $.*.recipientType + - jsonPath: $.*.reasons + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.sideEffect.id + - jsonPath: $.*.sideEffect.clientReferenceId + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a referral + fromTopic: update-referral-topic + isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: UPDATE REFERRAL SET tenantId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, referrerId = ?, recipientId = ?, recipientType = ?, reasons = ?, additionalDetails = ?, sideEffectId = ?, sideEffectClientReferenceId = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.referrerId + - jsonPath: $.*.recipientId + - jsonPath: $.*.recipientType + - jsonPath: $.*.reasons + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.sideEffect.id + - jsonPath: $.*.sideEffect.clientReferenceId + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a referral + fromTopic: delete-referral-topic + isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: UPDATE REFERRAL SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Saves a hfreferral + fromTopic: save-hfreferral-topic + isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: INSERT INTO hf_referral(id, clientReferenceId, tenantId, projectid, projectFacilityId, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.projectFacilityId + - jsonPath: $.*.symptom + - jsonPath: $.*.symptomSurveyId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.referralCode + - jsonPath: $.*.nationalLevelId + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a hfreferral + fromTopic: update-hfreferral-topic + isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: UPDATE hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, projectFacilityId = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.projectFacilityId + - jsonPath: $.*.symptom + - jsonPath: $.*.symptomSurveyId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.referralCode + - jsonPath: $.*.nationalLevelId + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a hfreferral + fromTopic: delete-hfreferral-topic + isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: UPDATE hf_referral SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id \ No newline at end of file diff --git a/egov-persister/service-request-persister.yml b/egov-persister/service-request-persister.yml index f3a6c07e..6302cba1 100644 --- a/egov-persister/service-request-persister.yml +++ b/egov-persister/service-request-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Persists service definition details in service definition table fromTopic: save-service-definition isTransaction: true + isAuditEnabled: true + module: SERVICE-REQUEST + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO eg_service_definition(id, tenantid, code, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); @@ -78,6 +85,13 @@ serviceMaps: description: Persists service details in service table fromTopic: save-service isTransaction: true + isAuditEnabled: true + module: SERVICE-REQUEST + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: @@ -132,4 +146,4 @@ serviceMaps: - jsonPath: $.Service.attributes.*.additionalDetails type: JSON - dbType: JSONB \ No newline at end of file + dbType: JSONB diff --git a/egov-persister/sewerage-persist.yml b/egov-persister/sewerage-persist.yml deleted file mode 100644 index 83c4f704..00000000 --- a/egov-persister/sewerage-persist.yml +++ /dev/null @@ -1,468 +0,0 @@ -serviceMaps: - serviceName: Sewerage Connection Service - mappings: - - version: 1.0 - name: SewerageConnection - description: create ConnectionDetails in connection and eg_sw_service - fromTopic: save-sw-connection - isTransaction: true - queryMaps: - - query: INSERT INTO eg_sw_connection (id, tenantid, property_id, applicationno, applicationstatus, status, connectionno, oldconnectionno,roadcuttingarea,action,roadtype, createdby, lastmodifiedby, createdtime, lastmodifiedtime, applicationtype, channel, dateEffectiveFrom, locality, isoldapplication, additionaldetails, isDisconnectionTemporary, disconnectionReason) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.SewerageConnection - jsonMaps: - - jsonPath: $.SewerageConnection.id - - - jsonPath: $.SewerageConnection.tenantId - - - jsonPath: $.SewerageConnection.propertyId - - - jsonPath: $.SewerageConnection.applicationNo - - - jsonPath: $.SewerageConnection.applicationStatus - - - jsonPath: $.SewerageConnection.status - - - jsonPath: $.SewerageConnection.connectionNo - - - jsonPath: $.SewerageConnection.oldConnectionNo - - - jsonPath: $.SewerageConnection.roadCuttingArea - - - jsonPath: $.SewerageConnection.processInstance.action - - - jsonPath: $.SewerageConnection.roadType - - - jsonPath: $.SewerageConnection.auditDetails.createdBy - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.auditDetails.createdTime - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedTime - - - jsonPath: $.SewerageConnection.applicationType - - - jsonPath: $.SewerageConnection.channel - - - jsonPath: $.SewerageConnection.dateEffectiveFrom - - - jsonPath: $.SewerageConnection.additionalDetails.locality - - - jsonPath: $.SewerageConnection.oldApplication - - - jsonPath: $.SewerageConnection.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.SewerageConnection.isDisconnectionTemporary - - - jsonPath: $.SewerageConnection.disconnectionReason - - - - - query: INSERT INTO eg_sw_service(connection_id,connectionExecutionDate,noOfWaterClosets,noOfToilets,connectiontype,proposedWaterClosets,proposedToilets, appCreatedDate, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES(?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.SewerageConnection - jsonMaps: - - - jsonPath: $.SewerageConnection.id - - - jsonPath: $.SewerageConnection.connectionExecutionDate - - - jsonPath: $.SewerageConnection.noOfWaterClosets - - - jsonPath: $.SewerageConnection.noOfToilets - - - jsonPath: $.SewerageConnection.connectionType - - - jsonPath: $.SewerageConnection.proposedWaterClosets - - - jsonPath: $.SewerageConnection.proposedToilets - - - jsonPath: $.SewerageConnection.additionalDetails.appCreatedDate - - - jsonPath: $.SewerageConnection.auditDetails.createdBy - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.auditDetails.createdTime - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_sw_connectionholder(tenantid, connectionid, userid, status, isprimaryholder, connectionholdertype, holdershippercentage, relationship, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.SewerageConnection.connectionHolders.* - jsonMaps: - - - jsonPath: $.SewerageConnection.tenantId - - - jsonPath: $.SewerageConnection.id - - - jsonPath: $.SewerageConnection.connectionHolders.*.uuid - - - jsonPath: $.SewerageConnection.connectionHolders.*.status - - - jsonPath: $.SewerageConnection.connectionHolders.*.isPrimaryOwner - - - jsonPath: $.SewerageConnection.connectionHolders.*.ownerType - - - jsonPath: $.SewerageConnection.connectionHolders.*.ownerShipPercentage - - - jsonPath: $.SewerageConnection.connectionHolders.*.relationship - - - jsonPath: $.SewerageConnection.auditDetails.createdBy - - - jsonPath: $.SewerageConnection.auditDetails.createdTime - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_sw_roadcuttinginfo(id, tenantId, swid, active, roadtype, roadcuttingarea, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, roadtype =?, roadcuttingarea =?,lastmodifiedby =?, lastmodifiedtime =?; - basePath: $.SewerageConnection.roadCuttingInfo.* - jsonMaps: - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.id - - - jsonPath: $.SewerageConnection.tenantId - - - jsonPath: $.SewerageConnection.id - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.status - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.roadType - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.roadCuttingArea - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.createdBy - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.createdTime - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.lastModifiedTime - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.status - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.roadType - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.roadCuttingArea - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.lastModifiedTime - - - - version: 1.0 - name: SewerageConnection - description: update ConnectionDetails in connection and eg_sw_service - fromTopic: update-sw-connection - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_sw_connection_audit SELECT * FROM eg_sw_connection WHERE id = ?; - basePath: $.SewerageConnection - jsonMaps: - - jsonPath: $.SewerageConnection.id - - - query: UPDATE eg_sw_connection SET applicationstatus=?, status=?, connectionno=?, oldconnectionno=?, action=?, roadCuttingArea=?, roadType=?, adhocpenalty=?, adhocrebate=?, adhocpenaltyreason=?, adhocpenaltycomment=?, adhocrebatereason=?, adhocrebatecomment=?, lastmodifiedby=?, lastmodifiedtime=?, dateEffectiveFrom=?, locality=?, isoldapplication=?, property_id=?, additionaldetails=?, isDisconnectionTemporary=?, disconnectionReason=? WHERE id=?; - basePath: $.SewerageConnection - jsonMaps: - - - jsonPath: $.SewerageConnection.applicationStatus - - - jsonPath: $.SewerageConnection.status - - - jsonPath: $.SewerageConnection.connectionNo - - - jsonPath: $.SewerageConnection.oldConnectionNo - - - jsonPath: $.SewerageConnection.processInstance.action - - - jsonPath: $.SewerageConnection.roadCuttingArea - - - jsonPath: $.SewerageConnection.roadType - - - jsonPath: $.SewerageConnection.additionalDetails.adhocPenalty - - - jsonPath: $.SewerageConnection.additionalDetails.adhocRebate - - - jsonPath: $.SewerageConnection.additionalDetails.adhocPenaltyReason - - - jsonPath: $.SewerageConnection.additionalDetails.adhocPenaltyComment - - - jsonPath: $.SewerageConnection.additionalDetails.adhocRebateReason - - - jsonPath: $.SewerageConnection.additionalDetails.adhocRebateComment - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedTime - - - jsonPath: $.SewerageConnection.dateEffectiveFrom - - - jsonPath: $.SewerageConnection.additionalDetails.locality - - - jsonPath: $.SewerageConnection.oldApplication - - - jsonPath: $.SewerageConnection.propertyId - - - jsonPath: $.SewerageConnection.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.SewerageConnection.isDisconnectionTemporary - - - jsonPath: $.SewerageConnection.disconnectionReason - - - jsonPath: $.SewerageConnection.id - - - - query: INSERT INTO eg_sw_service_audit SELECT * FROM eg_sw_service WHERE connection_id = ?; - basePath: $.SewerageConnection - jsonMaps: - - jsonPath: $.SewerageConnection.id - - - query: UPDATE eg_sw_service SET connectionexecutiondate=?, noOfWaterClosets=?, noOfToilets=?, connectiontype=?, proposedWaterClosets=?, proposedToilets=?, detailsprovidedby = ?, estimationfileStoreId = ?, sanctionfileStoreId = ?, estimationLetterDate = ?, lastmodifiedby=?, lastmodifiedtime=? WHERE connection_id=?; - basePath: $.SewerageConnection - jsonMaps: - - - jsonPath: $.SewerageConnection.connectionExecutionDate - - - jsonPath: $.SewerageConnection.noOfWaterClosets - - - jsonPath: $.SewerageConnection.noOfToilets - - - jsonPath: $.SewerageConnection.connectionType - - - jsonPath: $.SewerageConnection.proposedWaterClosets - - - jsonPath: $.SewerageConnection.proposedToilets - - - jsonPath: $.SewerageConnection.additionalDetails.detailsProvidedBy - - - jsonPath: $.SewerageConnection.additionalDetails.estimationFileStoreId - - - jsonPath: $.SewerageConnection.additionalDetails.sanctionFileStoreId - - - jsonPath: $.SewerageConnection.additionalDetails.estimationLetterDate - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedTime - - - jsonPath: $.SewerageConnection.id - - - - query: INSERT INTO eg_sw_applicationDocument(id, tenantId, documenttype, filestoreid, swid, active, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, documenttype =?, filestoreid =?,lastmodifiedby =?, lastmodifiedtime =?; - basePath: $.SewerageConnection.documents.* - jsonMaps: - - - jsonPath: $.SewerageConnection.documents.*.id - - - jsonPath: $.SewerageConnection.tenantId - - - jsonPath: $.SewerageConnection.documents.*.documentType - - - jsonPath: $.SewerageConnection.documents.*.fileStoreId - - - jsonPath: $.SewerageConnection.id - - - jsonPath: $.SewerageConnection.documents.*.status - - - jsonPath: $.SewerageConnection.documents.*.auditDetails.createdBy - - - jsonPath: $.SewerageConnection.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.documents.*.auditDetails.createdTime - - - jsonPath: $.SewerageConnection.documents.*.auditDetails.lastModifiedTime - - - jsonPath: $.SewerageConnection.documents.*.status - - - jsonPath: $.SewerageConnection.documents.*.documentType - - - jsonPath: $.SewerageConnection.documents.*.fileStoreId - - - jsonPath: $.SewerageConnection.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.documents.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_sw_plumberinfo(id,tenantId, name, licenseno, mobilenumber, gender, fatherorhusbandname, correspondenceaddress, relationship, createdBy, lastModifiedBy, createdTime, lastModifiedTime, swid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET name =?, licenseno =?,mobilenumber =?, gender =?, fatherorhusbandname =?, correspondenceaddress =?, relationship=?,lastmodifiedby =?, lastmodifiedtime =?; - basePath: $.SewerageConnection.plumberInfo.* - jsonMaps: - - - jsonPath: $.SewerageConnection.plumberInfo.*.id - - - jsonPath: $.SewerageConnection.tenantId - - - jsonPath: $.SewerageConnection.plumberInfo.*.name - - - jsonPath: $.SewerageConnection.plumberInfo.*.licenseNo - - - jsonPath: $.SewerageConnection.plumberInfo.*.mobileNumber - - - jsonPath: $.SewerageConnection.plumberInfo.*.gender - - - jsonPath: $.SewerageConnection.plumberInfo.*.fatherOrHusbandName - - - jsonPath: $.SewerageConnection.plumberInfo.*.correspondenceAddress - - - jsonPath: $.SewerageConnection.plumberInfo.*.relationship - - - jsonPath: $.SewerageConnection.plumberInfo.*.auditDetails.createdBy - - - jsonPath: $.SewerageConnection.plumberInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.plumberInfo.*.auditDetails.createdTime - - - jsonPath: $.SewerageConnection.plumberInfo.*.auditDetails.lastModifiedTime - - - jsonPath: $.SewerageConnection.id - - - jsonPath: $.SewerageConnection.plumberInfo.*.name - - - jsonPath: $.SewerageConnection.plumberInfo.*.licenseNo - - - jsonPath: $.SewerageConnection.plumberInfo.*.mobileNumber - - - jsonPath: $.SewerageConnection.plumberInfo.*.gender - - - jsonPath: $.SewerageConnection.plumberInfo.*.fatherOrHusbandName - - - jsonPath: $.SewerageConnection.plumberInfo.*.correspondenceAddress - - - jsonPath: $.SewerageConnection.plumberInfo.*.relationship - - - jsonPath: $.SewerageConnection.plumberInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.plumberInfo.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_sw_connectionholder(tenantid, connectionid, userid, status, isprimaryholder, connectionholdertype, holdershippercentage, relationship, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (connectionid) DO UPDATE SET tenantid =?, userid =?,status =?, isprimaryholder =?, connectionholdertype =?, holdershippercentage =?, relationship=?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: $.SewerageConnection.connectionHolders.* - jsonMaps: - - - jsonPath: $.SewerageConnection.tenantId - - - jsonPath: $.SewerageConnection.id - - - jsonPath: $.SewerageConnection.connectionHolders.*.uuid - - - jsonPath: $.SewerageConnection.connectionHolders.*.status - - - jsonPath: $.SewerageConnection.connectionHolders.*.isPrimaryOwner - - - jsonPath: $.SewerageConnection.connectionHolders.*.ownerType - - - jsonPath: $.SewerageConnection.connectionHolders.*.ownerShipPercentage - - - jsonPath: $.SewerageConnection.connectionHolders.*.relationship - - - jsonPath: $.SewerageConnection.auditDetails.createdBy - - - jsonPath: $.SewerageConnection.auditDetails.createdTime - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedTime - - - jsonPath: $.SewerageConnection.tenantId - - - jsonPath: $.SewerageConnection.connectionHolders.*.uuid - - - jsonPath: $.SewerageConnection.connectionHolders.*.status - - - jsonPath: $.SewerageConnection.connectionHolders.*.isPrimaryOwner - - - jsonPath: $.SewerageConnection.connectionHolders.*.ownerType - - - jsonPath: $.SewerageConnection.connectionHolders.*.ownerShipPercentage - - - jsonPath: $.SewerageConnection.connectionHolders.*.relationship - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_sw_roadcuttinginfo(id, tenantId, swid, active, roadtype, roadcuttingarea, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, roadtype =?, roadcuttingarea =?,lastmodifiedby =?, lastmodifiedtime =?; - basePath: $.SewerageConnection.roadCuttingInfo.* - jsonMaps: - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.id - - - jsonPath: $.SewerageConnection.tenantId - - - jsonPath: $.SewerageConnection.id - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.status - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.roadType - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.roadCuttingArea - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.createdBy - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.createdTime - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.lastModifiedTime - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.status - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.roadType - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.roadCuttingArea - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.roadCuttingInfo.*.auditDetails.lastModifiedTime - - - version: 1.0 - name: SewerageConnection - description: update ConnectionDetails in eg_sw_connection and eg_sw_service - fromTopic: update-sw-workflow - isTransaction: true - queryMaps: - - query: INSERT INTO eg_sw_connection_audit SELECT * FROM eg_sw_connection WHERE id = ?; - basePath: $.SewerageConnection - jsonMaps: - - jsonPath: $.SewerageConnection.id - - - query: UPDATE eg_sw_connection SET applicationstatus=?, status=?, connectionno=?, action=?, lastModifiedBy=?, lastModifiedTime=? WHERE id=?; - basePath: $.SewerageConnection - jsonMaps: - - - jsonPath: $.SewerageConnection.applicationStatus - - - jsonPath: $.SewerageConnection.status - - - jsonPath: $.SewerageConnection.connectionNo - - - jsonPath: $.SewerageConnection.processInstance.action - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedBy - - - jsonPath: $.SewerageConnection.auditDetails.lastModifiedTime - - - jsonPath: $.SewerageConnection.id - - - version: 1.0 - name: SewerageConnection - description: save filestore ids - fromTopic: save-sw-filestoreids - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_sw_service_audit SELECT * FROM eg_sw_service WHERE connection_id = ?; - basePath: $.SewerageConnection - jsonMaps: - - jsonPath: $.SewerageConnection.id - - - query: UPDATE eg_sw_service SET estimationfileStoreId = ?, sanctionfileStoreId = ? WHERE connection_id=?; - basePath: $.SewerageConnection - jsonMaps: - - - jsonPath: $.SewerageConnection.additionalDetails.estimationFileStoreId - - - jsonPath: $.SewerageConnection.additionalDetails.sanctionFileStoreId - - - jsonPath: $.SewerageConnection.id diff --git a/egov-persister/stock-persister.yml b/egov-persister/stock-persister.yml index 01c96c48..72142559 100644 --- a/egov-persister/stock-persister.yml +++ b/egov-persister/stock-persister.yml @@ -5,14 +5,20 @@ serviceMaps: description: Saves a stock fromTopic: save-stock-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: INSERT INTO STOCK(id, clientReferenceId, tenantId, facilityId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, transactingPartyId, transactingPartyType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO STOCK(id, clientReferenceId, tenantId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, senderType, senderId, receiverType, receiverId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, dateOfEntry, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id - jsonPath: $.*.clientReferenceId - jsonPath: $.*.tenantId - - jsonPath: $.*.facilityId - jsonPath: $.*.productVariantId - jsonPath: $.*.wayBillNumber - jsonPath: $.*.quantity @@ -20,8 +26,10 @@ serviceMaps: - jsonPath: $.*.referenceIdType - jsonPath: $.*.transactionType - jsonPath: $.*.transactionReason - - jsonPath: $.*.transactingPartyId - - jsonPath: $.*.transactingPartyType + - jsonPath: $.*.senderType + - jsonPath: $.*.senderId + - jsonPath: $.*.receiverType + - jsonPath: $.*.receiverId - jsonPath: $.*.additionalFields type: JSON dbType: JSONB @@ -31,17 +39,29 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.dateOfEntry + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - version: 1.0 description: Updates a stock fromTopic: update-stock-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE STOCK SET tenantId=?, facilityId=?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, transactingPartyId=?, transactingPartyType=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; + - query: UPDATE STOCK SET tenantId=?, dateOfEntry = ?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, senderType=?, senderId=?, receiverType=?, receiverId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId - - jsonPath: $.*.facilityId + - jsonPath: $.*.dateOfEntry - jsonPath: $.*.productVariantId - jsonPath: $.*.wayBillNumber - jsonPath: $.*.quantity @@ -49,26 +69,39 @@ serviceMaps: - jsonPath: $.*.referenceIdType - jsonPath: $.*.transactionType - jsonPath: $.*.transactionReason - - jsonPath: $.*.transactingPartyId - - jsonPath: $.*.transactingPartyType + - jsonPath: $.*.senderType + - jsonPath: $.*.senderId + - jsonPath: $.*.receiverType + - jsonPath: $.*.receiverId - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.id - version: 1.0 description: Deletes a stock fromTopic: delete-stock-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE STOCK SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + - query: UPDATE STOCK SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - jsonPath: $.*.additionalFields @@ -81,8 +114,15 @@ serviceMaps: description: Saves a stock reconciliation fromTopic: save-stock-reconciliation-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: INSERT INTO STOCK_RECONCILIATION_LOG(id, clientReferenceId, tenantId, facilityId, dateOfReconciliation, calculatedCount, physicalRecordedCount, commentsOnReconciliation, productVariantId, referenceId, referenceIdType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO STOCK_RECONCILIATION_LOG(id, clientReferenceId, tenantId, facilityId, dateOfReconciliation, calculatedCount, physicalRecordedCount, commentsOnReconciliation, productVariantId, referenceId, referenceIdType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted,clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -105,13 +145,24 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - version: 1.0 description: Updates a stock reconciliation fromTopic: update-stock-reconciliation-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE STOCK_RECONCILIATION_LOG SET tenantId=?, facilityId=?, productVariantId=?, referenceId=?, referenceIdType=?, dateOfReconciliation=?, calculatedCount=?, physicalRecordedCount=?, commentsOnReconciliation=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; + - query: UPDATE STOCK_RECONCILIATION_LOG SET tenantId=?, facilityId=?, productVariantId=?, referenceId=?, referenceIdType=?, dateOfReconciliation=?, calculatedCount=?, physicalRecordedCount=?, commentsOnReconciliation=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -129,18 +180,29 @@ serviceMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.id - version: 1.0 description: Deletes a stock reconciliation fromTopic: delete-stock-reconciliation-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - - query: UPDATE STOCK_RECONCILIATION_LOG SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + - query: UPDATE STOCK_RECONCILIATION_LOG SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - jsonPath: $.*.additionalFields diff --git a/egov-persister/tl-billing-slab-persister.yml b/egov-persister/tl-billing-slab-persister.yml deleted file mode 100644 index 5c9518ae..00000000 --- a/egov-persister/tl-billing-slab-persister.yml +++ /dev/null @@ -1,85 +0,0 @@ -serviceMaps: - serviceName: tradelicense Calculator - mappings: - - version: 1.0 - name: tl-calculator - description: Persists the billing slabs of tl into db - fromTopic: save-tl-billingslab - isTransaction: true - queryMaps: - - query: INSERT INTO eg_tl_billingSlab(id, tenantid, licensetype, applicationtype, structuretype, tradetype, accessorycategory, type, uom, fromUom, toUom, rate, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, cast(? as double precision), cast(? as double precision), ?, ?, ?, ?, ?); - - basePath: billingSlab.* - jsonMaps: - - - jsonPath: $.billingSlab.*.id - - - jsonPath: $.billingSlab.*.tenantId - - - jsonPath: $.billingSlab.*.licenseType - - - jsonPath: $.billingSlab.*.applicationType - - - jsonPath: $.billingSlab.*.structureType - - - jsonPath: $.billingSlab.*.tradeType - - - jsonPath: $.billingSlab.*.accessoryCategory - - - jsonPath: $.billingSlab.*.type - - - jsonPath: $.billingSlab.*.uom - - - jsonPath: $.billingSlab.*.fromUom - - - jsonPath: $.billingSlab.*.toUom - - - jsonPath: $.billingSlab.*.rate - - - jsonPath: $.billingSlab.*.auditDetails.createdBy - - - jsonPath: $.billingSlab.*.auditDetails.createdTime - - - jsonPath: $.billingSlab.*.auditDetails.lastModifiedBy - - - jsonPath: $.billingSlab.*.auditDetails.lastModifiedTime - - - - version: 1.0 - name: tl-calculator - description: Updates the billing slabs of tl into db - fromTopic: update-tl-billingslab - isTransaction: true - queryMaps: - - query: UPDATE eg_tl_billingSlab SET licensetype=?, applicationType=?, structuretype=?, tradetype=?, accessorycategory=?, type=?, uom=?, fromUom=?, toUom=?, rate=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=? AND tenantid=?; - - basePath: billingSlab.* - jsonMaps: - - - jsonPath: $.billingSlab.*.licenseType - - - jsonPath: $.billingSlab.*.applicationType - - - jsonPath: $.billingSlab.*.structureType - - - jsonPath: $.billingSlab.*.tradeType - - - jsonPath: $.billingSlab.*.accessoryCategory - - - jsonPath: $.billingSlab.*.type - - - jsonPath: $.billingSlab.*.uom - - - jsonPath: $.billingSlab.*.fromUom - - - jsonPath: $.billingSlab.*.toUom - - - jsonPath: $.billingSlab.*.rate - - - jsonPath: $.billingSlab.*.auditDetails.lastModifiedBy - - - jsonPath: $.billingSlab.*.auditDetails.lastModifiedTime - - - jsonPath: $.billingSlab.*.id - - - jsonPath: $.billingSlab.*.tenantId diff --git a/egov-persister/tl-calculation-persister.yml b/egov-persister/tl-calculation-persister.yml deleted file mode 100644 index 85adc65e..00000000 --- a/egov-persister/tl-calculation-persister.yml +++ /dev/null @@ -1,53 +0,0 @@ -serviceMaps: - serviceName: tl-calculator - mappings: - - version: 1.0 - description: Persists tradeLicense calculation details in EG_TL_CALCULATION table - fromTopic: save-tl-calculation - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_tl_calculator_tradetype(id,tenantId,consumercode,tradeTypeFeeAndBillingSlabIds,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Calculations.*.tradeLicense - jsonMaps: - - jsonPath: $.Calculations.*.tradeTypeBillingIds.id - - - jsonPath: $.Calculations.*.tradeLicense.tenantId - - - jsonPath: $.Calculations.*.tradeLicense.applicationNumber - - - jsonPath: $.Calculations.*.tradeTypeBillingIds - type: JSON - dbType: JSONB - - - jsonPath: $.Calculations.*.tradeLicense.auditDetails.createdBy - - - jsonPath: $.Calculations.*.tradeLicense.auditDetails.lastModifiedBy - - - jsonPath: $.Calculations.*.tradeLicense.auditDetails.createdTime - - - jsonPath: $.Calculations.*.tradeLicense.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_calculator_accessory(id,tenantId,consumercode,accessoryFeeAndBillingSlabIds,createdby,lastmodifiedby, createdtime, lastmodifiedtime) SELECT * FROM (VALUES ( ?, ?, ?, ?::JSONB, ?, ?, ?::BIGINT, ?::BIGINT)) AS t WHERE (NOT (SELECT coalesce(field, '') = '' FROM (VALUES (?))sub(field))); - basePath: Calculations.*.tradeLicense - jsonMaps: - - jsonPath: $.Calculations.*.accessoryBillingIds.id - - - jsonPath: $.Calculations.*.tradeLicense.tenantId - - - jsonPath: $.Calculations.*.tradeLicense.applicationNumber - - - jsonPath: $.Calculations.*.accessoryBillingIds - type: JSON - dbType: JSONB - - - jsonPath: $.Calculations.*.tradeLicense.auditDetails.createdBy - - - jsonPath: $.Calculations.*.tradeLicense.auditDetails.lastModifiedBy - - - jsonPath: $.Calculations.*.tradeLicense.auditDetails.createdTime - - - jsonPath: $.Calculations.*.tradeLicense.auditDetails.lastModifiedTime - - - jsonPath: $.Calculations.*.accessoryBillingIds.id diff --git a/egov-persister/tradelicense-persister-bpachanges.yml b/egov-persister/tradelicense-persister-bpachanges.yml deleted file mode 100644 index e772d467..00000000 --- a/egov-persister/tradelicense-persister-bpachanges.yml +++ /dev/null @@ -1,843 +0,0 @@ -serviceMaps: - serviceName: tl-services - mappings: - - version: 1.0 - description: Persists tradeLicense details in EG_TL_TradeLicense table - fromTopic: save-tl-tradelicense - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_tl_tradelicense( id, accountid,tenantid,tradeName, validfrom,validto,licensetype,applicationNumber, licenseNumber, oldlicensenumber, propertyid, oldpropertyid, applicationdate, commencementdate, financialyear, action, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime, businessservice, applicationtype, workflowcode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.id - - - jsonPath: $.Licenses.*.accountId - - - jsonPath: $.Licenses.*.tenantId - - - jsonPath: $.Licenses.*.tradeName - - - jsonPath: $.Licenses.*.validFrom - - - jsonPath: $.Licenses.*.validTo - - - jsonPath: $.Licenses.*.licenseType - - - jsonPath: $.Licenses.*.applicationNumber - - - jsonPath: $.Licenses.*.licenseNumber - - - jsonPath: $.Licenses.*.oldLicenseNumber - - - jsonPath: $.Licenses.*.propertyId - - - jsonPath: $.Licenses.*.oldPropertyId - - - jsonPath: $.Licenses.*.applicationDate - - - jsonPath: $.Licenses.*.commencementDate - - - jsonPath: $.Licenses.*.financialYear - - - jsonPath: $.Licenses.*.action - - - jsonPath: $.Licenses.*.status - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.businessService - - - jsonPath: $.Licenses.*.applicationType - - - jsonPath: $.Licenses.*.workflowCode - - - - query: INSERT INTO eg_tl_tradelicensedetail( id, surveyno, subownershipcategory, channel, additionaldetail, tradelicenseid,structureType,operationalArea,noOfEmployees,adhocExemption,adhocPenalty,adhocExemptionReason,adhocPenaltyReason, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.surveyNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.subOwnerShipCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.channel - - - jsonPath: $.Licenses.*.tradeLicenseDetail.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Licenses.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.structureType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.operationalArea - - - jsonPath: $.Licenses.*.tradeLicenseDetail.noOfEmployees - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemption - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenalty - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemptionReason - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenaltyReason - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_tradeunit( id, tenantid,active, tradetype, uom, uomvalue, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.tradeUnits.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tradeType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uomValue - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_accessory( id, tenantid,active, accessoryCategory, uom, uomvalue, count, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.accessories.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.accessoryCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uomValue - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.count - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_owner( id,tenantid,active,institutionid, tradelicensedetailid, isprimaryowner, ownertype, ownershippercentage, relationship, createdby,lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.owners.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.uuid - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.userActive - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.institutionId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.isPrimaryOwner - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerShipPercentage - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.relationship - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_document_owner(id,tenantId,userid,active, tradeLicenseDetailId, documenttype, fileStoreId,documentuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ? ,? ,?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.owners.*.documents.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners[*][?({id} in @.documents[*].id)].uuid - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.active - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.fileStoreId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentUid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_applicationdocument( id, tenantid, active, documenttype, tradecategorydetail, filestoreid, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.applicationDocuments.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_address( id, tenantid, doorno,street,buildingName, latitude,longitude, addressid, addressnumber,locality, type, addressline1, addressline2, landmark, city, pincode, detail, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.address - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.doorNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.street - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.buildingName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.latitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.longitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressNumber - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.locality.code - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressLine1 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressline2 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.landmark - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.city - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.pincode - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.detail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_institution(tenantId,active,id,instituionName,contactNo,organisationRegistrationNo,address, tradelicensedetailid, name, type,designation, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ; - basePath: Licenses.*.tradeLicenseDetail.institution - jsonMaps: - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.instituionName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.contactNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.organisationRegistrationNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.address - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.name - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.designation - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - - - - - - version: 1.0 - description: Update tradeLicense details in EG_TL_TradeLicense table - fromTopic: update-tl-tradelicense - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_tl_tradelicense_audit SELECT * FROM eg_tl_tradelicense WHERE id = ?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.id - - - - query: UPDATE eg_tl_tradelicense SET tradeName = ?,licenseNumber = ?,licensetype = ?, oldlicensenumber = ?, propertyid = ?, oldpropertyid = ?, commencementdate = ?, issueddate = ?, financialyear = ?, validfrom = ?, validto = ?, action = ?, status = ?, lastmodifiedby = ?, lastmodifiedtime = ?, businessservice = ?, applicationtype = ?, workflowcode = ? WHERE id=?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeName - - - jsonPath: $.Licenses.*.licenseNumber - - - jsonPath: $.Licenses.*.licenseType - - - jsonPath: $.Licenses.*.oldLicenseNumber - - - jsonPath: $.Licenses.*.propertyId - - - jsonPath: $.Licenses.*.oldPropertyId - - - jsonPath: $.Licenses.*.commencementDate - - - jsonPath: $.Licenses.*.issuedDate - - - jsonPath: $.Licenses.*.financialYear - - - jsonPath: $.Licenses.*.validFrom - - - jsonPath: $.Licenses.*.validTo - - - jsonPath: $.Licenses.*.action - - - jsonPath: $.Licenses.*.status - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.businessService - - - jsonPath: $.Licenses.*.applicationType - - - jsonPath: $.Licenses.*.workflowCode - - - jsonPath: $.Licenses.*.id - - - query: INSERT INTO eg_tl_tradelicensedetail_audit SELECT * FROM eg_tl_tradelicensedetail WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - - query: UPDATE eg_tl_tradelicensedetail SET surveyno = ?, subownershipcategory = ?, channel = ?, additionaldetail = ?,operationalArea = ?,noOfEmployees = ?,structureType = ?,adhocExemption = ?,adhocPenalty = ?,adhocExemptionReason = ?,adhocPenaltyReason = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.surveyNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.subOwnerShipCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.channel - - - jsonPath: $.Licenses.*.tradeLicenseDetail.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Licenses.*.tradeLicenseDetail.operationalArea - - - jsonPath: $.Licenses.*.tradeLicenseDetail.noOfEmployees - - - jsonPath: $.Licenses.*.tradeLicenseDetail.structureType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemption - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenalty - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemptionReason - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenaltyReason - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - query: INSERT INTO eg_tl_tradeunit(id, tenantid, active, tradetype, uom, uomvalue, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, tradetype = ?, uom = ?, uomvalue = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.tradeUnits.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tradeType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uomValue - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tradeType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uomValue - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_accessory(id, tenantid, active, accessoryCategory, uom, uomvalue, count, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?,accessoryCategory = ?, uom = ?, uomvalue = ?,count =?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.accessories.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.accessoryCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uomValue - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.count - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.accessoryCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uomValue - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.count - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_owner( id, tenantid, active, tradelicensedetailid, isprimaryowner, ownertype, ownershippercentage, relationship, createdby,lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT ON CONSTRAINT pk_eg_tl_owner DO UPDATE SET active = ?, isprimaryowner = ?, ownertype = ?, ownershippercentage = ?, relationship = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.owners.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.uuid - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.userActive - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.isPrimaryOwner - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerShipPercentage - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.relationship - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.userActive - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.isPrimaryOwner - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerShipPercentage - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.relationship - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_document_owner(id,tenantId,active,userid, tradeLicenseDetailId, documenttype, fileStoreId,documentuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT ON CONSTRAINT pk_eg_tl_document_owner DO UPDATE SET active = ?, documenttype = ?, fileStoreId = ?,documentuid = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.owners.*.documents.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners[*][?({id} in @.documents[*].id)].uuid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.fileStoreId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentUid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.fileStoreId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentUid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_applicationdocument( id, tenantid, active, documenttype, tradecategorydetail, filestoreid, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, documenttype =?, tradecategorydetail =?, filestoreid =?,lastmodifiedby =?, lastmodifiedtime =?; - basePath: Licenses.*.tradeLicenseDetail.applicationDocuments.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - - - query: UPDATE eg_tl_address SET doorno =?,street = ?,buildingName = ?, latitude =?, longitude =?, addressid =?, addressnumber =?,locality =?, type =?, addressline1 =?, addressline2 =?, landmark =?, city =?, pincode =?, detail =?,lastmodifiedby =?, lastmodifiedtime =? WHERE id =?; - basePath: Licenses.*.tradeLicenseDetail.address - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.doorNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.street - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.buildingName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.latitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.longitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressNumber - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.locality.code - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressline1 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressline2 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.landmark - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.city - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.pincode - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.detail - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.id - - - - query: INSERT INTO eg_tl_institution(tenantId, active, id, instituionName, contactNo, organisationRegistrationNo, address, tradelicensedetailid, name, type,designation, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?,name = ?,type = ?,designation = ?, lastmodifiedby = ?,lastmodifiedtime = ?, instituionName = ?, contactNo = ?, organisationRegistrationNo = ?, address = ?; - basePath: Licenses.*.tradeLicenseDetail.institution - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.instituionName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.contactNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.organisationRegistrationNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.address - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.name - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.designation - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.name - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.designation - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.instituionName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.contactNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.organisationRegistrationNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.address - - - - - - version: 1.0 - description: Persists tradeLicense details in EG_TL_TradeLicense table - fromTopic: update-tl-workflow - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_tl_tradelicense_audit SELECT * FROM eg_tl_tradelicense WHERE id = ?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.id - - - - - query: INSERT INTO eg_tl_tradelicensedetail_audit SELECT * FROM eg_tl_tradelicensedetail WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - - query: INSERT INTO eg_tl_verificationdocument( id, tenantid, active, documenttype, tradecategorydetail, filestoreid,tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?,documenttype =?, tradecategorydetail =?, filestoreid =?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: Licenses.*.tradeLicenseDetail.verificationDocuments.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedTime - - - - query: UPDATE eg_tl_tradelicense SET validfrom = ?,validto = ?,licenseNumber =?, issueddate = ?, action = ?, status = ?, lastmodifiedby = ?, lastmodifiedtime = ? WHERE id=?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.validFrom - - - jsonPath: $.Licenses.*.validTo - - - jsonPath: $.Licenses.*.licenseNumber - - - jsonPath: $.Licenses.*.issuedDate - - - jsonPath: $.Licenses.*.action - - - jsonPath: $.Licenses.*.status - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.id - - - - query: UPDATE eg_tl_tradelicensedetail SET additionaldetail = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - - version: 1.0 - description: Update adhocDetails - fromTopic: update-tl-adhoc-tradelicense - isTransaction: true - queryMaps: - - - - query: UPDATE eg_tl_tradelicensedetail SET adhocExemption = ?,adhocPenalty = ?,adhocExemptionReason = ?,adhocPenaltyReason = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemption - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenalty - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemptionReason - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenaltyReason - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id diff --git a/egov-persister/tradelicense-persister.yml b/egov-persister/tradelicense-persister.yml deleted file mode 100644 index e772d467..00000000 --- a/egov-persister/tradelicense-persister.yml +++ /dev/null @@ -1,843 +0,0 @@ -serviceMaps: - serviceName: tl-services - mappings: - - version: 1.0 - description: Persists tradeLicense details in EG_TL_TradeLicense table - fromTopic: save-tl-tradelicense - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_tl_tradelicense( id, accountid,tenantid,tradeName, validfrom,validto,licensetype,applicationNumber, licenseNumber, oldlicensenumber, propertyid, oldpropertyid, applicationdate, commencementdate, financialyear, action, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime, businessservice, applicationtype, workflowcode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.id - - - jsonPath: $.Licenses.*.accountId - - - jsonPath: $.Licenses.*.tenantId - - - jsonPath: $.Licenses.*.tradeName - - - jsonPath: $.Licenses.*.validFrom - - - jsonPath: $.Licenses.*.validTo - - - jsonPath: $.Licenses.*.licenseType - - - jsonPath: $.Licenses.*.applicationNumber - - - jsonPath: $.Licenses.*.licenseNumber - - - jsonPath: $.Licenses.*.oldLicenseNumber - - - jsonPath: $.Licenses.*.propertyId - - - jsonPath: $.Licenses.*.oldPropertyId - - - jsonPath: $.Licenses.*.applicationDate - - - jsonPath: $.Licenses.*.commencementDate - - - jsonPath: $.Licenses.*.financialYear - - - jsonPath: $.Licenses.*.action - - - jsonPath: $.Licenses.*.status - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.businessService - - - jsonPath: $.Licenses.*.applicationType - - - jsonPath: $.Licenses.*.workflowCode - - - - query: INSERT INTO eg_tl_tradelicensedetail( id, surveyno, subownershipcategory, channel, additionaldetail, tradelicenseid,structureType,operationalArea,noOfEmployees,adhocExemption,adhocPenalty,adhocExemptionReason,adhocPenaltyReason, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.surveyNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.subOwnerShipCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.channel - - - jsonPath: $.Licenses.*.tradeLicenseDetail.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Licenses.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.structureType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.operationalArea - - - jsonPath: $.Licenses.*.tradeLicenseDetail.noOfEmployees - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemption - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenalty - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemptionReason - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenaltyReason - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_tradeunit( id, tenantid,active, tradetype, uom, uomvalue, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.tradeUnits.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tradeType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uomValue - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_accessory( id, tenantid,active, accessoryCategory, uom, uomvalue, count, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.accessories.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.accessoryCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uomValue - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.count - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_owner( id,tenantid,active,institutionid, tradelicensedetailid, isprimaryowner, ownertype, ownershippercentage, relationship, createdby,lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.owners.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.uuid - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.userActive - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.institutionId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.isPrimaryOwner - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerShipPercentage - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.relationship - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_document_owner(id,tenantId,userid,active, tradeLicenseDetailId, documenttype, fileStoreId,documentuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ? ,? ,?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.owners.*.documents.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners[*][?({id} in @.documents[*].id)].uuid - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.active - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.fileStoreId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentUid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_applicationdocument( id, tenantid, active, documenttype, tradecategorydetail, filestoreid, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.applicationDocuments.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_address( id, tenantid, doorno,street,buildingName, latitude,longitude, addressid, addressnumber,locality, type, addressline1, addressline2, landmark, city, pincode, detail, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.address - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.doorNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.street - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.buildingName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.latitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.longitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressNumber - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.locality.code - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressLine1 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressline2 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.landmark - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.city - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.pincode - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.detail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_institution(tenantId,active,id,instituionName,contactNo,organisationRegistrationNo,address, tradelicensedetailid, name, type,designation, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ; - basePath: Licenses.*.tradeLicenseDetail.institution - jsonMaps: - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.instituionName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.contactNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.organisationRegistrationNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.address - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.name - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.designation - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - - - - - - version: 1.0 - description: Update tradeLicense details in EG_TL_TradeLicense table - fromTopic: update-tl-tradelicense - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_tl_tradelicense_audit SELECT * FROM eg_tl_tradelicense WHERE id = ?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.id - - - - query: UPDATE eg_tl_tradelicense SET tradeName = ?,licenseNumber = ?,licensetype = ?, oldlicensenumber = ?, propertyid = ?, oldpropertyid = ?, commencementdate = ?, issueddate = ?, financialyear = ?, validfrom = ?, validto = ?, action = ?, status = ?, lastmodifiedby = ?, lastmodifiedtime = ?, businessservice = ?, applicationtype = ?, workflowcode = ? WHERE id=?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeName - - - jsonPath: $.Licenses.*.licenseNumber - - - jsonPath: $.Licenses.*.licenseType - - - jsonPath: $.Licenses.*.oldLicenseNumber - - - jsonPath: $.Licenses.*.propertyId - - - jsonPath: $.Licenses.*.oldPropertyId - - - jsonPath: $.Licenses.*.commencementDate - - - jsonPath: $.Licenses.*.issuedDate - - - jsonPath: $.Licenses.*.financialYear - - - jsonPath: $.Licenses.*.validFrom - - - jsonPath: $.Licenses.*.validTo - - - jsonPath: $.Licenses.*.action - - - jsonPath: $.Licenses.*.status - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.businessService - - - jsonPath: $.Licenses.*.applicationType - - - jsonPath: $.Licenses.*.workflowCode - - - jsonPath: $.Licenses.*.id - - - query: INSERT INTO eg_tl_tradelicensedetail_audit SELECT * FROM eg_tl_tradelicensedetail WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - - query: UPDATE eg_tl_tradelicensedetail SET surveyno = ?, subownershipcategory = ?, channel = ?, additionaldetail = ?,operationalArea = ?,noOfEmployees = ?,structureType = ?,adhocExemption = ?,adhocPenalty = ?,adhocExemptionReason = ?,adhocPenaltyReason = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.surveyNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.subOwnerShipCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.channel - - - jsonPath: $.Licenses.*.tradeLicenseDetail.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Licenses.*.tradeLicenseDetail.operationalArea - - - jsonPath: $.Licenses.*.tradeLicenseDetail.noOfEmployees - - - jsonPath: $.Licenses.*.tradeLicenseDetail.structureType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemption - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenalty - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemptionReason - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenaltyReason - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - query: INSERT INTO eg_tl_tradeunit(id, tenantid, active, tradetype, uom, uomvalue, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, tradetype = ?, uom = ?, uomvalue = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.tradeUnits.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tradeType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uomValue - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tradeType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uomValue - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_accessory(id, tenantid, active, accessoryCategory, uom, uomvalue, count, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?,accessoryCategory = ?, uom = ?, uomvalue = ?,count =?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.accessories.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.accessoryCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uomValue - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.count - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.accessoryCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uomValue - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.count - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_owner( id, tenantid, active, tradelicensedetailid, isprimaryowner, ownertype, ownershippercentage, relationship, createdby,lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT ON CONSTRAINT pk_eg_tl_owner DO UPDATE SET active = ?, isprimaryowner = ?, ownertype = ?, ownershippercentage = ?, relationship = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.owners.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.uuid - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.userActive - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.isPrimaryOwner - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerShipPercentage - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.relationship - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.userActive - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.isPrimaryOwner - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerShipPercentage - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.relationship - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_document_owner(id,tenantId,active,userid, tradeLicenseDetailId, documenttype, fileStoreId,documentuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT ON CONSTRAINT pk_eg_tl_document_owner DO UPDATE SET active = ?, documenttype = ?, fileStoreId = ?,documentuid = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.owners.*.documents.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners[*][?({id} in @.documents[*].id)].uuid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.fileStoreId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentUid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.fileStoreId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentUid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_applicationdocument( id, tenantid, active, documenttype, tradecategorydetail, filestoreid, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, documenttype =?, tradecategorydetail =?, filestoreid =?,lastmodifiedby =?, lastmodifiedtime =?; - basePath: Licenses.*.tradeLicenseDetail.applicationDocuments.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - - - query: UPDATE eg_tl_address SET doorno =?,street = ?,buildingName = ?, latitude =?, longitude =?, addressid =?, addressnumber =?,locality =?, type =?, addressline1 =?, addressline2 =?, landmark =?, city =?, pincode =?, detail =?,lastmodifiedby =?, lastmodifiedtime =? WHERE id =?; - basePath: Licenses.*.tradeLicenseDetail.address - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.doorNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.street - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.buildingName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.latitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.longitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressNumber - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.locality.code - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressline1 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressline2 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.landmark - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.city - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.pincode - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.detail - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.id - - - - query: INSERT INTO eg_tl_institution(tenantId, active, id, instituionName, contactNo, organisationRegistrationNo, address, tradelicensedetailid, name, type,designation, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?,name = ?,type = ?,designation = ?, lastmodifiedby = ?,lastmodifiedtime = ?, instituionName = ?, contactNo = ?, organisationRegistrationNo = ?, address = ?; - basePath: Licenses.*.tradeLicenseDetail.institution - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.instituionName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.contactNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.organisationRegistrationNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.address - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.name - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.designation - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.name - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.designation - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.instituionName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.contactNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.organisationRegistrationNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.address - - - - - - version: 1.0 - description: Persists tradeLicense details in EG_TL_TradeLicense table - fromTopic: update-tl-workflow - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_tl_tradelicense_audit SELECT * FROM eg_tl_tradelicense WHERE id = ?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.id - - - - - query: INSERT INTO eg_tl_tradelicensedetail_audit SELECT * FROM eg_tl_tradelicensedetail WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - - query: INSERT INTO eg_tl_verificationdocument( id, tenantid, active, documenttype, tradecategorydetail, filestoreid,tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?,documenttype =?, tradecategorydetail =?, filestoreid =?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: Licenses.*.tradeLicenseDetail.verificationDocuments.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedTime - - - - query: UPDATE eg_tl_tradelicense SET validfrom = ?,validto = ?,licenseNumber =?, issueddate = ?, action = ?, status = ?, lastmodifiedby = ?, lastmodifiedtime = ? WHERE id=?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.validFrom - - - jsonPath: $.Licenses.*.validTo - - - jsonPath: $.Licenses.*.licenseNumber - - - jsonPath: $.Licenses.*.issuedDate - - - jsonPath: $.Licenses.*.action - - - jsonPath: $.Licenses.*.status - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.id - - - - query: UPDATE eg_tl_tradelicensedetail SET additionaldetail = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - - version: 1.0 - description: Update adhocDetails - fromTopic: update-tl-adhoc-tradelicense - isTransaction: true - queryMaps: - - - - query: UPDATE eg_tl_tradelicensedetail SET adhocExemption = ?,adhocPenalty = ?,adhocExemptionReason = ?,adhocPenaltyReason = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemption - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenalty - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemptionReason - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenaltyReason - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id diff --git a/egov-persister/tradelicense.yml b/egov-persister/tradelicense.yml deleted file mode 100644 index e772d467..00000000 --- a/egov-persister/tradelicense.yml +++ /dev/null @@ -1,843 +0,0 @@ -serviceMaps: - serviceName: tl-services - mappings: - - version: 1.0 - description: Persists tradeLicense details in EG_TL_TradeLicense table - fromTopic: save-tl-tradelicense - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_tl_tradelicense( id, accountid,tenantid,tradeName, validfrom,validto,licensetype,applicationNumber, licenseNumber, oldlicensenumber, propertyid, oldpropertyid, applicationdate, commencementdate, financialyear, action, status, createdby, lastmodifiedby, createdtime, lastmodifiedtime, businessservice, applicationtype, workflowcode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.id - - - jsonPath: $.Licenses.*.accountId - - - jsonPath: $.Licenses.*.tenantId - - - jsonPath: $.Licenses.*.tradeName - - - jsonPath: $.Licenses.*.validFrom - - - jsonPath: $.Licenses.*.validTo - - - jsonPath: $.Licenses.*.licenseType - - - jsonPath: $.Licenses.*.applicationNumber - - - jsonPath: $.Licenses.*.licenseNumber - - - jsonPath: $.Licenses.*.oldLicenseNumber - - - jsonPath: $.Licenses.*.propertyId - - - jsonPath: $.Licenses.*.oldPropertyId - - - jsonPath: $.Licenses.*.applicationDate - - - jsonPath: $.Licenses.*.commencementDate - - - jsonPath: $.Licenses.*.financialYear - - - jsonPath: $.Licenses.*.action - - - jsonPath: $.Licenses.*.status - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.businessService - - - jsonPath: $.Licenses.*.applicationType - - - jsonPath: $.Licenses.*.workflowCode - - - - query: INSERT INTO eg_tl_tradelicensedetail( id, surveyno, subownershipcategory, channel, additionaldetail, tradelicenseid,structureType,operationalArea,noOfEmployees,adhocExemption,adhocPenalty,adhocExemptionReason,adhocPenaltyReason, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.surveyNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.subOwnerShipCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.channel - - - jsonPath: $.Licenses.*.tradeLicenseDetail.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Licenses.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.structureType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.operationalArea - - - jsonPath: $.Licenses.*.tradeLicenseDetail.noOfEmployees - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemption - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenalty - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemptionReason - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenaltyReason - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_tradeunit( id, tenantid,active, tradetype, uom, uomvalue, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.tradeUnits.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tradeType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uomValue - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_accessory( id, tenantid,active, accessoryCategory, uom, uomvalue, count, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.accessories.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.accessoryCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uomValue - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.count - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_owner( id,tenantid,active,institutionid, tradelicensedetailid, isprimaryowner, ownertype, ownershippercentage, relationship, createdby,lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.owners.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.uuid - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.userActive - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.institutionId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.isPrimaryOwner - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerShipPercentage - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.relationship - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_document_owner(id,tenantId,userid,active, tradeLicenseDetailId, documenttype, fileStoreId,documentuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ? ,? ,?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.owners.*.documents.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners[*][?({id} in @.documents[*].id)].uuid - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.active - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.fileStoreId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentUid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_applicationdocument( id, tenantid, active, documenttype, tradecategorydetail, filestoreid, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.applicationDocuments.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_address( id, tenantid, doorno,street,buildingName, latitude,longitude, addressid, addressnumber,locality, type, addressline1, addressline2, landmark, city, pincode, detail, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: Licenses.*.tradeLicenseDetail.address - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.doorNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.street - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.buildingName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.latitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.longitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressNumber - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.locality.code - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressLine1 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressline2 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.landmark - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.city - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.pincode - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.detail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_institution(tenantId,active,id,instituionName,contactNo,organisationRegistrationNo,address, tradelicensedetailid, name, type,designation, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ; - basePath: Licenses.*.tradeLicenseDetail.institution - jsonMaps: - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.instituionName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.contactNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.organisationRegistrationNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.address - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.name - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.designation - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - - - - - - version: 1.0 - description: Update tradeLicense details in EG_TL_TradeLicense table - fromTopic: update-tl-tradelicense - isTransaction: true - queryMaps: - - - - query: INSERT INTO eg_tl_tradelicense_audit SELECT * FROM eg_tl_tradelicense WHERE id = ?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.id - - - - query: UPDATE eg_tl_tradelicense SET tradeName = ?,licenseNumber = ?,licensetype = ?, oldlicensenumber = ?, propertyid = ?, oldpropertyid = ?, commencementdate = ?, issueddate = ?, financialyear = ?, validfrom = ?, validto = ?, action = ?, status = ?, lastmodifiedby = ?, lastmodifiedtime = ?, businessservice = ?, applicationtype = ?, workflowcode = ? WHERE id=?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeName - - - jsonPath: $.Licenses.*.licenseNumber - - - jsonPath: $.Licenses.*.licenseType - - - jsonPath: $.Licenses.*.oldLicenseNumber - - - jsonPath: $.Licenses.*.propertyId - - - jsonPath: $.Licenses.*.oldPropertyId - - - jsonPath: $.Licenses.*.commencementDate - - - jsonPath: $.Licenses.*.issuedDate - - - jsonPath: $.Licenses.*.financialYear - - - jsonPath: $.Licenses.*.validFrom - - - jsonPath: $.Licenses.*.validTo - - - jsonPath: $.Licenses.*.action - - - jsonPath: $.Licenses.*.status - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.businessService - - - jsonPath: $.Licenses.*.applicationType - - - jsonPath: $.Licenses.*.workflowCode - - - jsonPath: $.Licenses.*.id - - - query: INSERT INTO eg_tl_tradelicensedetail_audit SELECT * FROM eg_tl_tradelicensedetail WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - - query: UPDATE eg_tl_tradelicensedetail SET surveyno = ?, subownershipcategory = ?, channel = ?, additionaldetail = ?,operationalArea = ?,noOfEmployees = ?,structureType = ?,adhocExemption = ?,adhocPenalty = ?,adhocExemptionReason = ?,adhocPenaltyReason = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.surveyNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.subOwnerShipCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.channel - - - jsonPath: $.Licenses.*.tradeLicenseDetail.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Licenses.*.tradeLicenseDetail.operationalArea - - - jsonPath: $.Licenses.*.tradeLicenseDetail.noOfEmployees - - - jsonPath: $.Licenses.*.tradeLicenseDetail.structureType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemption - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenalty - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemptionReason - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenaltyReason - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - query: INSERT INTO eg_tl_tradeunit(id, tenantid, active, tradetype, uom, uomvalue, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, tradetype = ?, uom = ?, uomvalue = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.tradeUnits.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tradeType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uomValue - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.tradeType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.tradeUnits.*.uomValue - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.tradeUnits[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_accessory(id, tenantid, active, accessoryCategory, uom, uomvalue, count, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?,accessoryCategory = ?, uom = ?, uomvalue = ?,count =?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.accessories.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.accessoryCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uomValue - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.count - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.accessoryCategory - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uom - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.uomValue - - - jsonPath: $.Licenses.*.tradeLicenseDetail.accessories.*.count - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.accessories[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_owner( id, tenantid, active, tradelicensedetailid, isprimaryowner, ownertype, ownershippercentage, relationship, createdby,lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT ON CONSTRAINT pk_eg_tl_owner DO UPDATE SET active = ?, isprimaryowner = ?, ownertype = ?, ownershippercentage = ?, relationship = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.owners.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.uuid - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.userActive - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.isPrimaryOwner - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerShipPercentage - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.relationship - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.userActive - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.isPrimaryOwner - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.ownerShipPercentage - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.relationship - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners[*].id)].auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_tl_document_owner(id,tenantId,active,userid, tradeLicenseDetailId, documenttype, fileStoreId,documentuid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT ON CONSTRAINT pk_eg_tl_document_owner DO UPDATE SET active = ?, documenttype = ?, fileStoreId = ?,documentuid = ?, lastmodifiedby = ?, lastmodifiedtime = ?; - basePath: Licenses.*.tradeLicenseDetail.owners.*.documents.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners[*][?({id} in @.documents[*].id)].uuid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.fileStoreId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentUid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.fileStoreId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.owners.*.documents.*.documentUid - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.owners.*.documents[*].id)].auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_tl_applicationdocument( id, tenantid, active, documenttype, tradecategorydetail, filestoreid, tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, documenttype =?, tradecategorydetail =?, filestoreid =?,lastmodifiedby =?, lastmodifiedtime =?; - basePath: Licenses.*.tradeLicenseDetail.applicationDocuments.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.applicationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.applicationDocuments[*].id)].auditDetails.lastModifiedTime - - - - - query: UPDATE eg_tl_address SET doorno =?,street = ?,buildingName = ?, latitude =?, longitude =?, addressid =?, addressnumber =?,locality =?, type =?, addressline1 =?, addressline2 =?, landmark =?, city =?, pincode =?, detail =?,lastmodifiedby =?, lastmodifiedtime =? WHERE id =?; - basePath: Licenses.*.tradeLicenseDetail.address - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.doorNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.street - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.buildingName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.latitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.longitude - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressNumber - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.locality.code - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressline1 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.addressline2 - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.landmark - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.city - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.pincode - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.detail - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.address.id - - - - query: INSERT INTO eg_tl_institution(tenantId, active, id, instituionName, contactNo, organisationRegistrationNo, address, tradelicensedetailid, name, type,designation, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?,name = ?,type = ?,designation = ?, lastmodifiedby = ?,lastmodifiedtime = ?, instituionName = ?, contactNo = ?, organisationRegistrationNo = ?, address = ?; - basePath: Licenses.*.tradeLicenseDetail.institution - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.instituionName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.contactNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.organisationRegistrationNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.address - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.name - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.designation - - - jsonPath: $.Licenses.*.auditDetails.createdBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.createdTime - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.name - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.type - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.designation - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.instituionName - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.contactNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.organisationRegistrationNo - - - jsonPath: $.Licenses.*.tradeLicenseDetail.institution.address - - - - - - version: 1.0 - description: Persists tradeLicense details in EG_TL_TradeLicense table - fromTopic: update-tl-workflow - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_tl_tradelicense_audit SELECT * FROM eg_tl_tradelicense WHERE id = ?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.id - - - - - query: INSERT INTO eg_tl_tradelicensedetail_audit SELECT * FROM eg_tl_tradelicensedetail WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - - query: INSERT INTO eg_tl_verificationdocument( id, tenantid, active, documenttype, tradecategorydetail, filestoreid,tradelicensedetailid, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?,documenttype =?, tradecategorydetail =?, filestoreid =?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: Licenses.*.tradeLicenseDetail.verificationDocuments.* - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.id - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.tenantId - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].tradeLicenseDetail.id - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.createdBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.createdTime - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.active - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.documentType - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.tradecategorydetail - - - jsonPath: $.Licenses.*.tradeLicenseDetail.verificationDocuments.*.fileStoreId - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedBy - - - jsonPath: $.Licenses[*][?({id} in @.tradeLicenseDetail.verificationDocuments[*].id)].auditDetails.lastModifiedTime - - - - query: UPDATE eg_tl_tradelicense SET validfrom = ?,validto = ?,licenseNumber =?, issueddate = ?, action = ?, status = ?, lastmodifiedby = ?, lastmodifiedtime = ? WHERE id=?; - basePath: Licenses.* - jsonMaps: - - jsonPath: $.Licenses.*.validFrom - - - jsonPath: $.Licenses.*.validTo - - - jsonPath: $.Licenses.*.licenseNumber - - - jsonPath: $.Licenses.*.issuedDate - - - jsonPath: $.Licenses.*.action - - - jsonPath: $.Licenses.*.status - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.id - - - - query: UPDATE eg_tl_tradelicensedetail SET additionaldetail = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - jsonPath: $.Licenses.*.tradeLicenseDetail.additionalDetail - type: JSON - dbType: JSONB - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id - - - - - version: 1.0 - description: Update adhocDetails - fromTopic: update-tl-adhoc-tradelicense - isTransaction: true - queryMaps: - - - - query: UPDATE eg_tl_tradelicensedetail SET adhocExemption = ?,adhocPenalty = ?,adhocExemptionReason = ?,adhocPenaltyReason = ?,lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; - basePath: Licenses.*.tradeLicenseDetail - jsonMaps: - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemption - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenalty - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocExemptionReason - - - jsonPath: $.Licenses.*.tradeLicenseDetail.adhocPenaltyReason - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedBy - - - jsonPath: $.Licenses.*.auditDetails.lastModifiedTime - - - jsonPath: $.Licenses.*.tradeLicenseDetail.id diff --git a/egov-persister/vehicle-persister.yaml b/egov-persister/vehicle-persister.yaml deleted file mode 100755 index 1755accf..00000000 --- a/egov-persister/vehicle-persister.yaml +++ /dev/null @@ -1,285 +0,0 @@ -serviceMaps: - serviceName: vehicle - mappings: - - version: 1.0 - description: Persists Vehicle Application details in eg_vehicle table - fromTopic: save-vehicle-application - isTransaction: true - queryMaps: - - query : INSERT INTO eg_vehicle( id, tenantId, registrationNumber, model, type, tankCapicity, suctionType, pollutionCertiValidTill, InsuranceCertValidTill, fitnessValidTill, roadTaxPaidTill, gpsEnabled, source, status, additionalDetails, owner_id , createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vehicle - jsonMaps: - - jsonPath: $.vehicle.id - - jsonPath: $.vehicle.tenantId - - jsonPath: $.vehicle.registrationNumber - - jsonPath: $.vehicle.model - - jsonPath: $.vehicle.type - - jsonPath: $.vehicle.tankCapacity - - jsonPath: $.vehicle.suctionType - - jsonPath: $.vehicle.pollutionCertiValidTill - - jsonPath: $.vehicle.InsuranceCertValidTill - - jsonPath: $.vehicle.fitnessValidTill - - jsonPath: $.vehicle.roadTaxPaidTill - - jsonPath: $.vehicle.gpsEnabled - - jsonPath: $.vehicle.source - - jsonPath: $.vehicle.status - - jsonPath: $.vehicle.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vehicle.owner.uuid - - jsonPath: $.vehicle.auditDetails.createdBy - - jsonPath: $.vehicle.auditDetails.lastModifiedBy - - jsonPath: $.vehicle.auditDetails.createdTime - - jsonPath: $.vehicle.auditDetails.lastModifiedTime - - - version: 1.0 - description: Persists Vehicle Application details in eg_vehicle table - fromTopic: update-vehicle-application - isTransaction: true - queryMaps: - - - query : INSERT INTO eg_vehicle_auditlog SELECT * FROM eg_vehicle WHERE id=? - basePath: vehicle - jsonMaps: - - jsonPath: $.vehicle.id - - - query : UPDATE eg_vehicle SET tenantId=?, registrationNumber=?, model=?, type=?, tankCapicity=?, suctionType=?, pollutionCertiValidTill=?, InsuranceCertValidTill=?, fitnessValidTill=?, roadTaxPaidTill=?, gpsEnabled=?, source=?, status=?, additionalDetails=?, owner_id =?, createdBy=?, lastModifiedBy=?, createdTime=?, lastModifiedTime=? WHERE id=? - basePath: vehicle - jsonMaps: - - jsonPath: $.vehicle.tenantId - - jsonPath: $.vehicle.registrationNumber - - jsonPath: $.vehicle.model - - jsonPath: $.vehicle.type - - jsonPath: $.vehicle.tankCapacity - - jsonPath: $.vehicle.suctionType - - jsonPath: $.vehicle.pollutionCertiValidTill - - jsonPath: $.vehicle.InsuranceCertValidTill - - jsonPath: $.vehicle.fitnessValidTill - - jsonPath: $.vehicle.roadTaxPaidTill - - jsonPath: $.vehicle.gpsEnabled - - jsonPath: $.vehicle.source - - jsonPath: $.vehicle.status - - jsonPath: $.vehicle.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vehicle.owner.uuid - - jsonPath: $.vehicle.auditDetails.createdBy - - jsonPath: $.vehicle.auditDetails.lastModifiedBy - - jsonPath: $.vehicle.auditDetails.createdTime - - jsonPath: $.vehicle.auditDetails.lastModifiedTime - - jsonPath: $.vehicle.id - - - version: 1.0 - description: Vehicle Trip details in eg_vehicle_log table - fromTopic: save-vehicle-trip - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_vehicle_trip(id, tenantid, owner_id, driver_id, vehicle_id, applicationno, additionaldetails, status, businessservice, applicationstatus, tripstarttime, tripendtime, volumecarried, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.vehicleTrip.* - jsonMaps: - - jsonPath: $.vehicleTrip.*.id - - - jsonPath: $.vehicleTrip.*.tenantId - - - jsonPath: $.vehicleTrip.*.tripOwnerId - - - jsonPath: $.vehicleTrip.*.driverId - - - jsonPath: $.vehicleTrip.*.vehicleId - - - jsonPath: $.vehicleTrip.*.applicationNo - - - jsonPath: $.vehicleTrip.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vehicleTrip.*.status - - - jsonPath: $.vehicleTrip.*.businessService - - - jsonPath: $.vehicleTrip.*.applicationStatus - - - jsonPath: $.vehicleTrip.*.tripStartTime - - - jsonPath: $.vehicleTrip.*.tripEndTime - - - jsonPath: $.vehicleTrip.*.volumeCarried - - - jsonPath: $.vehicleTrip.*.auditDetails.createdBy - - - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedBy - - - jsonPath: $.vehicleTrip.*.auditDetails.createdTime - - - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_vehicle_trip_detail( id, tenantid, trip_id, referenceno, referencestatus, additionaldetails, status, itemstarttime, itemendtime, volume, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.vehicleTrip.*.tripDetails.* - jsonMaps: - - - jsonPath: $.vehicleTrip.*.tripDetails.*.id - - - jsonPath: $.vehicleTrip.*.tripDetails.*.tenantId - - - jsonPath: $.vehicleTrip.*.tripDetails.*.trip_id - - - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceNo - - - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceStatus - - - jsonPath: $.vehicleTrip.*.tripDetails.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vehicleTrip.*.tripDetails.*.status - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemStartTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemEndTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.volume - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdBy - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime - - - - version: 1.0 - description: Vehicle Trip details in eg_vehicle_trip table - fromTopic: update-vehicle-trip - isTransaction: true - queryMaps: - - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: $.vehicleTrip.* - jsonMaps: - - - - jsonPath: $.vehicleTrip.*.driverId - - - jsonPath: $.vehicleTrip.*.applicationNo - - - jsonPath: $.vehicleTrip.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vehicleTrip.*.status - - - jsonPath: $.vehicleTrip.*.applicationStatus - - - jsonPath: $.vehicleTrip.*.tripStartTime - - - jsonPath: $.vehicleTrip.*.tripEndTime - - - jsonPath: $.vehicleTrip.*.volumeCarried - - - jsonPath: $.vehicleTrip.*.auditDetails.createdBy - - - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedBy - - - jsonPath: $.vehicleTrip.*.auditDetails.createdTime - - - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime - - - jsonPath: $.vehicleTrip.*.id - - - query: UPDATE eg_vehicle_trip_detail SET referencestatus=?, additionaldetails=?, status=?, itemstarttime=?, itemendtime=?, volume=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: $.vehicleTrip.*.tripDetails.* - jsonMaps: - - - - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceStatus - - - jsonPath: $.vehicleTrip.*.tripDetails.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vehicleTrip.*.tripDetails.*.status - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemStartTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemEndTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.volume - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdBy - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.id - - - version: 1.0 - description: Vehicle Trip details in eg_vehicle_trip table - fromTopic: update-workflow-vehicle-trip - isTransaction: true - queryMaps: - - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: $.vehicleTrip.* - jsonMaps: - - - - jsonPath: $.vehicleTrip.*.driverId - - - jsonPath: $.vehicleTrip.*.applicationNo - - - jsonPath: $.vehicleTrip.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vehicleTrip.*.status - - - jsonPath: $.vehicleTrip.*.applicationStatus - - - jsonPath: $.vehicleTrip.*.tripStartTime - - - jsonPath: $.vehicleTrip.*.tripEndTime - - - jsonPath: $.vehicleTrip.*.volumeCarried - - - jsonPath: $.vehicleTrip.*.auditDetails.createdBy - - - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedBy - - - jsonPath: $.vehicleTrip.*.auditDetails.createdTime - - - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime - - - jsonPath: $.vehicleTrip.*.id - - - query: UPDATE eg_vehicle_trip_detail SET referencestatus=?, additionaldetails=?, status=?, itemstarttime=?, itemendtime=?, volume=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: $.vehicleTrip.*.tripDetails.* - jsonMaps: - - - - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceStatus - - - jsonPath: $.vehicleTrip.*.tripDetails.*.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vehicleTrip.*.tripDetails.*.status - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemStartTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemEndTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.volume - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdBy - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.id diff --git a/egov-persister/vendor-persister.yaml b/egov-persister/vendor-persister.yaml deleted file mode 100644 index 1a4cdceb..00000000 --- a/egov-persister/vendor-persister.yaml +++ /dev/null @@ -1,374 +0,0 @@ -serviceMaps: - serviceName: vendor-registory - mappings: - - version: 1.0 - description: Vendor Registion Application details in eg_vendor table - fromTopic: save-vendor-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_vendor( id, name, tenantid, additionaldetails, owner_id, description, source, status,agencyType,paymentPreference,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ); - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.id - - - jsonPath: $.vendor.name - - - jsonPath: $.vendor.tenantId - - - jsonPath: $.vendor.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vendor.owner.uuid - - - jsonPath: $.vendor.description - - - jsonPath: $.vendor.source - - - jsonPath: $.vendor.status - - - jsonPath: $.vendor.agencyType - - - jsonPath: $.vendor.paymentPreference - - - jsonPath: $.vendor.auditDetails.createdBy - - - jsonPath: $.vendor.auditDetails.lastModifiedBy - - - jsonPath: $.vendor.auditDetails.createdTime - - - jsonPath: $.vendor.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_vendor_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street, vendor_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.id - - - jsonPath: $.vendor.address.tenantId - - - jsonPath: $.vendor.address.doorNo - - - jsonPath: $.vendor.address.plotNo - - - jsonPath: $.vendor.address.landmark - - - jsonPath: $.vendor.address.city - - - jsonPath: $.vendor.address.district - - - jsonPath: $.vendor.address.region - - - jsonPath: $.vendor.address.state - - - jsonPath: $.vendor.address.country - - - jsonPath: $.vendor.address.locality.code - - - jsonPath: $.vendor.address.pincode - - - jsonPath: $.vendor.address.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vendor.address.buildingName - - - jsonPath: $.vendor.address.street - - - jsonPath: $.vendor.id - - - jsonPath: $.vendor.address.auditDetails.createdBy - - - jsonPath: $.vendor.address.auditDetails.lastModifiedBy - - - jsonPath: $.vendor.address.auditDetails.createdTime - - - jsonPath: $.vendor.address.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_driver( id, name, tenantid, additionaldetails, owner_id, description, status,licenseNumber, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.id - - jsonPath: $.vendor.drivers.*.name - - jsonPath: $.vendor.drivers.*.tenantId - - jsonPath: $.vendor.drivers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.drivers.*.owner.uuid - - jsonPath: $.vendor.drivers.*.description - - jsonPath: $.vendor.drivers.*.status - - jsonPath: $.vendor.drivers.*.licenseNumber - - jsonPath: $.vendor.drivers.*.auditDetails.createdBy - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_vendor_driver( vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.drivers.*.id - - jsonPath: $.vendor.drivers.*.vendorDriverStatus - - - query: INSERT INTO eg_vendor_vehicle( vendor_id,vechile_id, vendorVehicleStatus) VALUES ( ?, ?, ?); - basePath: vendor.vehicles.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.vehicles.*.id - - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus - - - version: 1.0 - description: Update Vendor details - fromTopic: update-vendor-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_vendor_auditlog SELECT * FROM eg_vendor WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.id - - - query: UPDATE eg_vendor SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, source=?, status=?, agencyType=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.name - - jsonPath: $.vendor.tenantId - - jsonPath: $.vendor.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.owner.uuid - - jsonPath: $.vendor.description - - jsonPath: $.vendor.source - - jsonPath: $.vendor.status - - jsonPath: $.vendor.agencyType - - jsonPath: $.vendor.paymentPreference - - jsonPath: $.vendor.auditDetails.createdBy - - jsonPath: $.vendor.auditDetails.lastModifiedBy - - jsonPath: $.vendor.auditDetails.createdTime - - jsonPath: $.vendor.auditDetails.lastModifiedTime - - jsonPath: $.vendor.id - - - query: INSERT INTO eg_vendor_address_auditlog SELECT * FROM eg_vendor_address WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.id - - - query: UPDATE eg_vendor_address SET tenantid=?, doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, vendor_id=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.tenantId - - jsonPath: $.vendor.address.doorNo - - jsonPath: $.vendor.address.plotNo - - jsonPath: $.vendor.address.landmark - - jsonPath: $.vendor.address.city - - jsonPath: $.vendor.address.district - - jsonPath: $.vendor.address.region - - jsonPath: $.vendor.address.state - - jsonPath: $.vendor.address.country - - jsonPath: $.vendor.address.locality.code - - jsonPath: $.vendor.address.pincode - - jsonPath: $.vendor.address.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.address.buildingName - - jsonPath: $.vendor.address.street - - jsonPath: $.vendor.id - - jsonPath: $.vendor.address.auditDetails.createdBy - - jsonPath: $.vendor.address.auditDetails.lastModifiedBy - - jsonPath: $.vendor.address.auditDetails.createdTime - - jsonPath: $.vendor.address.auditDetails.lastModifiedTime - - jsonPath: $.vendor.address.id - - - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.name - - jsonPath: $.vendor.drivers.*.tenantId - - jsonPath: $.vendor.drivers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.drivers.*.owner.uuid - - jsonPath: $.vendor.drivers.*.description - - jsonPath: $.vendor.drivers.*.status - - jsonPath: $.vendor.drivers.*.licenseNumber - - jsonPath: $.vendor.drivers.*.auditDetails.createdBy - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE EG_VENDOR_DRIVER SET vendor_id= ?, vendorDriverStatus= ? WHERE DRIVER_ID= ? ; - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.drivers.*.vendorDriverStatus - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_vendor_vehicle SET vendor_id= ?,vendorVehicleStatus= ? WHERE VECHILE_ID= ? ; - basePath: vendor.vehicles.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus - - jsonPath: $.vendor.vehicles.*.id - - - version: 1.0 - description: Update Vendor details - fromTopic: save-vendordrivervehicle-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_vendor_auditlog SELECT * FROM eg_vendor WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.id - - - query: UPDATE eg_vendor SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, source=?, status=?, agencyType=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.name - - jsonPath: $.vendor.tenantId - - jsonPath: $.vendor.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.owner.uuid - - jsonPath: $.vendor.description - - jsonPath: $.vendor.source - - jsonPath: $.vendor.status - - jsonPath: $.vendor.agencyType - - jsonPath: $.vendor.paymentPreference - - jsonPath: $.vendor.auditDetails.createdBy - - jsonPath: $.vendor.auditDetails.lastModifiedBy - - jsonPath: $.vendor.auditDetails.createdTime - - jsonPath: $.vendor.auditDetails.lastModifiedTime - - jsonPath: $.vendor.id - - - query: INSERT INTO eg_vendor_address_auditlog SELECT * FROM eg_vendor_address WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.id - - - query: UPDATE eg_vendor_address SET tenantid=?, doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, vendor_id=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.tenantId - - jsonPath: $.vendor.address.doorNo - - jsonPath: $.vendor.address.plotNo - - jsonPath: $.vendor.address.landmark - - jsonPath: $.vendor.address.city - - jsonPath: $.vendor.address.district - - jsonPath: $.vendor.address.region - - jsonPath: $.vendor.address.state - - jsonPath: $.vendor.address.country - - jsonPath: $.vendor.address.locality.code - - jsonPath: $.vendor.address.pincode - - jsonPath: $.vendor.address.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.address.buildingName - - jsonPath: $.vendor.address.street - - jsonPath: $.vendor.id - - jsonPath: $.vendor.address.auditDetails.createdBy - - jsonPath: $.vendor.address.auditDetails.lastModifiedBy - - jsonPath: $.vendor.address.auditDetails.createdTime - - jsonPath: $.vendor.address.auditDetails.lastModifiedTime - - jsonPath: $.vendor.address.id - - - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.name - - jsonPath: $.vendor.drivers.*.tenantId - - jsonPath: $.vendor.drivers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.drivers.*.owner.uuid - - jsonPath: $.vendor.drivers.*.description - - jsonPath: $.vendor.drivers.*.status - - jsonPath: $.vendor.drivers.*.licenseNumber - - jsonPath: $.vendor.drivers.*.auditDetails.createdBy - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - - jsonPath: $.vendor.drivers.*.id - - - query: INSERT INTO eg_vendor_driver(vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.drivers.*.id - - jsonPath: $.vendor.drivers.*.vendorDriverStatus - - - query: INSERT INTO eg_vendor_vehicle(vendor_id,vechile_id, vendorVehicleStatus) VALUES ( ?, ?, ?); - basePath: vendor.vehicles.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.vehicles.*.id - - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus - - - version: 1.0 - description: Driver Registration Application details in eg_driver table - fromTopic: save-driver-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_driver( id, name, tenantid, additionaldetails, owner_id, description, status,licenseNumber, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: driver - jsonMaps: - - jsonPath: $.driver.id - - jsonPath: $.driver.name - - jsonPath: $.driver.tenantId - - jsonPath: $.driver.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.driver.owner.uuid - - jsonPath: $.driver.description - - jsonPath: $.driver.status - - jsonPath: $.driver.licenseNumber - - jsonPath: $.driver.auditDetails.createdBy - - jsonPath: $.driver.auditDetails.lastModifiedBy - - jsonPath: $.driver.auditDetails.createdTime - - jsonPath: $.driver.auditDetails.lastModifiedTime - - - - - version: 1.0 - description: Update Driver details - fromTopic: update-driver-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? - basePath: driver - jsonMaps: - - jsonPath: $.driver.id - - - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: driver - jsonMaps: - - jsonPath: $.driver.name - - jsonPath: $.driver.tenantId - - jsonPath: $.driver.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.driver.owner.uuid - - jsonPath: $.driver.description - - jsonPath: $.driver.status - - jsonPath: $.driver.licenseNumber - - jsonPath: $.driver.auditDetails.createdBy - - jsonPath: $.driver.auditDetails.lastModifiedBy - - jsonPath: $.driver.auditDetails.createdTime - - jsonPath: $.driver.auditDetails.lastModifiedTime - - jsonPath: $.driver.id diff --git a/egov-persister/water-meter.yml b/egov-persister/water-meter.yml deleted file mode 100644 index ca8c6740..00000000 --- a/egov-persister/water-meter.yml +++ /dev/null @@ -1,40 +0,0 @@ -serviceMaps: - serviceName: Meter Connection Service - mappings: - - version: 1.0 - name: MeterConnection - description: create meter reading for particular connection number - fromTopic: save-ws-meter - isTransaction: true - queryMaps: - - query: INSERT INTO eg_ws_meterreading (id, tenantid, connectionNo, billingPeriod, meterStatus, lastReading, lastReadingDate, currentReading, currentReadingDate, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?,?,?,?,?,?, ?); - basePath: $.meterReadings - jsonMaps: - - jsonPath: $.meterReadings.id - - - jsonPath: $.meterReadings.tenantId - - - jsonPath: $.meterReadings.connectionNo - - - jsonPath: $.meterReadings.billingPeriod - - - jsonPath: $.meterReadings.meterStatus - - - jsonPath: $.meterReadings.lastReading - - - jsonPath: $.meterReadings.lastReadingDate - - - jsonPath: $.meterReadings.currentReading - - - jsonPath: $.meterReadings.currentReadingDate - - - jsonPath: $.meterReadings.auditDetails.createdBy - - - jsonPath: $.meterReadings.auditDetails.lastModifiedBy - - - jsonPath: $.meterReadings.auditDetails.createdTime - - - jsonPath: $.meterReadings.auditDetails.lastModifiedTime - - - diff --git a/egov-persister/water-persist.yml b/egov-persister/water-persist.yml deleted file mode 100644 index 22d8f1c9..00000000 --- a/egov-persister/water-persist.yml +++ /dev/null @@ -1,486 +0,0 @@ -serviceMaps: - serviceName: Water Connection Service - mappings: - - version: 1.0 - name: WaterConnection - description: create ConnectionDetails in connection and water_service_connection - fromTopic: save-ws-connection - isTransaction: true - queryMaps: - - query: INSERT INTO eg_ws_connection (id, tenantid, property_id, applicationno, applicationstatus, status, connectionno, oldconnectionno,roadcuttingarea,action,roadtype, createdby, lastmodifiedby, createdtime, lastmodifiedtime, applicationtype, channel, dateEffectiveFrom, locality, isoldapplication,additionaldetails, isDisconnectionTemporary, disconnectionReason) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.WaterConnection - jsonMaps: - - jsonPath: $.WaterConnection.id - - - jsonPath: $.WaterConnection.tenantId - - - jsonPath: $.WaterConnection.propertyId - - - jsonPath: $.WaterConnection.applicationNo - - - jsonPath: $.WaterConnection.applicationStatus - - - jsonPath: $.WaterConnection.status - - - jsonPath: $.WaterConnection.connectionNo - - - jsonPath: $.WaterConnection.oldConnectionNo - - - jsonPath: $.WaterConnection.roadCuttingArea - - - jsonPath: $.WaterConnection.processInstance.action - - - jsonPath: $.WaterConnection.roadType - - - jsonPath: $.WaterConnection.auditDetails.createdBy - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.auditDetails.createdTime - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedTime - - - jsonPath: $.WaterConnection.applicationType - - - jsonPath: $.WaterConnection.channel - - - jsonPath: $.WaterConnection.dateEffectiveFrom - - - jsonPath: $.WaterConnection.additionalDetails.locality - - - jsonPath: $.WaterConnection.oldApplication - - - jsonPath: $.WaterConnection.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.WaterConnection.isDisconnectionTemporary - - - jsonPath: $.WaterConnection.disconnectionReason - - - - query: INSERT INTO eg_ws_service(connection_id,connectionCategory,connectionType,waterSource,meterId,meterInstallationDate,pipeSize,noOfTaps,connectionexecutiondate,proposedPipeSize,proposedTaps, appCreatedDate, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.WaterConnection - jsonMaps: - - - jsonPath: $.WaterConnection.id - - jsonPath: $.WaterConnection.connectionCategory - - - jsonPath: $.WaterConnection.connectionType - - - jsonPath: $.WaterConnection.waterSource - - - jsonPath: $.WaterConnection.meterId - - - jsonPath: $.WaterConnection.meterInstallationDate - - - jsonPath: $.WaterConnection.pipeSize - - - jsonPath: $.WaterConnection.noOfTaps - - - jsonPath: $.WaterConnection.connectionExecutionDate - - - jsonPath: $.WaterConnection.proposedPipeSize - - - jsonPath: $.WaterConnection.proposedTaps - - - jsonPath: $.WaterConnection.additionalDetails.appCreatedDate - - - jsonPath: $.WaterConnection.auditDetails.createdBy - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.auditDetails.createdTime - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_ws_connectionholder(tenantid, connectionid, userid, status, isprimaryholder, connectionholdertype, holdershippercentage, relationship, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.WaterConnection.connectionHolders.* - jsonMaps: - - - jsonPath: $.WaterConnection.tenantId - - - jsonPath: $.WaterConnection.id - - - jsonPath: $.WaterConnection.connectionHolders.*.uuid - - - jsonPath: $.WaterConnection.connectionHolders.*.status - - - jsonPath: $.WaterConnection.connectionHolders.*.isPrimaryOwner - - - jsonPath: $.WaterConnection.connectionHolders.*.ownerType - - - jsonPath: $.WaterConnection.connectionHolders.*.ownerShipPercentage - - - jsonPath: $.WaterConnection.connectionHolders.*.relationship - - - jsonPath: $.WaterConnection.auditDetails.createdBy - - - jsonPath: $.WaterConnection.auditDetails.createdTime - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_ws_roadcuttinginfo(id, tenantId, wsid, active, roadtype, roadcuttingarea, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, roadtype =?, roadcuttingarea =?,lastmodifiedby =?, lastmodifiedtime =?; - basePath: $.WaterConnection.roadCuttingInfo.* - jsonMaps: - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.id - - - jsonPath: $.WaterConnection.tenantId - - - jsonPath: $.WaterConnection.id - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.status - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.roadType - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.roadCuttingArea - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.createdBy - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.createdTime - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.lastModifiedTime - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.status - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.roadType - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.roadCuttingArea - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.lastModifiedTime - - - - version: 1.0 - name: WaterConnection - description: update ConnectionDetails in eg_ws_connection and eg_ws_service - fromTopic: update-ws-connection - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_ws_connection_audit SELECT * FROM eg_ws_connection WHERE id = ?; - basePath: $.WaterConnection - jsonMaps: - - jsonPath: $.WaterConnection.id - - - query: UPDATE eg_ws_connection SET applicationstatus=?, status=?, connectionno=?, oldconnectionno=?, action=?, roadCuttingArea=?, roadType=?, adhocpenalty=?, adhocrebate=?, adhocpenaltyreason=?, adhocpenaltycomment=?, adhocrebatereason=?, adhocrebatecomment=?, lastModifiedBy=?, lastModifiedTime=?, dateEffectiveFrom=?, locality=?, isoldapplication=?, property_id=?, additionaldetails=?, isDisconnectionTemporary=?, disconnectionReason=? WHERE id=?; - basePath: $.WaterConnection - jsonMaps: - - - jsonPath: $.WaterConnection.applicationStatus - - - jsonPath: $.WaterConnection.status - - - jsonPath: $.WaterConnection.connectionNo - - - jsonPath: $.WaterConnection.oldConnectionNo - - - jsonPath: $.WaterConnection.processInstance.action - - - jsonPath: $.WaterConnection.roadCuttingArea - - - jsonPath: $.WaterConnection.roadType - - - jsonPath: $.WaterConnection.additionalDetails.adhocPenalty - - - jsonPath: $.WaterConnection.additionalDetails.adhocRebate - - - jsonPath: $.WaterConnection.additionalDetails.adhocPenaltyReason - - - jsonPath: $.WaterConnection.additionalDetails.adhocPenaltyComment - - - jsonPath: $.WaterConnection.additionalDetails.adhocRebateReason - - - jsonPath: $.WaterConnection.additionalDetails.adhocRebateComment - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedTime - - - jsonPath: $.WaterConnection.dateEffectiveFrom - - - jsonPath: $.WaterConnection.additionalDetails.locality - - - jsonPath: $.WaterConnection.oldApplication - - - jsonPath: $.WaterConnection.propertyId - - - jsonPath: $.WaterConnection.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.WaterConnection.isDisconnectionTemporary - - - jsonPath: $.WaterConnection.disconnectionReason - - - jsonPath: $.WaterConnection.id - - - query: INSERT INTO eg_ws_service_audit SELECT * FROM eg_ws_service WHERE connection_id = ?; - basePath: $.WaterConnection - jsonMaps: - - jsonPath: $.WaterConnection.id - - - query: UPDATE eg_ws_service SET connectionCategory=?,connectionType=?,waterSource=?,meterId=?,meterInstallationDate=?,pipeSize=?,noOfTaps=?,proposedPipeSize=?,proposedTaps=?, initialmeterreading = ?, connectionexecutiondate = ?, detailsprovidedby = ?, estimationfileStoreId = ?, sanctionfileStoreId = ?, estimationLetterDate = ?, lastModifiedBy=?, lastModifiedTime=? WHERE connection_id=?; - basePath: $.WaterConnection - jsonMaps: - - - jsonPath: $.WaterConnection.connectionCategory - - - jsonPath: $.WaterConnection.connectionType - - - jsonPath: $.WaterConnection.waterSource - - - jsonPath: $.WaterConnection.meterId - - - jsonPath: $.WaterConnection.meterInstallationDate - - - jsonPath: $.WaterConnection.pipeSize - - - jsonPath: $.WaterConnection.noOfTaps - - - jsonPath: $.WaterConnection.proposedPipeSize - - - jsonPath: $.WaterConnection.proposedTaps - - - jsonPath: $.WaterConnection.additionalDetails.initialMeterReading - - - jsonPath: $.WaterConnection.connectionExecutionDate - - - jsonPath: $.WaterConnection.additionalDetails.detailsProvidedBy - - - jsonPath: $.WaterConnection.additionalDetails.estimationFileStoreId - - - jsonPath: $.WaterConnection.additionalDetails.sanctionFileStoreId - - - jsonPath: $.WaterConnection.additionalDetails.estimationLetterDate - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedTime - - - jsonPath: $.WaterConnection.id - - - query: INSERT INTO eg_ws_applicationDocument(id, tenantId, documenttype, filestoreid, wsid, active, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, documenttype =?, filestoreid =?,lastmodifiedby =?, lastmodifiedtime =?; - basePath: $.WaterConnection.documents.* - jsonMaps: - - - jsonPath: $.WaterConnection.documents.*.id - - - jsonPath: $.WaterConnection.tenantId - - - jsonPath: $.WaterConnection.documents.*.documentType - - - jsonPath: $.WaterConnection.documents.*.fileStoreId - - - jsonPath: $.WaterConnection.id - - - jsonPath: $.WaterConnection.documents.*.status - - - jsonPath: $.WaterConnection.documents.*.auditDetails.createdBy - - - jsonPath: $.WaterConnection.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.documents.*.auditDetails.createdTime - - - jsonPath: $.WaterConnection.documents.*.auditDetails.lastModifiedTime - - - jsonPath: $.WaterConnection.documents.*.status - - - jsonPath: $.WaterConnection.documents.*.documentType - - - jsonPath: $.WaterConnection.documents.*.fileStoreId - - - jsonPath: $.WaterConnection.documents.*.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.documents.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_ws_plumberinfo(id, tenantId, name, licenseno, mobilenumber, gender, fatherorhusbandname, correspondenceaddress, relationship, createdBy, lastModifiedBy, createdTime, lastModifiedTime, wsid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET name =?, licenseno =?,mobilenumber =?, gender =?, fatherorhusbandname =?, correspondenceaddress =?, relationship=?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: $.WaterConnection.plumberInfo.* - jsonMaps: - - - jsonPath: $.WaterConnection.plumberInfo.*.id - - - jsonPath: $.WaterConnection.tenantId - - - jsonPath: $.WaterConnection.plumberInfo.*.name - - - jsonPath: $.WaterConnection.plumberInfo.*.licenseNo - - - jsonPath: $.WaterConnection.plumberInfo.*.mobileNumber - - - jsonPath: $.WaterConnection.plumberInfo.*.gender - - - jsonPath: $.WaterConnection.plumberInfo.*.fatherOrHusbandName - - - jsonPath: $.WaterConnection.plumberInfo.*.correspondenceAddress - - - jsonPath: $.WaterConnection.plumberInfo.*.relationship - - - jsonPath: $.WaterConnection.plumberInfo.*.auditDetails.createdBy - - - jsonPath: $.WaterConnection.plumberInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.plumberInfo.*.auditDetails.createdTime - - - jsonPath: $.WaterConnection.plumberInfo.*.auditDetails.lastModifiedTime - - - jsonPath: $.WaterConnection.id - - - jsonPath: $.WaterConnection.plumberInfo.*.name - - - jsonPath: $.WaterConnection.plumberInfo.*.licenseNo - - - jsonPath: $.WaterConnection.plumberInfo.*.mobileNumber - - - jsonPath: $.WaterConnection.plumberInfo.*.gender - - - jsonPath: $.WaterConnection.plumberInfo.*.fatherOrHusbandName - - - jsonPath: $.WaterConnection.plumberInfo.*.correspondenceAddress - - - jsonPath: $.WaterConnection.plumberInfo.*.relationship - - - jsonPath: $.WaterConnection.plumberInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.plumberInfo.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_ws_connectionholder(tenantid, connectionid, userid, status, isprimaryholder, connectionholdertype, holdershippercentage, relationship, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (connectionid) DO UPDATE SET tenantid =?, userid =?,status =?, isprimaryholder =?, connectionholdertype =?, holdershippercentage =?, relationship=?, lastmodifiedby =?, lastmodifiedtime =?; - basePath: $.WaterConnection.connectionHolders.* - jsonMaps: - - - jsonPath: $.WaterConnection.tenantId - - - jsonPath: $.WaterConnection.id - - - jsonPath: $.WaterConnection.connectionHolders.*.uuid - - - jsonPath: $.WaterConnection.connectionHolders.*.status - - - jsonPath: $.WaterConnection.connectionHolders.*.isPrimaryOwner - - - jsonPath: $.WaterConnection.connectionHolders.*.ownerType - - - jsonPath: $.WaterConnection.connectionHolders.*.ownerShipPercentage - - - jsonPath: $.WaterConnection.connectionHolders.*.relationship - - - jsonPath: $.WaterConnection.auditDetails.createdBy - - - jsonPath: $.WaterConnection.auditDetails.createdTime - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedTime - - - jsonPath: $.WaterConnection.tenantId - - - jsonPath: $.WaterConnection.connectionHolders.*.uuid - - - jsonPath: $.WaterConnection.connectionHolders.*.status - - - jsonPath: $.WaterConnection.connectionHolders.*.isPrimaryOwner - - - jsonPath: $.WaterConnection.connectionHolders.*.ownerType - - - jsonPath: $.WaterConnection.connectionHolders.*.ownerShipPercentage - - - jsonPath: $.WaterConnection.connectionHolders.*.relationship - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_ws_roadcuttinginfo(id, tenantId, wsid, active, roadtype, roadcuttingarea, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET active = ?, roadtype =?, roadcuttingarea =?,lastmodifiedby =?, lastmodifiedtime =?; - basePath: $.WaterConnection.roadCuttingInfo.* - jsonMaps: - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.id - - - jsonPath: $.WaterConnection.tenantId - - - jsonPath: $.WaterConnection.id - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.status - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.roadType - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.roadCuttingArea - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.createdBy - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.createdTime - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.lastModifiedTime - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.status - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.roadType - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.roadCuttingArea - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.roadCuttingInfo.*.auditDetails.lastModifiedTime - - - version: 1.0 - name: WaterConnection - description: update ConnectionDetails in eg_ws_connection and eg_ws_service - fromTopic: update-ws-workflow - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_ws_connection_audit SELECT * FROM eg_ws_connection WHERE id = ?; - basePath: $.WaterConnection - jsonMaps: - - jsonPath: $.WaterConnection.id - - - query: UPDATE eg_ws_connection SET applicationstatus=?, status=?, connectionno=?, action=?, lastModifiedBy=?, lastModifiedTime=? WHERE id=?; - basePath: $.WaterConnection - jsonMaps: - - - jsonPath: $.WaterConnection.applicationStatus - - - jsonPath: $.WaterConnection.status - - - jsonPath: $.WaterConnection.connectionNo - - - jsonPath: $.WaterConnection.processInstance.action - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedBy - - - jsonPath: $.WaterConnection.auditDetails.lastModifiedTime - - - jsonPath: $.WaterConnection.id - - - version: 1.0 - name: WaterConnection - description: save filestore ids - fromTopic: save-ws-filestoreids - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_ws_service_audit SELECT * FROM eg_ws_service WHERE connection_id = ?; - basePath: $.WaterConnection - jsonMaps: - - jsonPath: $.WaterConnection.id - - - query: UPDATE eg_ws_service SET estimationfileStoreId = ?, sanctionfileStoreId = ? WHERE connection_id=?; - basePath: $.WaterConnection - jsonMaps: - - - jsonPath: $.WaterConnection.additionalDetails.estimationFileStoreId - - - jsonPath: $.WaterConnection.additionalDetails.sanctionFileStoreId - - - jsonPath: $.WaterConnection.id - diff --git a/egov-searcher/PTDemandBasedSearcher.yml b/egov-searcher/PTDemandBasedSearcher.yml deleted file mode 100644 index 0930f192..00000000 --- a/egov-searcher/PTDemandBasedSearcher.yml +++ /dev/null @@ -1,45 +0,0 @@ -SearchDefinitions: - moduleName: rainmaker-pt-demandbased - summary: Searcher configuration for demand based search - version: 1.0.0 - definitions: - - - name: searchAssessmentsToUpdate - query: - baseQuery: | - select row_to_json(data) from ( - WITH summary AS ( - SELECT ptdl.property, - ptdl.assessmentnumber, - ptdl.financialYear, - pt.tenantId, - address.locality, - ROW_NUMBER() OVER(PARTITION BY ptdl.property - ORDER BY ptdl.financialyear DESC,ptdl.createdtime DESC ) AS rk - FROM eg_pt_property_v2 pt INNER JOIN eg_pt_propertydetail_v2 ptdl ON pt.propertyid = ptdl.property INNER JOIN eg_pt_address_v2 address on address.property=pt.propertyid) - SELECT s.* - FROM summary s - WHERE s.rk = 1) data $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: data.locality - isMandatory: true - jsonPath: $.searchCriteria.locality - operator: = - - name: data.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - operator: = - - name: data.financialYear - isMandatory: true - jsonPath: $.searchCriteria.financialYear - operator: NE - - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.DemandBasedAssessments - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/bill-genie.yml b/egov-searcher/bill-genie.yml deleted file mode 100644 index 2aa74d39..00000000 --- a/egov-searcher/bill-genie.yml +++ /dev/null @@ -1,349 +0,0 @@ -SearchDefinitions: - moduleName: bill-genie - summary: Search configs for bill-genie - version: 1.0.0 - definitions: - - name: billswithaddranduser - isCustomerRowMapEnabled: true - rowMapperKey: billsearch - query: - baseQuery: with bill_data as ( - - SELECT b.id AS b_id, b.mobilenumber, - b.tenantid AS b_tenantid, b.payername AS b_payername, - b.payeraddress AS b_payeraddress, b.payeremail AS b_payeremail, - b.isactive AS b_isactive, b.iscancelled AS b_iscancelled, - b.createdby AS b_createdby, b.status as b_status,b.filestoreid AS b_filestoreid, - b.createddate AS b_createddate, b.lastmodifiedby AS b_lastmodifiedby, - b.lastmodifieddate AS b_lastmodifieddate, bd.id AS bd_id, - bd.billid AS bd_billid, bd.tenantid AS bd_tenantid, - bd.businessservice AS bd_businessservice, bd.demandid, - bd.fromperiod, bd.toperiod, - bd.billno AS bd_billno, bd.billdate AS bd_billdate, - bd.consumercode AS bd_consumercode, bd.consumertype AS bd_consumertype, - bd.billdescription AS bd_billdescription, bd.displaymessage AS bd_displaymessage, - bd.minimumamount AS bd_minimumamount, bd.totalamount AS bd_totalamount, - bd.callbackforapportioning AS bd_callbackforapportioning, bd.expirydate AS bd_expirydate, - bd.partpaymentallowed AS bd_partpaymentallowed, bd.isadvanceallowed as bd_isadvanceallowed, - bd.collectionmodesnotallowed AS bd_collectionmodesnotallowed, bd.createddate as bd_createddate, - b.additionaldetails as b_additionaldetails, bd.additionaldetails as bd_additionaldetails, - ad.id AS ad_id, ad.tenantid AS ad_tenantid, - ad.billdetail AS ad_billdetail, ad.glcode AS ad_glcode, - ad.orderno AS ad_orderno, ad.accountdescription AS ad_accountdescription, - ad.amount AS ad_amount, ad.adjustedamount AS ad_adjustedamount, - ad.taxheadcode AS ad_taxheadcode, ad.demanddetailid, - ad.isactualdemand AS ad_isactualdemand, ad.purpose AS ad_purpose, - ad.additionaldetails as ad_additionaldetails, - ptadd.doorNo as ptadd_doorNo,ptadd.landmark as ptadd_landmark, - ptadd.city as ptadd_city, ptadd.pincode as ptadd_pincode, - ptadd.locality as ptadd_locality, ptown.userid as ptown_userid - - FROM egbs_bill_v1 b INNER JOIN egbs_billdetail_v1 bd ON b.id = bd.billid AND b.tenantid = bd.tenantid - INNER JOIN egbs_billaccountdetail_v1 ad ON bd.id = ad.billdetail AND bd.tenantid = ad.tenantid - LEFT OUTER JOIN eg_pt_property pt ON bd.consumercode = pt.propertyid - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = pt.id - INNER JOIN eg_pt_asmt_assessment ptdet ON ptdet.propertyid = pt.propertyid - INNER JOIN eg_pt_owner ptown ON pt.id = ptown.propertyid $where ) - - select * from bill_data inner join (select max(b_createddate) as maxcreateddate, bd_consumercode from bill_data group by bd_consumercode) as max ON max.maxcreateddate=b_createddate - searchParams: - condition: AND - params: - - name: b.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: bd.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerCode - operator: TOUPPERCASE - - name: bd.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businesService - - name: b.mobilenumber - isMandatory: false - jsonPath: $.searchCriteria.mobileNumber - - name: bd.billno - isMandatory: false - operator: ILIKE - jsonPath: $.searchCriteria.billNo - - name: ptadd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: ptdet.financialyear - isMandatory: false - jsonPath: $.searchCriteria.financialYear - - name: fromperiod - isMandatory: false - jsonPath: $.searchCriteria.fromPeriod - operator: LE - - name: toperiod - isMandatory: false - jsonPath: $.searchCriteria.toPeriod - operator: GE - - name: b.status - isMandatory: false - jsonPath: $.searchCriteria.billActive - - output: - jsonFormat: {"ResponseInfo": {},"Bills": []} - outJsonPath: $.Bills - responseInfoPath: $.ResponseInfo - - - - name: waterbills - isCustomerRowMapEnabled: true - rowMapperKey: billsearch - query: - baseQuery: with bill_data as ( - SELECT b.id AS b_id, b.mobilenumber, - b.tenantid AS b_tenantid, b.payername AS b_payername, - b.payeraddress AS b_payeraddress, b.payeremail AS b_payeremail, - b.isactive AS b_isactive, b.iscancelled AS b_iscancelled, - b.createdby AS b_createdby, b.status as b_status, b.filestoreid AS b_filestoreid, - b.createddate AS b_createddate, b.lastmodifiedby AS b_lastmodifiedby, - b.lastmodifieddate AS b_lastmodifieddate, bd.id AS bd_id, - bd.billid AS bd_billid, bd.tenantid AS bd_tenantid, - bd.businessservice AS bd_businessservice, bd.demandid, - bd.fromperiod, bd.toperiod, - bd.billno AS bd_billno, bd.billdate AS bd_billdate, - bd.consumercode AS bd_consumercode, bd.consumertype AS bd_consumertype, - bd.billdescription AS bd_billdescription, bd.displaymessage AS bd_displaymessage, - bd.minimumamount AS bd_minimumamount, bd.totalamount AS bd_totalamount, - bd.callbackforapportioning AS bd_callbackforapportioning, bd.expirydate AS bd_expirydate, - bd.partpaymentallowed AS bd_partpaymentallowed, bd.isadvanceallowed as bd_isadvanceallowed, - bd.collectionmodesnotallowed AS bd_collectionmodesnotallowed, bd.createddate as bd_createddate, - b.additionaldetails as b_additionaldetails, bd.additionaldetails as bd_additionaldetails, - ad.id AS ad_id, ad.tenantid AS ad_tenantid, - ad.billdetail AS ad_billdetail, ad.glcode AS ad_glcode, - ad.orderno AS ad_orderno, ad.accountdescription AS ad_accountdescription, - ad.amount AS ad_amount, ad.adjustedamount AS ad_adjustedamount, - ad.taxheadcode AS ad_taxheadcode, ad.demanddetailid, - ad.isactualdemand AS ad_isactualdemand, ad.purpose AS ad_purpose, - ad.additionaldetails as ad_additionaldetails, - ptadd.doorNo as ptadd_doorNo, ptadd.landmark as ptadd_landmark, - ptadd.city as ptadd_city, ptadd.pincode as ptadd_pincode, - ptadd.locality as ptadd_locality, ptown.userid as ptown_userid - - FROM egbs_bill_v1 b INNER JOIN egbs_billdetail_v1 bd ON b.id = bd.billid AND b.tenantid = bd.tenantid - INNER JOIN egbs_billaccountdetail_v1 ad ON bd.id = ad.billdetail AND bd.tenantid = ad.tenantid - INNER JOIN eg_ws_connection conn ON bd.consumercode = conn.connectionno - INNER JOIN eg_pt_property pt ON conn.property_id = pt.propertyid - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = pt.id - INNER JOIN eg_pt_owner ptown ON ptown.propertyid = pt.id $where ) - - select * from bill_data inner join (select max(b_createddate) as maxcreateddate, bd_consumercode from bill_data group by bd_consumercode) as max ON max.maxcreateddate=b_createddate - searchParams: - condition: AND - params: - - name: b.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: bd.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerCode - operator: ILIKE - - name: bd.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businesService - - name: b.mobilenumber - isMandatory: false - jsonPath: $.searchCriteria.mobileNumber - - name: bd.billno - isMandatory: false - operator: ILIKE - jsonPath: $.searchCriteria.billNo - - name: ptadd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: fromperiod - isMandatory: false - jsonPath: $.searchCriteria.fromPeriod - operator: LE - - name: toperiod - isMandatory: false - jsonPath: $.searchCriteria.toPeriod - operator: GE - - name: b.status - isMandatory: false - jsonPath: $.searchCriteria.billActive - - name: conn.property_id - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - output: - jsonFormat: {"ResponseInfo": {},"Bills": []} - outJsonPath: $.Bills - responseInfoPath: $.ResponseInfo - - - - - - name: seweragebills - isCustomerRowMapEnabled: true - rowMapperKey: billsearch - query: - baseQuery: with bill_data as ( - SELECT b.id AS b_id, b.mobilenumber, - b.tenantid AS b_tenantid, b.payername AS b_payername, - b.payeraddress AS b_payeraddress, b.payeremail AS b_payeremail, - b.isactive AS b_isactive, b.iscancelled AS b_iscancelled, - b.createdby AS b_createdby, b.status as b_status, b.filestoreid AS b_filestoreid, - b.createddate AS b_createddate, b.lastmodifiedby AS b_lastmodifiedby, - b.lastmodifieddate AS b_lastmodifieddate, bd.id AS bd_id, - bd.billid AS bd_billid, bd.tenantid AS bd_tenantid, - bd.businessservice AS bd_businessservice, bd.demandid, - bd.fromperiod, bd.toperiod, - bd.billno AS bd_billno, bd.billdate AS bd_billdate, - bd.consumercode AS bd_consumercode, bd.consumertype AS bd_consumertype, - bd.billdescription AS bd_billdescription, bd.displaymessage AS bd_displaymessage, - bd.minimumamount AS bd_minimumamount, bd.totalamount AS bd_totalamount, - bd.callbackforapportioning AS bd_callbackforapportioning, bd.expirydate AS bd_expirydate, - bd.partpaymentallowed AS bd_partpaymentallowed, bd.isadvanceallowed as bd_isadvanceallowed, - bd.collectionmodesnotallowed AS bd_collectionmodesnotallowed, bd.createddate as bd_createddate, - b.additionaldetails as b_additionaldetails, bd.additionaldetails as bd_additionaldetails, - ad.id AS ad_id, ad.tenantid AS ad_tenantid, - ad.billdetail AS ad_billdetail, ad.glcode AS ad_glcode, - ad.orderno AS ad_orderno, ad.accountdescription AS ad_accountdescription, - ad.amount AS ad_amount, ad.adjustedamount AS ad_adjustedamount, - ad.taxheadcode AS ad_taxheadcode, ad.demanddetailid, - ad.isactualdemand AS ad_isactualdemand, ad.purpose AS ad_purpose, - ad.additionaldetails as ad_additionaldetails, - ptadd.doorNo as ptadd_doorNo, ptadd.landmark as ptadd_landmark, - ptadd.city as ptadd_city, ptadd.pincode as ptadd_pincode, - ptadd.locality as ptadd_locality, ptown.userid as ptown_userid - - FROM egbs_bill_v1 b INNER JOIN egbs_billdetail_v1 bd ON b.id = bd.billid AND b.tenantid = bd.tenantid - INNER JOIN egbs_billaccountdetail_v1 ad ON bd.id = ad.billdetail AND bd.tenantid = ad.tenantid - INNER JOIN eg_sw_connection conn ON bd.consumercode = conn.connectionno - INNER JOIN eg_pt_property pt ON conn.property_id = pt.propertyid - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = pt.id - INNER JOIN eg_pt_owner ptown ON ptown.propertyid = pt.id $where) - - select * from bill_data inner join (select max(b_createddate) as maxcreateddate, bd_consumercode from bill_data group by bd_consumercode) as max ON max.maxcreateddate=b_createddate - searchParams: - condition: AND - params: - - name: b.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: bd.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerCode - operator: ILIKE - - name: bd.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businesService - - name: b.mobilenumber - isMandatory: false - jsonPath: $.searchCriteria.mobileNumber - - name: bd.billno - isMandatory: false - operator: ILIKE - jsonPath: $.searchCriteria.billNo - - name: ptadd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: fromperiod - isMandatory: false - jsonPath: $.searchCriteria.fromPeriod - operator: LE - - name: toperiod - isMandatory: false - jsonPath: $.searchCriteria.toPeriod - operator: GE - - name: b.status - isMandatory: false - jsonPath: $.searchCriteria.billActive - - name: conn.property_id - isMandatory: false - jsonPath: $.searchCriteria.propertyId - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"Bills": []} - outJsonPath: $.Bills - responseInfoPath: $.ResponseInfo - - - - name: mcollectbills - isCustomerRowMapEnabled: true - rowMapperKey: billsearch - query: - baseQuery: with bill_data as ( - SELECT b.id AS b_id, b.mobilenumber, - b.tenantid AS b_tenantid, b.payername AS b_payername, - b.payeraddress AS b_payeraddress, b.payeremail AS b_payeremail, - b.isactive AS b_isactive, b.iscancelled AS b_iscancelled, - b.createdby AS b_createdby, b.status as b_status, b.filestoreid AS b_filestoreid, - b.createddate AS b_createddate, b.lastmodifiedby AS b_lastmodifiedby, - b.lastmodifieddate AS b_lastmodifieddate, bd.id AS bd_id, - bd.billid AS bd_billid, bd.tenantid AS bd_tenantid, - bd.businessservice AS bd_businessservice, bd.demandid, - bd.fromperiod, bd.toperiod, - bd.billno AS bd_billno, bd.billdate AS bd_billdate, - bd.consumercode AS bd_consumercode, bd.consumertype AS bd_consumertype, - bd.billdescription AS bd_billdescription, bd.displaymessage AS bd_displaymessage, - bd.minimumamount AS bd_minimumamount, bd.totalamount AS bd_totalamount, - bd.callbackforapportioning AS bd_callbackforapportioning, bd.expirydate AS bd_expirydate, - bd.partpaymentallowed AS bd_partpaymentallowed, bd.isadvanceallowed as bd_isadvanceallowed, - bd.collectionmodesnotallowed AS bd_collectionmodesnotallowed, bd.createddate as bd_createddate, - b.additionaldetails as b_additionaldetails, bd.additionaldetails as bd_additionaldetails, - ad.id AS ad_id, ad.tenantid AS ad_tenantid, - ad.billdetail AS ad_billdetail, ad.glcode AS ad_glcode, - ad.orderno AS ad_orderno, ad.accountdescription AS ad_accountdescription, - ad.amount AS ad_amount, ad.adjustedamount AS ad_adjustedamount, - ad.taxheadcode AS ad_taxheadcode, ad.demanddetailid, - ad.isactualdemand AS ad_isactualdemand, ad.purpose AS ad_purpose, - ad.additionaldetails as ad_additionaldetails, - challanadd.doorNo as ptadd_doorNo, challanadd.landmark as ptadd_landmark, - challanadd.city as ptadd_city, challanadd.pincode as ptadd_pincode, - challanadd.locality as ptadd_locality, challan.accountid as ptown_userid , challan.createdtime - - FROM egbs_bill_v1 b INNER JOIN egbs_billdetail_v1 bd ON b.id = bd.billid AND b.tenantid = bd.tenantid and bd.totalamount > 0 - INNER JOIN egbs_billaccountdetail_v1 ad ON bd.id = ad.billdetail AND bd.tenantid = ad.tenantid - INNER JOIN eg_echallan challan ON bd.consumercode = challan.challanno AND b.status!='CANCELLED' - INNER JOIN eg_challan_address challanadd ON challanadd.eChallanId = challan.id $where ) - - select * from bill_data inner join (select max(b_createddate) as maxcreateddate, bd_consumercode from bill_data group by bd_consumercode) as max ON max.maxcreateddate=b_createddate - searchParams: - condition: AND - params: - - name: b.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - operator: ILIKE - - name: bd.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerCode - operator: ILIKE - - name: bd.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businesService - - name: b.mobilenumber - isMandatory: false - jsonPath: $.searchCriteria.mobileNumber - - name: bd.billno - isMandatory: false - operator: ILIKE - jsonPath: $.searchCriteria.billNo - - name: challanadd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: fromperiod - isMandatory: false - jsonPath: $.searchCriteria.fromPeriod - operator: LE - - name: toperiod - isMandatory: false - jsonPath: $.searchCriteria.toPeriod - operator: GE - - name: b.status - isMandatory: false - jsonPath: $.searchCriteria.billActive - - output: - jsonFormat: {"ResponseInfo": {},"Bills": []} - outJsonPath: $.Bills - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/chatbotBillSearcher.yml b/egov-searcher/chatbotBillSearcher.yml deleted file mode 100644 index 25c94ab6..00000000 --- a/egov-searcher/chatbotBillSearcher.yml +++ /dev/null @@ -1,55 +0,0 @@ -SearchDefinitions: - moduleName: chatbotBillSearcher - summary: Search configs for pending bills - version: 1.0.0 - definitions: - - name: billsopensearch - isCustomerRowMapEnabled: true - rowMapperKey: chabotbills - query: - baseQuery: WITH billresult AS ( - SELECT b.id AS b_id,b.mobilenumber, b.tenantid AS b_tenantid,b.payername AS b_payername, b.payeraddress AS b_payeraddress, - b.payeremail AS b_payeremail, b.filestoreid AS b_fileStoreId,b.isactive AS b_isactive, b.iscancelled AS b_iscancelled, - b.createdby AS b_createdby, b.status as b_status, b.createddate AS b_createddate, b.lastmodifiedby AS b_lastmodifiedby, - b.lastmodifieddate AS b_lastmodifieddate, bd.id AS bd_id, bd.billid AS bd_billid, bd.tenantid AS bd_tenantid, - bd.businessservice AS bd_businessservice, bd.demandid,bd.fromperiod,bd.toperiod, bd.billno AS bd_billno, bd.billdate AS bd_billdate, - bd.consumercode AS bd_consumercode,bd.consumertype AS bd_consumertype, bd.billdescription AS bd_billdescription, - bd.displaymessage AS bd_displaymessage, bd.minimumamount AS bd_minimumamount, bd.totalamount AS bd_totalamount, - bd.callbackforapportioning AS bd_callbackforapportioning,bd.expirydate AS bd_expirydate, bd.partpaymentallowed AS bd_partpaymentallowed, - bd.isadvanceallowed as bd_isadvanceallowed,bd.collectionmodesnotallowed AS bd_collectionmodesnotallowed, ad.id AS ad_id, - ad.tenantid AS ad_tenantid, ad.billdetail AS ad_billdetail, ad.glcode AS ad_glcode, ad.orderno AS ad_orderno, - ad.accountdescription AS ad_accountdescription, ad.amount AS ad_amount, ad.adjustedamount AS ad_adjustedamount, - ad.taxheadcode AS ad_taxheadcode, ad.demanddetailid, ad.isactualdemand AS ad_isactualdemand, ad.purpose AS ad_purpose, - b.additionaldetails as b_additionaldetails, bd.additionaldetails as bd_additionaldetails - FROM egbs_bill_v1 b LEFT OUTER JOIN egbs_billdetail_v1 bd ON b.id = bd.billid AND b.tenantid = bd.tenantid - LEFT OUTER JOIN egbs_billaccountdetail_v1 ad ON bd.id = ad.billdetail AND bd.tenantid = ad.tenantid $where) - SELECT * FROM billresult INNER JOIN (SELECT bd_consumercode, max(b_createddate) as maxdate FROM billresult GROUP BY bd_consumercode) as uniqbill ON uniqbill.maxdate=billresult.b_createddate - searchParams: - condition: AND - params: - - name: b.status - isMandatory: false - jsonPath: $.searchCriteria.billActive - operator: IN - - name: b.tenantid - isMandatory: false - jsonPath: $.searchCriteria.tenantId - - name: bd.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerCode - operator: ILIKE - - name: bd.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businesService - operator: IN - - name: b.mobilenumber - isMandatory: false - jsonPath: $.searchCriteria.mobileNumber - - name: bd.billno - isMandatory: false - jsonPath: $.searchCriteria.billNo - - output: - jsonFormat: {"ResponseInfo": {},"Bills": []} - outJsonPath: $.Bills - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/inboxBPASearch.yml b/egov-searcher/inboxBPASearch.yml deleted file mode 100644 index b81f700b..00000000 --- a/egov-searcher/inboxBPASearch.yml +++ /dev/null @@ -1,440 +0,0 @@ -SearchDefinitions: - moduleName: bpa-services - summary: Building Plan Approval Services Inbox API - version: 1.0.0 - definitions: - - name: inboxbpacitizensearch - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(bpa.applicationno) as applicationno,bpa.lastModifiedTime as lastModifiedTime from eg_bpa_buildingplan as bpa - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_land_ownerInfo ownerinfo ON landinfo.id = ownerinfo.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bpa.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.lastModifiedTime IN (select max(lastModifiedTime) from eg_wf_processinstance_v2 wf where wf.businessid = bpa.applicationno GROUP BY wf.businessid) - order by bpa.lastModifiedTime asc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bpa.tenantId - isMandatory: true - operator: ILIKE - jsonPath: $.searchCriteria.tenantId - - name: bpa.applicationNo - isMandatory: false - jsonPath: $.searchCriteria.applicationNo - - name: bpa.edcrNumber - isMandatory: false - jsonPath: $.searchCriteria.edcrNumber - - name: bpa.approvalNo - isMandatory: false - jsonPath: $.searchCriteria.approvalNo - - name: landaddress.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: ownerinfo.uuid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: bpa.additionaldetails->>'applicationType' - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: bpa.additionaldetails->>'serviceType' - isMandatory: false - jsonPath: $.searchCriteria.serviceType - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"BPAs": []} - outJsonPath: $.BPAs - responseInfoPath: $.ResponseInfo - - - name: inboxbpastakeholdersearch - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(bpa.applicationno) as applicationno,bpa.lastModifiedTime as lastModifiedTime from eg_bpa_buildingplan as bpa - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bpa.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.lastModifiedTime IN (select max(lastModifiedTime) from eg_wf_processinstance_v2 wf where wf.businessid = bpa.applicationno GROUP BY wf.businessid) - order by bpa.lastModifiedTime asc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bpa.tenantId - isMandatory: true - operator: ILIKE - jsonPath: $.searchCriteria.tenantId - - name: bpa.applicationNo - isMandatory: false - jsonPath: $.searchCriteria.applicationNo - - name: bpa.edcrNumber - isMandatory: false - jsonPath: $.searchCriteria.edcrNumber - - name: bpa.approvalNo - isMandatory: false - jsonPath: $.searchCriteria.approvalNo - - name: landaddress.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: bpa.accountId - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: bpa.additionaldetails->>'applicationType' - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: bpa.additionaldetails->>'serviceType' - isMandatory: false - jsonPath: $.searchCriteria.serviceType - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"BPAs": []} - outJsonPath: $.BPAs - responseInfoPath: $.ResponseInfo - - - name: inboxbpacitizensearchcount - query: - baseQuery: SELECT row_to_json(TotalCount) from (SELECT COUNT(result) from - ( - select DISTINCT(bpa.applicationno) as applicationno,bpa.lastModifiedTime as lastModifiedTime from eg_bpa_buildingplan as bpa - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_land_ownerInfo ownerinfo ON landinfo.id = ownerinfo.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bpa.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.lastModifiedTime IN (select max(lastModifiedTime) from eg_wf_processinstance_v2 wf where wf.businessid = bpa.applicationno GROUP BY wf.businessid) - order by bpa.lastModifiedTime asc - ) result) TotalCount - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bpa.tenantId - isMandatory: true - operator: ILIKE - jsonPath: $.searchCriteria.tenantId - - name: bpa.applicationNo - isMandatory: false - jsonPath: $.searchCriteria.applicationNo - - name: bpa.edcrNumber - isMandatory: false - jsonPath: $.searchCriteria.edcrNumber - - name: bpa.approvalNo - isMandatory: false - jsonPath: $.searchCriteria.approvalNo - - name: landaddress.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: ownerinfo.uuid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: bpa.additionaldetails->>'applicationType' - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: bpa.additionaldetails->>'serviceType' - isMandatory: false - jsonPath: $.searchCriteria.serviceType - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"TotalCount": {}} - outJsonPath: $.TotalCount - responseInfoPath: $.ResponseInfo - - - name: inboxbpastakeholdersearchcount - query: - baseQuery: SELECT row_to_json(TotalCount) from (SELECT COUNT(result) from - ( - select DISTINCT(bpa.applicationno) as applicationno,bpa.lastModifiedTime as lastModifiedTime from eg_bpa_buildingplan as bpa - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bpa.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.lastModifiedTime IN (select max(lastModifiedTime) from eg_wf_processinstance_v2 wf where wf.businessid = bpa.applicationno GROUP BY wf.businessid) - order by bpa.lastModifiedTime asc - ) result) TotalCount - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bpa.tenantId - isMandatory: true - operator: ILIKE - jsonPath: $.searchCriteria.tenantId - - name: bpa.applicationNo - isMandatory: false - jsonPath: $.searchCriteria.applicationNo - - name: bpa.edcrNumber - isMandatory: false - jsonPath: $.searchCriteria.edcrNumber - - name: bpa.approvalNo - isMandatory: false - jsonPath: $.searchCriteria.approvalNo - - name: landaddress.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: bpa.accountId - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: bpa.additionaldetails->>'applicationType' - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: bpa.additionaldetails->>'serviceType' - isMandatory: false - jsonPath: $.searchCriteria.serviceType - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"TotalCount": {}} - outJsonPath: $.TotalCount - responseInfoPath: $.ResponseInfo - - - name: inboxbpacitizensearchdesc - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(bpa.applicationno) as applicationno,bpa.lastModifiedTime as lastModifiedTime from eg_bpa_buildingplan as bpa - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_land_ownerInfo ownerinfo ON landinfo.id = ownerinfo.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bpa.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.lastModifiedTime IN (select max(lastModifiedTime) from eg_wf_processinstance_v2 wf where wf.businessid = bpa.applicationno GROUP BY wf.businessid) - order by bpa.lastModifiedTime desc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bpa.tenantId - isMandatory: true - operator: ILIKE - jsonPath: $.searchCriteria.tenantId - - name: bpa.applicationNo - isMandatory: false - jsonPath: $.searchCriteria.applicationNo - - name: bpa.edcrNumber - isMandatory: false - jsonPath: $.searchCriteria.edcrNumber - - name: bpa.approvalNo - isMandatory: false - jsonPath: $.searchCriteria.approvalNo - - name: landaddress.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: ownerinfo.uuid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: bpa.additionaldetails->>'applicationType' - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: bpa.additionaldetails->>'serviceType' - isMandatory: false - jsonPath: $.searchCriteria.serviceType - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"BPAs": []} - outJsonPath: $.BPAs - responseInfoPath: $.ResponseInfo - - - name: inboxbpastakeholdersearchdesc - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(bpa.applicationno) as applicationno,bpa.lastModifiedTime as lastModifiedTime from eg_bpa_buildingplan as bpa - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bpa.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.lastModifiedTime IN (select max(lastModifiedTime) from eg_wf_processinstance_v2 wf where wf.businessid = bpa.applicationno GROUP BY wf.businessid) - order by bpa.lastModifiedTime desc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bpa.tenantId - isMandatory: true - operator: ILIKE - jsonPath: $.searchCriteria.tenantId - - name: bpa.applicationNo - isMandatory: false - jsonPath: $.searchCriteria.applicationNo - - name: bpa.edcrNumber - isMandatory: false - jsonPath: $.searchCriteria.edcrNumber - - name: bpa.approvalNo - isMandatory: false - jsonPath: $.searchCriteria.approvalNo - - name: landaddress.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: bpa.accountId - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: bpa.additionaldetails->>'applicationType' - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: bpa.additionaldetails->>'serviceType' - isMandatory: false - jsonPath: $.searchCriteria.serviceType - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"BPAs": []} - outJsonPath: $.BPAs - responseInfoPath: $.ResponseInfo - - - name: inboxbpastakeholdertenantwiseapplnsearch - query: - baseQuery: Select row_to_json(result) from - ( - select bpa.tenantId, bpa.applicationno from eg_bpa_buildingplan as bpa - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bpa.applicationno - $where GROUP BY bpa.tenantId, bpa.applicationno - ) result - groupBy: - searchParams: - condition: AND - params: - - name: bpa.tenantId - isMandatory: true - operator: ILIKE - jsonPath: $.searchCriteria.tenantId - - name: bpa.accountId - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - output: - jsonFormat: {"ResponseInfo": {},"BPA": []} - outJsonPath: $.BPA - responseInfoPath: $.ResponseInfo - - - name: inboxbpacitizentenantwiseapplnsearch - query: - baseQuery: Select row_to_json(result) from - ( - select bpa.tenantId, bpa.applicationno from eg_bpa_buildingplan as bpa - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_ownerInfo ownerinfo ON landinfo.id = ownerinfo.landInfoId - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bpa.applicationno - $where GROUP BY bpa.tenantId, bpa.applicationno - ) result - groupBy: - searchParams: - condition: AND - params: - - name: bpa.tenantId - isMandatory: true - operator: ILIKE - jsonPath: $.searchCriteria.tenantId - - name: ownerinfo.uuid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - output: - jsonFormat: {"ResponseInfo": {},"BPA": {}} - outJsonPath: $.BPA - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/inboxBillAmendmentSwSearch.yml b/egov-searcher/inboxBillAmendmentSwSearch.yml deleted file mode 100644 index 8fd3faaf..00000000 --- a/egov-searcher/inboxBillAmendmentSwSearch.yml +++ /dev/null @@ -1,171 +0,0 @@ -SearchDefinitions: - moduleName: bsSw-service - summary: Billing Amendment Services Inbox API - version: 1.0.0 - definitions: - - name: inboxbsswsearch - query: - baseQuery: Select row_to_json(final_result) from - ( - select DISTINCT(amendmentid), consumercode, createdtime from - ( select bs.amendmentid, bs.consumerCode, pi.createdtime from egbs_amendment as bs - INNER JOIN eg_sw_connection conn ON bs.consumercode = conn.connectionno - INNER JOIN egbs_demand_v1 demand ON bs.consumercode = demand.consumercode - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bs.amendmentid - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = bs.amendmentid GROUP BY wf.businessid) - order by pi.createdtime asc $pagination - ) result) final_result order by createdtime asc - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bs.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: bs.amendmentid - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: conn.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: bs.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: bs.status - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: demand.payer - isMandatory: false - jsonPath: $.searchCriteria.userIds - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"BillAmendments": []} - outJsonPath: $.BillAmendments - responseInfoPath: $.ResponseInfo - - - - name: inboxbsswsearchdesc - query: - baseQuery: Select row_to_json(final_result) from - ( - select DISTINCT(amendmentid), consumercode, createdtime from - ( select bs.amendmentid, bs.consumerCode, pi.createdtime from egbs_amendment as bs - INNER JOIN eg_sw_connection conn ON bs.consumercode = conn.connectionno - INNER JOIN egbs_demand_v1 demand ON bs.consumercode = demand.consumercode - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bs.amendmentid - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = bs.amendmentid GROUP BY wf.businessid) - order by pi.createdtime desc $pagination - ) result) final_result order by createdtime desc - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bs.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: bs.amendmentid - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: conn.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: bs.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: bs.status - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: demand.payer - isMandatory: false - jsonPath: $.searchCriteria.userIds - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"BillAmendments": []} - outJsonPath: $.BillAmendments - responseInfoPath: $.ResponseInfo - - - - name: inboxbsswsearchcount - query: - baseQuery: SELECT row_to_json(TotalCount) from (SELECT COUNT(final_result) from - ( - select DISTINCT(amendmentid), consumercode from - ( select bs.amendmentid, bs.consumerCode, pi.createdtime from egbs_amendment as bs - INNER JOIN eg_sw_connection conn ON bs.consumercode = conn.connectionno - INNER JOIN egbs_demand_v1 demand ON bs.consumercode = demand.consumercode - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bs.amendmentid - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = bs.amendmentid GROUP BY wf.businessid) - order by pi.createdtime asc $pagination - ) result) final_result) TotalCount - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bs.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: bs.amendmentid - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: conn.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: bs.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: bs.status - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: demand.payer - isMandatory: false - jsonPath: $.searchCriteria.userIds - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"TotalCount": {}} - outJsonPath: $.TotalCount - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/inboxBillAmendmentWsSearch.yml b/egov-searcher/inboxBillAmendmentWsSearch.yml deleted file mode 100644 index 2dc45fcb..00000000 --- a/egov-searcher/inboxBillAmendmentWsSearch.yml +++ /dev/null @@ -1,171 +0,0 @@ -SearchDefinitions: - moduleName: bsWs-service - summary: Billing Amendment Services Inbox API - version: 1.0.0 - definitions: - - name: inboxbswssearch - query: - baseQuery: Select row_to_json(final_result) from - ( - select DISTINCT(amendmentid), consumercode, createdtime from - ( select bs.amendmentid, bs.consumerCode, pi.createdtime from egbs_amendment as bs - INNER JOIN eg_ws_connection conn ON bs.consumercode = conn.connectionno - INNER JOIN egbs_demand_v1 demand ON bs.consumercode = demand.consumercode - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bs.amendmentid - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = bs.amendmentid GROUP BY wf.businessid) - order by pi.createdtime asc $pagination - ) result) final_result order by createdtime asc - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bs.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: bs.amendmentid - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: conn.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: bs.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: bs.status - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: demand.payer - isMandatory: false - jsonPath: $.searchCriteria.userIds - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"BillAmendments": []} - outJsonPath: $.BillAmendments - responseInfoPath: $.ResponseInfo - - - - name: inboxbswssearchdesc - query: - baseQuery: Select row_to_json(final_result) from - ( - select DISTINCT(amendmentid), consumercode, createdtime from - ( select bs.amendmentid, bs.consumerCode, pi.createdtime from egbs_amendment as bs - INNER JOIN eg_ws_connection conn ON bs.consumercode = conn.connectionno - INNER JOIN egbs_demand_v1 demand ON bs.consumercode = demand.consumercode - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bs.amendmentid - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = bs.amendmentid GROUP BY wf.businessid) - order by pi.createdtime desc $pagination - ) result) final_result order by createdtime desc - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bs.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: bs.amendmentid - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: conn.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: bs.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: bs.status - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: demand.payer - isMandatory: false - jsonPath: $.searchCriteria.userIds - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"BillAmendments": []} - outJsonPath: $.BillAmendments - responseInfoPath: $.ResponseInfo - - - - name: inboxbswssearchcount - query: - baseQuery: SELECT row_to_json(TotalCount) from (SELECT COUNT(final_result) from - ( - select DISTINCT(amendmentid), consumercode from - ( select bs.amendmentid, bs.consumerCode, pi.createdtime from egbs_amendment as bs - INNER JOIN eg_ws_connection conn ON bs.consumercode = conn.connectionno - INNER JOIN egbs_demand_v1 demand ON bs.consumercode = demand.consumercode - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = bs.amendmentid - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = bs.amendmentid GROUP BY wf.businessid) - order by pi.createdtime asc $pagination - ) result) final_result) TotalCount - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: bs.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: bs.amendmentid - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: conn.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: bs.consumercode - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: bs.status - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: demand.payer - isMandatory: false - jsonPath: $.searchCriteria.userIds - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"TotalCount": {}} - outJsonPath: $.TotalCount - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/inboxFSMSearch.yml b/egov-searcher/inboxFSMSearch.yml deleted file mode 100644 index b806cd9c..00000000 --- a/egov-searcher/inboxFSMSearch.yml +++ /dev/null @@ -1,75 +0,0 @@ -SearchDefinitions: - moduleName: fsm-services - summary: FSM Inbox API - version: 1.0.0 - definitions: - - name: inboxfsmsearchcount - query: - baseQuery: SELECT row_to_json(TotalCount) from (SELECT COUNT(result) from - ( - select DISTINCT(fsm.applicationno) as applicationNo,fsm.createdtime from eg_fsm_application as fsm - INNER JOIN eg_fsm_address fsmadd ON fsm.id =fsmadd.fsm_id - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = fsm.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = fsm.applicationno GROUP BY wf.businessid) - order by fsm.createdtime asc - ) result) TotalCount - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: fsm.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: fsm.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationNo - - name: fsmadd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: fsm.accountid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"TotalCount": {}} - outJsonPath: $.TotalCount - responseInfoPath: $.ResponseInfo - - name: inboxfsmdsoId - query: - baseQuery: SELECT row_to_json(vendor) from (select vendor.* from eg_vendor as vendor $where) vendor - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: vendor.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: vendor.owner_id - isMandatory: false - jsonPath: $.searchCriteria.ownerId - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"vendor": {}} - outJsonPath: $.vendor - responseInfoPath: $.ResponseInfo - - diff --git a/egov-searcher/inboxNOCSearch.yml b/egov-searcher/inboxNOCSearch.yml deleted file mode 100644 index 4d560604..00000000 --- a/egov-searcher/inboxNOCSearch.yml +++ /dev/null @@ -1,163 +0,0 @@ -SearchDefinitions: - moduleName: noc-services - summary: Noc Services Inbox API - version: 1.0.0 - definitions: - - name: inboxnocsearch - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(noc.applicationno) as applicationno,noc.createdtime as createdtime from eg_noc as noc - INNER JOIN eg_bpa_buildingplan as bpa ON noc.sourcerefid=bpa.applicationno - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_land_ownerInfo ownerinfo ON landinfo.id = ownerinfo.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = noc.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = noc.applicationno GROUP BY wf.businessid) - order by noc.createdtime asc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: noc.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: landaddress.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: noc.sourceRefId - isMandatory: false - jsonPath: $.searchCriteria.sourceApplicationNumber - - name: noc.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: ownerinfo.uuid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"Noc": []} - outJsonPath: $.Noc - responseInfoPath: $.ResponseInfo - - - name: inboxnocsearchcount - query: - baseQuery: SELECT row_to_json(TotalCount) from (SELECT COUNT(result) from - ( - select DISTINCT(noc.applicationno) as applicationno,noc.createdtime as createdtime from eg_noc as noc - INNER JOIN eg_bpa_buildingplan as bpa ON noc.sourcerefid=bpa.applicationno - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_land_ownerInfo ownerinfo ON landinfo.id = ownerinfo.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = noc.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = noc.applicationno GROUP BY wf.businessid) - order by noc.createdtime asc $pagination - ) result) TotalCount - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: noc.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: landaddress.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: noc.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationNo - - name: noc.sourceRefId - isMandatory: false - jsonPath: $.searchCriteria.sourceApplicationNumber - - name: ownerinfo.uuid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"TotalCount": {}} - outJsonPath: $.TotalCount - responseInfoPath: $.ResponseInfo - - - name: inboxnocsearchdesc - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(noc.applicationno) as applicationno,noc.createdtime as createdtime from eg_noc as noc - INNER JOIN eg_bpa_buildingplan as bpa ON noc.sourcerefid=bpa.applicationno - INNER JOIN eg_land_landInfo landinfo ON bpa.landId = landinfo.id - INNER JOIN eg_land_Address landaddress ON landinfo.id = landaddress.landInfoId - INNER JOIN eg_land_ownerInfo ownerinfo ON landinfo.id = ownerinfo.landInfoId - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = noc.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = noc.applicationno GROUP BY wf.businessid) - order by noc.createdtime desc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: noc.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: landaddress.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: noc.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationNo - - name: noc.sourceRefId - isMandatory: false - jsonPath: $.searchCriteria.sourceApplicationNumber - - name: ownerinfo.uuid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"Noc": []} - outJsonPath: $.Noc - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/inboxSWSearch.yml b/egov-searcher/inboxSWSearch.yml deleted file mode 100644 index 79bd0243..00000000 --- a/egov-searcher/inboxSWSearch.yml +++ /dev/null @@ -1,189 +0,0 @@ -SearchDefinitions: - moduleName: sw-services - summary: Sewerage Services Inbox API - version: 1.0.0 - definitions: - - name: inboxswsearch - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(sw.applicationno),pi.createdtime from eg_sw_connection as sw - LEFT OUTER JOIN eg_pt_property property ON sw.property_id = property.propertyid - LEFT OUTER JOIN eg_pt_owner owner ON owner.propertyid = property.id - LEFT OUTER JOIN eg_sw_connectionholder connectionHolder ON sw.id = connectionHolder.connectionid - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = sw.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = sw.applicationno GROUP BY wf.businessid) - order by pi.createdtime asc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: sw.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: sw.property_id - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: sw.applicationType - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: sw.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: sw.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: sw.connectionNo - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: sw.applicationStatus - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: owner.userid - isMandatory: false - jsonPath: $.searchCriteria.userIds - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"SewerageConnections": []} - outJsonPath: $.SewerageConnections - responseInfoPath: $.ResponseInfo - - - - name: inboxswsearchdesc - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(sw.applicationNo),pi.createdtime from eg_sw_connection as sw - LEFT OUTER JOIN eg_pt_property property ON sw.property_id = property.propertyid - LEFT OUTER JOIN eg_pt_owner owner ON owner.propertyid = property.id - LEFT OUTER JOIN eg_sw_connectionholder connectionHolder ON sw.id = connectionHolder.connectionid - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = sw.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = sw.applicationno GROUP BY wf.businessid) - order by pi.createdtime desc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: sw.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: sw.property_id - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: sw.applicationType - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: sw.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: sw.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: sw.connectionNo - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: sw.applicationStatus - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: owner.userid - isMandatory: false - jsonPath: $.searchCriteria.userIds - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"SewerageConnections": []} - outJsonPath: $.SewerageConnections - responseInfoPath: $.ResponseInfo - - - - name: inboxswsearchcount - query: - baseQuery: SELECT row_to_json(TotalCount) from (SELECT COUNT(result) from - ( - select DISTINCT(sw.applicationno),pi.createdtime from eg_sw_connection as sw - LEFT OUTER JOIN eg_pt_property property ON sw.property_id = property.propertyid - LEFT OUTER JOIN eg_pt_owner owner ON owner.propertyid = property.id - LEFT OUTER JOIN eg_sw_connectionholder connectionHolder ON sw.id = connectionHolder.connectionid - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = sw.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = sw.applicationno GROUP BY wf.businessid) - order by pi.createdtime asc - ) result) TotalCount - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: sw.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: sw.property_id - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: sw.applicationtype - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: sw.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: sw.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: sw.connectionNo - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: owner.userid - isMandatory: false - jsonPath: $.searchCriteria.userIds - - name: sw.applicationStatus - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"TotalCount": {}} - outJsonPath: $.TotalCount - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/inboxTLSearch.yml b/egov-searcher/inboxTLSearch.yml deleted file mode 100644 index c842636f..00000000 --- a/egov-searcher/inboxTLSearch.yml +++ /dev/null @@ -1,169 +0,0 @@ -SearchDefinitions: - moduleName: tl-services - summary: Trade License Services Inbox API - version: 1.0.0 - definitions: - - name: inboxtlsearch - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(tl.applicationNumber) as applicationnumber,tl.applicationdate as createdtime from eg_tl_tradelicense as tl - INNER JOIN eg_tl_tradelicensedetail tld ON tl.id = tld.tradelicenseid - INNER JOIN eg_tl_owner owner ON tld.id = owner.tradelicensedetailid - INNER JOIN eg_tl_address tladd ON tladd.tradelicensedetailid = tld.id - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = tl.applicationNumber - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = tl.applicationNumber GROUP BY wf.businessid) - order by tl.applicationdate asc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: tl.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: tl.licenseNumber - isMandatory: false - jsonPath: $.searchCriteria.licenseNumber - - name: tl.oldlicensenumber - isMandatory: false - jsonPath: $.searchCriteria.oldlicensenumber - - name: tladd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: tl.applicationNumber - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: owner.id - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"Licenses": []} - outJsonPath: $.Licenses - responseInfoPath: $.ResponseInfo - - - name: inboxtlsearchcount - query: - baseQuery: SELECT row_to_json(TotalCount) from (SELECT COUNT(result) from - ( - select DISTINCT(tl.applicationNumber) as applicationnumber,tl.applicationdate as createdtime from eg_tl_tradelicense as tl - INNER JOIN eg_tl_tradelicensedetail tld ON tl.id = tld.tradelicenseid - INNER JOIN eg_tl_owner owner ON tld.id = owner.tradelicensedetailid - INNER JOIN eg_tl_address tladd ON tladd.tradelicensedetailid = tld.id - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = tl.applicationNumber - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = tl.applicationNumber GROUP BY wf.businessid) - order by tl.applicationdate asc - ) result) TotalCount - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: tl.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: tl.licenseNumber - isMandatory: false - jsonPath: $.searchCriteria.licenseNumber - - name: tl.oldlicensenumber - isMandatory: false - jsonPath: $.searchCriteria.oldlicensenumber - - name: tladd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: tl.applicationNumber - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: owner.id - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"TotalCount": {}} - outJsonPath: $.TotalCount - responseInfoPath: $.ResponseInfo - - - name: inboxtlsearchdesc - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(tl.applicationNumber) as applicationnumber,tl.applicationdate as createdtime from eg_tl_tradelicense as tl - INNER JOIN eg_tl_tradelicensedetail tld ON tl.id = tld.tradelicenseid - INNER JOIN eg_tl_owner owner ON tld.id = owner.tradelicensedetailid - INNER JOIN eg_tl_address tladd ON tladd.tradelicensedetailid = tld.id - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = tl.applicationNumber - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = tl.applicationNumber GROUP BY wf.businessid) - order by tl.applicationdate desc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: tl.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: tl.licenseNumber - isMandatory: false - jsonPath: $.searchCriteria.licenseNumber - - name: tl.oldlicensenumber - isMandatory: false - jsonPath: $.searchCriteria.oldlicensenumber - - name: tladd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: tl.applicationNumber - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: owner.id - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"Licenses": []} - outJsonPath: $.Licenses - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/inboxWSSearch.yml b/egov-searcher/inboxWSSearch.yml deleted file mode 100644 index 0de84de5..00000000 --- a/egov-searcher/inboxWSSearch.yml +++ /dev/null @@ -1,189 +0,0 @@ -SearchDefinitions: - moduleName: ws-services - summary: Water Services Inbox API - version: 1.0.0 - definitions: - - name: inboxwssearch - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(ws.applicationno),pi.createdtime from eg_ws_connection as ws - LEFT OUTER JOIN eg_pt_property property ON ws.property_id = property.propertyid - LEFT OUTER JOIN eg_pt_owner owner ON owner.propertyid = property.id - LEFT OUTER JOIN eg_ws_connectionholder connectionHolder ON ws.id = connectionHolder.connectionid - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = ws.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = ws.applicationno GROUP BY wf.businessid) - order by pi.createdtime asc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: ws.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: ws.property_id - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: ws.applicationType - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: ws.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: ws.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: ws.connectionNo - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: ws.applicationStatus - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: owner.userid - isMandatory: false - jsonPath: $.searchCriteria.userIds - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"WaterConnections": []} - outJsonPath: $.WaterConnections - responseInfoPath: $.ResponseInfo - - - - name: inboxwssearchdesc - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(ws.applicationno),pi.createdtime from eg_ws_connection as ws - LEFT OUTER JOIN eg_pt_property property ON ws.property_id = property.propertyid - LEFT OUTER JOIN eg_pt_owner owner ON owner.propertyid = property.id - LEFT OUTER JOIN eg_ws_connectionholder connectionHolder ON ws.id = connectionHolder.connectionid - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = ws.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = ws.applicationno GROUP BY wf.businessid) - order by pi.createdtime desc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: ws.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: ws.property_id - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: ws.applicationType - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: ws.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: ws.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: ws.connectionNo - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: ws.applicationStatus - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: owner.userid - isMandatory: false - jsonPath: $.searchCriteria.userIds - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"WaterConnections": []} - outJsonPath: $.WaterConnections - responseInfoPath: $.ResponseInfo - - - - name: inboxwssearchcount - query: - baseQuery: SELECT row_to_json(TotalCount) from (SELECT COUNT(result) from - ( - select DISTINCT(ws.applicationno),pi.createdtime from eg_ws_connection as ws - LEFT OUTER JOIN eg_pt_property property ON ws.property_id = property.propertyid - LEFT OUTER JOIN eg_pt_owner owner ON owner.propertyid = property.id - LEFT OUTER JOIN eg_ws_connectionholder connectionHolder ON ws.id = connectionHolder.connectionid - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = ws.applicationno - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = ws.applicationno GROUP BY wf.businessid) - order by pi.createdtime asc - ) result) TotalCount - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: ws.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: ws.property_id - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: ws.applicationType - isMandatory: false - jsonPath: $.searchCriteria.applicationType - - name: ws.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: ws.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: ws.connectionNo - isMandatory: false - jsonPath: $.searchCriteria.consumerNo - - name: ws.applicationStatus - isMandatory: false - jsonPath: $.searchCriteria.applicationStatus - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - - name: owner.userid - isMandatory: false - jsonPath: $.searchCriteria.userIds - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"TotalCount": {}} - outJsonPath: $.TotalCount - responseInfoPath: $.ResponseInfo \ No newline at end of file diff --git a/egov-searcher/inboxpropertysearch.yml b/egov-searcher/inboxpropertysearch.yml deleted file mode 100644 index 09d2c3da..00000000 --- a/egov-searcher/inboxpropertysearch.yml +++ /dev/null @@ -1,164 +0,0 @@ -SearchDefinitions: - moduleName: property-services - summary: Property Services Inbox API - version: 1.0.0 - definitions: - - name: inboxpropertysearch - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(property.acknowldgementnumber),pi.createdtime from eg_pt_property as property - INNER JOIN eg_pt_owner owner ON property.id = owner.propertyid - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = property.id - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = property.acknowldgementnumber - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = property.acknowldgementnumber GROUP BY wf.businessid) - order by pi.createdtime asc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: property.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: property.propertyId - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: property.oldPropertyId - isMandatory: false - jsonPath: $.searchCriteria.oldPropertyId - - name: ptadd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: property.acknowldgementnumber - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: owner.userid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"Properties": []} - outJsonPath: $.Properties - responseInfoPath: $.ResponseInfo - - name: inboxpropertysearchdesc - query: - baseQuery: Select row_to_json(result) from - ( - select DISTINCT(property.acknowldgementnumber),pi.createdtime from eg_pt_property as property - INNER JOIN eg_pt_owner owner ON property.id = owner.propertyid - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = property.id - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = property.acknowldgementnumber - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = property.acknowldgementnumber GROUP BY wf.businessid) - order by pi.createdtime desc $pagination - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: property.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: property.propertyId - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: property.oldPropertyId - isMandatory: false - jsonPath: $.searchCriteria.oldPropertyId - - name: ptadd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: property.acknowldgementnumber - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: owner.userid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"Properties": []} - outJsonPath: $.Properties - responseInfoPath: $.ResponseInfo - - name: inboxpropertysearchcount - query: - baseQuery: SELECT row_to_json(TotalCount) from (SELECT COUNT(result) from - ( - select DISTINCT(property.acknowldgementnumber),pi.createdtime from eg_pt_property as property - INNER JOIN eg_pt_owner owner ON property.id = owner.propertyid - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = property.id - INNER JOIN eg_wf_processinstance_v2 pi ON pi.businessid = property.acknowldgementnumber - LEFT JOIN eg_wf_assignee_v2 assg ON pi.id = assg.processinstanceid - $where - AND pi.createdtime IN (select max(createdtime) from eg_wf_processinstance_v2 wf where wf.businessid = property.acknowldgementnumber GROUP BY wf.businessid) - order by pi.createdtime asc - ) result) TotalCount - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: property.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: property.propertyId - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: property.oldPropertyId - isMandatory: false - jsonPath: $.searchCriteria.oldPropertyId - - name: ptadd.locality - isMandatory: false - jsonPath: $.searchCriteria.locality - - name: assg.assignee - isMandatory: false - jsonPath: $.searchCriteria.assignee - - name: pi.status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: property.acknowldgementnumber - isMandatory: false - jsonPath: $.searchCriteria.applicationNumber - - name: owner.userid - isMandatory: false - jsonPath: $.searchCriteria.userid - - name: pi.businessservice - isMandatory: false - jsonPath: $.searchCriteria.businessservice - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {},"TotalCount": {}} - outJsonPath: $.TotalCount - responseInfoPath: $.ResponseInfo \ No newline at end of file diff --git a/egov-searcher/localitySearcher.yml b/egov-searcher/localitySearcher.yml deleted file mode 100644 index e7d0b8ae..00000000 --- a/egov-searcher/localitySearcher.yml +++ /dev/null @@ -1,284 +0,0 @@ -SearchDefinitions: - moduleName: locality - summary: Searcher configuration for searching locality in workflow inbox - version: 1.0.0 - definitions: - - - name: tl-services - query: - baseQuery: | - Select row_to_json(result) from - ( - select applicationNumber as referenceNumber,locality from eg_tl_tradelicense tl - INNER JOIN eg_tl_TradeLicenseDetail tld ON tld.tradelicenseId = tl.id - INNER JOIN eg_tl_address ad ON ad.tradeLicenseDetailId = tld.id - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - - name: fireNoc - query: - baseQuery: | - Select row_to_json(result) from - ( - select fnd.applicationnumber as referenceNumber,locality from eg_fn_firenoc fn - INNER JOIN eg_fn_firenocDetail fnd ON fnd.firenocuuid = fn.uuid - INNER JOIN eg_fn_address ad ON ad.firenocdetailsuuid = fnd.uuid - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - - - name: BPAREG - query: - baseQuery: | - Select row_to_json(result) from - ( - select applicationNumber as referenceNumber,locality from eg_tl_tradelicense tl - INNER JOIN eg_tl_TradeLicenseDetail tld ON tld.tradelicenseId = tl.id - INNER JOIN eg_tl_address ad ON ad.tradeLicenseDetailId = tld.id - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - - name: bpa-services - query: - baseQuery: | - Select row_to_json(result) from - ( - select applicationNo as referenceNumber,locality from eg_bpa_buildingplan bpa - INNER JOIN eg_land_Address ad ON ad.landInfoId = bpa.landid - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - - name: pt-services - query: - baseQuery: | - Select row_to_json(result) from - ( - select property.propertyid as referenceNumber,locality from eg_pt_property property - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = property.id - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - - name: PT - query: - baseQuery: | - Select row_to_json(result) from - ( - select property.propertyid as referenceNumber,locality from eg_pt_property property - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = property.id - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - - name: ws-services - query: - baseQuery: | - Select row_to_json(result) from - ( - select applicationno as referenceNumber,conn.locality from eg_ws_connection conn - INNER JOIN eg_pt_property property ON property.propertyid = conn.property_id - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = property.id - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - name: sw-services - query: - baseQuery: | - Select row_to_json(result) from - ( - select applicationno as referenceNumber,conn.locality from eg_sw_connection conn - INNER JOIN eg_pt_property property ON property.propertyid = conn.property_id - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = property.id - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - name: noc-services - query: - baseQuery: | - Select row_to_json(result) from - ( - select noc.applicationNo as referenceNumber,ad.locality from eg_bpa_buildingplan bpa - INNER JOIN eg_land_Address ad ON ad.landInfoId = bpa.landid JOIN eg_noc noc ON noc.sourceRefId = bpa.applicationNo - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - name: fsm - query: - baseQuery: | - Select row_to_json(result) from - ( - select fsm.applicationno as referenceNumber,ad.locality from eg_fsm_application fsm - INNER JOIN eg_fsm_address ad ON ad.fsm_id = fsm.id - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - - name: property-services - query: - baseQuery: | - Select row_to_json(result) from - ( - select property.acknowldgementnumber as referenceNumber,locality from eg_pt_property property - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = property.id - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo - - - name: pgr-services - query: - baseQuery: | - Select row_to_json(result) from - ( - select ser.serviceRequestId as referenceNumber,ads.locality from eg_pgr_service_v2 ser - INNER JOIN eg_pgr_address_v2 ads ON ads.parentId = ser.id - ) result $where - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: result.referenceNumber - isMandatory: true - jsonPath: $.searchCriteria.referenceNumber - operator: - - output: - jsonFormat: { "ResponseInfo": { } } - outJsonPath: $.Localities - responseInfoPath: $.ResponseInfo \ No newline at end of file diff --git a/egov-searcher/propertyopensearch.yml b/egov-searcher/propertyopensearch.yml deleted file mode 100644 index 84fed5ac..00000000 --- a/egov-searcher/propertyopensearch.yml +++ /dev/null @@ -1,42 +0,0 @@ -SearchDefinitions: - moduleName: property-services - summary: Property Services Open API - version: 1.0.0 - definitions: - - name: propertyopensearch - query: - baseQuery: Select row_to_json(result) from - ( - select property.tenantid, property.propertyid, surveyid, oldpropertyid, property.createdtime, locality, owner.userid as owneruuid from eg_pt_property as property - INNER JOIN eg_pt_address ptadd ON ptadd.propertyid = property.id - INNER JOIN eg_pt_owner owner ON owner.propertyid=property.id $where - ) result - groupBy: - orderBy: createdtime,desc - searchParams: - condition: AND - params: - - name: property.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: property.propertyId - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: property.surveyId - isMandatory: false - jsonPath: $.searchCriteria.surveyId - - name: property.oldPropertyId - isMandatory: false - jsonPath: $.searchCriteria.oldPropertyId - - name: ptadd.doorNo - isMandatory: false - jsonPath: $.searchCriteria.doorNo - - name: ptadd.locality - isMandatory: true - jsonPath: $.searchCriteria.locality - - - output: - jsonFormat: {"ResponseInfo": {},"Properties": []} - outJsonPath: $.Properties - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/rainmaker-pgr-v2.yml b/egov-searcher/rainmaker-pgr-v2.yml deleted file mode 100644 index 252cd0bc..00000000 --- a/egov-searcher/rainmaker-pgr-v2.yml +++ /dev/null @@ -1,215 +0,0 @@ -SearchDefinitions: - moduleName: rainmaker-pgr-V2 - summary: PGR resolver for Rainmaker - version: 1.0.0 - definitions: - - name: serviceSearchWithDetails - query: - baseQuery: select array_to_json(array_agg(row_to_json(serviceRequests))) from (select (select (select (row_to_json(services)) from ( select *, (select (select row_to_json(auditDetails) from (select createdtime, lastmodifiedtime, createdby, lastmodifiedby from eg_pgr_service where svc.serviceRequestId=eg_pgr_service.serviceRequestId) auditDetails) as auditDetails), (select (select (row_to_json(addressDetail)) from (select * from eg_pgr_address where eg_pgr_address.uuid=eg_pgr_service.addressid) addressDetail) as addressDetail) from eg_pgr_service svc where svc.serviceRequestId=eg_pgr_service.serviceRequestId order by createdtime desc) services) as services),(select (select array_to_json(array_agg(row_to_json(actionHistory))) from ( select * from eg_pgr_action where businessKey=eg_pgr_service.serviceRequestId order by "when" desc) actionHistory) as actionHistory) from eg_pgr_service $where order by createdtime desc $pagination) serviceRequests - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - operator: LIKE - - name: servicerequestid - isMandatory: false - jsonPath: $.searchCriteria.serviceRequestId - - name: servicerequestid - isMandatory: false - jsonPath: $.searchCriteria.complaintId - operator: LIKE - - name: accountid - isMandatory: false - jsonPath: $.searchCriteria.accountId - - name: status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: createdtime - isMandatory: false - operator: GE - jsonPath: $.searchCriteria.startDate - - name: createdtime - isMandatory: false - operator: LE - jsonPath: $.searchCriteria.endDate - - name: lastmodifiedtime - isMandatory: false - jsonPath: $.searchCriteria.lastUpdatedSince - - name: serviceCode - isMandatory: false - jsonPath: $.searchCriteria.serviceCodes - - name: phone - isMandatory: false - jsonPath: $.searchCriteria.phone - - name: createdby - isMandatory: false - jsonPath: $.searchCriteria.createdBy - - name: active - isMandatory: false - jsonPath: $.searchCriteria.active - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.services - responseInfoPath: $.ResponseInfo - - - name: getServiceRequestsOnAssignedTo - query: - baseQuery: select array_to_json(array_agg(row_to_json(servicesRequestIds))) from (select businessKey from eg_pgr_action $where AND eg_pgr_action.when IN (select max("when") from eg_pgr_action where assignee NOTNULL group by businessKey)) servicesRequestIds - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: assignee - isMandatory: true - jsonPath: $.searchCriteria.assignedTo - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.servicesRequestIds - responseInfoPath: $.ResponseInfo - - - - name: count - query: - baseQuery: select (row_to_json(services)) from ( select count(*) from eg_pgr_service $where) as services - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - operator: LIKE - - name: servicerequestid - isMandatory: false - jsonPath: $.searchCriteria.serviceRequestId - operator: LIKE - - name: accountid - isMandatory: false - jsonPath: $.searchCriteria.accountId - - name: status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: createdtime - isMandatory: false - operator: GE - jsonPath: $.searchCriteria.startDate - - name: createdtime - isMandatory: false - operator: LE - jsonPath: $.searchCriteria.endDate - - name: lastmodifiedtime - isMandatory: false - jsonPath: $.searchCriteria.lastUpdatedSince - - name: serviceCode - isMandatory: false - jsonPath: $.searchCriteria.serviceCodes - - name: phone - isMandatory: false - jsonPath: $.searchCriteria.phone - - name: active - isMandatory: false - jsonPath: $.searchCriteria.active - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.count - responseInfoPath: $.ResponseInfo - - - name: plainSearch - query: - baseQuery: SELECT Array_to_json(Array_agg(Row_to_json(servicerequests))) FROM (SELECT (SELECT (SELECT ( Row_to_json(services) )FROM (SELECT *, (SELECT (SELECT Row_to_json(auditdetails) FROM (SELECT createdtime FROM eg_pgr_service WHERE svc.servicerequestid = eg_pgr_service.servicerequestid) auditDetails) AS auditDetails), (SELECT (SELECT ( Row_to_json( addressdetail) ) FROM (SELECT * FROM eg_pgr_address WHERE eg_pgr_address.uuid = eg_pgr_service.addressid) addressDetail) AS addressDetail) FROM eg_pgr_service svc WHERE svc.servicerequestid = eg_pgr_service.servicerequestid ORDER BY createdtime DESC) services) AS services), (SELECT (SELECT Array_to_json(Array_agg(Row_to_json(actionhistory))) FROM (SELECT * FROM eg_pgr_action WHERE businesskey = eg_pgr_service.servicerequestid ORDER BY "when" DESC) actionHistory) AS actionHistory) FROM eg_pgr_service $where AND servicerequestid in (Select servicerequestid from eg_pgr_service ORDER BY createdtime ASC $pagination) ORDER BY createdtime ASC) serviceRequests; - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - operator: LIKE - - name: servicerequestid - isMandatory: false - jsonPath: $.searchCriteria.serviceRequestId - - name: servicerequestid - isMandatory: false - jsonPath: $.searchCriteria.complaintId - operator: LIKE - - name: accountid - isMandatory: false - jsonPath: $.searchCriteria.accountId - - name: status - isMandatory: false - jsonPath: $.searchCriteria.status - - name: createdtime - isMandatory: false - operator: GE - jsonPath: $.searchCriteria.startDate - - name: createdtime - isMandatory: false - operator: LE - jsonPath: $.searchCriteria.endDate - - name: lastmodifiedtime - isMandatory: false - jsonPath: $.searchCriteria.lastUpdatedSince - - name: serviceCode - isMandatory: false - jsonPath: $.searchCriteria.serviceCodes - - name: phone - isMandatory: false - jsonPath: $.searchCriteria.phone - - name: createdby - isMandatory: false - jsonPath: $.searchCriteria.createdBy - - name: active - isMandatory: false - jsonPath: $.searchCriteria.active - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.services - responseInfoPath: $.ResponseInfo - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/egov-searcher/rainmaker-tl.yml b/egov-searcher/rainmaker-tl.yml deleted file mode 100644 index d5ac3adc..00000000 --- a/egov-searcher/rainmaker-tl.yml +++ /dev/null @@ -1,26 +0,0 @@ -SearchDefinitions: - moduleName: tlservice-indexer - summary: Searcher for TradeLicense - version: 1.0.0 - definitions: - - name: serviceTradelicense - query: - baseQuery: select array_to_json(array_agg(row_to_json(result))) from ( select id,tenantid,licensetype,licensenumber,applicationnumber,oldlicensenumber,propertyid,oldpropertyid,accountid, tradename,applicationdate,commencementdate,issueddate,financialyear,validfrom,validto,action, null as assignee, null as wfdocuments,status, applicationdate,commencementdate, (select row_to_json(tltradelicensedetail) from (select id,surveyno,subownershipcategory,structuretype,operationalarea,noofemployees,adhocexemption, adhocpenalty,adhocexemptionreason,adhocpenaltyreason, (select array_to_json(array_agg(row_to_json(tlowner))) from (select isprimaryowner,ownershippercentage,ownertype, institutionid,(select array_to_json(array_agg(row_to_json(tlownerdoc))) from (select * from eg_tl_document_owner) tlownerdoc where tlownerdoc.userid = tlowner.id) documents,tlowner.active as useractive,relationship,urid id,uuid,username,password,salutation,name,(CASE gender WHEN 1 THEN 'FEMALE' WHEN 2 THEN 'MALE' ELSE 'OTHERS' END) AS gender,mobilenumber,emailid, altcontactnumber, pan, aadhaarnumber, permanentaddress, permanentcity, permanentpincode, correspondencecity, correspondencepincode, correspondenceaddress, u.active, TRUNC(EXTRACT(EPOCH FROM dob::timestamp AT time zone 'Asia/Kolkata'))*1000 dob, TRUNC(EXTRACT(EPOCH FROM pwdexpirydate::timestamp AT time zone 'Asia/Kolkata'))*1000 pwdexpirydate, locale,utype as type,signature,accountlocked,Roles,guardian as fatherorhusbandname, (CASE bloodgroup WHEN '' THEN null ELSE bloodgroup END) bloodgroup, identificationmark,photo, (CASE WHEN ucreatedby is null THEN 0 ELSE ucreatedby END)::text createdby, TRUNC(EXTRACT(EPOCH FROM ucreateddate::timestamp AT time zone 'Asia/Kolkata'))*1000 createddate, (CASE WHEN ulastmodifiedby is null THEN 0 ELSE ulastmodifiedby END)::text lastmodifiedby, TRUNC(EXTRACT(EPOCH FROM ulastmodifieddate::timestamp AT time zone 'Asia/Kolkata'))*1000 lastmodifieddate, null as otpreference,utenantid tenantid from eg_tl_owner tlowner left join ( select *,users.id urid,users.type utype, users.createdby ucreatedby, users.createddate ucreateddate, users.lastmodifiedby ulastmodifiedby, users.lastmodifieddate ulastmodifieddate, users.tenantid utenantid, addr1.address as permanentaddress, addr1.city as permanentcity, addr1.pincode as permanentpincode, addr2.address as correspondenceaddress, addr2.city as correspondencecity, addr2.pincode as correspondencepincode,(select array_to_json(array_agg(row_to_json(rolejson))) from (select null as id,role_code code from eg_userrole_v1 roles where roles.user_id=users.id) rolejson) Roles from eg_user users left outer join eg_user_address addr1 ON users.id = addr1.userid and addr1.type='PERMANENT' left outer join eg_user_address addr2 ON users.id = addr2.userid and addr2.type='CORRESPONDANCE') u on tlowner.id=u.uuid where tradelicensedetailid = tld.id) tlowner ) owners, null as channel, (select row_to_json(tladdress) from (select id,tenantid,doorno,latitude,longitude, addressid,addressnumber,type,addressline1,addressline2,landmark,city,pincode,detail,buildingname,street, (select row_to_json(loc) from (select locality as code from eg_tl_address addr where addr.tradelicensedetailid = tld.id) loc) locality from eg_tl_address addr where addr.tradelicensedetailid = tld.id) tladdress) address, (select array_to_json(array_agg(row_to_json(tlunit))) from (select id,tenantid,active,tradetype,uom,uomvalue, null as auditdetails from eg_tl_tradeunit trunit where trunit.tradelicensedetailid = tld.id) tlunit ) tradeunits, (select array_to_json(array_agg(row_to_json(tlacc))) from (select id,tenantid,active,accessorycategory, uom,uomvalue,null as count,null as auditdetails from eg_tl_accessory where tradelicensedetailid = tld.id) tlacc ) accessories, (select array_to_json(array_agg(row_to_json(tlapldoc))) from (select id,active,tenantid,documenttype,filestoreid, null as documentuid, null as auditdetails from eg_tl_applicationdocument where tradelicensedetailid = tld.id) tlapldoc ) applicationdocuments, (select array_to_json(array_agg(row_to_json(tlverdoc))) from (select * from eg_tl_verificationdocument) tlverdoc where tlverdoc.tradelicensedetailid = tld.id) verificationdocuments, additionaldetail, (select array_to_json(array_agg(row_to_json(tlinsti))) from (select * from eg_tl_institution) tlinsti where tlinsti.tradelicensedetailid = tld.id) institution, (select row_to_json(audit) from (select tld.createdBy,tld.lastModifiedBy,tld.createdTime,tld.createdTime as lastModifiedTime) as audit) as auditdetails from eg_tl_tradelicensedetail tld where tld.tradelicenseid=tl.id) tltradelicensedetail ) tradelicensedetail, null as calculation, (select row_to_json(audit) from (select tl.createdBy,tl.lastModifiedBy,tl.createdTime,tl.lastModifiedTime) as audit) as auditdetails,null as comment from eg_tl_tradelicense tl $where AND tl.id in (select id from eg_tl_tradelicense order by createdtime ASC $pagination)) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - operator: LIKE - pagination: - noOfRecords: $.searchCriteria.noOfRecords - offset: $.searchCriteria.offset - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.Licenses - responseInfoPath: $.ResponseInfo - diff --git a/egov-searcher/sewerageopensearch.yml b/egov-searcher/sewerageopensearch.yml deleted file mode 100644 index 4644baeb..00000000 --- a/egov-searcher/sewerageopensearch.yml +++ /dev/null @@ -1,41 +0,0 @@ -SearchDefinitions: - moduleName: sewerage-services - summary: Sewerage Services Open API - version: 1.0.0 - definitions: - - name: sewerageopensearch - query: - baseQuery: Select row_to_json(result) from - ( - select sewerage.applicationtype, sewerage.applicationno, sewerage.connectionno, sewerage.locality, sewerage.createdtime, sewerage.applicationstatus, sewerage.status, sewerage.property_id from eg_sw_connection as sewerage - INNER JOIN eg_pt_property pt ON pt.propertyid = sewerage.property_id $where - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: sewerage.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: pt.propertyid - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: sewerage.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationno - - name: sewerage.connectionno - isMandatory: false - jsonPath: $.searchCriteria.connectionno - - name: sewerage.property_id - isMandatory: false - jsonPath: $.searchCriteria.uuid - - name: sewerage.locality - isMandatory: true - jsonPath: $.searchCriteria.locality - - - output: - jsonFormat: {"ResponseInfo": {},"SewerageConnections": []} - outJsonPath: $.SewerageConnections - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/wateropensearch.yml b/egov-searcher/wateropensearch.yml deleted file mode 100644 index fd78dc0d..00000000 --- a/egov-searcher/wateropensearch.yml +++ /dev/null @@ -1,44 +0,0 @@ -SearchDefinitions: - moduleName: water-services - summary: Water Services Open API - version: 1.0.0 - definitions: - - name: wateropensearch - decryptionPathId: waterOpenSearch - query: - baseQuery: Select row_to_json(result) from - ( - select water.applicationtype, water.applicationno, water.connectionno, water.locality, water.createdtime, water.applicationstatus, water.status, water.property_id, owner.userid as uuid, u.name as name from eg_ws_connection as water - INNER JOIN eg_pt_property pt ON pt.propertyid = water.property_id - INNER JOIN eg_pt_owner owner ON owner.propertyid=pt.id - INNER JOIN eg_user as u on u.uuid = owner.userid $where - ) result - groupBy: - orderBy: - searchParams: - condition: AND - params: - - name: water.tenantid - isMandatory: true - jsonPath: $.searchCriteria.tenantId - - name: pt.propertyid - isMandatory: false - jsonPath: $.searchCriteria.propertyId - - name: water.applicationno - isMandatory: false - jsonPath: $.searchCriteria.applicationno - - name: water.connectionno - isMandatory: false - jsonPath: $.searchCriteria.connectionno - - name: water.property_id - isMandatory: false - jsonPath: $.searchCriteria.uuid - - name: water.locality - isMandatory: true - jsonPath: $.searchCriteria.locality - - - output: - jsonFormat: {"ResponseInfo": {},"WaterConnection": []} - outJsonPath: $.WaterConnection - responseInfoPath: $.ResponseInfo diff --git a/egov-searcher/weekly-impact-emailer-searcher.yml b/egov-searcher/weekly-impact-emailer-searcher.yml deleted file mode 100644 index c044ca5f..00000000 --- a/egov-searcher/weekly-impact-emailer-searcher.yml +++ /dev/null @@ -1,116 +0,0 @@ - SearchDefinitions: - moduleName: impactemailer - summary: Weekly impact emailer cron - version: 1.0.0 - definitions: - - name: stateWideData - query: - baseQuery: select array_to_json(array_agg(row_to_json(stateWideReports))) from ((SELECT (SELECT count(*) FROM ((SELECT DISTINCT tenantid FROM eg_pt_property_v2 WHERE (createdtime/1000) <= (extract(epoch from NOW())) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_tl_tradelicense WHERE (createdtime/1000) <= (extract(epoch from NOW())) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_pgr_service WHERE (createdtime/1000) <= (extract(epoch from NOW())) AND tenantid != 'pb.testing')) AS tenants) as ulbCovered,(SELECT TRUNC(((SELECT SUM(ins.amount) FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (rh.receiptdate/1000) <= (extract(epoch from NOW())) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') + (SELECT SUM(ins.amount) FROM eg_tl_tradelicense tl INNER JOIN egcl_receiptheader_v1 rh ON tl.applicationnumber = rh.consumercode INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (rh.receiptdate/1000) <= (extract(epoch from NOW())) AND tl.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED')) / 10000000, 3)) as revenueCollected,(SELECT (SELECT count(*) FROM eg_pt_property_v2 WHERE (createdtime/1000) <= (extract(epoch from NOW())) AND tenantid != 'pb.testing') + (SELECT count(*) FROM eg_tl_tradelicense WHERE (createdtime/1000) <= (extract(epoch from NOW())) AND tenantid != 'pb.testing')) as servicesApplied, (SELECT count(*) FROM eg_user WHERE (createddate <= NOW()) AND tenantid != 'pb.testing' AND type = 'CITIZEN') as noOfUsersRegistered, 'Week0' as day) UNION (SELECT (SELECT count(*) FROM ((SELECT DISTINCT tenantid FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing')) AS tenants) as ulbCovered,(SELECT TRUNC(((SELECT SUM(ins.amount) FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') + (SELECT SUM(ins.amount) FROM eg_tl_tradelicense tl INNER JOIN egcl_receiptheader_v1 rh ON tl.applicationnumber = rh.consumercode INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tl.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED')) / 10000000, 3)) as revenueCollected,(SELECT (SELECT count(*) FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') + (SELECT count(*) FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing')) as servicesApplied, (SELECT count(*) FROM eg_user WHERE createddate <= to_timestamp((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing' AND type = 'CITIZEN') as noOfUsersRegistered, 'Week1' as day) UNION (SELECT (SELECT count(*) FROM ((SELECT DISTINCT tenantid FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing')) AS tenants) as ulbCovered,(SELECT TRUNC(((SELECT SUM(ins.amount) FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') + (SELECT SUM(ins.amount) FROM eg_tl_tradelicense tl INNER JOIN egcl_receiptheader_v1 rh ON tl.applicationnumber = rh.consumercode INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tl.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED')) / 10000000, 3)) as revenueCollected,(SELECT (SELECT count(*) FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') + (SELECT count(*) FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing')) as servicesApplied, (SELECT count(*) FROM eg_user WHERE createddate <= to_timestamp((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing' AND type = 'CITIZEN') as noOfUsersRegistered, 'Week2' as day) UNION (SELECT (SELECT count(*) FROM ((SELECT DISTINCT tenantid FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing')) AS tenants) as ulbCovered,(SELECT TRUNC(((SELECT SUM(ins.amount) FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') + (SELECT SUM(ins.amount) FROM eg_tl_tradelicense tl INNER JOIN egcl_receiptheader_v1 rh ON tl.applicationnumber = rh.consumercode INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tl.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED')) / 10000000, 3)) as revenueCollected,(SELECT (SELECT count(*) FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') + (SELECT count(*) FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing')) as servicesApplied, (SELECT count(*) FROM eg_user WHERE createddate <= to_timestamp((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing' AND type = 'CITIZEN') as noOfUsersRegistered, 'Week3' as day) UNION (SELECT (SELECT count(*) FROM ((SELECT DISTINCT tenantid FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing')) AS tenants) as ulbCovered,(SELECT TRUNC(((SELECT SUM(ins.amount) FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') + (SELECT SUM(ins.amount) FROM eg_tl_tradelicense tl INNER JOIN egcl_receiptheader_v1 rh ON tl.applicationnumber = rh.consumercode INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tl.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED')) / 10000000, 3)) as revenueCollected,(SELECT (SELECT count(*) FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') + (SELECT count(*) FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing')) as servicesApplied, (SELECT count(*) FROM eg_user WHERE createddate <= to_timestamp((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing' AND type = 'CITIZEN') as noOfUsersRegistered, 'Week4' as day) UNION (SELECT (SELECT count(*) FROM ((SELECT DISTINCT tenantid FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') UNION (SELECT DISTINCT tenantid FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing')) AS tenants) as ulbCovered,(SELECT TRUNC(((SELECT SUM(ins.amount) FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') + (SELECT SUM(ins.amount) FROM eg_tl_tradelicense tl INNER JOIN egcl_receiptheader_v1 rh ON tl.applicationnumber = rh.consumercode INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tl.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED')) / 10000000, 3)) as revenueCollected, (SELECT (SELECT count(*) FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') + (SELECT count(*) FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing')) as servicesApplied, (SELECT count(*) FROM eg_user WHERE createddate <= to_timestamp((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing' AND type = 'CITIZEN') as noOfUsersRegistered, 'Week5' as day)) stateWideReports - searchParams: - condition: AND - params: - - name: intervalinsecs - isMandatory: true - jsonPath: $.searchCriteria.intervalinsecs - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.data - responseInfoPath: $.ResponseInfo - - - - - name: pgrData - query: - baseQuery: select array_to_json(array_agg(row_to_json(pgrReports))) from ((SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pgr_service WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing'), count(*) as totalComplaints, (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE status = 'closed' OR status = 'resolved' AND (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week0' as day FROM eg_pgr_service WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing') UNION (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing'), count(*) as totalComplaints, (SELECT (CASE WHEN (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') != 0 THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE status = 'closed' OR status = 'resolved' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week1' as day FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') UNION (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing'), count(*) as totalComplaints, (SELECT (CASE WHEN (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') != 0 THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE status = 'closed' OR status = 'resolved' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week2' as day FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') UNION (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing'), count(*) as totalComplaints, (SELECT (CASE WHEN (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') != 0 THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE status = 'closed' OR status = 'resolved' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week3' as day FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') UNION (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing'), count(*) as totalComplaints, (SELECT (CASE WHEN (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') != 0 THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE status = 'closed' OR status = 'resolved' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week4' as day FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') UNION (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing'), count(*) as totalComplaints, (SELECT (CASE WHEN (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') != 0 THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE status = 'closed' OR status = 'resolved' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week5' as day FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing')) pgrReports - searchParams: - condition: AND - params: - - name: intervalinsecs - isMandatory: true - jsonPath: $.searchCriteria.intervalinsecs - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.data - responseInfoPath: $.ResponseInfo - - - - name: pgrChannelData - query: - baseQuery: select array_to_json(array_agg(row_to_json(pgrChannel))) from ((SELECT (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'ivr' AND (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as ivr), (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'web' AND (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as webapp),(SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'mobileapp' AND (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as mobileapp), 'Week0' as day FROM eg_pgr_service LIMIT 1) UNION (SELECT (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'ivr' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'web' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal),(SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'mobileapp' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week1' as day FROM eg_pgr_service LIMIT 1) UNION (SELECT (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'ivr' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'web' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal),(SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'mobileapp' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week2' as day FROM eg_pgr_service LIMIT 1) UNION (SELECT (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'ivr' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'web' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'mobileapp' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week3' as day FROM eg_pgr_service LIMIT 1) UNION (SELECT (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'ivr' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'web' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'mobileapp' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week4' as day FROM eg_pgr_service LIMIT 1) UNION (SELECT (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'ivr' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'web' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), (SELECT (CASE WHEN ((SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') != 0) THEN CONCAT(((SELECT count(*) FROM eg_pgr_service WHERE source = 'mobileapp' AND (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing') * 100 / (SELECT count(*) FROM eg_pgr_service WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing')), '%') ELSE '0%' END) as redressal), 'Week5' as day FROM eg_pgr_service LIMIT 1)) pgrChannel - searchParams: - condition: AND - params: - - name: intervalinsecs - isMandatory: true - jsonPath: $.searchCriteria.intervalinsecs - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.data - responseInfoPath: $.ResponseInfo - - - - - name: ptData - query: - baseQuery: select array_to_json(array_agg(row_to_json(ptReports))) from ((SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pt_property_v2 WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing'), TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, CONCAT((count(DISTINCT pt.propertyid) / 1000), '.', MOD(count(DISTINCT pt.propertyid), 1000)) as noofpropertiescreated, 'Week0' as day FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (rh.receiptdate/1000) <= (extract(epoch from NOW())) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') UNION (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing'), TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, CONCAT((count(DISTINCT pt.propertyid) / 1000), '.', MOD(count(DISTINCT pt.propertyid), 1000)) as noofpropertiescreated, 'Week1' as day FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (rh.receiptdate/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') UNION (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing'), TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, CONCAT((count(DISTINCT pt.propertyid) / 1000), '.', MOD(count(DISTINCT pt.propertyid), 1000)) as noofpropertiescreated, 'Week2' as day FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (rh.receiptdate/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') UNION (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing'), TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, CONCAT((count(DISTINCT pt.propertyid) / 1000), '.', MOD(count(DISTINCT pt.propertyid), 1000)) as noofpropertiescreated, 'Week3' as day FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (rh.receiptdate/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') UNION (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing'), TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, CONCAT((count(DISTINCT pt.propertyid) / 1000), '.', MOD(count(DISTINCT pt.propertyid), 1000)) as noofpropertiescreated, 'Week4' as day FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (rh.receiptdate/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED') UNION (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_pt_property_v2 WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing'), TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, CONCAT((count(DISTINCT pt.propertyid) / 1000), '.', MOD(count(DISTINCT pt.propertyid), 1000)) as noofpropertiescreated, 'Week5' as day FROM eg_pt_property_v2 pt INNER JOIN egcl_receiptheader_v1 rh ON pt.propertyid = SPLIT_PART(rh.consumercode, ':', 1) INNER JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id WHERE (rh.receiptdate/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND pt.tenantid != 'pb.testing' AND rh.status != 'Cancelled' AND ins.instrumentstatus != 'CANCELLED')) ptReports - - searchParams: - condition: AND - params: - - name: intervalinsecs - isMandatory: true - jsonPath: $.searchCriteria.intervalinsecs - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.data - responseInfoPath: $.ResponseInfo - - - - - name: tlData - query: - baseQuery: select array_to_json(array_agg(row_to_json(tlReports))) from (SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_tl_tradelicense WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing' ), count(*) as licenseIssued, 'Week0' as day FROM eg_tl_tradelicense WHERE (createdtime/1000) <= (extract (epoch from NOW())) AND tenantid != 'pb.testing' AND status = 'APPROVED' UNION SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing'), count(*) as licenseIssued, 'Week1' as day FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800) AND tenantid != 'pb.testing' AND status = 'APPROVED' UNION SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing'), count(*) as licenseIssued, 'Week2' as day FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 2) AND tenantid != 'pb.testing' AND status = 'APPROVED' UNION SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing'), count(*) as licenseIssued, 'Week3' as day FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 3) AND tenantid != 'pb.testing' AND status = 'APPROVED' UNION SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing'), count(*) as licenseIssued, 'Week4' as day FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 4) AND tenantid != 'pb.testing' AND status = 'APPROVED' UNION SELECT (SELECT count(DISTINCT tenantid) as ulbCovered FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing'), count(*) as licenseIssued, 'Week5' as day FROM eg_tl_tradelicense WHERE (createdtime/1000) <= ((extract (epoch from (to_timestamp(CONCAT(CURRENT_DATE + integer '1'), 'YYYY-MM-DD H24:MI:SS')))) - 604800 * 5) AND tenantid != 'pb.testing' AND status = 'APPROVED') tlReports - searchParams: - condition: AND - params: - - name: intervalinsecs - isMandatory: true - jsonPath: $.searchCriteria.intervalinsecs - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.data - responseInfoPath: $.ResponseInfo - - - - name: miscCollections - query: - baseQuery: SELECT array_to_json(array_agg(row_to_json(misccollections))) from ((SELECT COUNT(*) as receiptscreated, TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, 'Week0' as day FROM egcl_receiptheader_v1 rh LEFT JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id $where AND (rh.receiptdate/1000) <= (extract(epoch from NOW()))) UNION (SELECT COUNT(*) as receiptscreated, TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, 'Week1' as day FROM egcl_receiptheader_v1 rh LEFT JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id $where AND (rh.receiptdate/1000) <= ((extract(epoch from NOW())) - 604800)) UNION (SELECT COUNT(*) as receiptscreated, TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, 'Week2' as day FROM egcl_receiptheader_v1 rh LEFT JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id $where AND (rh.receiptdate/1000) <= ((extract(epoch from NOW())) - 604800 * 2)) UNION (SELECT COUNT(*) as receiptscreated, TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, 'Week3' as day FROM egcl_receiptheader_v1 rh LEFT JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id $where AND (rh.receiptdate/1000) <= ((extract(epoch from NOW())) - 604800 * 3)) UNION (SELECT COUNT(*) as receiptscreated, TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, 'Week4' as day FROM egcl_receiptheader_v1 rh LEFT JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id $where AND (rh.receiptdate/1000) <= ((extract(epoch from NOW())) - 604800 * 4)) UNION (SELECT COUNT(*) as receiptscreated, TRUNC(SUM(ins.amount) / 10000000, 3) as revenuecollected, 'Week5' as day FROM egcl_receiptheader_v1 rh LEFT JOIN egcl_receiptinstrument_v1 rins ON rh.id = rins.receiptheader INNER JOIN egcl_instrumentheader_v1 ins ON rins.instrumentheader = ins.id $where AND (rh.receiptdate/1000) <= ((extract(epoch from NOW())) - 604800 * 5))) misccollections - searchParams: - condition: AND - params: - - name: rh.tenantid - isMandatory: true - operator: NE - jsonPath: $.searchCriteria.ignoreTenant - - name: rh.businessdetails - isMandatory: false - operator: IN - jsonPath: $.searchCriteria.taxHeads - - name: rh.businessdetails - isMandatory: false - operator: NOT IN - jsonPath: $.searchCriteria.ignoreTaxHeads - - name: rh.status - isMandatory: true - operator: NE - jsonPath: $.searchCriteria.ignoreStatus - - output: - jsonFormat: {"ResponseInfo": {}} - outJsonPath: $.data - responseInfoPath: $.ResponseInfo \ No newline at end of file diff --git a/egov-uploader/billing-service.json b/egov-uploader/billing-service.json deleted file mode 100644 index 3714654f..00000000 --- a/egov-uploader/billing-service.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "moduleName": "Billing-Service", - "Definitions": [ - { - "name": "Upload-Demand", - "uniqueParentKeys": [ - "Consumer Code" - ], - "templateFileName": "demand_template.xls", - "isParentChild": true, - "requests": [ - { - "apiRequest": { - "RequestInfo": { - "apiId": "asset-services", - "ver": null, - "ts": null, - "action": null, - "did": null, - "key": null, - "msgId": null, - "authToken": "51f84bcd-2819-4456-a5b5-10fe644cc40a", - "correlationId": "dd114b8a-a9bb-4933-802a-b40484da487c" - }, - "Demands": { - "tenantId": "tenantId", - "consumerCode": "consumerCode", - "consumerType": "consumerType", - "businessService": "businessService", - "taxPeriodFrom": 111111111111, - "taxPeriodTo": 111111111111, - "payer": { - "uuid": "uuid" - }, - "demandDetails": [ - { - "taxHeadMasterCode": "taxHeadMasterCode", - "taxAmount": 100, - "collectionAmount": 0 - } - ], - "minimumAmountPayable": 1 - } - }, - "excelHeadersToRequestMap": { - "Consumer Code": [ - "$.Demands.consumerCode" - ], - "Consumer Type": [ - "$.Demands.consumerType" - ], - "Business Service": [ - "$.Demands.businessService" - ], - "Tax-Period From": [ - "$.Demands.taxPeriodFrom" - ], - "Tax-Period To": [ - "$.Demands.taxPeriodTo" - ], - "Payer UUID": [ - "$.Demands.payer.uuid" - ], - "Minimum Amount Payable": [ - "$.Demands.minimumAmountPayable" - ], - "TaxHead Master Code": [ - "$.Demands.demandDetails.*.taxHeadMasterCode" - ], - "Tax Amount": [ - "$.Demands.demandDetails.*.taxAmount" - ], - "Collection Amount": [ - "$.Demands.demandDetails.*.collectionAmount" - ], - "TenantId": [ - "$.Demands.tenantId" - ] - }, - "arrayPath": "$.Demands", - "tenantIdPaths": [ - "$.Demands.tenantId" - ], - "url": "http://billing-service:8080/billing-service/demand/_create", - "additionalResFields": { - "$.Demands.*.id": "DemandId" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/pdf-service/data-config/bill-amendment-note.json b/pdf-service/data-config/bill-amendment-note.json deleted file mode 100644 index cf1f0492..00000000 --- a/pdf-service/data-config/bill-amendment-note.json +++ /dev/null @@ -1,613 +0,0 @@ -{ - "key": "bill-amendment-credit-note", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Amendments.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "applicationNo", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.additionalDetails.ownerName" - } - }, - { - "variable": "permanentAddress", - "value": { - "path": "$.additionalDetails.ownerAddress" - } - }, - { - "variable": "date", - "value": { - "path": "$.userInfo.createdDate" - }, - "type":"selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "paymentStatus", - "value": { - "path": "$.paymentStatus" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "waterTax", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'OM.WATER_CONNECTION/DISCONNECTION_FEES_TAX')].taxAmount" - } - }, - { - "variable": "water_cess", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_WATER_CESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "waterCess", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'WS_WATER_CESS')].taxAmount" - } - }, - { - "variable": "interest", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_INTEREST" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "interestAmount", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'WS_TIME_INTEREST')].taxAmount" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "penalty", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_PENALTY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "penaltyAmount", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'WS_ADHOC_PENALTY')].taxAmount" - } - }, - { - "variable": "arrears", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_ARREARS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "arrearsAmount", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'ARREARS_AMOUNT')].taxAmount" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "bill_amendment_application", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_APPLICATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "demand_revision_basis_details", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_DEM_REV_BAS_DET" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "demand_revision_basis", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_DEM_REV_BASIS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "court_order_no", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_COURT_ORDER_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "with_effect_from", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_WITH_EFFECT_FROM" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "demandRevisionBasis", - "value": { - "path": "$.amendmentReason" - } - }, - { - "variable": "courtOrderNo", - "value": { - "path": "$.reasonDocumentNumber" - } - }, - { - "variable": "withEffectFrom", - "value": { - "path": "$.effectiveFrom" - } - }, - { - "variable": "court_order", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_COURT_ORDER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "note_id", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "note_date", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "against", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_AGAINST" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "adjustment_amount_details", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_ADJUSTMENT_AMOUNT_DETAILS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "rs", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_RS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "box_note", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_BOX_NOTE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "box_validity", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_BOX_VALIDITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "self_declaration", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_SELF_DECLARATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "past_bills", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_PAST_BILLS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "courtOrder", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "selfDeclaration", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "pastBills", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "applicationNo", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "bill_amendment_application_number", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_APPLICATION_NUMBER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "adjustment_amount_details", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_ADJUSTMENT_AMOUNT_DETAILS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - - }, - { - "variable": "sl_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SERIAL_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "tax_heads", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_TAX_HEADS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "reduced_amount", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_REDUCED_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "note_type", - "value": { - "path": "$.additionalDetails.noteType" - }, - "localisation": { - "required": true, - "prefix": "PDF_STATIC_LABEL_BILL_AMENDMENT", - "module": "rainmaker-common" - } - }, - { - "variable": "water_tax", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_WATER_TAX" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "totalAmount", - "formula": "{{arrearsAmount}}+{{penaltyAmount}}+{{interestAmount}}+{{waterCess}}+{{waterTax}}" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.businessService}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "variable11", - "value": "$.MdmsRes.tenant.footer[0].receiptFooterContent.*", - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable":"disclaimerContent", - "value":"disclaimer", - "type":"string", - "localisation":{ - "required":true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/bill-amendment.json b/pdf-service/data-config/bill-amendment.json deleted file mode 100644 index a4954a0f..00000000 --- a/pdf-service/data-config/bill-amendment.json +++ /dev/null @@ -1,464 +0,0 @@ -{ - "key": "bill-amendment-summary", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Amendments.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.userInfo.name" - }, - "type":"selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "paymentStatus", - "value": { - "path": "$.paymentStatus" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "bill_amendment_adjusted_amount", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_ADJUSTED_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "waterTax", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'OM.WATER_CONNECTION/DISCONNECTION_FEES_TAX')].taxAmount" - } - }, - { - "variable": "water_cess", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_WATER_CESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "waterCess", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'WS_WATER_CESS')].taxAmount" - } - }, - { - "variable": "interest", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_INTEREST" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "interestAmount", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'WS_TIME_INTEREST')].taxAmount" - } - }, - { - "variable": "penalty", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_PENALTY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "penaltyAmount", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'WS_ADHOC_PENALTY')].taxAmount" - } - }, - { - "variable": "arrears", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_ARREARS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "arrearsAmount", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'ARREARS_AMOUNT')].taxAmount" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "bill_amendment_application", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_APPLICATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "demand_revision_basis_details", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_DEM_REV_BAS_DET" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "demand_revision_basis", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_DEM_REV_BASIS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "court_order_no", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_COURT_ORDER_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "with_effect_from", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_WITH_EFFECT_FROM" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "demandRevisionBasis", - "value": { - "path": "$.amendmentReason" - } - }, - { - "variable": "courtOrderNo", - "value": { - "path": "$.reasonDocumentNumber" - } - }, - { - "variable": "withEffectFrom", - "value": { - "path": "$.effectiveFrom" - } - }, - { - "variable": "court_order", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_COURT_ORDER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "self_declaration", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_SELF_DECLARATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "past_bills", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_PAST_BILLS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "courtOrder", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "selfDeclaration", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "pastBills", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "applicationNo", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "bill_amendment_application_number", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_APPLICATION_NUMBER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "adjustment_amount_details", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_ADJUSTMENT_AMOUNT_DETAILS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - - }, - { - "variable": "sl_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SERIAL_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "tax_heads", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_TAX_HEADS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "reduced_amount", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_REDUCED_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_tax", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_WATER_TAX" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "totalAmount", - "formula": "{{arrearsAmount}}+{{penaltyAmount}}+{{interestAmount}}+{{waterCess}}+{{waterTax}}" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.businessService}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "variable11", - "value": "$.MdmsRes.tenant.footer[0].receiptFooterContent.*", - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable":"disclaimerContent", - "value":"disclaimer", - "type":"string", - "localisation":{ - "required":true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - } - } - ] - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pdf-service/data-config/birth-certificate-pdf.json b/pdf-service/data-config/birth-certificate-pdf.json deleted file mode 100644 index 2e5716b5..00000000 --- a/pdf-service/data-config/birth-certificate-pdf.json +++ /dev/null @@ -1,527 +0,0 @@ -{ - "key": "birth-certificate", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.BirthCertificate.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "logoImage", - "url":"https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type":"image" - }, - { - "variable": "name", - "value": { - "path": "$.fullName" - }, - "type":"setEmpty" - }, - { - "variable": "embeddedUrl", - "value": { - "path": "$.embeddedUrl" - } - }, - { - "variable": "dob", - "value": { - "path": "$.dateofbirth" - }, - "type": "date" - }, - { - "variable": "gender", - "value": { - "path": "$.genderStr" - }, - "type":"setEmpty" - }, - { - "variable": "registrationNo", - "value": { - "path": "$.registrationno" - }, - "type":"setEmpty" - }, - { - "variable": "registration_date", - "value": { - "path": "$.dateofreport" - }, - "type": "date" - }, - { - "variable": "updatedOn", - "value": { - "path": "$.dateofissue" - }, - "type": "date" - }, - { - "variable": "year", - "value": { - "path": "$.year" - }, - "type": "setEmpty" - }, - { - "variable": "fatherName", - "value": { - "path": "$.birthFatherInfo.fullName" - }, - "type":"setEmpty" - }, - { - "variable": "motherName", - "value": { - "path": "$.birthMotherInfo.fullName" - }, - "type":"setEmpty" - }, - { - "variable": "childAddress", - "value": { - "path": "$.birthPresentaddr.fullAddress" - }, - "type":"setEmpty" - }, - { - "variable": "parentsAddress", - "value": { - "path": "$.birthPermaddr.fullAddress" - }, - "type":"setEmpty" - }, - { - "variable": "parentsCity", - "value": { - "path": "$.birthPermaddr.city" - }, - "type":"setEmpty" - }, - { - "variable": "parentsStreet", - "value": { - "path": "$.birthPermaddr.street" - }, - "type":"setEmpty" - }, - { - "variable": "parentsTehsil", - "value": { - "path": "$.birthPermaddr.tehsil" - }, - "type":"setEmpty" - }, - { - "variable": "parentsDistrict", - "value": { - "path": "$.birthPermaddr.district" - }, - "type":"setEmpty" - }, - { - "variable": "fatherUid", - "value": { - "path": "$.birthFatherInfo.aadharno" - }, - "type":"setEmpty" - }, - { - "variable": "motherUid", - "value": { - "path": "$.birthMotherInfo.aadharno" - }, - "type":"setEmpty" - }, - { - "variable": "remarks", - "value": { - "path": "$.remarks" - }, - "type":"setEmpty" - }, - { - "variable": "placeOfBirth", - "value": { - "path": "$.placeofbirth" - }, - "type":"setEmpty" - }, - { - "variable": "issueDate", - "value": { - "path": "$.dateofissue" - }, - "type": "date" - }, - - { - "variable": "certificateType", - "value": { - "path": "$.certificateType" - }, - "type":"setEmpty" - }, - { - "variable": "cantonment-board", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "govt_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_GOVT_UP" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "dept_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_DEPT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - - - { - "variable": "certificate_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_CERTIFICATE_BIRTH" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "certificate_label", - "value": { - "path": "PDF_STATIC_LABEL_BD_EN_CERTIFICATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "rule1_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_RULE_1" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "rule2_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_RULE_2" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "name_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "gender_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_GENDER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "dob_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_DOB" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "pob_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_POB" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "mother_name_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_MOTHER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "father_name_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_FATHER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "mother_uid_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_MOTHER_UID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "father_uid_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_FATHER_UID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "child_address_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_ADDRESS_OF_CHILD_BIRTH" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "parent_address_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_PERMENENT_ADDRESS_OF_PARENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "registration_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_REGISTRATION_NUMBER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "registration_date_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_REGISTRATION_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "remarks_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_REMARKS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "issue_date_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_ISSUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "issuing_authority_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_ISSUING_AUTHORITY_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "instruction1_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_INSTRUCTION_1" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "instruction2_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_INSTRUCTION_2" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "issuing_authority", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BIRTHCERIFICATE_ISSUING_AUTHORITY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - - { - "variable": "cb_letter_label", - "value": { - "path": "PDF_STATIC_LABEL_BD_EN_CB" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - } - - ] - }, - { - "qrcodeConfig": [ - { - "variable": "qr_code_image", - "value":"{{embeddedUrl}}" - } - ] - } - ] - } - ] - } - } diff --git a/pdf-service/data-config/bpa-revocation.json b/pdf-service/data-config/bpa-revocation.json deleted file mode 100644 index 69636148..00000000 --- a/pdf-service/data-config/bpa-revocation.json +++ /dev/null @@ -1,260 +0,0 @@ -{ - "key": "bpa-revocation", - "DataConfigs": { - "serviceName": "rainmaker-bpa", - "version": "1.0.0", - "baseKeyPath": "$.Bpa.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "planPermissionNo", - "value": { - "path": "$.approvalNo" - } - }, - { - "variable": "tenantName", - "value": { - "path": "$.tenantId" - }, - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - }, - { - "variable": "createdDate", - "value": { - "path": "$.auditDetails.createdTime" - }, - "type": "date" - }, - { - "variable": "revocationDate", - "value": { - "path": "$.auditDetails.lastModifiedTime" - }, - "type": "date" - }, - { - "variable": "ownerName", - "value": { - "path": "$.landInfo.owners.*.name" - } - }, - { - "variable": "Muncipal_Council", - "value": { - "path": "BPA_PDF_MUNCIPAL" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "Revocation_Title", - "value": { - "path": "BPA_PDF_BPA_REVOCATION_TITLE" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "Dated", - "value": { - "path": "BPA_PDF_DATED" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "SALUTATION", - "value": { - "path": "BPA_PDF_SALUTATION" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "Permision_Issued", - "value": { - "path": "BPA_PDF_PERMISSION_ISSUED" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "WRT_APPNO", - "value": { - "path": "BPA_PDF_WRT_APPNO" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "dated", - "value": { - "path": "BPA_PDF_DATED_SMALL" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "isRevocated", - "value": { - "path": "BPA_PDF_IS_REVOCATED" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "revocationReasonIs", - "value": { - "path": "BPA_PDF_REASON_REVOCATION_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "noAuthText", - "value": { - "path": "BPA_PDF_NOT_AUTH_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "contactULB", - "value": { - "path": "BPA_PDF_CONTACT_ULB" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BY_ORDER", - "value": { - "path": "BPA_PDF_BY_ORDER" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "AUTH_OFFICER", - "value": { - "path": "BPA_PDF_AUTH_OFFICER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search", - "queryParam": "tenantId=$.tenantId,businessIds=$.applicationNo,history=true", - "apiRequest": null, - "responseMapping": [ - { - "variable": "revocatedBy", - "value": "$.ProcessInstances[?(@.action=='REVOCATE')].assigner.name", - "isUpperCaseRequired": true - }, - { - "variable": "revocationReason", - "value": "$.ProcessInstances[?(@.action=='REVOCATE')].comment" - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/buildingpermit-low.json b/pdf-service/data-config/buildingpermit-low.json deleted file mode 100644 index dbf30355..00000000 --- a/pdf-service/data-config/buildingpermit-low.json +++ /dev/null @@ -1,634 +0,0 @@ -{ - "key": "buildingpermit-low", - "DataConfigs": { - "serviceName": "rainmaker-bpa", - "version": "1.0.0", - "baseKeyPath": "$.Bpa.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "planPermissionNo", - "value": { - "path": "$.approvalNo" - } - }, - { - "variable": "edcrNo", - "value": { - "path": "$.edcrNumber" - } - }, - { - "variable": "createdDate", - "value": { - "path": "$.auditDetails.createdTime" - }, - "type": "date" - }, - { - "variable": "favourOf", - "value": { - "path": "$.landInfo.owners.*.name" - } - }, - { - "variable": "holdingNo", - "value": { - "path": "$.additionalDetails.holdingNo" - } - }, - { - "variable": "validityDate", - "value": { - "path": "$.additionalDetails.validityDate" - }, - "type": "date" - }, - { - "variable": "conditions", - "value": { - "path": "$.additionalDetails" - }, - "type": "array-column", - "format": { - "scema": [ - { - "key": "pendingapproval", - "type" : "array-column" - } - ] - } - }, - { - "variable": "reServeyPlotNo", - "value": { - "path": "$.additionalDetails.reSurveyPlotNo" - } - }, - { - "variable": "townPlanningScheme", - "value": { - "path": "$.additionalDetails.townPlanningScheme" - } - }, - { - "variable": "proposedLandUse", - "value": { - "path": "$.additionalDetails.proposedLandUse" - } - }, - { - "variable": "WRT_TXT", - "value": { - "path": "BOA_PDF_WRT_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "tenantName", - "value": { - "path": "$.tenantId" - }, - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - }, - { - "variable": "GENERATED_ON", - "value": { - "path": "BPA_PDF_GENERATED_ON" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "orderGeneratedOn", - "value": { - "path": "$.approvalDate" - }, - "type": "date" - }, - { - "variable": "Muncipal_Council", - "value": { - "path": "BPA_PDF_MUNCIPAL" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BPA_FORM", - "value": { - "path": "BPA_PDF_FORM" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BPA_FORM_APPROVAL", - "value": { - "path": "BPA_PDF_FORM_APPROVAL_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BPA_BYELAWS", - "value": { - "path": "BPA_PDF_BYELAWS" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PLAN_PERMISION_NO", - "value": { - "path": "BPA_PDF_PLANPERMISSION_NO" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "Dated", - "value": { - "path": "BPA_PDF_DATED" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "dated", - "value": { - "path": "BPA_PDF_DATED_SMALL" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PERMISSION_GRANT_TXT", - "value": { - "path": "BPA_PDF_PERMISSION_GRANT_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "SALUTATION", - "value": { - "path": "BPA_PDF_SALUTATION" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "FOR", - "value": { - "path": "BPA_PDF_FOR" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "DSCR1", - "value": { - "path": "BPA_PDF_DSCR" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PLOT_NO", - "value": { - "path": "BPA_PDF_PLOTNO_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "KHATA_NO", - "value": { - "path": "BPA_PDF_KHATANO_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "HOLDING_NO", - "value": { - "path": "BPA_PDF_HOLDINGNO_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "SERVEY_NO", - "value": { - "path": "BPA_PDF_SERVEYNO_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "TOWNPLANNING_TXT", - "value": { - "path": "BPA_PDF_TOWN_PLANNING_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PROPOSE_LAND", - "value": { - "path": "BPA_PDF_PROPOSE_LAND" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "OF", - "value": { - "path": "BPA_PDF_OF" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "CONDNS_TXT", - "value": { - "path": "BPA_PDF_CONDNS_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PERMIT_DETAILS_TXT", - "value": { - "path": "BPA_PDF_PERMITFEE_DETAILS_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "FEE_DSCR", - "value": { - "path": "BPA_PDF_FEE_DSCR" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "AMOUNT", - "value": { - "path": "BPA_PDF_AMOUNT_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "TOTAL", - "value": { - "path": "BPA_PDF_TOTAL" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BY_ORDER", - "value": { - "path": "BPA_PDF_BY_ORDER" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "AUTH_OFFICER", - "value": { - "path": "BPA_PDF_COMMISSIONER" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "VALIDITY_DSCR", - "value": { - "path": "BPA_PDF_VALIDITY_DSCR" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "ONLY", - "value": { - "path": "BPA_PDF_ONLY" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "NOTE", - "value": { - "path": "BPA_PDF_NOTE" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "SUMMARY1", - "value": { - "path": "BPA_PDF_SUMMARY1" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "SUMMARY2", - "value": { - "path": "BPA_PDF_SUMMARY2" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "AUTH_DSCR", - "value": { - "path": "BPA_PDF_AUTH_DSCR" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "Bihar_Tenant", - "value": { - "path": "BIHAR_TENANT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "applicantName", - "value": { - "path": "$.edcrDetail[0].planDetail.planInformation.applicantName" - } - }, - { - "variable": "applicationDate", - "value": { - "path": "$.applicationDate" - }, - "type": "date" - }, - { - "variable": "plotNo", - "value": { - "path": "$.edcrDetail[0].planDetail.planInformation.plotNo" - } - }, - { - "variable": "khataNo", - "value": { - "path": "$.edcrDetail[0].planDetail.planInformation.khataNo" - } - }, - { - "variable": "reportrunDate", - "value": { - "path": "$.additionalDetails.runDate" - }, - "type":"date" - }, - { - "variable": "REPORT_RUNDATE", - "value": { - "path": "BPA_PDF_REPORT_RUNDATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://collection-services:8080/collection-services/payments/BPA.LOW_RISK_PERMIT_FEE/_search", - "queryParam": "tenantId=$.tenantId,consumerCodes=$.applicationNo", - "apiRequest": null, - "responseMapping": [ - { - "variable": "paymentDetails", - "value": "$.Payments[0].paymentDetails[0].bill.billDetails[0].billAccountDetails.*", - "type" : "array", - "format":{ - "type":"string", - "scema":[ - { - "variable": "headCode", - "value":"taxHeadCode", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "amnt", - "value":"amount" - } - ] - } - }, - { - "variable" : "totalDue", - "value" : "$.Payments[0].paymentDetails[0].bill.billDetails[0].amount" - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - }, - { - "qrcodeConfig": [ - { - "variable": "qrCode", - "value": "Applicant Name: {{favourOf}}, Permit Order Number : {{planPermissionNo}}, Permit Order Date : {{orderGeneratedOn}}, eDCR Scrutiny Number: {{edcrNo}}" - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/buildingpermit.json b/pdf-service/data-config/buildingpermit.json deleted file mode 100644 index a5d8e14a..00000000 --- a/pdf-service/data-config/buildingpermit.json +++ /dev/null @@ -1,660 +0,0 @@ -{ - "key": "buildingpermit", - "DataConfigs": { - "serviceName": "rainmaker-bpa", - "version": "1.0.0", - "baseKeyPath": "$.Bpa.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "planPermissionNo", - "value": { - "path": "$.approvalNo" - } - }, - { - "variable": "edcrNo", - "value": { - "path": "$.edcrNumber" - } - }, - { - "variable": "createdDate", - "value": { - "path": "$.auditDetails.createdTime" - }, - "type": "date" - }, - { - "variable": "favourOf", - "value": { - "path": "$.landInfo.owners.*.name" - } - }, - { - "variable": "holdingNo", - "value": { - "path": "$.additionalDetails.holdingNo" - } - }, - { - "variable": "validityDate", - "value": { - "path": "$.additionalDetails.validityDate" - }, - "type": "date" - }, - { - "variable": "conditions", - "value": { - "path": "$.additionalDetails" - }, - "type": "array-column", - "format": { - "scema": [ - { - "key": "pendingapproval", - "type" : "array-orderedlist" - } - ] - } - }, - { - "variable": "reServeyPlotNo", - "value": { - "path": "$.additionalDetails.reSurveyPlotNo" - } - }, - { - "variable": "townPlanningScheme", - "value": { - "path": "$.additionalDetails.townPlanningScheme" - } - }, - { - "variable": "proposedLandUse", - "value": { - "path": "$.additionalDetails.proposedLandUse" - } - }, - { - "variable": "WRT_TXT", - "value": { - "path": "BOA_PDF_WRT_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "tenantName", - "value": { - "path": "$.tenantId" - }, - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - }, - { - "variable": "GENERATED_ON", - "value": { - "path": "BPA_PDF_GENERATED_ON" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "orderGeneratedOn", - "value": { - "path": "$.approvalDate" - }, - "type": "date" - }, - { - "variable": "Muncipal_Council", - "value": { - "path": "BPA_PDF_MUNCIPAL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BPA_FORM", - "value": { - "path": "BPA_PDF_FORM" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BPA_FORM_APPROVAL", - "value": { - "path": "BPA_PDF_FORM_APPROVAL_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BPA_BYELAWS", - "value": { - "path": "BPA_PDF_BYELAWS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PLAN_PERMISION_NO", - "value": { - "path": "BPA_PDF_PLANPERMISSION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "Dated", - "value": { - "path": "BPA_PDF_DATED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "dated", - "value": { - "path": "BPA_PDF_DATED_SMALL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PERMISSION_GRANT_TXT", - "value": { - "path": "BPA_PDF_PERMISSION_GRANT_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "SALUTATION", - "value": { - "path": "BPA_PDF_SALUTATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "FOR", - "value": { - "path": "BPA_PDF_FOR" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "DSCR1", - "value": { - "path": "BPA_PDF_DSCR" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PLOT_NO", - "value": { - "path": "BPA_PDF_PLOTNO_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "KHATA_NO", - "value": { - "path": "BPA_PDF_KHATANO_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "HOLDING_NO", - "value": { - "path": "BPA_PDF_HOLDINGNO_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "SERVEY_NO", - "value": { - "path": "BPA_PDF_SERVEYNO_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "TOWNPLANNING_TXT", - "value": { - "path": "BPA_PDF_TOWN_PLANNING_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PROPOSE_LAND", - "value": { - "path": "BPA_PDF_PROPOSE_LAND" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "OF", - "value": { - "path": "BPA_PDF_OF" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "CONDNS_TXT", - "value": { - "path": "BPA_PDF_CONDNS_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PERMIT_DETAILS_TXT", - "value": { - "path": "BPA_PDF_PERMITFEE_DETAILS_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "FEE_DSCR", - "value": { - "path": "BPA_PDF_FEE_DSCR" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "AMOUNT", - "value": { - "path": "BPA_PDF_AMOUNT_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "TOTAL", - "value": { - "path": "BPA_PDF_TOTAL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BY_ORDER", - "value": { - "path": "BPA_PDF_BY_ORDER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "AUTH_OFFICER", - "value": { - "path": "BPA_PDF_AUTH_OFFICER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "VALIDITY_DSCR", - "value": { - "path": "BPA_PDF_VALIDITY_DSCR" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "ONLY", - "value": { - "path": "BPA_PDF_ONLY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "NOTE", - "value": { - "path": "BPA_PDF_NOTE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "SUMMARY1", - "value": { - "path": "BPA_PDF_SUMMARY1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "SUMMARY2", - "value": { - "path": "BPA_PDF_SUMMARY2" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "AUTH_DSCR", - "value": { - "path": "BPA_PDF_AUTH_DSCR" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "Bihar_Tenant", - "value": { - "path": "BIHAR_TENANT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "applicantName", - "value": { - "path": "$.edcrDetail[0].planDetail.planInformation.applicantName" - } - }, - { - "variable": "applicationDate", - "value": { - "path": "$.applicationDate" - }, - "type": "date" - }, - { - "variable": "plotNo", - "value": { - "path": "$.edcrDetail[0].planDetail.planInformation.plotNo" - } - }, - { - "variable": "khataNo", - "value": { - "path": "$.edcrDetail[0].planDetail.planInformation.khataNo" - } - }, - { - "variable": "reportrunDate", - "value": { - "path": "$.additionalDetails.runDate" - }, - "type":"date" - }, - { - "variable": "REPORT_RUNDATE", - "value": { - "path": "BPA_PDF_REPORT_RUNDATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://collection-services:8080/collection-services/payments/BPA.NC_SAN_FEE/_search", - "queryParam": "tenantId=$.tenantId,consumerCodes=$.applicationNo", - "apiRequest": null, - "responseMapping": [ - { - "variable": "sanHeadCode", - "value": "$.Payments[0].paymentDetails[0].bill.billDetails[0].billAccountDetails[0].taxHeadCode", - "localisation": { - "required": true, - "prefix": "BPA", - "module": "rainmaker-bpa" - } - }, - { - "variable": "sanFee", - "value": "$.Payments[0].paymentDetails[0].bill.billDetails[0].billAccountDetails[0].amount" - } - ] - }, - { - "path": "http://collection-services:8080/collection-services/payments/BPA.NC_APP_FEE/_search", - "queryParam": "tenantId=$.tenantId,consumerCodes=$.applicationNo", - "apiRequest": null, - "responseMapping": [ - { - "variable": "appHeadCode", - "value": "$.Payments[0].paymentDetails[0].bill.billDetails[0].billAccountDetails[0].taxHeadCode", - "localisation": { - "required": true, - "prefix": "BPA", - "module": "rainmaker-bpa" - } - }, - { - "variable": "appFee", - "value": "$.Payments[0].paymentDetails[0].bill.billDetails[0].billAccountDetails[0].amount" - } - ] - }, - { - "path": "http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search", - "queryParam": "tenantId=$.tenantId,businessIds=$.applicationNo,history=true", - "apiRequest": null, - "responseMapping": [ - { - "variable": "approvedBy", - "value": "$.ProcessInstances[?(@.action=='APPROVE')].assigner.name", - "isUpperCaseRequired": true - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - }, - { - "derived": [ - { - "variable": "totalDue", - "formula": "{{sanFee}}+{{appFee}}" - } - ] - }, - { - "qrcodeConfig": [ - { - "variable": "qrCode", - "value": "Applicant Name: {{favourOf}}, Permit Order Number : {{planPermissionNo}}, Permit Order Date : {{orderGeneratedOn}}, eDCR Scrutiny Number: {{edcrNo}}, Approver Name : {{approvedBy}}" - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/consolidated-pdf1.json b/pdf-service/data-config/consolidated-pdf1.json deleted file mode 100644 index 14d85ad1..00000000 --- a/pdf-service/data-config/consolidated-pdf1.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "key": "consolidated-pdf1", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Receipt.*", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-1", - "staticConfigPath": "https://raw.githubusercontent.com/egovernments/egov-services/vishal-feature-filestore/core/egov-indexer/src/main/resources/rainmaker-pgr-indexer.yml", - "mappings": [ - { - "direct": [ - { - "variable": "variable1", - "value": { - "path": "$.Bill[0].payerName" - } - }, - { - "variable": "variable2", - "value": { - "path": "$.Bill[0].mobileNumber" - } - }, - { - "variable": "variable3", - "value": { - "path": "$.Bill[0].billDetails[0].receiptNumber" - } - }, - { - "variable": "variable4", - "value": { - "path": "$.Bill[0].taxAndPayments[0].businessService" - } - }, - { - "variable": "variable5", - "value": { - "path": "$.Bill[0].taxAndPayments[0].amountPaid" - } - }, - { - "variable": "variable6", - "value": { - "path": "$.Bill[0].billDetails[0].fromPeriod" - } - }, - { - "variable": "variable7", - "value": { - "path": "$.Bill[0].billDetails[0].toPeriod" - } - }, - { - "variable": "variable8", - "value": { - "path": "$.Bill[0].billDetails[0].billDate" - } - }, - { - "variable": "variable9", - "value": { - "path": "$.instrument.instrumentType.name" - } - }, - { - "variable": "variable10", - "value": { - "path": "$.Bill[0].billDetails[0].manualReceiptNumber" - } - }, - { - "variable": "variable11", - "value": { - "path": "$.Bill[0].billDetails[0].manualReceiptDate" - } - }, - { - "variable": "variable12", - "value": { - "path": "$.Bill[0].billDetails[0].totalAmount" - } - }, - { - "variable": "variable13", - "value": { - "path": "$.Receipt[0].instrument.transactionDateInput" - } - }, - { - "variable": "variable14", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "variable15", - "value": { - "path": "$.transactionId" - } - }, - { - "variable": "variable16", - "url":"https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type":"image" - } - ] - }, - { - "derived": [ - { - "variable": "variable19", - "formula": "{{variable12}}-{{variable5}}" - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/consolidated-pdf2.json b/pdf-service/data-config/consolidated-pdf2.json deleted file mode 100644 index ef1fb938..00000000 --- a/pdf-service/data-config/consolidated-pdf2.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "key": "consolidated-pdf2", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Receipt.*", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-1", - "staticConfigPath": "https://raw.githubusercontent.com/egovernments/egov-services/vishal-feature-filestore/core/egov-indexer/src/main/resources/rainmaker-pgr-indexer.yml", - "mappings": [ - { - "direct": [ - { - "variable": "variable1", - "url": "https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type": "image" - }, - { - "variable": "variable2", - "value": { - "path": "$.Bill[0].payerName" - } - }, - { - "variable": "variable3", - "value": { - "path": "$.Bill[0].mobileNumber" - } - }, - { - "variable": "variable4", - "value": { - "path": "$.Bill[0].payerAddress" - } - }, - { - "variable": "variable5", - "value": { - "path": "$.Bill[0].billDetails[0].billNumber" - } - }, - { - "variable": "variable6", - "value": { - "path": "$.Bill[0].billDetails[0].fromPeriod" - } - }, - { - "variable": "variable7", - "value": { - "path": "$.Bill[0].billDetails[0].toPeriod" - } - }, - { - "variable": "variable8", - "value": { - "path": "$.Bill[0].billDetails[0].billDate" - } - }, - { - "variable": "variable9", - "value": { - "path": "$.Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TIME_PENALTY')].amount" - } - }, - { - "variable": "variable10", - "value": { - "path": "$.Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TIME_REBATE')].amount" - } - }, - { - "variable": "variable11", - "value": { - "path": "$.Bill[0].billDetails[0].totalAmount" - } - }, - { - "variable": "variable12", - "value": { - "path": "$.transactionId" - } - }, - { - "variable": "variable13", - "value": { - "path": "$.Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TIME_REBATE')].amount" - } - }, - { - "variable": "variable14", - "value": { - "path": "$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TAX')].amount" - } - }, - { - "variable": "variable15", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "variable16", - "value": { - "path": "$.Bill[0].billDetails[0].amountPaid" - } - } - ] - }, - { - "derived": [ - { - "variable": "variable19", - "formula": "{{variable16}}-{{variable17}}" - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/consolidatedbill.json b/pdf-service/data-config/consolidatedbill.json deleted file mode 100644 index b0b770e4..00000000 --- a/pdf-service/data-config/consolidatedbill.json +++ /dev/null @@ -1,711 +0,0 @@ -{ - "key": "consolidatedbill", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Bill.*", - "entityIdPath":"$.billNumber", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-1", - "staticConfigPath": "https://raw.githubusercontent.com/egovernments/egov-services/vishal-feature-filestore/core/egov-indexer/src/main/resources/rainmaker-pgr-indexer.yml", - "mappings": [ - { - "direct": [ - { - "variable": "total_amount_due", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL_AMOUNT_DUE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_RUPEE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_MOBILE_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_PERIOD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYER_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - - { - "variable": "bill_issue_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ISSUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_due_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_DUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "billing_summary_property_tax", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILLING_SUMMARY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "property_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PROPERTY_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "arrears_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ARREARS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "charge_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CHARGE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - - { - "variable": "penalty_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PENALTY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "rebate_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_REBATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "adjustment_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ADJUSTMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "others_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_OTHERS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "important_message", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_IMPORTANT_MESSAGE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_received", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYMENT_RECEIVED" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "this_document", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_THIS_DOCUMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "this_is_a", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_THIS_IS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "assessment_payment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ASSESSSMENT_PAYMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "please_deposit", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PLEASE_DEPOSIT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "if_the_tax", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_IF_THE_TAX" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "acknowledgement_for", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ACKNOWLEDGEMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "date_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "name_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_NAME_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_payment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL_PAYMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receivers_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_RECEIVERS_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "totalAmountDue", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "total", - "value": { - "path": "$.totalAmount" - } - }, - - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - - { - "variable": "mobileNo", - "value": { - "path": "$.mobileNumber" - } - }, - - { - "variable": "payerAddress", - "value": { - "path": "$.payerAddress" - } - }, - { - "variable": "nameAddress", - "value": { - "path": "$.payerAddress" - } - }, - - { - "variable": "billNo", - "value": { - "path": "$.billNumber" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.billDetails[0].toPeriod" - }, - "type": "date" - }, - - { - "variable": "billIssueDate", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - - { - "variable": "billDueDate", - "value": { - "path": "$.billDetails[0].expiryDate" - }, - "type": "date" - }, - { - "variable": "billdate", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - - { - "variable": "propertyID", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "taxCharge", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_TAX' || @.taxHeadCode == 'TL_TAX' || @.taxHeadCode == 'FIRENOC_TAXES' || @.taxHeadCode == 'WS_CHARGE' || @.taxHeadCode == 'SW_CHARGE' )].amount" - } - }, - { - "variable": "timeRebate", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_TIME_REBATE' || @.taxHeadCode == 'WS_TIME_REBATE' || @.taxHeadCode == 'SW_TIME_REBATE')].amount" - } - }, - { - "variable": "adhocRebate", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_ADHOC_REBATE' || @.taxHeadCode == 'TL_ADHOC_REBATE' || @.taxHeadCode == 'FIRENOC_ADHOC_REBATE')].amount" - } - }, - - { - "variable": "timePenalty", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_TIME_PENALTY' || @.taxHeadCode == 'WS_TIME_PENALTY' || @.taxHeadCode == 'SW_TIME_PENALTY')].amount" - } - }, - { - "variable": "adjustment", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'TL_ADVANCE_CARRYFORWARD' || @.taxHeadCode == 'WS_ADVANCE_CARRYFORWARD' || @.taxHeadCode == 'SW_ADVANCE_CARRYFORWARD' || @.taxHeadCode == 'FIRENOC_ADVANCE_CARRYFORWARD' || @.taxHeadCode == 'PT_ADVANCE_CARRYFORWARD')].amount" - } - }, - { - "variable": "adhocPenalty", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_ADHOC_PENALTY' || @.taxHeadCode == 'TL_ADHOC_PENALTY' || @.taxHeadCode == 'FIRENOC_ADHOC_PENALTY')].amount" - } - }, - { - "variable": "firecess", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_FIRE_CESS')].amount" - } - }, - { - "variable": "usageExemption", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_UNIT_USAGE_EXEMPTION')].amount" - } - }, - { - "variable": "roundoff", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_ROUNDOFF' || @.taxHeadCode == 'TL_ROUNDOFF' || @.taxHeadCode == 'FIRENOC_ROUNDOFF' || @.taxHeadCode == 'WS_Round_Off' || @.taxHeadCode == 'SW_Round_Off')].amount" - } - }, - { - "variable": "fees", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'FIRENOC_FEES')].amount" - } - }, - { - "variable": "ownerExemption", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_OWNER_EXEMPTION')].amount" - } - }, - { - "variable": "cancerCess", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_CANCER_CESS')].amount" - } - }, - { - "variable": "waterCess", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'WS_WATER_CESS')].amount" - } - }, - { - "variable": "timeInterest", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_TIME_INTEREST' || @.taxHeadCode == 'WS_TIME_INTEREST' || @.taxHeadCode == 'SW_TIME_INTEREST')].amount" - } - }, - { - "variable": "ceilingDebit", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_DECIMAL_CEILING_DEBIT')].amount" - } - }, - { - "variable": "ceilingCredit", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_DECIMAL_CEILING_CREDIT')].amount" - } - }, - { - "variable": "consumerID", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "date", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - { - "variable": "WS_arrears", - "value":{ - "path": "$.arrearAmount" - } - }, - { - "variable":"scissorImage", - "url":"http://www.pngall.com/wp-content/uploads/2016/03/Scissor-PNG-Clipart.png", - "type":"image" - } - ] - }, - { - "derived": [ - { - "variable": "charge", - "formula": "{{taxCharge}}+{{fees}}" - }, - { - "variable": "penalty", - "formula": "{{timePenalty}}+{{adhocPenalty}}" - }, - { - "variable": "rebate", - "formula": "{{timeRebate}}+{{adhocRebate}}" - }, - { - "variable": "others", - "formula": "{{cancerCess}}+{{roundoff}}+{{timeInterest}}+{{ceilingDebit}}+{{ceilingCredit}}+{{firecess}}+{{waterCess}}" - }, - { - "variable": "arrears", - "formula": "{{WS_arrears}}" - }, - { - "variable": "adjustments/paid", - "formula": "{{adjustment}}" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/consolidatedreceipt.json b/pdf-service/data-config/consolidatedreceipt.json deleted file mode 100644 index 55160fbb..00000000 --- a/pdf-service/data-config/consolidatedreceipt.json +++ /dev/null @@ -1,554 +0,0 @@ -{ - "key": "consolidatedreceipt", - "documentType":"CONSOLIDATED_RECEIPT", - "DataConfigs": { - "moduleName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Payments.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.userInfo.name" - }, - "type":"selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "paymentStatus", - "value": { - "path": "$.paymentStatus" - }, - "localisation":{ - "required":true, - "prefix":null, - "module":"rainmaker-common" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "paidAmount", - "value": { - "path": "$.paymentDetails[0].totalAmountPaid" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].toPeriod" - }, - "type": "date" - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_PAYMENTMODE", - "module": "rainmaker-common" - } - }, - { - "variable": "G8ReceiptNo", - "value": { - "path": "$.paymentDetails[0].manualReceiptNumber" - } - }, - { - "variable": "G8ReceiptDate", - "value": { - "path": "$.paymentDetails[0].manualReceiptDate" - }, - "type": "date" - }, - { - "variable": "paymentDate", - "value": { - "path": "$.transactionDate" - }, - "type": "date" - }, - { - "variable": "consumerID", - "value": { - "path": "$.paymentDetails[0].bill.consumerCode" - } - }, - { - "variable": "transactionID", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "dueAmount", - "value": { - "path": "$.paymentDetails[0].totalDue" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CONSUMER_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_status", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_STATUS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "billing_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BILLING_PERIOD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "pending_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PENDING_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "excess_amount_paid", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_EXCESS_AMOUNT_PAID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_1", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIRST_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_2", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_SECOND_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_3", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_THIRD_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_4", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_4" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_5", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIFTH_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_bill_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TOTAL_BILL_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "pendingAmount", - "formula": "{{dueAmount}}>{{paidAmount}}?{{dueAmount}}-{{paidAmount}}:0" - }, - { - "variable": "excessAmountPaid", - "formula": "{{paidAmount}}>{{dueAmount}}?{{paidAmount}}-{{dueAmount}}:0" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.paymentDetails[0].businessService}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "variable11", - "value": "$.MdmsRes.tenant.footer[0].receiptFooterContent.*", - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable":"disclaimerContent", - "value":"disclaimer", - "type":"string", - "localisation":{ - "required":true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/death-certificate.json b/pdf-service/data-config/death-certificate.json deleted file mode 100644 index 33815136..00000000 --- a/pdf-service/data-config/death-certificate.json +++ /dev/null @@ -1,527 +0,0 @@ -{ - "key": "death-certificate", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.DeathCertificate.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "logoImage", - "url":"https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type":"image" - }, - { - "variable": "name", - "value": { - "path": "$.fullName" - }, - "type":"setEmpty" - }, - { - "variable": "embeddedUrl", - "value": { - "path": "$.embeddedUrl" - } - }, - { - "variable": "dod", - "value": { - "path": "$.dateofdeath" - }, - "type": "date" - }, - { - "variable": "gender", - "value": { - "path": "$.genderStr" - }, - "type":"setEmpty" - }, - { - "variable": "registrationNo", - "value": { - "path": "$.registrationno" - }, - "type":"setEmpty" - }, - { - "variable": "registration_date", - "value": { - "path": "$.dateofreport" - }, - "type": "date" - }, - { - "variable": "updatedOn", - "value": { - "path": "$.dateofissue" - }, - "type": "date" - }, - { - "variable": "year", - "value": { - "path": "$.year" - }, - "type": "setEmpty" - }, - { - "variable": "fatherName", - "value": { - "path": "$.deathFatherInfo.fullName" - }, - "type":"setEmpty" - }, - { - "variable": "motherName", - "value": { - "path": "$.deathMotherInfo.fullName" - }, - "type":"setEmpty" - }, - { - "variable": "childAddress", - "value": { - "path": "$.deathPresentaddr.fullAddress" - }, - "type":"setEmpty" - }, - { - "variable": "parentsAddress", - "value": { - "path": "$.deathPermaddr.fullAddress" - }, - "type":"setEmpty" - }, - { - "variable": "parentsCity", - "value": { - "path": "$.deathPermaddr.city" - }, - "type":"setEmpty" - }, - { - "variable": "parentsStreet", - "value": { - "path": "$.deathPermaddr.street" - }, - "type":"setEmpty" - }, - { - "variable": "parentsTehsil", - "value": { - "path": "$.deathPermaddr.tehsil" - }, - "type":"setEmpty" - }, - { - "variable": "parentsDistrict", - "value": { - "path": "$.deathPermaddr.district" - }, - "type":"setEmpty" - }, - { - "variable": "fatherUid", - "value": { - "path": "$.deathFatherInfo.aadharno" - }, - "type":"setEmpty" - }, - { - "variable": "motherUid", - "value": { - "path": "$.deathMotherInfo.aadharno" - }, - "type":"setEmpty" - }, - { - "variable": "remarks", - "value": { - "path": "$.remarks" - }, - "type":"setEmpty" - }, - { - "variable": "placeOfDeath", - "value": { - "path": "$.placeofdeath" - }, - "type":"setEmpty" - }, - { - "variable": "issueDate", - "value": { - "path": "$.dateofissue" - }, - "type": "date" - }, - - { - "variable": "certificateType", - "value": { - "path": "$.certificateType" - }, - "type":"setEmpty" - }, - { - "variable": "cantonment-board", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "govt_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_GOVT_UP" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "dept_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_DEPT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - - - { - "variable": "certificate_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_CERTIFICATE_DEATH" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "certificate_label", - "value": { - "path": "PDF_STATIC_LABEL_BD_EN_CERTIFICATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "rule1_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_RULE_1" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "rule2_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_RULE_2" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "name_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "gender_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_GENDER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "dob_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_DOB" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "pod_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_POD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "mother_name_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_MOTHER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "father_name_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_FATHER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "mother_uid_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_MOTHER_UID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "father_uid_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_FATHER_UID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "child_address_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_ADDRESS_OF_CHILD_DEATH" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "parent_address_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_PERMENENT_ADDRESS_OF_PARENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "registration_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_REGISTRATION_NUMBER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "registration_date_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_REGISTRATION_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "remarks_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_REMARKS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "issue_date_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_ISSUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "issuing_authority_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_ISSUING_AUTHORITY_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "instruction1_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_INSTRUCTION_1" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "instruction2_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_INSTRUCTION_2" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "issuing_authority", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_DEATHCERIFICATE_ISSUING_AUTHORITY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - - { - "variable": "cb_letter_label", - "value": { - "path": "PDF_STATIC_LABEL_BD_EN_CB" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - } - - ] - }, - { - "qrcodeConfig": [ - { - "variable": "qr_code_image", - "value":"{{embeddedUrl}}" - } - ] - } - ] - } - ] - } - } diff --git a/pdf-service/data-config/firenoc-receipt.json b/pdf-service/data-config/firenoc-receipt.json deleted file mode 100644 index 9a89b2e5..00000000 --- a/pdf-service/data-config/firenoc-receipt.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "key":"firenoc-receipt", - "DataConfigs": { - "serviceName": "rainmaker-noc", - "version": "1.0.0", - "baseKeyPath": "$.FireNOCs.*", - "entityIdPath":"$.fireNOCNumber", - "isCommonTableBorderRequired":true, - "mappings": [ - { - "topic": "noc-pdf-generation", - "staticConfigPath": "https://raw.githubusercontent.com/egovernments/egov-services/vishal-feature-filestore/core/egov-indexer/src/main/resources/rainmaker-pgr-indexer.yml", - "mappings": [ - { - "direct": [ - { - "variable": "variable1", - "value": { - "path":"$.fireNOCDetails.applicationNumber" - } - }, - { - "variable": "variable32", - "url":"https://s3.ap-south-1.amazonaws.com/pb-egov-assets/pb.amritsar/logo.png", - "type":"image" - }, - { - "variable": "variable3", - "value": { - "path":"$.fireNOCDetails.applicantDetails.ownerShipType" - }, - "type":"function", - "format":"return type.startsWith('INSTITUTION')" - }, - { - "variable": "variable21", - "value": { - "path":"$.fireNOCDetails.applicantDetails.ownerShipType" - }, - "localisation":{ - "required":true, - "prefix":"COMMON_MASTERS_OWNERSHIPCATEGORY", - "module":"rainmaker-common" - } - }, - { - "variable": "variable22", - "value": { - "path":"$.fireNOCDetails.applicantDetails.additionalDetail.institutionName" - } - }, - { - "variable": "variable23", - "value": { - "path":"$.fireNOCDetails.applicantDetails.additionalDetail.telephoneNumber" - } - }, - { - "variable": "variable24", - "value": { - "path":"$.fireNOCDetails.applicantDetails.owners[0].name" - } - }, - { - "variable": "variable25", - "value": { - "path":"$.fireNOCDetails.applicantDetails.additionalDetail.institutionDesignation" - } - }, - { - "variable": "variable26", - "value": { - "path":"$.fireNOCDetails.applicantDetails.owners[0].mobileNumber" - } - }, - { - "variable": "variable27", - "value": { - "path":"$.fireNOCDetails.applicantDetails.owners[0].emailId" - } - }, - { - "variable": "variable28", - "value": { - "path":"$.fireNOCDetails.applicantDetails.owners[0].correspondenceAddress" - } - }, - { - "variable": "variable20", - "value": { - "path":"$.tenantId" - }, - "localisation":{ - "required":true, - "prefix":"TENANT_TENANTS", - "module":"rainmaker-common" - }, - "isUpperCaseRequired":true - }, - { - "variable": "variable2", - "value":{ - "path":"$.fireNOCDetails.applicantDetails.owners.*" - }, - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "key":"name" - }, - { - "key":"mobileNumber" - }] - } - } - ] - }, - { - "derived": [ - { - "variable": "variable31", - "formula": "{{variable29}}+{{variable30}}" - } - ] - }, - { - "externalAPI": [ - - { - - "path": "http://collection-services:8080/collection-services/receipts/_search", - "queryParam": "consumerCode=$.fireNOCDetails.applicationNumber", - "apiRequest": null, - - "responseMapping":[ - { - "variable":"variable6", - "value":"$.Receipt[0].instrument.transactionDateInput" - }, - { - "variable":"variable7", - "value":"$.Receipt[0].receiptNumber" - }, - { - "variable":"variable8", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='FIRENOC_FEES')].amount" - }, - { - "variable":"variable9", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='FIRENOC_TAXES')].amount" - }, - { - "variable":"variable29", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='FIRENOC_ADHOC_PENALTY')].amount" - }, - { - "variable":"variable30", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='FIRENOC_ADHOC_REBATE')].amount" - }, - { - "variable":"variable10", - "value":"$.Receipt[0].Bill[0].billDetails[0].totalAmount" - }, - { - "variable":"variable11", - "value":"$.Receipt[0].instrument.transactionType" - }, - { - "variable":"variable12", - "value":"$.Receipt[0].transactionId" - }, - { - "variable":"variable13", - "value":"$.Receipt[0].instrument.bank.name" - }, - { - "variable":"variable15", - "value":"$.Receipt[0].Bill[0].billDetails[0].receiptNumber" - }, - { - "variable":"variable16", - "value":"$.Receipt[0].Bill[0].billDetails[0].receiptDate" - }, - { - "variable":"variable17", - "value":"$.Receipt[0].Bill[0].billDetails[0].amountPaid" - }, - { - "variable":"variable18", - "value":"$.Receipt[0].instrument.instrumentType.name" - }, - { - "variable":"variable19", - "value":"$.Receipt[0].instrument.transactionNumber" - } - ] - } - ] - }, - { - "qrcodeConfig": [ - { - "variable": "variable14", - "value":"Application: {{variable1}}, Receipt number: {{variable15}}, Date of payment: {{variable16}}, Fees Paid: {{variable17}}, Payment mode: {{variable18}}, Transaction ID: {{variable19}}" - } - ] - }, - { - "mdmsDenormalization": [ - { - "variable": "$variable", - "moduleName": "common-masters", - "masterName": "Department", - "tenantId": "pb", - "filter": "[?(@.code == $department)]", - "filterMapping": [ - { - "variable": "$department", - "valueJsonpath": "$.department" - } - ], - "valueJsonPath": "$.TenantBoundary[0].boundary[0].name" - }, - { - "variable": "$variable", - "moduleName": "common-masters", - "masterName": "Department", - "tenantId": "pb", - "filter": "[?(@.code == $department)]", - "filterMapping": [ - { - "variable": "$department", - "valueJsonpath": "$.department" - } - ], - "valueJsonPath": "$.TenantBoundary[0].boundary[0].name" - } - ] - } - ] - } - ] - } - } diff --git a/pdf-service/data-config/fsm-receipt.json b/pdf-service/data-config/fsm-receipt.json deleted file mode 100644 index c2271569..00000000 --- a/pdf-service/data-config/fsm-receipt.json +++ /dev/null @@ -1,559 +0,0 @@ -{ - "key": "fsm-receipt", - "documentType": "FSM_RECEIPT", - "DataConfigs": { - "moduleName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Payments.*", - "entityIdPath": "$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.userInfo.name" - }, - "type": "selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "paymentStatus", - "value": { - "path": "$.paymentStatus" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation": { - "required": true, - "prefix": "MODULE", - "module": "rainmaker-common" - } - }, - { - "variable": "paidAmount", - "value": { - "path": "$.paymentDetails[0].totalAmountPaid" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].toPeriod" - }, - "type": "date" - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - }, - "localisation": { - "required": true, - "prefix": "COMMON_MASTERS_PAYMENTMODE", - "module": "rainmaker-common" - } - }, - { - "variable": "G8ReceiptNo", - "value": { - "path": "$.paymentDetails[0].manualReceiptNumber" - } - }, - { - "variable": "G8ReceiptDate", - "value": { - "path": "$.paymentDetails[0].manualReceiptDate" - }, - "type": "date" - }, - { - "variable": "paymentDate", - "value": { - "path": "$.transactionDate" - }, - "type": "date" - }, - { - "variable": "consumerID", - "value": { - "path": "$.paymentDetails[0].bill.consumerCode" - } - }, - { - "variable": "transactionID", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "dueAmount", - "value": { - "path": "$.paymentDetails[0].totalDue" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_RECEIPT_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_CONSUMER_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payment_date", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_PAYMENT_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_PAYER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_CONTACT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payment_status", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_STATUS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "billing_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BILLING_PERIOD" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pending_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PENDING_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "excess_amount_paid", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_EXCESS_AMOUNT_PAID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_1", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIRST_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_2", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_SECOND_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_3", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_THIRD_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_4", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_4" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_5", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIFTH_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_bill_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TOTAL_BILL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "pendingAmount", - "formula": "{{dueAmount}}>{{paidAmount}}?{{dueAmount}}-{{paidAmount}}:0" - }, - { - "variable": "excessAmountPaid", - "formula": "{{paidAmount}}>{{dueAmount}}?{{paidAmount}}-{{dueAmount}}:0" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "address", - "value": "$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable": "phoneNumber", - "value": "$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable": "website", - "value": "$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable": "email", - "value": "$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo-header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - }, - { - "variable": "ulbgrade", - "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", - "type": "label", - "localisation": { - "required": true, - "prefix": "ULBGRADE", - "module": "rainmaker-common" - } - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.paymentDetails[0].businessService}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "variable11", - "value": "$.MdmsRes.tenant.footer[0].receiptFooterContent.*", - "type": "array", - "format": { - "type": "string", - "scema": [ - { - "variable": "disclaimerContent", - "value": "disclaimer", - "type": "string", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/mcollect-bill.json b/pdf-service/data-config/mcollect-bill.json deleted file mode 100644 index f294c1b5..00000000 --- a/pdf-service/data-config/mcollect-bill.json +++ /dev/null @@ -1,678 +0,0 @@ -{ - "key": "mcollect-bill", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Bill.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "billNo", - "value": { - "path": "$.billNumber" - } - }, - { - "variable": "challanNo", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "challan_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CHALLAN_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "challan", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CHALLAN" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.businessService" - }, - "type": "splitString", - "localisation":{ - "required":true, - "prefix":"BILLINGSERVICE_BUSINESSSERVICE", - "module":"rainmaker-uc", - "isCategoryRequired":true - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.billDetails[0].toPeriod" - }, - "type": "date" - }, - { - "variable": "letter-code", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_LETTER_CODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "address_label", - "value": { - "path": "PT_COMMON_COL_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "letter-header", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_LETTER_HEAD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "letter-section", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_LETTER_SECTION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "cantonment-board", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "form-number", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_LETTER_FORM_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "rule-number", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_LETTER_RULENO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "bill", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "letter-code", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_PAYMENTMODE", - "module": "rainmaker-pdf" - } - }, - { - "variable": "billDate", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - { - "variable": "city", - "value": { - "path": "$..tradeLicenseDetail.address.city" - }, - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.address.doorNo" - }, - "type":"setEmpty" - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.address.buildingName" - }, - "type":"setEmpty" - }, - { - "variable": "streetName", - "value": { - "path": "$.address.street" - }, - "type":"setEmpty" - }, - { - "variable": "buildingName", - "value": { - "path": "$.address.buildingName" - }, - "type":"setEmpty" - }, - { - "variable": "pinCode", - "value": { - "path": "$.address.pincode" - }, - "type":"setEmpty" - }, - { - "variable": "mohalla", - "value": { - "path": "$.address.locality" - }, - "localisation":{ - "required":true, - "prefix": "TENANTS_MOHALLA", - "module": "rainmaker-pdf" - } - }, - { - "variable": "serviceCategory", - "value": { - "path": "$.businessService" - }, - "localisation":{ - "required":true, - "prefix":"BILLINGSERVICE_BUSINESSSERVICE", - "module":"rainmaker-uc" - } - }, - { - "variable": "mcollect_comment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_MCOLLECT_COMMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "disclamer_1", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIRST_LINE_UC" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "bill_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "GL_Code", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GL_CODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_date", - "value": { - "path": "ABG_COMMON_TABLE_COL_BILL_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_Name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CONSUMER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "service_category", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_SERVICE_CATEGORY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "validity_from", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_LICENSE_VALIDITY_FROM" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "validity_to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_LICENSE_VALIDITY_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "bank_transaction_no", - "value": { - "path": "NOC_PAYMENT_BANK_TRANSACTION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "payer_Name", - "value": { - "path": "NOC_PAYMENT_PAYER_NAME_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-pdf" - } - }, - { - "variable": "challan_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CHALLAN_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-pdf" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_RUPEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-pdf" - } - }, - { - "variable": "variable10", - "value": { - "path": "$.billDetails[0].billAccountDetails.*" - }, - "type": "array", - "format": { - "type": "string", - "scema": [ - { - "variable": "trade_license_tax", - "value": "taxHeadCode", - "type": "string", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-uc" - } - }, - { - "variable": "tradeLicenseTax", - "value": "amount" - } - ] - } - }, - { - "variable":"totalAmount", - "value": { - "path": "$.totalAmount" - } - } - - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "cb-name", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - }, - { - "path": "http://echallan-services:8080/echallan-services/eChallan/v1/_search", - "queryParam": "challanNo=$.consumerCode,tenantId=$.tenantId", - "apiRequest": null, - "responseMapping":[ - { - "variable":"challanDate", - "value": "$.challans[0].auditDetails.lastModifiedTime", - "type": "date" - } - ] - } - ] - }, - { - "qrcodeConfig": [ - { - "variable": "qrcodeimage", - "value":"Payer Name : {{payerName}},BillNo: {{billNumber}}, Challan number: {{challanNo}}, Bill Date: {{billDate}}, Total Amount: {{totalAmount}}, Billing Period: {{fromPeriod}} to {{toPeriod}}" - } - ] - } - ] - } - ] - } - } - \ No newline at end of file diff --git a/pdf-service/data-config/mcollect-challan.json b/pdf-service/data-config/mcollect-challan.json deleted file mode 100644 index 703f1afd..00000000 --- a/pdf-service/data-config/mcollect-challan.json +++ /dev/null @@ -1,717 +0,0 @@ -{ - "key": "mcollect-challan", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Challan", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "consumerName", - "value": { - "path": "$.citizen.name" - } - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "challanNo", - "value": { - "path": "$.challanNo" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.businessService" - }, - "localisation":{ - "required":true, - "prefix":"BILLINGSERVICE_BUSINESSSERVICE", - "module":"rainmaker-uc" - } - }, - { - "variable": "serviceCategory", - "value": { - "path": "$.serviceType" - }, - "localisation":{ - "required":true, - "prefix":"BILLINGSERVICE_BUSINESSSERVICE", - "module":"rainmaker-uc" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.taxPeriodFrom" - }, - "type": "date" - }, - { - "variable": "billNo", - "value": { - "path": "$.billNo" - } - }, - { - "variable": "billDate", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.taxPeriodTo" - }, - "type": "date" - }, - { - "variable": "bill", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_date", - "value": { - "path": "ABG_COMMON_TABLE_COL_BILL_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "letter-code", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_LETTER_CODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "service_category", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_SERVICE_CATEGORY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "address_label", - "value": { - "path": "PT_COMMON_COL_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "remarks_label", - "value": { - "path": "PT_COMMON_COL_REMARK" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "letter-header", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_LETTER_HEAD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "letter-section", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_LETTER_SECTION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "cantonment-board", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "form-number", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CHALLAN_FORM_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "rule-number", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CHALLAN_RULE_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "challan", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CHALLAN" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "letter-code", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "NOC_COMMON_TABLE_COL_APP_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_PAYMENTMODE", - "module": "rainmaker-common" - } - }, - { - "variable": "challanDate", - "value": { - "path": "$.auditDetails.lastModifiedTime" - }, - "type": "date" - }, - { - "variable": "city", - "value": { - "path": "$..tradeLicenseDetail.address.city" - }, - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.address.doorNo" - }, - "type":"setEmpty" - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.address.buildingName" - }, - "type":"setEmpty" - }, - { - "variable": "streetName", - "value": { - "path": "$.address.street" - }, - "type":"setEmpty" - }, - { - "variable": "buildingName", - "value": { - "path": "$.address.buildingName" - }, - "type":"setEmpty" - }, - { - "variable": "pinCode", - "value": { - "path": "$.address.pincode" - }, - "type":"setEmpty" - }, - { - "variable": "challanStatus", - "value": { - "path": "$.applicationStatus" - }, - "type":"challanStatus", - "localisation": { - "required":true, - "prefix": null, - "module": "rainmaker-common", - "prefixCbName":true - } - }, - { - "variable": "challanRemarks", - "value": { - "path": "$.additionalDetail.cancellComment" - }, - "type":"statusMessage" - }, - { - "variable": "mohalla", - "value": { - "path": "$.address.locality.code" - }, - "localisation":{ - "required":true, - "prefix": "TENANTS_MOHALLA", - "module": "rainmaker-common", - "prefixCbName":true - }, - "type":"boundary" - }, - { - "variable": "mcollect_comment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_MCOLLECT_COMMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_1", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIRST_LINE_UC" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "challan_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CHALLAN_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "GL_Code", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GL_CODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "challan_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CHALLAN_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "validity_from", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_LICENSE_VALIDITY_FROM" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "validity_to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_LICENSE_VALIDITY_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bank_transaction_no", - "value": { - "path": "NOC_PAYMENT_BANK_TRANSACTION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_Name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CONSUMER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_RUPEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "variable10", - "value": { - "path": "$.amount.*" - }, - "type": "array", - "format": { - "type": "string", - "scema": [ - { - "variable": "trade_license_tax", - "value": "taxHeadCode", - "type": "string", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-uc" - } - }, - { - "variable": "tradeLicenseTax", - "value": "amount" - } - ] - } - }, - { - "variable":"totalAmount", - "value": { - "path": "$.totalAmount" - } - } - - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "cb-name", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - } - ] - }, - { - "qrcodeConfig": [ - { - "variable": "qrcodeimage", - "value":"Payer Name : {{consumnerName}},Challan number: {{challanNo}}, Challan Date: {{billDate}}, Total Amount: {{totalAmount}}, Billing Period: {{fromPeriod}} to {{toPeriod}}" - } - ] - } - ] - } - ] - } - } - \ No newline at end of file diff --git a/pdf-service/data-config/misc-receipt.json b/pdf-service/data-config/misc-receipt.json deleted file mode 100644 index c0fd312b..00000000 --- a/pdf-service/data-config/misc-receipt.json +++ /dev/null @@ -1,511 +0,0 @@ -{ - "key": "misc-receipt", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Payments.*", - "entityIdPath":"$.paymentDetails[0].receiptNumber", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.userInfo.name" - }, - "type":"selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation":{ - "required":true, - "prefix":"BILLINGSERVICE_BUSINESSSERVICE", - "module":"rainmaker-bpa" - } - }, - { - "variable": "paidAmount", - "value": { - "path": "$.paymentDetails[0].totalAmountPaid" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].toPeriod" - }, - "type": "date" - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_PAYMENTMODE", - "module": "rainmaker-common" - } - }, - { - "variable": "G8ReceiptNo", - "value": { - "path": "$.paymentDetails[0].manualReceiptNumber" - } - }, - { - "variable": "G8ReceiptDate", - "value": { - "path": "$.paymentDetails[0].manualReceiptDate" - }, - "type": "date" - }, - { - "variable": "paymentDate", - "value": { - "path": "$.transactionDate" - }, - "type": "date" - }, - { - "variable": "consumerID", - "value": { - "path": "$.paymentDetails[0].bill.consumerCode" - } - }, - { - "variable": "transactionID", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "dueAmount", - "value": { - "path": "$.paymentDetails[0].totalDue" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CONSUMER_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "billing_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BILLING_PERIOD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "pending_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PENDING_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_1", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIRST_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_2", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_SECOND_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_3", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_THIRD_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_4", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FOURTH_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_5", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIFTH_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receipt_info", - "value": { - "path": "PDF_STATIC_LABEL_RECEIPT_INFO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_info", - "value": { - "path": "PDF_STATIC_LABEL_PAYER_INFO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_info", - "value": { - "path": "PDF_STATIC_LABEL_PAYMENT_INFO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "pendingAmount", - "formula": "{{dueAmount}}-{{paidAmount}}" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=bh&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-pgr" - } - } - ] - } - ] - } - ] - } - ] - } - } diff --git a/pdf-service/data-config/occupancy-certificate.json b/pdf-service/data-config/occupancy-certificate.json deleted file mode 100644 index 1c1e89be..00000000 --- a/pdf-service/data-config/occupancy-certificate.json +++ /dev/null @@ -1,433 +0,0 @@ -{ - "key": "occupancy-certificate", - "DataConfigs": { - "serviceName": "rainmaker-bpa", - "version": "1.0.0", - "baseKeyPath": "$.Bpa.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "planPermissionNo", - "value": { - "path": "$.approvalNo" - } - }, - { - "variable": "edcrNo", - "value": { - "path": "$.edcrNumber" - } - }, - { - "variable": "createdDate", - "value": { - "path": "$.auditDetails.createdTime" - }, - "type": "date" - }, - { - "variable": "ownerName", - "value": { - "path": "$.landInfo.owners.*.name" - } - }, - { - "variable": "tenantName", - "value": { - "path": "$.tenantId" - }, - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - }, - { - "variable": "orderGeneratedOn", - "value": { - "path": "$.approvalDate" - }, - "type": "date" - }, - { - "variable": "favourOf", - "value": { - "path": "$.landInfo.owners.*.name" - } - }, - { - "variable": "SALUTATION", - "value": { - "path": "BPA_PDF_SALUTATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BPA_FORM", - "value": { - "path": "BPA_PDF_FORM" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BPA_FORM_APPROVAL", - "value": { - "path": "BPA_PDF_FORM_APPROVAL_TXT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "BPA_BYELAWS", - "value": { - "path": "BPA_PDF_BYELAWS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "PLAN_PERMISION_NO", - "value": { - "path": "BPA_PDF_PLANPERMISSION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "Dated", - "value": { - "path": "BPA_PDF_DATED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "dated", - "value": { - "path": "BPA_PDF_DATED_SMALL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "FOR", - "value": { - "path": "BPA_PDF_FOR" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "Muncipal_Council", - "value": { - "path": "BPA_PDF_MUNCIPAL" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "appendix", - "value": { - "path": "BPA_PDF_APPENDIX" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "seeRule", - "value": { - "path": "BPA_PDF_SEERULE" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "ocName", - "value": { - "path": "BPA_PDF_OCNAME" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "ocName", - "value": { - "path": "BPA_PDF_OCNAME" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "or", - "value": { - "path": "BPA_PDF_OR" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "certificateUse", - "value": { - "path": "BPA_PDF_CERTIFICATE_USE" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "ref", - "value": { - "path": "BPA_PDF_REF" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "applicationNumber", - "value": { - "path": "BPA_PDF_APPLICATIONNO" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "from", - "value": { - "path": "BPA_PDF_FROM" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "certifiedText", - "value": { - "path": "BPA_PDF_CERTIFIED_TXT" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "issuedTo", - "value": { - "path": "BPA_PDF_ISSUED_TO" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "supervisedBy", - "value": { - "path": "BPA_PDF_SUPERVISED_BY" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "ocSummaryText", - "value": { - "path": "BPA_PDF_OC_SUMMARY" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "place", - "value": { - "path": "BPA_PDF_PLACE" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "approvedByName", - "value": { - "path": "BPA_PDF_APPROVED_BY" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "assistantEngineer", - "value": { - "path": "BPA_PDF_AST_ENGR" - }, - "type" : "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-bpa" - } - }, - { - "variable": "applicantName", - "value": { - "path": "$.edcrDetail[0].planDetail.planInformation.applicantName" - } - }, - { - "variable": "applicationDate", - "value": { - "path": "$.applicationDate" - }, - "type": "date" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search", - "queryParam": "tenantId=$.tenantId,businessIds=$.applicationNo,history=true", - "apiRequest": null, - "responseMapping": [ - { - "variable": "approvedBy", - "value": "$.ProcessInstances[?(@.action=='APPROVE')].assigner.name", - "isUpperCaseRequired": true - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - }, - { - "qrcodeConfig": [ - { - "variable": "qrCode", - "value": "Applicant Name: {{favourOf}}, Permit Order Number : {{planPermissionNo}}, Permit Order Date : {{orderGeneratedOn}}, eDCR Scrutiny Number: {{edcrNo}}" - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/passvehicle-certificate.json b/pdf-service/data-config/passvehicle-certificate.json deleted file mode 100644 index bb0d544e..00000000 --- a/pdf-service/data-config/passvehicle-certificate.json +++ /dev/null @@ -1,555 +0,0 @@ -{ - "key": "passvehicle-certificate", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Licenses.*", - "entityIdPath":"$.licenseNumber", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "mappings": [ - { - "direct": [ - { - "variable": "logoImage", - "url":"https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type":"image" - }, - { - "variable": "tradeLicenseNo", - "value": { - "path": "$.licenseNumber" - } - }, - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNumber" - } - }, - { - "variable": "financialYear", - "value": { - "path": "$.financialYear" - } - }, - { - "variable": "tradeName", - "value": { - "path": "$.tradeName" - } - }, - { - "variable": "tradeOwnerName", - "value": { - "path": "$.tradeLicenseDetail.owners[0].name" - } - }, - { - "variable": "tradeOwnerContact", - "value": { - "path": "$.tradeLicenseDetail.owners[0].mobileNumber" - } - }, - { - "variable": "tradeAddress", - "value": { - "path": "$.tradeLicenseDetail.address.locality.name" - } - }, - { - "variable": "city", - "value": { - "path": "$.tradeLicenseDetail.address.city" - }, - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - }, - { - "variable": "tradeType", - "value": { - "path": "$.tradeLicenseDetail.tradeUnits[0].tradeType" - }, - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_TRADETYPE", - "module": "rainmaker-tl", - "isCategoryRequired":true - } - }, - { - "variable": "passSubCategory", - "value": { - "path": "$.tradeLicenseDetail.tradeUnits[0].tradeType" - }, - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_TRADETYPE", - "module": "rainmaker-tl", - "isMainTypeRequired":true - } - }, - { - "variable": "accessories", - "value": { - "path": "$.tradeLicenseDetail.accessories[0].accessoryCategory" - }, - "localisation":{ - "required":true, - "prefix": "TL", - "module": "rainmaker-tl" - } - }, - { - "variable": "purpose_content", - "value": { - "path": "$.tradeLicenseDetail.additionalDetail.purpose" - } - }, - { - "variable": "licenseIssueDate", - "value": { - "path": "$.issuedDate" - }, - "type": "date" - }, - { - "variable": "licenseValidityFrom", - "value": { - "path": "$.validFrom" - }, - "type": "date" - }, - { - "variable": "licenseValidityTo", - "value": { - "path": "$.validTo" - }, - "type": "date" - }, - { - "variable": "vehicleNumber", - "value": { - "path": "$.tradeLicenseDetail.additionalDetail.vehicleNumber" - } - }, - { - "variable": "vehicleCompany", - "value": { - "path": "$.tradeLicenseDetail.additionalDetail.vehicleCompany" - } - }, - { - "variable": "vehicleModel", - "value": { - "path": "$.tradeLicenseDetail.additionalDetail.vehicleModel" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "vehicle_number_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_VEHICLE_NUMBER_LABLE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "vehicle_company_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_VEHICLE_COMPANY_LABLE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "vehicle_model_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_VEHICLE_MODEL_LABLE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "municipal_corportaion", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_CITY_POLICE_LABLE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclaimer_heading", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_DISCLAIMER_HEADING" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclaimer_body", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_DISCLAIMER_BODY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "corporation_website", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_WEBSITE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_email", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_EMAIL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_license_certifcate", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_CERTIFICATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_license_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_APPLICATION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "reciept_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_RECIEPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "financial_year", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_FINANCIAL_YEAR" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_owner_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_OWNER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_owner_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_OWNER_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_TRADE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "pass_subCategory", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_TRADE_SUB_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "purpose_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_PURPOSE_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "accessories_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_ACCESSORIES_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_license_fee", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_LICENSE_FEE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "license_issue_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_ISSUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "license_validity", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_VALIDITY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "license_validity_from", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_LICENSE_VALIDITY_FROM" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "license_validity_to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_PASS_LICENSE_VALIDITY_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "approved_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_APPROVED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_COMMISSIONER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable":"userpic", - "url":"https://egov-covid-assets.s3.ap-south-1.amazonaws.com/Bangalore_Police.jpeg", - "type":"image" - }, - { - "variable": "tenantID", - "value": { - "path": "$.tenantId" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search", - "queryParam": "businessIds=$.applicationNumber,history=true,tenantId=$.tenantId", - "apiRequest": null, - "responseMapping":[ - { - "variable":"approvedBy", - "value":"$.ProcessInstances[?(@.action == 'APPROVE')].assigner.name" - } - - ] - } - - ] - }, - { - "qrcodeConfig": [ - { - "variable": "qr", - "value":"https://egov-micro-qa.egovernments.org/employee/tradelicence/search-preview?applicationNumber={{applicationNo}}&tenantId={{tenantID}}" - } - ] - } - ] - - } - ] - } - } \ No newline at end of file diff --git a/pdf-service/data-config/property-bill.json b/pdf-service/data-config/property-bill.json deleted file mode 100644 index 00a559ab..00000000 --- a/pdf-service/data-config/property-bill.json +++ /dev/null @@ -1,969 +0,0 @@ -{ - "key": "property-bill", - "documentType": "PROPERTYBILL", - "DataConfigs": { - "moduleName": "PT", - "version": "1.0.0", - "baseKeyPath": "$.Bill.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-1", - "staticConfigPath": "https://raw.githubusercontent.com/egovernments/egov-services/vishal-feature-filestore/core/egov-indexer/src/main/resources/rainmaker-pgr-indexer.yml", - "mappings": [ - { - "direct": [ - { - "variable": "total_amount_due", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL_AMOUNT_DUE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "scanpay_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_SCAN_PAY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bankupi_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BANK_UPI" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "app_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_APP" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_RUPEE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_MOBILE_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_PERIOD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYER_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - - { - "variable": "bill_issue_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ISSUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_due_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_DUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "billing_summary_property_tax", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILLING_SUMMARY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "tl_application_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TL_APPLICATION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "arrears_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ARREARS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "charge_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CHARGE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - - { - "variable": "penalty_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PENALTY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "rebate_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_REBATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "others_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_OTHERS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "important_message", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_IMPORTANT_MESSAGE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_received", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYMENT_RECEIVED" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "this_document", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_THIS_DOCUMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "this_is_a", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_THIS_IS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "assessment_payment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ASSESSSMENT_PAYMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "please_deposit", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PLEASE_DEPOSIT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "if_the_tax", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_IF_THE_TAX" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "acknowledgement_for", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ACKNOWLEDGEMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "date_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "$.businessService" - }, - "localisation":{ - "required":true, - "prefix": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_ID", - "module":"rainmaker-common" - } - }, - { - "variable": "name_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_NAME_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_payment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL_PAYMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receivers_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_RECEIVERS_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "totalAmountDue", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "total", - "value": { - "path": "$.totalAmount" - } - }, - - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - - { - "variable": "mobileNo", - "value": { - "path": "$.mobileNumber" - } - }, - - { - "variable": "payerAddress", - "value": { - "path": "$.payerAddress" - } - }, - { - "variable": "nameAddress", - "value": { - "path": "$.payerAddress" - } - }, - - { - "variable": "billNo", - "value": { - "path": "$.billNumber" - } - }, - { - "variable": "tenantId", - "value": { - "path": "$.tenantId" - } - }, - { - "variable": "businessServiceCode", - "value": { - "path": "$.businessService" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.billDetails[0].toPeriod" - }, - "type": "date" - }, - - { - "variable": "billIssueDate", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - - { - "variable": "billDueDate", - "value": { - "path": "$.billDetails[0].expiryDate" - }, - "type": "date" - }, - { - "variable": "billdate", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - { - "variable":"hostname", - "type": "external_host" - }, - { - "variable": "propertyID", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "fees", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_TAX')].amount" - } - }, - { - "variable": "pt_penalty", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_TIME_PENALTY')].amount" - } - }, - { - "variable": "pt_rebate", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_TIME_REBATE')].amount" - } - }, - { - "variable": "pt_adhoc_penalty", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_ADHOC_PENALTY')].amount" - } - }, - { - "variable": "pt_adhoc_rebate", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_ADHOC_REBATE')].amount" - } - }, - { - "variable": "pt_owner_exemption", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_OWNER_EXEMPTION')].amount" - } - }, - { - "variable": "pt_unit_usage_exemption", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_UNIT_USAGE_EXEMPTION')].amount" - } - }, - { - "variable": "pt_fire_cess", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_FIRE_CESS')].amount" - } - }, - { - "variable": "pt_cancer_cess", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_CANCER_CESS')].amount" - } - }, - { - "variable": "pt_time_interest", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_TIME_INTEREST')].amount" - } - }, - { - "variable": "pt_decimal_ceiling_debit", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_DECIMAL_CEILING_DEBIT')].amount" - } - }, - { - "variable": "pt_decimal_ceiling_credit", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_DECIMAL_CEILING_CREDIT')].amount" - } - }, - { - "variable": "pt_roundoff", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_ROUNDOFF')].amount" - } - }, - { - "variable": "pt_arrearrs", - "value":{ - "path": "$.billDetails[(@.length-1)].amount" - } - }, - { - "variable": "pt_advance_carryforward", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_ADVANCE_CARRYFORWARD')].amount" - } - }, - { - "variable": "adjustment", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'PT_ADJUSTMENT')].amount" - } - }, - { - "variable": "consumerID", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "date", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - { - "variable": "totalPayment", - "value": { - "path": "$.billDetails[0].amountPaid" - } - }, - { - "variable":"scissorImage", - "url":"http://www.pngall.com/wp-content/uploads/2016/03/Scissor-PNG-Clipart.png", - "type":"image" - }, - - { - "variable": "adhoc_penalty_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ADHOC_PENALTY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "adhoc_rebate_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ADHOC_REBATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "owner_exemption_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_OWNER_EXEMPTION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "unit_usage_exemption_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_UNIT_USAGE_EXEMPTION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "fire_cess_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_FIRE_CESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "cancer_cess_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CANCER_CESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "time_interest_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TIME_INTEREST" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "decimal_ceiling_debit_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_DECIMAL_CEILING_DEBIT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "decimal_ceiling_credit_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_DECIMAL_CEILING_CREDIT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "advance_carryforward_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_DECIMAL_ADVANCE_CARRYFORWARD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "roundoff_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_DECIMAL_ADVANCE_ROUNDOFF" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "arrears_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_DECIMAL_ARREARS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "adjustment_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ADJUSTMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "charge", - "formula": "{{fees}}" - }, - { - "variable": "penalty", - "formula": "{{pt_penalty}}" - }, - { - "variable": "rebate", - "formula": "{{pt_rebate}}" - }, - { - "variable": "adhoc_penalty", - "formula": "{{pt_adhoc_penalty}}" - }, - { - "variable": "adhoc_rebate", - "formula": "{{pt_adhoc_rebate}}" - }, - { - "variable": "owner_exemption", - "formula": "{{pt_owner_exemption}}" - }, - { - "variable": "unit_usage_exemption", - "formula": "{{pt_unit_usage_exemption}}" - }, - { - "variable": "fire_cess", - "formula": "{{pt_owner_exemption}}" - }, - { - "variable": "cancer_cess", - "formula": "{{pt_cancer_cess}}" - }, - { - "variable": "time_interest", - "formula": "{{pt_time_interest}}" - }, - { - "variable": "decimal_ceiling_debit", - "formula": "{{pt_decimal_ceiling_debit}}" - }, - { - "variable": "decimal_ceiling_credit", - "formula": "{{pt_decimal_ceiling_credit}}" - }, - { - "variable": "advance_carryforward", - "formula": "{{pt_advance_carryforward}}" - }, - { - "variable": "roundoff", - "formula": "{{pt_roundoff}}" - }, - { - "variable": "arrearrs", - "formula": "{{totalAmountDue}} - {{pt_arrearrs}}" - }, - { - "variable": "adjustments/paid", - "formula": "{{adjustment}}" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.businessService}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "variable11", - "value": "$.MdmsRes.tenant.footer[0].billFooterContent.*", - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable":"disclaimerContent", - "value":"disclaimer", - "type":"string", - "localisation":{ - "required":true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - } - } - ] - } - ] - }, - { - "qrcodeConfig": [ - { - "variable": "qrcodeimage", - "value":"{{hostname}}citizen/egov-common/pay?consumerCode={{propertyID}}&tenantId={{tenantId}}&businessService={{businessServiceCode}}" - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/property-receipt.json b/pdf-service/data-config/property-receipt.json deleted file mode 100644 index d1f29ed7..00000000 --- a/pdf-service/data-config/property-receipt.json +++ /dev/null @@ -1,493 +0,0 @@ -{ - "key": "property-receipt", - "documentType": "PROPERTYRECEIPT", - "DataConfigs": { - "moduleName": "PT", - "version": "1.0.0", - "baseKeyPath": "$.Payments.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.userInfo.name" - }, - "type":"selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "paymentStatus", - "value": { - "path": "$.paymentStatus" - }, - "localisation":{ - "required":true, - "prefix":null, - "module":"rainmaker-common" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "paidAmount", - "value": { - "path": "$.paymentDetails[0].totalAmountPaid" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].toPeriod" - }, - "type": "date" - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_PAYMENTMODE", - "module": "rainmaker-common" - } - }, - { - "variable": "G8ReceiptNo", - "value": { - "path": "$.paymentDetails[0].manualReceiptNumber" - } - }, - { - "variable": "G8ReceiptDate", - "value": { - "path": "$.paymentDetails[0].manualReceiptDate" - }, - "type": "date" - }, - { - "variable": "paymentDate", - "value": { - "path": "$.transactionDate" - }, - "type": "date" - }, - { - "variable": "consumerID", - "value": { - "path": "$.paymentDetails[0].bill.consumerCode" - } - }, - { - "variable": "transactionID", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "dueAmount", - "value": { - "path": "$.paymentDetails[0].totalDue" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation":{ - "required":true, - "prefix": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CONSUMER_ID", - "module":"rainmaker-common" - } - }, - { - "variable": "payment_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_status", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_STATUS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "billing_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BILLING_PERIOD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "pending_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PENDING_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "excess_amount_paid", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_EXCESS_AMOUNT_PAID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_bill_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TOTAL_BILL_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "pendingAmount", - "formula": "{{dueAmount}}>{{paidAmount}}?{{dueAmount}}-{{paidAmount}}:0" - }, - { - "variable": "excessAmountPaid", - "formula": "{{paidAmount}}>{{dueAmount}}?{{paidAmount}}-{{dueAmount}}:0" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.paymentDetails[0].businessService}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "variable11", - "value": "$.MdmsRes.tenant.footer[0].receiptFooterContent.*", - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable":"disclaimerContent", - "value":"disclaimer", - "type":"string", - "localisation":{ - "required":true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/pt-receipt.json b/pdf-service/data-config/pt-receipt.json deleted file mode 100644 index 56e0706e..00000000 --- a/pdf-service/data-config/pt-receipt.json +++ /dev/null @@ -1,273 +0,0 @@ -{ - - "key":"pt-receipt", - "DataConfigs": { - "serviceName": "rainmaker-pt", - "version": "1.0.0", - "baseKeyPath": "$.Properties.*", - "entityIdPath":"$.propertyId", - "isCommonTableBorderRequired":true, - "mappings": [ - { - "topic": "pt-pdf-generation", - "staticConfigPath": "https://raw.githubusercontent.com/egovernments/egov-services/vishal-feature-filestore/core/egov-indexer/src/main/resources/rainmaker-pgr-indexer.yml", - "mappings": [ - { - "direct": [ - { - "variable": "variable1", - "value": { - "path":"$.propertyDetails[0].financialYear" - } - }, - { - "variable": "variable38", - "url":"https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type":"image" - }, - { - "variable": "variable35", - "value": { - "path":"$.tenantId" - }, - "localisation":{ - "required":true, - "prefix":"TENANT_TENANTS", - "module":"rainmaker-common" - }, - "isUpperCaseRequired":true - }, - { - "variable": "variable36", - "type":"citizen-employee-title" - }, - { - "variable":"variable2", - "value":{ - "path":"$.oldPropertyId" - } - }, - { - "variable": "variable3", - "value":{ - "path":"$.propertyId" - } - }, - { - "variable": "variable4", - "value":{ - "path":"$.propertyDetails[0].assessmentNumber" - } - }, - { - "variable": "variable5", - "value":{ - "path":"$.address.doorNo" - } - }, - { - "variable": "variable6", - "value":{ - "path":"$.address.buildingName" - } - }, - { - "variable": "variable7", - "value":{ - "path":"$.address.street" - } - }, - { - "variable": "variable8", - "value":{ - "path":"$.address.locality.name" - } - }, - { - "variable": "variable9", - "value":{ - "path":"$.propertyDetails[0].landArea" - } - }, - { - "variable": "variable10", - "value":{ - "path":"$.propertyDetails[0].propertySubType" - }, - "localisation":{ - "required":true, - "prefix":"PROPERTYTAX_BILLING_SLAB", - "module":"rainmaker-pt" - } - }, - { - "variable": "variable11", - "value":{ - "path":"$.propertyDetails[0].owners.*" - }, - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "key":"name" - }, - { - "key":"fatherOrHusbandName" - }] - } - }, - { - "variable": "variable12", - "value":{ - "path":"$.propertyDetails[0].units.*" - }, - "type":"array-column", - "format":{ - "type":"string", - "scema":[ - { - "key":"floorNo", - "localisation":{ - "required":true, - "prefix":"PROPERTYTAX_FLOOR", - "module":"rainmaker-pt" - } - - }, - { - "key":"usageCategoryMinor", - "localisation":{ - "required":true, - "prefix":"PROPERTYTAX_BILLING_SLAB", - "module":"rainmaker-pt" - } - - }, - { - "key":"usageCategoryDetail", - "localisation":{ - "required":true, - "prefix":"PROPERTYTAX_BILLING_SLAB", - "module":"rainmaker-pt" - } - }, - { - "key":"occupancyType", - "localisation":{ - "required":true, - "prefix":"PROPERTYTAX_OCCUPANCYTYPE", - "module":"rainmaker-pt" - } - }, - { - "key":"unitArea" - }] - } - } - ] - }, - { - "derived": [ - { - "variable": "variable37", - "formula": "{{variable34}}-{{variable27}}" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://collection-services:8080/collection-services/receipts/_search", - "queryParam": "consumerCode=$.propertyId:$.propertyDetails[0].assessmentNumber", - "apiRequest": null, - "responseMapping":[ - { - "variable":"variable15", - "value":"$.Receipt[0].receiptNumber" - }, - { - "variable":"variable16", - "value":"$.Receipt[0].receiptDate" - }, - { - "variable":"variable17", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TAX')].amount" - }, - { - "variable":"variable18", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_FIRE_CESS')].amount" - }, - { - "variable":"variable19", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_CANCER_CESS')].amount" - }, - { - "variable":"variable20", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TIME_PENALTY')].amount" - }, - { - "variable":"variable21", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TIME_REBATE')].amount" - }, - { - "variable":"variable22", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TIME_INTEREST')].amount" - }, - { - "variable":"variable23", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_UNIT_USAGE_EXEMPTION')].amount" - }, - { - "variable":"variable24", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_OWNER_EXEMPTION')].amount" - }, - { - "variable":"variable25", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_ROUNDOFF')].amount" - }, - { - "variable":"variable26", - "value":"$.Receipt[0].Bill[0].billDetails[0].totalAmount" - }, - { - "variable":"variable27", - "value":"$.Receipt[0].Bill[0].billDetails[0].amountPaid" - }, - { - "variable":"variable28", - "value":"$.Receipt[0].instrument.instrumentType.name" - }, - { - "variable":"variable29", - "value":"$.Receipt[0].instrument.bank.name" - }, - { - "variable":"variable30", - "value":"$.Receipt[0].transactionId" - }, - { - "variable":"variable31", - "value":"$.Receipt[0].instrument.transactionDateInput" - }, - { - "variable":"variable32", - "value":"$.Receipt[0].Bill[0].billDetails[0].manualReceiptNumber" - }, - { - "variable":"variable33", - "value":"$.Receipt[0].Bill[0].billDetails[0].manualReceiptDate" - }, - { - "variable":"variable34", - "value":"$.Receipt[0].Bill[0].billDetails[0].totalAmount" - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ptmutationcertificate.json b/pdf-service/data-config/ptmutationcertificate.json deleted file mode 100644 index 47562028..00000000 --- a/pdf-service/data-config/ptmutationcertificate.json +++ /dev/null @@ -1,380 +0,0 @@ -{ - "key": "ptmutationcertificate", - "documentType": "PTMUTATION", - "DataConfigs": { - "moduleName": "PT", - "version": "1.0.0", - "baseKeyPath": "$.Properties.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "mappings": [ - { - "direct": [ - - { - "variable": "municipal_corportaion", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_fax", - "value": { - "path": "PDF_STATIC_LABEL_MUTATION_FAX" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_website", - "value": { - "path": "PDF_STATIC_LABEL_MUTATION_WEBSITE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_email", - "value": { - "path": "PDF_STATIC_LABEL_MUTATION_EMAIL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Mutation_Approval_Certificate", - "value": { - "path": "PDF_STATIC_LABEL_MUATATION_APPROVAL_CERTIFICATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Property_ID_Label", - "value": { - "path": "PDF_STATIC_LABEL_MUATATION_PROPERTY_ID_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Mutation_Number_Label", - "value": { - "path": "PDF_STATIC_LABEL_MUATATION_NUMBER_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Application_Number_Label", - "value": { - "path": "PDF_STATIC_LABEL_APPLICATION_NUMBER_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Receipt_Number_Label", - "value": { - "path": "PDF_STATIC_LABEL_RECEIPT_NUMBER_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Approval_Date_Label", - "value": { - "path": "PDF_STATIC_LABEL_APPROVAL_DATE_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Order_Label", - "value": { - "path": "PDF_STATIC_LABEL_ORDER_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Mutation_Declaration_Label", - "value": { - "path": "$.tenantId" - }, - "localisation":{ - "required":true, - "prefix": "PDF_STATIC_LABEL_MUTATION_DECLARATION_LABEL", - "module":"rainmaker-common" - } - }, - { - "variable": "Transferrer_Details_Label", - "value": { - "path": "PDF_STATIC_LABEL_TRANSFERRER_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Transferree_Details_Label", - "value": { - "path": "PDF_STATIC_LABEL_TRANSFERREE_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Mutation_To_Label", - "value": { - "path": "PDF_STATIC_LABEL_MUTATION_TO_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Shri_Smt_Label", - "value": { - "path": "PDF_STATIC_LABEL_SHRI_SMT_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "approved_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_APPROVED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_COMMISSIONER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Property_ID", - "value": { - "path": "$.propertyId" - } - }, - { - "variable": "Mutation_Number", - "value": { - "path": "$.acknowldgementNumber" - } - }, - { - "variable": "Application_Number", - "value": { - "path": "$.acknowldgementNumber" - } - }, - { - "variable": "Transferrer_Name", - "value": { - "path": "$.owners[?(@.status == 'INACTIVE')].name" - } - }, - { - "variable": "Transferrer_Relation", - "value": { - "path": "$.owners[?(@.status == 'INACTIVE')].relationship" - }, - "localisation":{ - "required":true, - "prefix": "PT_MUTATION", - "module": "rainmaker-common" - } - }, - { - "variable": "Transferrer_Relative_Name", - "value": { - "path": "$.owners[?(@.status == 'INACTIVE')].fatherOrHusbandName" - } - }, - { - "variable": "Transferree_Name", - "value": { - "path": "$.owners[?(@.status == 'ACTIVE')].name" - } - }, - { - "variable": "Transferree_Relation", - "value": { - "path": "$.owners[?(@.status == 'ACTIVE')].relationship" - }, - "localisation":{ - "required":true, - "prefix": "PT_MUTATION", - "module": "rainmaker-common" - } - }, - { - "variable": "Transferree_Relative_Name", - "value": { - "path": "$.owners[?(@.status == 'ACTIVE')].fatherOrHusbandName" - } - }, - { - "variable": "Transferree_Address", - "value": { - "path": "$.owners[?(@.status == 'ACTIVE')].permanentAddress" - } - }, - { - "variable": "Transferree_City", - "value": { - "path": "$.owners[?(@.status == 'ACTIVE')].permanentCity" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"ULB_LOGO", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable":"ULB_ADDRESS", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"ULB_CITY", - "value":"$.MdmsRes.tenant.tenants[0].name" - }, - { - "variable":"CorporationContact_Value", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"corporationWebsite", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"corporationEmail", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - } - ] - }, - { - "path": "http://collection-services:8080/collection-services/payments/PT.MUTATION/_search", - "queryParam": "tenantId=$.tenantId,consumerCodes=$.acknowldgementNumber,businessServices=PT.MUTATION", - "apiRequest": null, - "responseMapping":[ - { - "variable":"Receipt_Number", - "value":"$.Payments[0].paymentDetails[0].receiptNumber" - } - - ] - }, - { - "path": "http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search", - "queryParam": "businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId", - "apiRequest": null, - "responseMapping":[ - { - "variable":"approved_by_value", - "value":"$.ProcessInstances[?(@.action == 'APPROVE')].assigner.name" - }, - { - "variable":"Approval_Date", - "value":"$.ProcessInstances[?(@.action == 'APPROVE')].auditDetails.lastModifiedTime", - "type": "date" - } - - ] - } - - ] - } - ] - -} -] -} -} diff --git a/pdf-service/data-config/sewerage-bill-amendment-note.json b/pdf-service/data-config/sewerage-bill-amendment-note.json deleted file mode 100644 index 7d4f6d78..00000000 --- a/pdf-service/data-config/sewerage-bill-amendment-note.json +++ /dev/null @@ -1,613 +0,0 @@ -{ - "key": "sw-bill-amendment-credit-note", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Amendments.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "applicationNo", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.additionalDetails.ownerName" - } - }, - { - "variable": "permanentAddress", - "value": { - "path": "$.additionalDetails.ownerAddress" - } - }, - { - "variable": "date", - "value": { - "path": "$.userInfo.createdDate" - }, - "type":"selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "paymentStatus", - "value": { - "path": "$.paymentStatus" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "sewerageInterest", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'SW_TIME_INTEREST')].taxAmount" - } - }, - { - "variable": "water_cess", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_WATER_CESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "interest", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_INTEREST" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "penalty", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_PENALTY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sewerage_charge", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_SEWERAGE_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "seweragePenalty", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'SW_TIME_PENALTY')].taxAmount" - } - }, - { - "variable": "arrears", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_ARREARS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sewerageCharge", - "value": { - "path": "$.demandDetails[?(@.taxHeadMasterCode == 'SW_CHARGE')].taxAmount" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "bill_amendment_application", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_APPLICATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "demand_revision_basis_details", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_DEM_REV_BAS_DET" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "demand_revision_basis", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_DEM_REV_BASIS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "court_order_no", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_COURT_ORDER_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "with_effect_from", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_WITH_EFFECT_FROM" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "demandRevisionBasis", - "value": { - "path": "$.amendmentReason" - } - }, - { - "variable": "courtOrderNo", - "value": { - "path": "$.reasonDocumentNumber" - } - }, - { - "variable": "withEffectFrom", - "value": { - "path": "$.effectiveFrom" - } - }, - { - "variable": "court_order", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_COURT_ORDER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "note_id", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "note_date", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "against", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_AGAINST" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "adjustment_amount_details", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_ADJUSTMENT_AMOUNT_DETAILS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "rs", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_RS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "box_note", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_BOX_NOTE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "box_validity", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_NOTE_BOX_VALIDITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "self_declaration", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_SELF_DECLARATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "past_bills", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_PAST_BILLS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "courtOrder", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "selfDeclaration", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "pastBills", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "applicationNo", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "bill_amendment_application_number", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_APPLICATION_NUMBER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "adjustment_amount_details", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_ADJUSTMENT_AMOUNT_DETAILS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - - }, - { - "variable": "sl_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SERIAL_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "tax_heads", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_TAX_HEADS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "reduced_amount", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_REDUCED_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "note_type", - "value": { - "path": "$.additionalDetails.noteType" - }, - "localisation": { - "required": true, - "prefix": "PDF_STATIC_LABEL_BILL_AMENDMENT", - "module": "rainmaker-common" - } - }, - { - "variable": "water_tax", - "value": { - "path": "PDF_STATIC_LABEL_BILL_AMENDMENT_WATER_TAX" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "totalAmount", - "formula": "{{sewerageCharge}}+{{sewerageInterest}}+{{seweragePenalty}}" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.businessService}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "variable11", - "value": "$.MdmsRes.tenant.footer[0].receiptFooterContent.*", - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable":"disclaimerContent", - "value":"disclaimer", - "type":"string", - "localisation":{ - "required":true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/testconsolidatedreceipt.json b/pdf-service/data-config/testconsolidatedreceipt.json deleted file mode 100644 index 7e996bb4..00000000 --- a/pdf-service/data-config/testconsolidatedreceipt.json +++ /dev/null @@ -1,476 +0,0 @@ -{ - "key": "testconsolidatedreceipt", - "documentType":"CONSOLIDATED_RECEIPT", - "DataConfigs": { - "moduleName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Payments.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.userInfo.name" - }, - "type":"selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "paidAmount", - "value": { - "path": "$.paymentDetails[0].totalAmountPaid" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].toPeriod" - }, - "type": "date" - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_PAYMENTMODE", - "module": "rainmaker-common" - } - }, - { - "variable": "G8ReceiptNo", - "value": { - "path": "$.paymentDetails[0].manualReceiptNumber" - } - }, - { - "variable": "G8ReceiptDate", - "value": { - "path": "$.paymentDetails[0].manualReceiptDate" - }, - "type": "date" - }, - { - "variable": "paymentDate", - "value": { - "path": "$.transactionDate" - }, - "type": "date" - }, - { - "variable": "consumerID", - "value": { - "path": "$.paymentDetails[0].bill.consumerCode" - } - }, - { - "variable": "transactionID", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "dueAmount", - "value": { - "path": "$.paymentDetails[0].totalDue" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CONSUMER_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "billing_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BILLING_PERIOD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "pending_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PENDING_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_1", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIRST_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_2", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_SECOND_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_3", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_THIRD_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_4", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FOURTH_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_5", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIFTH_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "pendingAmount", - "formula": "{{dueAmount}}-{{paidAmount}}" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/testlocalconsolidatedbill.json b/pdf-service/data-config/testlocalconsolidatedbill.json deleted file mode 100644 index a9d8bf77..00000000 --- a/pdf-service/data-config/testlocalconsolidatedbill.json +++ /dev/null @@ -1,535 +0,0 @@ -{ - "key": "testlocalconsolidatedbill", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Bill.*", - "entityIdPath":"$.billNumber", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-1", - "staticConfigPath": "https://raw.githubusercontent.com/egovernments/egov-services/vishal-feature-filestore/core/egov-indexer/src/main/resources/rainmaker-pgr-indexer.yml", - "mappings": [ - { - "direct": [ - { - "variable": "logoImage", - "url": "https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type": "image" - }, - { - "variable": "logo_header", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_LOGO_HEADER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_amount_due", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL_AMOUNT_DUE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_MOBILE_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_PERIOD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYER_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - - { - "variable": "bill_issue_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ISSUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_due_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_DUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "billing_summary_property_tax", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILLING_SUMMARY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "property_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PROPERTY_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "arrears_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ARREARS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "charge_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CHARGE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - - { - "variable": "penalty_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PENALTY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "rebate_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_REBATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "others_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_OTHERS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "important_message", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_IMPORTANT_MESSAGE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_received", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYMENT_RECEIVED" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "this_document", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_THIS_DOCUMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "this_is_a", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_THIS_IS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "assessment_payment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ASSESSSMENT_PAYMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "please_deposit", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PLEASE_DEPOSIT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "if_the_tax", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_IF_THE_TAX" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "acknowledgement_for", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ACKNOWLEDGEMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "date_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "name_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_NAME_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_payment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL_PAYMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receivers_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_RECEIVERS_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "totalAmountDue", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "total", - "value": { - "path": "$.totalAmount" - } - }, - - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - - { - "variable": "mobileNo", - "value": { - "path": "$.mobileNumber" - } - }, - - { - "variable": "payerAddress", - "value": { - "path": "$.payerAddress" - } - }, - { - "variable": "nameAddress", - "value": { - "path": "$.payerAddress" - } - }, - - { - "variable": "billNo", - "value": { - "path": "$.billNumber" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.billDetails[0].fromPeriod" - } - }, - { - "variable": "toPeriod", - "value": { - "path": "$.billDetails[0].toPeriod" - } - }, - - { - "variable": "billIssueDate", - "value": { - "path": "$.billDate" - } - }, - - { - "variable": "billDueDate", - "value": { - "path": "$.billDetails[0].expiryDate" - } - }, - - { - "variable": "propertyID", - "value": { - "path": "$.consumerCode" - } - }, - - { - "variable": "arrears", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TIME_PENALTY')].amount" - } - }, - - { - "variable": "charge", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TIME_REBATE')].amount" - } - }, - - { - "variable": "rebate", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TIME_REBATE')].amount" - } - }, - - { - "variable": "penalty", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TIME_REBATE')].amount" - } - }, - - { - "variable": "others", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode=='PT_TAX')].amount" - } - }, - - { - "variable": "consumerID", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "date", - "value": { - "path": "$.billDate" - } - }, - { - "variable": "totalPayment", - "value": { - "path": "$.billDetails[0].amountPaid" - } - }, - { - "variable":"scissorImage", - "url":"https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type":"image" - } - ] - }, - { - "derived": [ - { - "variable": "variable19", - "formula": "{{totalPayment}}-{{totalPayment}}" - } - ] - } - ] - } - ] - } - } \ No newline at end of file diff --git a/pdf-service/data-config/testlocalconsolidatedreceipt.json b/pdf-service/data-config/testlocalconsolidatedreceipt.json deleted file mode 100644 index 1c5af18a..00000000 --- a/pdf-service/data-config/testlocalconsolidatedreceipt.json +++ /dev/null @@ -1,457 +0,0 @@ -{ - "key": "consolidatedreceipt", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Payments.*", - "entityIdPath":"$.paymentDetails[0].receiptNumber", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.userInfo.name" - }, - "type":"selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "paidAmount", - "value": { - "path": "$.paymentDetails[0].totalAmountPaid" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].fromPeriod" - } - }, - { - "variable": "toPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].toPeriod" - } - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - } - }, - { - "variable": "G8ReceiptNo", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].manualReceiptNumber" - } - }, - { - "variable": "G8ReceiptDate", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].manualReceiptDate" - } - }, - { - "variable": "paymentDate", - "value": { - "path": "$.transactionDate" - } - }, - { - "variable": "consumerID", - "value": { - "path": "$.paymentDetails[0].bill.consumerCode" - } - }, - { - "variable": "transactionID", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "dueAmount", - "value": { - "path": "$.paymentDetails[0].totalDue" - } - }, - { - "variable": "logoImage", - "url":"https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type":"image" - }, - { - "variable": "logo-header", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT.LOGO.HEADER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": "", - "module":"rainmaker-common" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CONSUMER_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "billing_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BILLING_PERIOD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "pending_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PENDING_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_1", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIRST_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_2", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_SECOND_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_3", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_THIRD_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_4", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FOURTH_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer_5", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIFTH_LINE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "pendingAmount", - "formula": "{{dueAmount}}-{{paidAmount}}" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='$.tenantId')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - } - ] - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pdf-service/data-config/tl-receipt.json b/pdf-service/data-config/tl-receipt.json deleted file mode 100644 index a97933bd..00000000 --- a/pdf-service/data-config/tl-receipt.json +++ /dev/null @@ -1,236 +0,0 @@ -{ - "key":"tl-receipt", - "DataConfigs": { - "serviceName": "rainmaker-tl", - "version": "1.0.0", - "baseKeyPath": "$.Licenses.*", - "entityIdPath":"$.applicationNumber", - "isCommonTableBorderRequired":true, - "mappings": [ - { - "topic": "tl-pdf-generation", - "staticConfigPath": "https://raw.githubusercontent.com/egovernments/egov-services/vishal-feature-filestore/core/egov-indexer/src/main/resources/rainmaker-pgr-indexer.yml", - "mappings": [ - { - "direct": [ - - { - "variable": "variable1", - "value": { - "path":"$.tradeLicenseDetail.additionalDetail.applicationType" - }, - "localisation":{ - "required":true, - "prefix":"TRADELICENSE_APPLICATIONTYPE", - "module":"rainmaker-tl" - } - }, - { - "variable": "variable33", - "url":"https://s3.ap-south-1.amazonaws.com/pb-egov-assets/pb.amritsar/logo.png", - "type":"image" - }, - { - "variable": "variable30", - "value": { - "path":"$.tenantId" - }, - "localisation":{ - "required":true, - "prefix":"TENANT_TENANTS", - "module":"rainmaker-common" - }, - "isUpperCaseRequired":true - }, - { - "variable": "variable31", - "type":"citizen-employee-title" - }, - { - "variable": "variable2", - "value": { - "path":"$.oldLicenseNumber" - } - }, - { - "variable": "variable3", - "value":{ - "path":"$.applicationNumber" - } - }, - { - "variable": "variable4", - "value": { - "path":"$.financialYear" - } - }, - { - "variable": "variable5", - "value": { - "path":"$.tradeName" - } - }, - { - "variable": "variable6", - "value": { - "path":"$.tradeLicenseDetail.tradeUnits[*].tradeType" - }, - "localisation":{ - "required":true, - "prefix":"TRADELICENSE_TRADETYPE", - "module":"rainmaker-tl", - "isCategoryRequired":true - } - }, - { - "variable": "variable7", - "value": { - "path":"$.tradeLicenseDetail.tradeUnits[*].tradeType" - }, - "localisation":{ - "required":true, - "prefix":"TRADELICENSE_TRADETYPE", - "module":"rainmaker-tl", - "isMainTypeRequired":true, - "isSubTypeRequired":true - } - }, - { - "variable": "variable8", - "value": { - "path":"$.tradeLicenseDetail.accessories[*].accessoryCategory" - }, - "localisation":{ - "required":true, - "prefix":"TRADELICENSE_ACCESSORIESCATEGORY", - "module":"rainmaker-tl" - } - }, - { - "variable": "variable9", - "value": { - "path":"$.tradeLicenseDetail.address.doorNo" - } - }, - { - "variable": "variable10", - "value": { - "path":"$.tradeLicenseDetail.address.buildingName" - } - }, - { - "variable": "variable11", - "value": { - "path":"$.tradeLicenseDetail.address.street" - } - }, - { - "variable": "variable12", - "value": { - "path":"$.tradeLicenseDetail.address.locality.name" - } - }, - { - "variable": "variable13", - "value":{ - "path":"$.tradeLicenseDetail.owners.*" - }, - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "key":"name" - }, - { - "key":"mobileNumber" - }] - } - } - ] - }, - { - "derived": [ - { - "variable": "variable32", - "formula": "{{variable19}}-{{variable20}}" - } - ] - }, - { - "externalAPI": [ - - { - - "path": "http://collection-services:8080/collection-services/receipts/_search", - "queryParam": "consumerCode=$.applicationNumber", - - - "apiRequest": null, - - "responseMapping":[ - { - "variable":"variable16", - "value":"$.Receipt[0].receiptNumber" - }, - { - "variable":"variable17", - "value":"$.Receipt[0].instrument.transactionDateInput" - }, - { - "variable":"variable18", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='TL_TAX')].amount" - }, - { - "variable":"variable19", - "value":"$.Receipt[0].Bill[0].billDetails[0].totalAmount" - }, - { - "variable":"variable20", - "value":"$.Receipt[0].Bill[0].billDetails[0].amountPaid" - }, - { - "variable":"variable21", - "value":"$.Receipt[0].instrument.instrumentType.name" - }, - { - "variable":"variable22", - "value":"$.Receipt[0].transactionId" - }, - { - "variable":"variable23", - "value":"$.Receipt[0].instrument.bank.name" - }, - { - "variable":"variable24", - "value":"$.Receipt[0].Bill[0].billDetails[0].manualReceiptNumber" - }, - { - "variable":"variable25", - "value":"$.Receipt[0].Bill[0].billDetails[0].manualReceiptDate" - }, - { - "variable":"variable26", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='TL_TIME_PENALTY')].amount" - }, - { - "variable":"variable27", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='TL_TIME_REBATE')].amount" - }, - { - "variable":"variable28", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='TL_ADHOC_PENALTY')].amount" - }, - { - "variable":"variable29", - "value":"$.Receipt[0].Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode=='TL_ADHOC_REBATE')].amount" - } - ] - } - ] - } - ] - } - ] - } - } diff --git a/pdf-service/data-config/tlapplication.json b/pdf-service/data-config/tlapplication.json deleted file mode 100644 index d62f88b1..00000000 --- a/pdf-service/data-config/tlapplication.json +++ /dev/null @@ -1,1063 +0,0 @@ -{ - "key": "tlapplication", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Licenses.*", - "entityIdPath":"$.applicationNumber", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "mappings": [ - { - "direct": [ - { - "variable": "applicationNumber", - "value": { - "path": "$.applicationNumber" - } - }, - { - "variable": "applicationType", - "value": { - "path": "$.tradeLicenseDetail.additionalDetail.applicationType" - }, - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_APPLICATIONTYPE", - "module": "rainmaker-tl" - } - }, - { - "variable": "oldLicenseNumber", - "value": { - "path": "$.oldLicenseNumber" - } - }, - { - "variable": "licenseType", - "value": { - "path": "$.licenseType" - }, - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_LICENSETYPE", - "module": "rainmaker-tl" - } - }, - { - "variable": "tradeName", - "value": { - "path": "$.tradeName" - } - }, - { - "variable": "structureType", - "value": { - "path": "$.tradeLicenseDetail.structureType" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_STRUCTURETYPE", - "module": "rainmaker-tl", - "isCategoryRequired":true - } - }, - { - "variable": "structureSubType", - "value": { - "path": "$.tradeLicenseDetail.structureType" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_STRUCTURETYPE", - "module": "rainmaker-tl", - "isSubTypeRequired":true - } - }, - { - "variable": "commencementDate", - "value": { - "path": "$.commencementDate" - }, - "type": "date" - }, - { - "variable": "tradeGstNo", - "value": { - "path": "$.tradeLicenseDetail.additionalDetail.gstNo" - } - }, - { - "variable": "operationalArea", - "value": { - "path": "$.tradeLicenseDetail.operationalArea" - } - }, - { - "variable": "noOfEmployees", - "value": { - "path": "$.tradeLicenseDetail.noOfEmployees" - } - }, - { - "variable": "tradeCategory", - "value": { - "path": "$.tradeLicenseDetail.tradeUnits[0].tradeType" - }, - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_TRADETYPE", - "module": "rainmaker-tl", - "isCategoryRequired":true - } - }, - { - "variable": "tradeType1", - "value": { - "path": "$.tradeLicenseDetail.tradeUnits[0].tradeType" - }, - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_TRADETYPE", - "module": "rainmaker-tl", - "isMainTypeRequired":true - } - }, - { - "variable": "tradeSubType", - "value": { - "path": "$.tradeLicenseDetail.tradeUnits[0].tradeType" - }, - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_TRADETYPE", - "module": "rainmaker-tl", - "isSubTypeRequired":true - } - }, - { - "variable": "uomMeasurement", - "value": { - "path": "$.tradeLicenseDetail.tradeUnits[0].uom" - } - }, - { - "variable": "uomValue1", - "value": { - "path": "$.tradeLicenseDetail.tradeUnits[0].uomValue" - } - }, - { - "variable": "propertyAssessmentId", - "value": { - "path": "$.propertyId" - } - }, - { - "variable": "city", - "value": { - "path": "$..tradeLicenseDetail.address.city" - }, - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.tradeLicenseDetail.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.tradeLicenseDetail.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.tradeLicenseDetail.address.street" - } - }, - { - "variable": "mohalla", - "value": { - "path": "$.tradeLicenseDetail.address.locality.code" - }, - "localisation":{ - "required":true, - "prefix": "TENANTS_MOHALLA", - "module": "rainmaker-common" - } - }, - { - "variable": "pincode", - "value": { - "path": "$.tradeLicenseDetail.address.pincode" - } - }, - { - "variable": "ownershipProof", - "value": { - "path": "$.additionalDetails.documents[?(@.title == 'TL_OWNERSHIPPROOF')].name" - } - }, - { - "variable": "ownersIdProof", - "value": { - "path": "$.additionalDetails.documents[?(@.title == 'TL_OWNERIDPROOF')].name" - } - }, - { - "variable": "ownerPhoto", - "value": { - "path": "$.additionalDetails.documents[?(@.title == 'TL_OWNERPHOTO')].name" - } - }, - { - "variable": "electricityConnectionNo", - "value": { - "path": "$.tradeLicenseDetail.additionalDetail.electricityConnectionNo" - } - }, - { - "variable": "typeOfOwnership", - "value": { - "path": "$.tradeLicenseDetail.subOwnerShipCategory" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_OWNERSHIPCATEGORY", - "module": "rainmaker-tl", - "isCategoryRequired":true - } - - }, - { - "variable": "typeOfSubOwnership", - "value": { - "path": "$.tradeLicenseDetail.subOwnerShipCategory" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_OWNERSHIPCATEGORY", - "module": "rainmaker-tl", - "isSubTypeRequired":true - } - }, - { - "variable": "mobileNo", - "value": { - "path": "$..tradeLicenseDetail.owners[0].mobileNumber" - } - }, - { - "variable": "name", - "value": { - "path": "$.tradeLicenseDetail.owners[0].name" - } - }, - { - "variable": "fatherHusbandName", - "value": { - "path": "$.tradeLicenseDetail.owners[0].fatherOrHusbandName" - } - }, - { - "variable": "relationship", - "value": { - "path": "$.tradeLicenseDetail.owners[0].relationship" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_RELATION", - "module": "rainmaker-tl" - } - }, - { - "variable": "gender", - "value": { - "path": "$.tradeLicenseDetail.owners[0].gender" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_GENDER", - "module": "rainmaker-common" - } - }, - { - "variable": "dateOfBirth", - "value": { - "path": "$.tradeLicenseDetail.owners[0].dob" - }, - "type": "date" - }, - { - "variable": "email", - "value": { - "path": "$.tradeLicenseDetail.owners[0].emailId" - } - }, - { - "variable": "panNo", - "value": { - "path": "$.tradeLicenseDetail.owners[0].pan" - } - }, - { - "variable": "correspondenceAddress", - "value": { - "path": "$.tradeLicenseDetail.owners[0].permanentAddress" - } - }, - { - "variable": "specialOwnerCategory", - "value": { - "path": "$.tradeLicenseDetail.owners[0].ownerType" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_OWNERTYPE", - "module":"rainmaker-common" - } - - }, - { - "variable": "trade_license_application", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_LOGO_HEADER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_APPLICATION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_RUPEE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_license_tax", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TRADE_LICENSE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "rebate_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_REBATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "penalty_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_PENALTY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_details", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TRADE_DETAILS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "application_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_APPLICATION_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "old_application_number", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_OLD_APPLICATION_NUMBER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "licence_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_LICENSE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TRADE_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "structure_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_STRUCTURE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "structure_sub_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_STRUCTURE_SUB_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_commencement", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TRADE_COMMENCEMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_gst_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TRADE_GST" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "operational_area", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_OPERATIONAL_AREA" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "no_of_employees", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_NO_OF_EMPLOYEES" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_category", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TRADE_CATEGORY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TRADE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_sub_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TRADE_SUB_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "uom_measurement", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_UOM_MEASUREMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "accesory_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_ACCESORY_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "uom_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_UOM" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "uom_value", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_UOM_VALUE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "accessory_count", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_ACCESORY_COUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "property_assessment_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_PROPERTY_ASSESSMENT_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "city_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_CITY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "door_house_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_DOOR_HOUSE_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "building_colony_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_BUILDING_COLONY_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "street_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_STREET_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "mohalla_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_MOHALLA" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "pincode_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_PINCODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "electricity_connection_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_ELECTRICITY_CONNECTION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "owner_details", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_OWNER_DETAILS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "type_of_ownership", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TYPE_OF_OWNERSHIP" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "type_of_sub_ownership", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_SUB_OWNERSHIP" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_MOBILE_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "name_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "father_husband", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_FATHER_HUSBAND" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "relationship_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_RELATIONSHIP" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "gender_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_GENDER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "date_of_birth", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_DATE_OF_BIRTH" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "email_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_EMAIL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "pan_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_PAN_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "correspondance_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_CORRESPONDANCE_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "special_owner", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_SPECIAL_OWNER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "documents_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_DOCUMENTS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "ownership_proof", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_OWNERSHIP_PROOF" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "owners_id_proof", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_OWNERS_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "owner_photo", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_OWNERSHIP_PHOTO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "variable13", - "value":{ - "path":"$.tradeLicenseDetail.tradeUnits.*" - }, - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable": "tradeCat", - "value":"tradeType", - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_TRADETYPE", - "module": "rainmaker-tl", - "isCategoryRequired":true - } - }, - { - "variable": "tradetyp", - "value":"tradeType", - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_TRADETYPE", - "module": "rainmaker-tl", - "isMainTypeRequired":true - } - }, - { - "variable": "tradesub", - "value":"tradeType", - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_TRADETYPE", - "module": "rainmaker-tl", - "isSubTypeRequired":true - } - }, - { - "variable": "UOM-measurement", - "value":"uom" - }, - { - "variable":"uomValue", - "value":"uomValue" - } - ] - } - }, - { - "variable": "variable14", - "value":{ - "path":"$.tradeLicenseDetail.accessories.*" - }, - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable": "accesoryType", - "value": "accessoryCategory", - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_ACCESSORIESCATEGORY", - "module": "rainmaker-tl" - } - }, - { - "variable": "accessoryUomValue", - "value": "uomValue" - }, - - { - "variable": "uom", - "value": "uom" - }, - { - "variable": "accessoryCount", - "value": "count" - } - - ] - } - } - - - - ] - }, - { - "externalAPI": [ - { - "path": "http://billing-service:8080/billing-service/bill/v2/_fetchbill", - "queryParam": "tenantId=$.tenantId,consumerCode=$.applicationNumber,businessService=TL", - "apiRequest": null, - "responseMapping":[ - { - "variable":"totalAmount", - "value":"$.Bill[0].totalAmount" - }, - { - "variable":"tradeLicenseTax", - "value":"$.Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode == 'TL_TAX')].amount" - }, - { - "variable":"rebate", - "value":"$.Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode == 'TL_ADHOC_REBATE')].amount" - }, - { - "variable":"penalty", - "value":"$.Bill[0].billDetails[0].billAccountDetails[?(@.taxHeadCode == 'TL_ADHOC_PENALTY')].amount" - } - ] - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pdf-service/data-config/tlcertificate.json b/pdf-service/data-config/tlcertificate.json deleted file mode 100644 index 6449f92c..00000000 --- a/pdf-service/data-config/tlcertificate.json +++ /dev/null @@ -1,457 +0,0 @@ -{ - "key": "tlcertificate", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Licenses.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "mappings": [ - { - "direct": [ - { - "variable": "logoImage", - "url":"https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type":"image" - }, - { - "variable": "tradeLicenseNo", - "value": { - "path": "$.licenseNumber" - } - }, - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNumber" - } - }, - { - "variable": "financialYear", - "value": { - "path": "$.financialYear" - } - }, - { - "variable": "tradeName", - "value": { - "path": "$.tradeName" - } - }, - { - "variable": "tradeOwnerName", - "value": { - "path": "$.tradeLicenseDetail.owners[0].name" - } - }, - { - "variable": "tradeOwnerContact", - "value": { - "path": "$.tradeLicenseDetail.owners[0].mobileNumber" - } - }, - { - "variable": "tradeAddress", - "value": { - "path": "$.tradeLicenseDetail.address.locality.name" - } - }, - { - "variable": "city", - "value": { - "path": "$.tradeLicenseDetail.address.city" - }, - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - }, - { - "variable": "tradeType", - "value": { - "path": "$.tradeLicenseDetail.tradeUnits[0].tradeType" - }, - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_TRADETYPE", - "module": "rainmaker-tl" - } - }, - { - "variable": "accessories", - "value": { - "path": "$.tradeLicenseDetail.accessories[0].accessoryCategory" - }, - "localisation":{ - "required":true, - "prefix": "TL", - "module": "rainmaker-tl" - } - }, - { - "variable": "licenseIssueDate", - "value": { - "path": "$.issuedDate" - }, - "type": "date" - }, - { - "variable": "signedCertificateData", - "value": { - "path": "$.signedCertificate" - } - }, - { - "variable": "licenseValidityFrom", - "value": { - "path": "$.validFrom" - }, - "type": "date" - }, - { - "variable": "licenseValidityTo", - "value": { - "path": "$.validTo" - }, - "type": "date" - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "municipal_corportaion", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_website", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_WEBSITE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_email", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_EMAIL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_license_certifcate", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CERTIFICATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_license_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_APPLICATION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "reciept_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_RECIEPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "financial_year", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_FINANCIAL_YEAR" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_owner_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_OWNER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_owner_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_OWNER_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "accessories_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_ACCESSORIES_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_license_fee", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_LICENSE_FEE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "license_issue_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_ISSUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "license_validity", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_VALIDITY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "approved_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_APPROVED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_COMMISSIONER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"ulb-address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"corporationContact", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"corporationWebsite", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"corporationEmail", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - } - ] - }, - { - "path": "http://collection-services:8080/collection-services/payments/TL/_search", - "queryParam": "tenantId=$.tenantId,consumerCodes=$.applicationNumber,businessServices=TL", - "apiRequest": null, - "responseMapping":[ - { - "variable":"tradeLicenseFee", - "value":"$.Payments[0].totalDue" - }, - { - "variable":"recieptNo", - "value":"$.Payments[0].paymentDetails[0].receiptNumber" - } - - ] - }, - { - "path": "http://egov-filestore:8080/filestore/v1/files/url", - "queryParam": "tenantId=pb,fileStoreIds=$.tradeLicenseDetail.applicationDocuments[?(@.documentType== 'OWNERPHOTO')].fileStoreId", - "apiRequest": null, - "requesttype": "GET", - "responseMapping":[ - { - "variable":"userpic", - "value":"$.fileStoreIds[0].url", - "type": "image" - } - ] - }, - { - "path": "http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search", - "queryParam": "businessIds=$.applicationNumber,history=true,tenantId=$.tenantId", - "apiRequest": null, - "responseMapping":[ - { - "variable":"approvedBy", - "value":"$.ProcessInstances[?(@.action == 'APPROVE')].assigner.name" - } - - ] - } - - ] - }, - { - "qrcodeConfig": [ - { - "variable": "qrCode", - "value": "{{signedCertificateData}}" - } - ] - } - ] - -} -] -} -} diff --git a/pdf-service/data-config/tlrenewalcertificate.json b/pdf-service/data-config/tlrenewalcertificate.json deleted file mode 100644 index 8a979a30..00000000 --- a/pdf-service/data-config/tlrenewalcertificate.json +++ /dev/null @@ -1,443 +0,0 @@ -{ - "key": "tlrenewalcertificate", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Licenses.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "mappings": [ - { - "direct": [ - { - "variable": "logoImage", - "url":"https://raw.githubusercontent.com/egovernments/egov-web-app/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/assets/images/pblogo.png", - "type":"image" - }, - { - "variable": "tradeLicenseNo", - "value": { - "path": "$.licenseNumber" - } - }, - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNumber" - } - }, - { - "variable": "financialYear", - "value": { - "path": "$.financialYear" - } - }, - { - "variable": "tradeName", - "value": { - "path": "$.tradeName" - } - }, - { - "variable": "tradeOwnerName", - "value": { - "path": "$.tradeLicenseDetail.owners[0].name" - } - }, - { - "variable": "tradeOwnerContact", - "value": { - "path": "$.tradeLicenseDetail.owners[0].mobileNumber" - } - }, - { - "variable": "tradeAddress", - "value": { - "path": "$.tradeLicenseDetail.address.locality.name" - } - }, - { - "variable": "city", - "value": { - "path": "$.tradeLicenseDetail.address.city" - }, - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - }, - { - "variable": "tradeType", - "value": { - "path": "$.tradeLicenseDetail.tradeUnits[0].tradeType" - }, - "localisation":{ - "required":true, - "prefix": "TRADELICENSE_TRADETYPE", - "module": "rainmaker-tl" - } - }, - { - "variable": "accessories", - "value": { - "path": "$.tradeLicenseDetail.accessories[0].accessoryCategory" - }, - "localisation":{ - "required":true, - "prefix": "TL", - "module": "rainmaker-tl" - } - }, - { - "variable": "licenseIssueDate", - "value": { - "path": "$.issuedDate" - }, - "type": "date" - }, - { - "variable": "licenseValidityFrom", - "value": { - "path": "$.validFrom" - }, - "type": "date" - }, - { - "variable": "licenseValidityTo", - "value": { - "path": "$.validTo" - }, - "type": "date" - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "municipal_corportaion", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_website", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_WEBSITE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "corporation_email", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CORPORATION_EMAIL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_license_certifcate", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_CERTIFICATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_license_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_RENEWAL_APPLICATION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "reciept_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_RECIEPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "financial_year", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_FINANCIAL_YEAR" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_owner_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_OWNER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_owner_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_OWNER_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "accessories_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_ACCESSORIES_LABEL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "trade_license_fee", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_TRADE_LICENSE_FEE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "license_issue_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_ISSUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "license_validity", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_LICENSE_VALIDITY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "approved_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_APPROVED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLCERTIFICATE_COMMISSIONER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"ulb-address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"corporationContact", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"corporationWebsite", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"corporationEmail", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - } - ] - }, - { - "path": "http://collection-services:8080/collection-services/payments/TL/_search", - "queryParam": "tenantId=$.tenantId,consumerCodes=$.applicationNumber,businessServices=TL", - "apiRequest": null, - "responseMapping":[ - { - "variable":"tradeLicenseFee", - "value":"$.Payments[0].totalDue" - }, - { - "variable":"recieptNo", - "value":"$.Payments[0].paymentDetails[0].receiptNumber" - } - - ] - }, - { - "path": "http://egov-filestore:8080/filestore/v1/files/url", - "queryParam": "tenantId=pb,fileStoreIds=$.tradeLicenseDetail.applicationDocuments[?(@.documentType== 'OWNERPHOTO')].fileStoreId", - "apiRequest": null, - "requesttype": "GET", - "responseMapping":[ - { - "variable":"userpic", - "value":"$.fileStoreIds[0].url", - "type": "image" - } - ] - }, - { - "path": "http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search", - "queryParam": "businessIds=$.applicationNumber,history=true,tenantId=$.tenantId", - "apiRequest": null, - "responseMapping":[ - { - "variable":"approvedBy", - "value":"$.ProcessInstances[?(@.action == 'APPROVE')].assigner.name" - } - - ] - } - - ] - } - ] - -} -] -} -} diff --git a/pdf-service/data-config/tradelicense-bill.json b/pdf-service/data-config/tradelicense-bill.json deleted file mode 100644 index 5d456527..00000000 --- a/pdf-service/data-config/tradelicense-bill.json +++ /dev/null @@ -1,666 +0,0 @@ -{ - "key": "tradelicense-bill", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Bill.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-1", - "staticConfigPath": "https://raw.githubusercontent.com/egovernments/egov-services/vishal-feature-filestore/core/egov-indexer/src/main/resources/rainmaker-pgr-indexer.yml", - "mappings": [ - { - "direct": [ - { - "variable": "total_amount_due", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL_AMOUNT_DUE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_RUPEE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_MOBILE_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_PERIOD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYER_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - - { - "variable": "bill_issue_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ISSUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "bill_due_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_DUE_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "billing_summary_property_tax", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILLING_SUMMARY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "tl_application_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TL_APPLICATION_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "arrears_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ARREARS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "charge_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CHARGE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - - { - "variable": "penalty_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PENALTY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "rebate_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_REBATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "others_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_OTHERS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "important_message", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_IMPORTANT_MESSAGE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_received", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYMENT_RECEIVED" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "this_document", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_THIS_DOCUMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "this_is_a", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_THIS_IS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "assessment_payment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ASSESSSMENT_PAYMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "please_deposit", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PLEASE_DEPOSIT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "if_the_tax", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_IF_THE_TAX" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "acknowledgement_for", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ACKNOWLEDGEMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "date_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "$.businessService" - }, - "localisation":{ - "required":true, - "prefix": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_ID", - "module":"rainmaker-common" - } - }, - { - "variable": "name_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_NAME_ADDRESS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_payment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL_PAYMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "adjustment_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ADJUSTMENT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receivers_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_RECEIVERS_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "totalAmountDue", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "total", - "value": { - "path": "$.totalAmount" - } - }, - - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - - { - "variable": "mobileNo", - "value": { - "path": "$.mobileNumber" - } - }, - - { - "variable": "payerAddress", - "value": { - "path": "$.payerAddress" - } - }, - { - "variable": "nameAddress", - "value": { - "path": "$.payerAddress" - } - }, - - { - "variable": "billNo", - "value": { - "path": "$.billNumber" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.billDetails[0].toPeriod" - }, - "type": "date" - }, - - { - "variable": "billIssueDate", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - - { - "variable": "billDueDate", - "value": { - "path": "$.billDetails[0].expiryDate" - }, - "type": "date" - }, - { - "variable": "billdate", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - - { - "variable": "propertyID", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "fees", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'TL_TAX' || @.taxHeadCode == 'TL_RENEWAL_TAX')].amount" - } - }, - { - "variable": "tl_penalty", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'TL_PENALTY' || @.taxHeadCode == 'TL_RENEWAL_PENALTY')].amount" - } - }, - { - "variable": "tl_rebate", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'TL_REBATE' || @.taxHeadCode == 'TL_RENEWAL_REBATE')].amount" - } - }, - { - "variable": "tl_adhoc_penalty", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'TL_ADHOC_PENALTY' || @.taxHeadCode == 'TL_RENEWAL_ADHOC_PENALTY')].amount" - } - }, - { - "variable": "tl_adhoc_rebate", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'TL_ADHOC_REBATE' || @.taxHeadCode == 'TL_RENEWAL_ADHOC_REBATE')].amount" - } - }, - { - "variable": "tl_roundoff", - "value":{ - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'TL_ROUNDOFF')].amount" - } - }, - { - "variable": "adjustment", - "value": { - "path": "$.billDetails[(@.length-1)].billAccountDetails[?(@.taxHeadCode == 'TL_ADVANCE_CARRYFORWARD')].amount" - } - }, - { - "variable": "consumerID", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "date", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - { - "variable": "totalPayment", - "value": { - "path": "$.billDetails[0].amountPaid" - } - }, - { - "variable":"scissorImage", - "url":"http://www.pngall.com/wp-content/uploads/2016/03/Scissor-PNG-Clipart.png", - "type":"image" - } - ] - }, - { - "derived": [ - { - "variable": "charge", - "formula": "{{fees}}" - }, - { - "variable": "penalty", - "formula": "{{tl_penalty}}+{{tl_adhoc_penalty}}" - }, - { - "variable": "rebate", - "formula": "{{tl_rebate}}+{{tl_adhoc_rebate}}" - }, - { - "variable": "others", - "formula": "{{tl_roundoff}}" - }, - { - "variable": "adjustments/paid", - "formula": "{{adjustment}}" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.businessService}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "variable11", - "value": "$.MdmsRes.tenant.footer[0].billFooterContent.*", - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable":"disclaimerContent", - "value":"disclaimer", - "type":"string", - "localisation":{ - "required":true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - } - } - ] - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pdf-service/data-config/tradelicense-receipt.json b/pdf-service/data-config/tradelicense-receipt.json deleted file mode 100644 index e1e8e9f7..00000000 --- a/pdf-service/data-config/tradelicense-receipt.json +++ /dev/null @@ -1,492 +0,0 @@ -{ - "key": "tradelicense-receipt", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Payments.*", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.userInfo.name" - }, - "type":"selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "paymentStatus", - "value": { - "path": "$.paymentStatus" - }, - "localisation":{ - "required":true, - "prefix":null, - "module":"rainmaker-common" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation":{ - "required":true, - "prefix":"MODULE", - "module":"rainmaker-common" - } - }, - { - "variable": "paidAmount", - "value": { - "path": "$.paymentDetails[0].totalAmountPaid" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].toPeriod" - }, - "type": "date" - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - }, - "localisation":{ - "required":true, - "prefix": "COMMON_MASTERS_PAYMENTMODE", - "module": "rainmaker-common" - } - }, - { - "variable": "G8ReceiptNo", - "value": { - "path": "$.paymentDetails[0].manualReceiptNumber" - } - }, - { - "variable": "G8ReceiptDate", - "value": { - "path": "$.paymentDetails[0].manualReceiptDate" - }, - "type": "date" - }, - { - "variable": "paymentDate", - "value": { - "path": "$.transactionDate" - }, - "type": "date" - }, - { - "variable": "consumerID", - "value": { - "path": "$.paymentDetails[0].bill.consumerCode" - } - }, - { - "variable": "transactionID", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "dueAmount", - "value": { - "path": "$.paymentDetails[0].totalDue" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation":{ - "required":true, - "prefix": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_CONSUMER_ID", - "module":"rainmaker-common" - } - }, - { - "variable": "payment_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_NAME" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_CONTACT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_status", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_STATUS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "billing_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BILLING_PERIOD" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "total_bill_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TOTAL_BILL_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "pending_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PENDING_AMOUNT" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "excess_amount_paid", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_EXCESS_AMOUNT_PAID" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "pendingAmount", - "formula": "{{dueAmount}}>{{paidAmount}}?{{dueAmount}}-{{paidAmount}}:0" - }, - { - "variable": "excessAmountPaid", - "formula": "{{paidAmount}}>{{dueAmount}}?{{paidAmount}}-{{dueAmount}}:0" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.paymentDetails[0].businessService}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "variable11", - "value": "$.MdmsRes.tenant.footer[0].receiptFooterContent.*", - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable":"disclaimerContent", - "value":"disclaimer", - "type":"string", - "localisation":{ - "required":true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - } - } - ] - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pdf-service/data-config/ws-applicationsewerage.json b/pdf-service/data-config/ws-applicationsewerage.json deleted file mode 100644 index 0c9299c5..00000000 --- a/pdf-service/data-config/ws-applicationsewerage.json +++ /dev/null @@ -1,1026 +0,0 @@ -{ - "key": "ws-applicationsewerage", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.SewerageConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "status", - "value": { - "path": "$.status" - } - }, - { - "variable": "totalAmount", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "propertyId", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "propertyType", - "value": { - "path": "$.property.propertyType" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "propertyUsageType", - "value": { - "path": "$.property.usageCategory" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPUSGTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "propertyUsageSubType", - "value": { - "path": "$.property.propertySubUsageType" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPSUBUSGTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "plotSize", - "value": { - "path": "$.property.landArea" - } - }, - { - "variable": "noOfFloor", - "value": { - "path": "$.property.noOfFloors" - } - }, - { - "variable": "rainwaterHarvestingFacility", - "value": { - "path": "$.property.rainWaterHarvesting" - }, - "localisation": { - "required": true, - "prefix": "HARVESTING", - "module": "rainmaker-common" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "localityMohalla", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "pinCode", - "value": { - "path": "$.property.address.pincode" - } - }, - { - "variable": "variable13", - "value":{ - "path":"$.property.owners.*" - }, - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable": "ownerName", - "value": "name" - }, - { - "variable": "ownerEmailId", - "value":"emailId" - }, - { - "variable": "gender", - "value": "gender" - }, - { - "variable": "dob", - "value": "dob", - "type": "date" - }, - { - "variable": "guardianName", - "value": "fatherOrHusbandName" - }, - { - "variable": "relationshipLabel", - "value": "relationship" - }, - { - "variable": "specialApplicantCategory", - "value": "ownerType" - }, - { - "variable": "correspondenceAddress", - "value": "correspondenceAddress" - } - ] - } - - }, - { - "variable": "applyCategory", - "value": { - "path": "$.service" - } - }, - { - "variable": "noOfWaterClosetsProposed", - "value": { - "path": "$.proposedWaterClosets" - } - }, - { - "variable": "noOfWaterToiletsProposed", - "value": { - "path": "$.proposedToilets" - } - }, - { - "variable": "connectionType", - "value": { - "path": "$.connectionType" - } - }, - { - "variable": "noOfWaterClosets", - "value": { - "path": "$.noOfWaterClosets" - } - }, - { - "variable": "noOfToilets", - "value": { - "path": "$.noOfToilets" - } - }, - { - "variable": "plumberProvidedBy", - "value": { - "path": "$.additionalDetails.detailsProvidedBy" - } - }, - { - "variable": "plumberLicenceNo", - "value": { - "path": "$.plumberInfo[0].licenseNo" - } - }, - { - "variable": "plumberName", - "value": { - "path": "$.plumberInfo[0].name" - } - }, - { - "variable": "plumberMobileNo", - "value": { - "path": "$.plumberInfo[0].mobileNumber" - } - }, - { - "variable": "roadType", - "value": { - "path": "$.roadType" - } - }, - { - "variable": "area", - "value": { - "path": "$.roadCuttingArea" - } - }, - { - "variable": "connectionExecutionDate", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "ownershipProof", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_OWNER.ADDRESSPROOF')].name" - } - }, - { - "variable": "ownersIdProof", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_OWNER.IDENTITYPROOF')].name" - } - }, - { - "variable": "electricityBill", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_ELECTRICITY_BILL')].name" - } - }, - { - "variable": "plumberReport", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_PLUMBER_REPORT_DRAWING')].name" - } - }, - { - "variable": "buildingPlan", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_BUILDING_PLAN_OR_COMPLETION_CERTIFICATE')].name" - } - }, - { - "variable": "ptTaxReciept", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_PROPERTY_TAX_RECIEPT')].name" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_SW_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPLICATION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "status_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_STATUS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "document_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DOCUMENT_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "fee_estimate_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_FEES_ESTIMATE_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_id", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_usage_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_USAGE_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_usage_sub_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_USAGE_SUB_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plot_size", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLOT_SIZE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_floor", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_NO_OF_FLOOR" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "rainwater_harvesting_facility", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_RAINWATER_HARVESTING_FACILITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_location_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_LOCATION_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "city", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "door_house_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DOOR_HOUSE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "building_colony_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_BUILDING" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "street_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_STREETNAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "locality_mohalla", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOCALITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pin_code", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PINCODE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_owner_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "email_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_EMAIL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "gender_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GENDER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "dob_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DOB" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "relationship_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_RELATIONSHIP" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "special_applicant_category", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SPECIAL_APPLICANT_CATEGORY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "apply_category", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPLY_CATEGORY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_water_closets_proposed", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_NO_OF_WATER_CLOSETS_PROPOSED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_water_toilets_proposed", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_NO_OF_WATER_TOILETS_PROPOSED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "additional_connection_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ADDITIONAL_CONNECTION_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_water_closets", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_NO_OF_WATER_CLOSETS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_toilets", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_NO_OF_TOILETS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_provided_by", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_PROVIDED_BY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_licence_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_LICENSE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_MOBILE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "road_charges_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ROAD_CHARGES_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "road_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ROAD_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "area_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_AREA_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "activation_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ACTIVATION_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_execution_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_EXECUTION_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ownership_proof", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNERSHIP_PROOF" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owners_id_proof", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNERS_ID_PROOF" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "electricty_bill", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ELECTRICITY_BILL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_report", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_REPORT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "building_plan", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_BUILDING_PLAN" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_tax_reciept", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_TAX_RECEIPT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sewerage_application", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SEWERAGE_APPLICATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "correspondence_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CORRESPONDENCE_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_RUPEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "appDate", - "value": { - "path": "$.additionalDetails.appCreatedDate" - }, - "type":"date" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-applicationwater.json b/pdf-service/data-config/ws-applicationwater.json deleted file mode 100644 index 878fa804..00000000 --- a/pdf-service/data-config/ws-applicationwater.json +++ /dev/null @@ -1,1105 +0,0 @@ -{ - "key": "ws-applicationwater", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.WaterConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "status", - "value": { - "path": "$.status" - } - }, - { - "variable": "totalAmount", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "propertyId", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "propertyType", - "value": { - "path": "$.property.propertyType" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "propertyUsageType", - "value": { - "path": "$.property.usageCategory" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPUSGTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "propertyUsageSubType", - "value": { - "path": "$.property.propertySubUsageType" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPSUBUSGTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "plotSize", - "value": { - "path": "$.property.landArea" - } - }, - { - "variable": "noOfFloor", - "value": { - "path": "$.property.noOfFloors" - } - }, - { - "variable": "rainwaterHarvestingFacility", - "value": { - "path": "$.property.rainWaterHarvesting" - }, - "localisation": { - "required": true, - "prefix": "HARVESTING", - "module": "rainmaker-common" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "localityMohalla", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "pinCode", - "value": { - "path": "$.property.address.pincode" - } - }, - { - "variable": "variable13", - "value":{ - "path":"$.property.owners.*" - }, - "type":"array", - "format":{ - "type":"string", - "scema":[ - { - "variable": "ownerName", - "value": "name" - }, - { - "variable": "ownerEmailId", - "value":"emailId" - }, - { - "variable": "gender", - "value": "gender" - }, - { - "variable": "dob", - "value": "dob", - "type":"date" - }, - { - "variable": "guardianName", - "value": "fatherOrHusbandName" - }, - { - "variable": "relationshipLabel", - "value": "relationship" - }, - { - "variable": "specialApplicantCategory", - "value": "ownerType" - }, - { - "variable": "correspondenceAddress", - "value": "correspondenceAddress" - } - ] - } - - }, - { - "variable": "applyCategory", - "value": { - "path": "$.service" - } - }, - { - "variable": "noOfTapsProposed", - "value": { - "path": "$.proposedTaps" - } - }, - { - "variable": "pipeSizeProposed", - "value": { - "path": "$.proposedPipeSize" - } - }, - { - "variable": "connectionType", - "value": { - "path": "$.connectionType" - } - }, - { - "variable": "plumberProvidedBy", - "value": { - "path": "$.additionalDetails.detailsProvidedBy" - } - }, - { - "variable": "plumberLicenceNo", - "value": { - "path": "$.plumberInfo[0].licenseNo" - } - }, - { - "variable": "plumberName", - "value": { - "path": "$.plumberInfo[0].name" - } - }, - { - "variable": "plumberMobileNo", - "value": { - "path": "$.plumberInfo[0].mobileNumber" - } - }, - { - "variable": "roadType", - "value": { - "path": "$.roadType" - } - }, - { - "variable": "area", - "value": { - "path": "$.roadCuttingArea" - } - }, - { - "variable": "connectionExecutionDate", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "noOfTaps", - "value": { - "path": "$.noOfTaps" - } - }, - { - "variable": "waterSource", - "value": { - "path": "$.waterSource" - } - }, - { - "variable": "waterSubSource", - "value": { - "path": "$.waterSubSource" - } - }, - { - "variable": "pipeSize", - "value": { - "path": "$.pipeSize" - } - }, - { - "variable": "ownershipProof", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_OWNER.ADDRESSPROOF')].name" - } - }, - { - "variable": "ownersIdProof", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_OWNER.IDENTITYPROOF')].name" - } - }, - { - "variable": "electricityBill", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_ELECTRICITY_BILL')].name" - } - }, - { - "variable": "plumberReport", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_PLUMBER_REPORT_DRAWING')].name" - } - }, - { - "variable": "buildingPlan", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_BUILDING_PLAN_OR_COMPLETION_CERTIFICATE')].name" - } - }, - { - "variable": "ptTaxReciept", - "value": { - "path": "$.pdfDocuments[?(@.title == 'WS_PROPERTY_TAX_RECIEPT')].name" - } - }, - { - "variable": "meterId", - "value": { - "path": "$.meterId" - } - }, - { - "variable": "meterInstallationDate", - "value": { - "path": "$.meterInstallationDate" - }, - "type": "date" - }, - { - "variable": "initialMeterReading", - "value": { - "path": "$.additionalDetails.initialMeterReading" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPLICATION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "status_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_STATUS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "document_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DOCUMENT_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_id", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_usage_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_USAGE_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_usage_sub_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_USAGE_SUB_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plot_size", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLOT_SIZE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_floor", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_NO_OF_FLOOR" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "rainwater_harvesting_facility", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_RAINWATER_HARVESTING_FACILITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_location_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_LOCATION_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "city", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "door_house_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DOOR_HOUSE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "building_colony_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_BUILDING" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "street_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_STREETNAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "locality_mohalla", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOCALITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pin_code", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PINCODE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_owner_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "email_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_EMAIL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "gender_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GENDER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "dob_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DOB" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "relationship_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_RELATIONSHIP" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "special_applicant_category", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SPECIAL_APPLICANT_CATEGORY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "apply_category", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPLY_CATEGORY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "additional_connection_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ADDITIONAL_CONNECTION_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_provided_by", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_PROVIDED_BY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_licence_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_LICENSE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_MOBILE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "road_charges_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ROAD_CHARGES_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "road_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ROAD_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "area_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_AREA_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "activation_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ACTIVATION_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_execution_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_EXECUTION_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_taps_proposed", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TAPS_PROPOSED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pipe_size_proposed", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PIPE_SIZE_PROPOSED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_taps", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_NO_OF_TAPS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_source", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_SOURCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_sub_source", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_SUB_SOURCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pipe_size", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PIPE_SIZE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ownership_proof", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNERSHIP_PROOF" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owners_id_proof", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNERS_ID_PROOF" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "electricty_bill", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ELECTRICITY_BILL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plumber_report", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLUMBER_REPORT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "building_plan", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_BUILDING_PLAN" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_tax_reciept", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_TAX_RECEIPT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "meter_id", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_METER_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "meter_installation_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_METER_INSTALLATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "initial_meter_reading", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_INITIAL_METER_READING" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_application", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_APPLICATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "correspondence_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CORRESPONDENCE_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_RUPEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "appDate", - "value": { - "path": "$.additionalDetails.appCreatedDate" - }, - "type":"date" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-bill.json b/pdf-service/data-config/ws-bill.json deleted file mode 100644 index 30d3af2f..00000000 --- a/pdf-service/data-config/ws-bill.json +++ /dev/null @@ -1,833 +0,0 @@ -{ - "key": "ws-bill", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Bill.*", - "entityIdPath": "$.billNumber", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-1", - "staticConfigPath": "https://raw.githubusercontent.com/egovernments/egov-services/vishal-feature-filestore/core/egov-indexer/src/main/resources/rainmaker-pgr-indexer.yml", - "mappings": [ - { - "direct": [ - { - "variable": "total_amount_due", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL_AMOUNT_DUE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "bill_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_RUPEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_MOBILE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "bill_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_PERIOD" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payer_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PAYER_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "bill_issue_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ISSUE_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "bill_due_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILL_DUE_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "billing_summary_property_tax", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_BILLING_SUMMARY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.businessService" - }, - "localisation": { - "required": true, - "prefix": "MODULE", - "module": "rainmaker-common" - } - }, - { - "variable": "property_id", - "value": { - "path": "WS_PROPERTY_ID_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-ws" - } - }, - { - "variable": "property_address", - "value": { - "path": "PT_PROPERTY_ADDRESS_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-pt" - } - }, - { - "variable": "arrears_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ARREARS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "advanceAdjusted_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ADVANCEADJUSTED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "advanceAvailable_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ADVANCEAVAILABLE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "charge_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "penalty_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_PENALTY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "rebate_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_REBATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "others_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_OTHERS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "important_message", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_IMPORTANT_MESSAGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payment_received", - "value": { - "path": "PDF_STATIC_LABEL_WS_BILL_PAYMENT_RECEIVED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-ws" - } - }, - { - "variable": "this_document", - "value": { - "path": "PDF_STATIC_LABEL_WS_BILL_THIS_DOCUMENT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-ws" - } - }, - { - "variable": "this_is_a", - "value": { - "path": "PDF_STATIC_LABEL_WS_BILL_THIS_IS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-ws" - } - }, - { - "variable": "assessment_payment", - "value": { - "path": "PDF_STATIC_LABEL_WS_BILL_ASSESSSMENT_PAYMENT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-ws" - } - }, - { - "variable": "please_deposit", - "value": { - "path": "PDF_STATIC_LABEL_WS_BILL_PLEASE_DEPOSIT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-ws" - } - }, - { - "variable": "if_the_tax", - "value": { - "path": "PDF_STATIC_LABEL_WS_BILL_IF_THE_TAX" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-ws" - } - }, - { - "variable": "acknowledgement_for", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_ACKNOWLEDGEMENT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "date_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "name_address", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_NAME_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_payment", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_TOTAL_PAYMENT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "receivers_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_RECEIVERS_SIGNATURE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "locality", - "value": { - "path": "$.locality" - }, - "localisation": { - "required": true, - "prefix": "TENANTS_MOHALLA", - "module": "rainmaker-common" - } - }, - { - "variable": "city", - "value": { - "path": "$.tenantId" - }, - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - }, - { - "variable": "totalAmountDue", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "total", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "mobileNo", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "payerAddress", - "value": { - "path": "$.payerAddress" - } - }, - { - "variable": "nameAddress", - "value": { - "path": "$.payerAddress" - } - }, - { - "variable": "billNo", - "value": { - "path": "$.billNumber" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.billDetails[0].toPeriod" - }, - "type": "date" - }, - { - "variable": "billIssueDate", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - { - "variable": "billDueDate", - "value": { - "path": "$.billDetails[0].expiryDate" - }, - "type": "date" - }, - { - "variable": "billdate", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - { - "variable": "propertyID", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "taxCharge", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_TAX' || @.taxHeadCode == 'TL_TAX' || @.taxHeadCode == 'FIRENOC_TAXES' || @.taxHeadCode == 'WS_CHARGE' || @.taxHeadCode == 'SW_CHARGE' )].amount" - } - }, - { - "variable": "timeRebate", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_TIME_REBATE' || @.taxHeadCode == 'WS_TIME_REBATE' || @.taxHeadCode == 'SW_TIME_REBATE')].amount" - } - }, - { - "variable": "adhocRebate", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_ADHOC_REBATE' || @.taxHeadCode == 'TL_ADHOC_REBATE' || @.taxHeadCode == 'FIRENOC_ADHOC_REBATE')].amount" - } - }, - { - "variable": "timePenalty", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_TIME_PENALTY' || @.taxHeadCode == 'WS_TIME_PENALTY' || @.taxHeadCode == 'SW_TIME_PENALTY')].amount" - } - }, - { - "variable": "adhocPenalty", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_ADHOC_PENALTY' || @.taxHeadCode == 'TL_ADHOC_PENALTY' || @.taxHeadCode == 'FIRENOC_ADHOC_PENALTY')].amount" - } - }, - { - "variable": "firecess", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_FIRE_CESS')].amount" - } - }, - { - "variable": "usageExemption", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_UNIT_USAGE_EXEMPTION')].amount" - } - }, - { - "variable": "roundoff", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_ROUNDOFF' || @.taxHeadCode == 'TL_ROUNDOFF' || @.taxHeadCode == 'FIRENOC_ROUNDOFF' || @.taxHeadCode == 'WS_Round_Off' || @.taxHeadCode == 'SW_Round_Off')].amount" - } - }, - { - "variable": "fees", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'FIRENOC_FEES')].amount" - } - }, - { - "variable": "ownerExemption", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_OWNER_EXEMPTION')].amount" - } - }, - { - "variable": "cancerCess", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_CANCER_CESS')].amount" - } - }, - { - "variable": "waterCess", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'WS_WATER_CESS' || @.taxHeadCode == 'SW_SEWERAGE_CESS')].amount" - } - }, - { - "variable": "timeInterest", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_TIME_INTEREST' || @.taxHeadCode == 'WS_TIME_INTEREST' || @.taxHeadCode == 'SW_TIME_INTEREST')].amount" - } - }, - { - "variable": "ceilingDebit", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_DECIMAL_CEILING_DEBIT')].amount" - } - }, - { - "variable": "ceilingCredit", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'PT_DECIMAL_CEILING_CREDIT')].amount" - } - }, - { - "variable": "carryForward", - "value": { - "path": "$.billDetails[0].billAccountDetails[?(@.taxHeadCode == 'WS_ADVANCE_CARRYFORWARD' || @.taxHeadCode == 'SW_ADVANCE_CARRYFORWARD')].amount" - } - }, - { - "variable": "consumerID", - "value": { - "path": "$.consumerCode" - } - }, - { - "variable": "date", - "value": { - "path": "$.billDate" - }, - "type": "date" - }, - { - "variable": "totalPayment", - "value": { - "path": "$.billDetails[0].amountPaid" - } - }, - { - "variable": "WS_arrears", - "value": { - "path": "$.arrearAmount" - } - }, - { - "variable": "WS_AdvanceAdjusted", - "value": { - "path": "$.AdvanceAdjustedValue" - } - }, - { - "variable": "scissorImage", - "url": "http://www.pngall.com/wp-content/uploads/2016/03/Scissor-PNG-Clipart.png", - "type": "image" - }, - { - "variable": "billStatus", - "value": { - "path": "$.status" - }, - "type":"billStatus" - }, - { - "variable": "propertyUniqueID", - "value": { - "path": "$.propertyUniqueId" - } - }, - { - "variable": "propertyAddress", - "value": { - "path": "$.propertyAddress" - } - } - ] - }, - { - "derived": [ - { - "variable": "charge", - "formula": "{{ws_charge}}" - }, - { - "variable": "penalty", - "formula": "{{timePenalty}}+{{adhocPenalty}}" - }, - { - "variable": "rebate", - "formula": "{{timeRebate}}+{{adhocRebate}}" - }, - { - "variable": "billOthers", - "formula": "{{cancerCess}}+{{roundoff}}+{{timeInterest}}+{{ceilingDebit}}+{{ceilingCredit}}+{{firecess}}+{{waterCess}}" - }, - { - "variable": "demandTotalAmount", - "formula": "({{ws_roundoff}}+{{ws_charge}}+{{ws_water_cess}}+{{ws_time_interest}}+{{ws_time_penalty}}).toFixed(2)" - }, - { - "variable": "billTotalAmount", - "formula": "{{total}}" - }, - { - "variable": "arrears", - "formula": "{{billTotalAmount}}>{{demandTotalAmount}}?({{billTotalAmount}}-{{demandTotalAmount}}).toFixed(2):0" - }, - { - "variable": "advanceAdjusted", - "formula": "{{billTotalAmount}}>=0?({{billTotalAmount}}<{{demandTotalAmount}}?({{billTotalAmount}}-{{demandTotalAmount}}).toFixed(2):0):{{demandTotalAmount}} * -1" - }, - { - "variable": "advanceAvailable", - "formula": "{{billTotalAmount}}<0?{{billTotalAmount}}*-1:0" - }, - { - "variable": "others", - "formula": "({{ws_roundoff}}+{{ws_water_cess}}+{{ws_time_interest}}).toFixed(2)" - }, - { - "variable": "calculatedTotal", - "formula": "{{billTotalAmount}}>0?{{billTotalAmount}}:0" - }, - { - "variable": "cancelledStatus", - "formula": "'{{billStatus}}' == 'CANCELLED'?'{{billStatus}}':''" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "address", - "value": "$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable": "phoneNumber", - "value": "$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable": "website", - "value": "$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable": "email", - "value": "$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - }, - { - "path": "http://billing-service.egov:8080/billing-service/demand/_search", - "queryParam": "tenantId=$.tenantId,consumerCode=$.consumerCode,businessService=WS", - "apiRequest": null, - "responseMapping": [ - { - "variable": "ws_advanceAmount", - "value": "$.Demands[(@.length-1)].demandDetails[?(@.taxHeadMasterCode == 'WS_ADVANCE_CARRYFORWARD')].taxAmount" - }, - { - "variable": "ws_roundoff", - "value": "$.Demands[(@.length-1)].demandDetails[?(@.taxHeadMasterCode == 'WS_Round_Off')].taxAmount" - }, - { - "variable": "ws_charge", - "value": "$.Demands[(@.length-1)].demandDetails[?(@.taxHeadMasterCode == 'WS_CHARGE')].taxAmount" - }, - { - "variable": "ws_water_cess", - "value": "$.Demands[(@.length-1)].demandDetails[?(@.taxHeadMasterCode == 'WS_WATER_CESS')].taxAmount" - }, - { - "variable": "ws_time_interest", - "value": "$.Demands[(@.length-1)].demandDetails[?(@.taxHeadMasterCode == 'WS_TIME_INTEREST')].taxAmount" - }, - { - "variable": "ws_time_penalty", - "value": "$.Demands[(@.length-1)].demandDetails[?(@.taxHeadMasterCode == 'WS_TIME_PENALTY')].taxAmount" - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-consolidatedacknowlegment.json b/pdf-service/data-config/ws-consolidatedacknowlegment.json deleted file mode 100644 index 5cd96c79..00000000 --- a/pdf-service/data-config/ws-consolidatedacknowlegment.json +++ /dev/null @@ -1,684 +0,0 @@ -{ - "key": "ws-consolidatedacknowlegment", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.WaterConnection.*", - "entityIdPath": "$.connectionNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "consumerNo", - "value": { - "path": "$.connectionNo" - } - }, - { - "variable": "status", - "value": { - "path": "$.status" - } - }, - { - "variable": "connectionCategory", - "value": { - "path": "$.connectionCategory" - } - }, - { - "variable": "connectionType", - "value": { - "path": "$.connectionType" - } - }, - { - "variable": "meterID", - "value": { - "path": "$.meterId" - } - }, - { - "variable": "pipeSize", - "value": { - "path": "$.pipeSize" - } - }, - { - "variable": "connectionExecutionDate", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "rainwaterHarvestingFacility", - "value": { - "path": "$.property.additionalDetails.isRainwaterHarvesting" - }, - "localisation": { - "required": true, - "prefix": "HARVESTING", - "module": "rainmaker-common" - } - }, - { - "variable": "waterSource", - "value": { - "path": "$.waterSource" - } - }, - { - "variable": "waterSubSource", - "value": { - "path": "$.waterSubSource" - } - }, - { - "variable": "propertyType", - "value": { - "path": "$.property.propertyType" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "propertyUsageType", - "value": { - "path": "$.property.usageCategory" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPUSGTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "plotSize", - "value": { - "path": "$.property.landArea" - } - }, - { - "variable": "propertyID", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "city", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "plot", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "building", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "locality", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "pincode", - "value": { - "path": "$.property.address.pincode" - } - }, - { - "variable": "lat", - "value": { - "path": "$.property.address.locality.latitude" - } - }, - { - "variable": "long", - "value": { - "path": "$.property.address.locality.longitude" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "ownerMobileNumber", - "value": { - "path": "$.property.owners[0].mobileNumber" - } - }, - { - "variable": "gender", - "value": { - "path": "$.property.owners[0].gender" - }, - "localisation": { - "required": true, - "prefix": "COMMON_GENDER", - "module": "rainmaker-common" - } - }, - { - "variable": "guardian", - "value": { - "path": "$.property.owners[0].relationship" - } - }, - { - "variable": "guardianName", - "value": { - "path": "$.property.owners[0].fatherOrHusbandName" - } - }, - { - "variable": "ownerCategory", - "value": { - "path": "$.property.ownershipCategory" - }, - "localisation": { - "required": true, - "prefix": "WS_OWNERSHIPCATEGORY", - "module": "rainmaker-ws" - } - }, - { - "variable": "email", - "value": { - "path": "$.property.owners[0].emailId" - } - }, - { - "variable": "correspondenceAddress", - "value": { - "path": "$.property.owners[0].correspondenceAddress" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONSUMER_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "status_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_STATUS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "service_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SERVICE_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "service", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SERVICE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_category", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_CAT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "meter_id", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_METER_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pipe_size", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PIPE_SIZE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_execution_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_EXECUTION_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "rainwater_harvesting_facility", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_RAIN_HARV_FAC" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_source", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_SOURCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_sub_source", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_SUB_SOURCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_usage_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_USAGE_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plot_size", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLOT_SIZE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_ID", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "city_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plot_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLOT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "building_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_BUILDING" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "street_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_STREET" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "locality_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOCALITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pincode_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PINCODE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "location_on_map", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOCATION_ON_MAP" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_mobile_number", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_MOB_NUM" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "gender_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GENDER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_category", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_CATEGORY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "email_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_EMAIL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "correspondence_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CORR_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pdf-service/data-config/ws-consolidatedsewerageconnection.json b/pdf-service/data-config/ws-consolidatedsewerageconnection.json deleted file mode 100644 index 02be451e..00000000 --- a/pdf-service/data-config/ws-consolidatedsewerageconnection.json +++ /dev/null @@ -1,566 +0,0 @@ -{ - "key": "ws-consolidatedsewerageconnection", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.SewerageConnections.*", - "entityIdPath": "$.connectionNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "consumerNo", - "value": { - "path": "$.connectionNo" - } - }, - { - "variable": "status", - "value": { - "path": "$.status" - } - }, - { - "variable": "connectionExecutionDate", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "uom", - "value": { - "path": "$.uom" - } - }, - { - "variable": "propertyType", - "value": { - "path": "$.property.propertyType" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "propertyUsageType", - "value": { - "path": "$.property.usageCategory" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPUSGTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "plotSize", - "value": { - "path": "$.property.landArea" - } - }, - { - "variable": "propertyID", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "city", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "plot", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "building", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "locality", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "pincode", - "value": { - "path": "$.property.address.pincode" - } - }, - { - "variable": "lat", - "value": { - "path": "$.WaterConnection[0].property.address.locality.latitude" - } - }, - { - "variable": "long", - "value": { - "path": "$.WaterConnection[0].property.address.locality.longitude" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "ownerMobileNumber", - "value": { - "path": "$.property.owners[0].mobileNumber" - } - }, - { - "variable": "gender", - "value": { - "path": "$.property.owners[0].gender" - } - }, - { - "variable": "guardian", - "value": { - "path": "$.property.owners[0].relationship" - } - }, - { - "variable": "guardianName", - "value": { - "path": "$.property.owners[0].fatherOrHusbandName" - } - }, - { - "variable": "ownerCategory", - "value": { - "path": "$.property.ownershipCategory" - }, - "localisation": { - "required": true, - "prefix": "WS_OWNERSHIPCATEGORY", - "module": "rainmaker-ws" - } - }, - { - "variable": "email", - "value": { - "path": "$.property.owners[0].emailId" - } - }, - { - "variable": "correspondenceAddress", - "value": { - "path": "$.property.owners[0].correspondenceAddress" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_SW_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONSUMER_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "status_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_STATUS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "service_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SERVICE_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "service", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SERVICE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_execution_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_EXECUTION_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "unit_of_measurement", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_UNIT_OF_MEASUREMENT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_usage_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_USAGE_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plot_size", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLOT_SIZE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_ID", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "city_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "plot_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PLOT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "building_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_BUILDING" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "street_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_STREET" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "locality_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOCALITY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pincode_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PINCODE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "location_on_map", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOCATION_ON_MAP" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_mobile_number", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_MOB_NUM" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "gender_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GENDER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_category", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_CATEGORY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "email_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_EMAIL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "correspondence_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CORR_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sewarage_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SEWERAGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "prefix": "TENANT_TENANTS", - "module":"rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pdf-service/data-config/ws-estimationnotice.json b/pdf-service/data-config/ws-estimationnotice.json deleted file mode 100644 index 30c5f984..00000000 --- a/pdf-service/data-config/ws-estimationnotice.json +++ /dev/null @@ -1,586 +0,0 @@ -{ - "key": "ws-estimationnotice", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.WnsConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "appNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "appDate", - "value": { - "path": "$.additionalDetails.appCreatedDate" - }, - "type": "date" - }, - { - "variable": "name", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "guardianName", - "value": { - "path": "$.property.owners[0].fatherOrHusbandName" - } - }, - { - "variable": "usageType", - "value": { - "path": "$.property.usageCategory" - }, - "localisation": { - "required": true, - "prefix": "WS_PROPUSGTYPE", - "module": "rainmaker-ws" - } - }, - { - "variable": "houseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "mobileNumber", - "value": { - "path": "$.property.owners[0].mobileNumber" - } - }, - { - "variable": "address", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "pincode", - "value": { - "path": "$.property.address.pincode" - } - }, - { - "variable": "formFee", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'FORM_FEE')].estimateAmount" - } - }, - { - "variable": "ScrutinyFee", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'SCRUTINY_FEE')].estimateAmount" - } - }, - { - "variable": "otherCharge", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'OTHER_CHARGE')].estimateAmount" - } - }, - { - "variable": "securityCharge", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'SECURITY_CHARGE')].estimateAmount" - } - }, - { - "variable": "taxCess", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'TAX_AND_CESS')].estimateAmount" - } - }, - { - "variable": "roadCharge", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'ROAD_CUTTING_CHARGE')].estimateAmount" - } - }, - { - "variable": "oneTimeFee", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'ONE_TIME_FEE')].estimateAmount" - } - }, - { - "variable": "roundOffAmount", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'FEE_ROUND_OFF')].estimateAmount" - } - }, - { - "variable": "penaltyAmount", - "value": { - "path": "$.additionalDetails.adhocPenalty" - } - }, - { - "variable": "rebateAmount", - "value": { - "path": "$.additionalDetails.adhocRebate" - } - }, - { - "variable": "penaltyComments", - "value": { - "path": "$.additionalDetails.adhocPenaltyComment" - } - }, - { - "variable": "totalAmount", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "service", - "value": { - "path": "$.service" - } - }, - { - "variable": "tenantName", - "value": { - "path": "$.tenantName" - } - }, - { - "variable": "estimation_notice_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ESTIMATION_NOTICE_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "UAT", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_UAT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "app_number", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPLICATION_NUMBER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "app_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APP_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "user_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_USER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "usage_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_USAGE_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_MOBILE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "house_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DOOR_HOUSE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "user_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "estimation_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ESTIMATION_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sl_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SERIAL_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "fee_estimate", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_FEES_ESTIMATE_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "amount", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "form_fee", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_FORM_FEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "scrutiny_fee", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SCRUTINY_FEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "other_charge", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OTHER_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "security_charge", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SECURITY_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "tax_cess", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_TAX_CESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "penalty", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PENALTY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "rebate", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_REBATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "roundOff", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ROUNDOFF" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "comments", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PENALTY_COMMENTS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total", - "value": { - "path": "PDF_STATIC_LABELWS_CONSOLIDATED_ACKNOWELDGMENT_TOTAL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "approved_by", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPROVED_BY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "one_time_fee", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ONE_TIME_FEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "road_charge", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ROAD_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "additional_comments", - "value": { - "path": "PDF_STATIC_LABEL_WS_ADDITIONAL_COMMENTS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_holder_details", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_HOLDER_DETAILS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_holder_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONNECTION_HOLDER_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://localhost:8083/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-onetime-receipt.json b/pdf-service/data-config/ws-onetime-receipt.json deleted file mode 100644 index 7a5778b3..00000000 --- a/pdf-service/data-config/ws-onetime-receipt.json +++ /dev/null @@ -1,522 +0,0 @@ -{ - "key": "ws-onetime-receipt", - "documentType": "CONSOLIDATED_RECEIPT", - "DataConfigs": { - "moduleName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Payments.*", - "entityIdPath": "$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.userInfo.name" - }, - "type": "selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "paymentStatus", - "value": { - "path": "$.paymentStatus" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation": { - "required": true, - "prefix": "MODULE", - "module": "rainmaker-common" - } - }, - { - "variable": "paidAmount", - "value": { - "path": "$.paymentDetails[0].totalAmountPaid" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].toPeriod" - }, - "type": "date" - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - }, - "localisation": { - "required": true, - "prefix": "COMMON_MASTERS_PAYMENTMODE", - "module": "rainmaker-common" - } - }, - { - "variable": "G8ReceiptNo", - "value": { - "path": "$.paymentDetails[0].manualReceiptNumber" - } - }, - { - "variable": "G8ReceiptDate", - "value": { - "path": "$.paymentDetails[0].manualReceiptDate" - }, - "type": "date" - }, - { - "variable": "paymentDate", - "value": { - "path": "$.transactionDate" - }, - "type": "date" - }, - { - "variable": "consumerID", - "value": { - "path": "$.paymentDetails[0].bill.consumerCode" - } - }, - { - "variable": "transactionID", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "dueAmount", - "value": { - "path": "$.paymentDetails[0].totalDue" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_RECEIPT_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "application_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_APPLICATION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payment_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_CONTACT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payment_status", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_STATUS" - }, - "type": "label", - "localisation":{ - "required":true, - "prefix": null, - "module":"rainmaker-common" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "billing_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BILLING_PERIOD" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "bill_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BILL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "advance_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_ADVANCE_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pending_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PENDING_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_1", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIRST_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_2", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_SECOND_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_3", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_THIRD_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_4", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FOURTH_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_5", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIFTH_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "derived": [ - { - "variable": "pendingAmount", - "formula": "{{paidAmount}}>{{dueAmount}}?0:{{dueAmount}}-{{paidAmount}}" - }, - { - "variable": "advanceAmount", - "formula": "{{paidAmount}}>{{dueAmount}}?{{paidAmount}}-{{dueAmount}}:0" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "address", - "value": "$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable": "phoneNumber", - "value": "$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable": "website", - "value": "$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable": "email", - "value": "$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo-header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-sanctionletter-old.json b/pdf-service/data-config/ws-sanctionletter-old.json deleted file mode 100644 index b0df2ba5..00000000 --- a/pdf-service/data-config/ws-sanctionletter-old.json +++ /dev/null @@ -1,672 +0,0 @@ -{ - "key": "ws-sanctionletter-old", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.WnsConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "cityName", - "value": { - "path": "$.tenantName" - } - }, - { - "variable": "presentByName", - "value": { - "path": "$.commissionerName" - } - }, - { - "variable": "usageType", - "value": { - "path": "$.appUserType" - } - }, - { - "variable": "applicationNumber", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "connectionExecutionDate", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "applicationType", - "value": { - "path": "$.service" - } - }, - { - "variable": "service", - "value": { - "path": "$.service" - } - }, - { - "variable": "doorNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "locality", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "formFee", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'FORM_FEE')].estimateAmount" - } - }, - { - "variable": "ScrutinyFee", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'SCRUTINY_FEE')].estimateAmount" - } - }, - { - "variable": "otherCharge", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'OTHER_CHARGE')].estimateAmount" - } - }, - { - "variable": "securityCharge", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'SECURITY_CHARGE')].estimateAmount" - } - }, - { - "variable": "taxCess", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'TAX_AND_CESS')].estimateAmount" - } - }, - { - "variable": "roadCharge", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'ROAD_CUTTING_CHARGE')].estimateAmount" - } - }, - { - "variable": "oneTimeFee", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'ONE_TIME_FEE')].estimateAmount" - } - }, - { - "variable": "penaltyAmount", - "value": { - "path": "$.additionalDetails.adhocPenalty" - } - }, - { - "variable": "rebateAmount", - "value": { - "path": "$.additionalDetails.adhocRebate" - } - }, - { - "variable": "totalAmount", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "tenantName", - "value": { - "path": "$.tenantName" - } - }, - { - "variable": "date", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "total", - "value": { - "path": "PDF_STATIC_LABELWS_CONSOLIDATED_ACKNOWELDGMENT_TOTAL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_RUPEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_WS_MDMS_MUNICIPAL_CORPORATION_LOGO_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "presented_by", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PRESENTED_BY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "commissioner_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_COMMISSIONER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "app_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_ACKNOWELDGMENT_APPLICATION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "date_label", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_ACKNOWELDGMENT_DATE_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sub_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SUB_LEBEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ref_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_REF_LEBEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sub_data1", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SUB_DATA1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sub_data2", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SUB_DATA2" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "locality_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOCALITY_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_issued", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_ISSUED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ref_message1", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_REF_MESSAGE1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "dated_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DATED_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ref_message2", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_REF_MESSAGE2" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "in_ref_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_IN_REF_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_meassage1", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_MESSAGE1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_meassage2", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_MESSAGE2" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_meassage3", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_MESSAGE3" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_data2", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_DATA2" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_data3", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_DATA3" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "for_commissioner_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_FOR_COMMISSIONER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "to_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sri_smt_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SRI_SMT_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "door_no_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DOOR_NO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "copy_message1", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_COPY_MESSAGE1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "copy_message-sub1", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_COPY_MESSAGE_SUB1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "copy_message2", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_COPY_MESSAGE2" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "UAT", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_UAT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "form_fee", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_FORM_FEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "scrutiny_fee", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SCRUTINY_FEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "other_charge", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OTHER_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "security_charge", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SECURITY_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "tax_cess", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_TAX_CESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "penalty", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PENALTY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "rebate", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_REBATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "one_time_fee", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ONE_TIME_FEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "road_charge", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ROAD_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-sanctionletter.json b/pdf-service/data-config/ws-sanctionletter.json deleted file mode 100644 index 7d15d01a..00000000 --- a/pdf-service/data-config/ws-sanctionletter.json +++ /dev/null @@ -1,982 +0,0 @@ -{ - "key": "ws-sanctionletter", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.WnsConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "tenantName", - "value": { - "path": "$.tenantName" - } - }, - { - "variable": "municipalCouncil", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SUNAM_DEV_MUNICIPAL_COUNCIL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "door_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DOOR_NO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sanctionLetter", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SANCTION_LETTER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "dated", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DATED_IN_LOWER_CASE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message4", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SEEKING_ESTIMATE_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message5", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_PREPARATION_NOTICE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message6", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SERVICE_PAYMENT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message7", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SAID_PREMISES" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message8", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_FURTHER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message9", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONNECTION_SANCTIONED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message10", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_PLUMBER_INFO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message11", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_BILLING_CYCLE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "estimation_notice_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ESTIMATION_NOTICE_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "UAT", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_UAT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.tenantName" - } - }, - { - "variable": "presentByName", - "value": { - "path": "$.commissionerName" - } - }, - { - "variable": "usageType", - "value": { - "path": "$.appUserType" - } - }, - { - "variable": "applicationNumber", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "connectionExecutionDate", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "applicationType", - "value": { - "path": "$.service" - } - }, - { - "variable": "service", - "value": { - "path": "$.service" - } - }, - { - "variable": "doorNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "locality", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "plumberName", - "value": { - "path": "$.plumberInfo[0].name" - } - }, - { - "variable": "licenceNo", - "value": { - "path": "$.plumberInfo[0].licenseNo" - } - }, - { - "variable": "contactNo", - "value": { - "path": "$.plumberInfo[0].mobileNumber" - } - }, - { - "variable": "sla", - "value": { - "path": "$.sla" - } - }, - { - "variable": "slaDate", - "value": { - "path": "$.slaDate" - }, - "type": "date" - }, - { - "variable": "order_message14", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONCERNED_PLUMBER_CONTACT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message15", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_SLA_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message12", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONCERNED_PLUMBER_ALLOTED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message13", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONCERNED_PLUMBER_LICENCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "formFee", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'FORM_FEE')].estimateAmount" - } - }, - { - "variable": "ScrutinyFee", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'SCRUTINY_FEE')].estimateAmount" - } - }, - { - "variable": "otherCharge", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'OTHER_CHARGE')].estimateAmount" - } - }, - { - "variable": "securityCharge", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'SECURITY_CHARGE')].estimateAmount" - } - }, - { - "variable": "taxCess", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'TAX_AND_CESS')].estimateAmount" - } - }, - { - "variable": "roadCharge", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'ROAD_CUTTING_CHARGE')].estimateAmount" - } - }, - { - "variable": "oneTimeFee", - "value": { - "path": "$.pdfTaxhead[?(@.taxHeadCode == 'ONE_TIME_FEE')].estimateAmount" - } - }, - { - "variable": "penaltyAmount", - "value": { - "path": "$.additionalDetails.adhocPenalty" - } - }, - { - "variable": "rebateAmount", - "value": { - "path": "$.additionalDetails.adhocRebate" - } - }, - { - "variable": "totalAmount", - "value": { - "path": "$.totalAmount" - } - }, - { - "variable": "tenantName", - "value": { - "path": "$.tenantName" - } - }, - { - "variable": "date", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "appCreatedDate", - "value": { - "path": "$.additionalDetails.appCreatedDate" - }, - "type": "date" - }, - { - "variable": "sanctionLetterDate", - "value": { - "path": "$.sanctionLetterDate" - }, - "type": "date" - }, - { - "variable": "estimationLetterDate", - "value": { - "path": "$.additionalDetails.estimationLetterDate" - }, - "type": "date" - }, - { - "variable": "total", - "value": { - "path": "PDF_STATIC_LABELWS_CONSOLIDATED_ACKNOWELDGMENT_TOTAL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Rs", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_RUPEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_WS_MDMS_MUNICIPAL_CORPORATION_LOGO_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "presented_by", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PRESENTED_BY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "commissioner_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_COMMISSIONER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "app_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_ACKNOWELDGMENT_APPLICATION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "date_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DATE_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sub_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SUBJECT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ref_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_REFERENCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sub_data1", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SUB_DATA1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sub_data2", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SUB_DATA2" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "locality_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOCALITY_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_issued", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_ISSUED" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ref_message1", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_REF_MESSAGE1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "dated_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DATED_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ref_message2", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ESTIMATION_NOTICE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "in_ref_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ORDER_DESCRIPTION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message1", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_MESSAGE1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message2", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SEEKING" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_message3", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_WATER_TAP_CONNECTION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_data2", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_DATA2" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_data3", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_DATA3" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "for_commissioner_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_APPROVAL_EXECUTIVE_OFFICER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "to_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sri_smt_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SRI_SMT_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "door_no_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DOOR_NO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "copy_message1", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_COPY_MESSAGE1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "copy_message-sub1", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_COPY_MESSAGE_SUB1" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "copy_message2", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_COPY_MESSAGE2" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "UAT", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_UAT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "form_fee", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_FORM_FEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "scrutiny_fee", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SCRUTINY_FEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "other_charge", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OTHER_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "security_charge", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SECURITY_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "tax_cess", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_TAX_CESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "penalty", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PENALTY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "rebate", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_REBATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "one_time_fee", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ONE_TIME_FEE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "approved_by", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_COMPUTER_GENERATED_DOCUMENT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "road_charge", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ROAD_CHARGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://localhost:8083/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-sewagedisconnection.json b/pdf-service/data-config/ws-sewagedisconnection.json deleted file mode 100644 index 215c4142..00000000 --- a/pdf-service/data-config/ws-sewagedisconnection.json +++ /dev/null @@ -1,359 +0,0 @@ -{ - "key": "ws-sewagedisconnection", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.SewerageConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "propertyId", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "localityMohalla", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners.*.name" - } - }, - { - "variable": "disconnectionType", - "value": { - "path": "$.connectionType" - } - }, - { - "variable": "disconnectionProposedDate", - "value": { - "path": "$.dateEffectiveFrom" - }, - "type":"date" - }, - { - "variable": "disconnectionReason", - "value": { - "path": "$.additionalDetails.reasonForDisconnection" - } - }, - { - "variable": "holderName", - "value": { - "path": "$.connectionHolders.*.name" - } - }, - { - "variable": "mobileNo", - "value": { - "path": "$.connectionHolders.*.mobileNumber" - } - }, - { - "variable": "guardianName", - "value": { - "path": "$.connectionHolders.*.fatherOrHusbandName" - } - }, - { - "variable": "correspondingAddress", - "value": { - "path": "$.connectionHolders.*.correspondenceAddress" - } - }, - { - "variable": "documents", - "value": { - "path": "$.documents.*.documentType" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPLICATION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sewerage_application", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_SEWERAGE_APPLICATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "document_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DOCUMENT_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_holder_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONNECTION_HOLDER_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_id", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "holder_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_HOLDER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_MOBILE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "corresponding_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CORRESPONDING_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DISCONNECTION_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_proposed_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DISCONNECTION_PROPOSED_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_reason", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DISCONNECTION_REASON" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-sewerageconnectiondetails.json b/pdf-service/data-config/ws-sewerageconnectiondetails.json deleted file mode 100644 index a9e14886..00000000 --- a/pdf-service/data-config/ws-sewerageconnectiondetails.json +++ /dev/null @@ -1,522 +0,0 @@ -{ - "key": "ws-sewerageconnectiondetails", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.SewerageConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "propertyId", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "consumerNo", - "value": { - "path": "$.connectionNo" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "appDate", - "value": { - "path": "$.additionalDetails.appCreatedDate" - }, - "type": "date" - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "localityMohalla", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners.*.name" - } - }, - { - "variable": "waterSource", - "value": { - "path": "$.waterSource" - } - }, - { - "variable": "noOfTapsProposed", - "value": { - "path": "$.proposedTaps" - } - }, - { - "variable": "pipeSizeProposed", - "value": { - "path": "$.proposedPipeSize" - } - }, - { - "variable": "connectionType", - "value": { - "path": "$.connectionType" - } - }, - { - "variable": "waterSubSource", - "value": { - "path": "$.waterSubSource" - } - }, - { - "variable": "propertyId", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "holderName", - "value": { - "path": "$.connectionHolders.*.name" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "localityMohalla", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "mobileNo", - "value": { - "path": "$.connectionHolders.*.mobileNumber" - } - }, - { - "variable": "guardianName", - "value": { - "path": "$.connectionHolders.*.fatherOrHusbandName" - } - }, - { - "variable": "connectionExecutionDate", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "correspondingAddress", - "value": { - "path": "$.connectionHolders.*.correspondenceAddress" - } - }, - { - "variable": "documents", - "value": { - "path": "$.documents.*.documentType" - } - }, - { - "variable": "disconnectionReason", - "value": { - "path": "$.additionalDetails.reasonForDisconnection" - } - }, - { - "variable": "noOfWaterClosets", - "value": { - "path": "$.noOfWaterClosets" - } - }, - { - "variable": "noOfToilets", - "value": { - "path": "$.noOfToilets" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_taps", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TAPS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_source", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_SOURCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pipe_size", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PIPE_SIZE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_number", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_NUMBER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPLICATION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_sub_source", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_SUB_SOURCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "document_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DOCUMENT_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_execution_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_EXECUTION_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_holder_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONNECTION_HOLDER_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_id", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "holder_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_HOLDER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_MOBILE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "corresponding_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CORRESPONDING_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_connectiondetail", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_CONNECTIONDETAIL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_closets", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_CLOSETS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_toilets", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_NO_OF_TOILETS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://localhost:8083/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-seweragedisconnectionnotice.json b/pdf-service/data-config/ws-seweragedisconnectionnotice.json deleted file mode 100644 index 887072a6..00000000 --- a/pdf-service/data-config/ws-seweragedisconnectionnotice.json +++ /dev/null @@ -1,547 +0,0 @@ -{ - "key": "ws-seweragedisconnectionnotice", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.SewerageConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "appNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "consumerName", - "value": { - "path": "$.connectionHolders[0].name" - } - }, - { - "variable": "tenantName", - "value": { - "path": "$.tenantName" - } - }, - { - "variable": "municipalCouncil", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SUNAM_DEV_MUNICIPAL_COUNCIL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnectionNotice", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_NOTICE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "date_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DATE_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sub_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SUBJECT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ref_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_REFERENCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnectionNoticeDate", - "value": { - "path": "$.disconnectionNoticeDate" - }, - "type": "date" - }, - { - "variable": "disconnection_of_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_DISCONNECTION_OF_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONNECTION_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_no_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSUMER_NO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumerNo", - "value": { - "path": "$.connectionNo" - } - }, - { - "variable": "applicationType", - "value": { - "path": "$.applicationType" - } - }, - { - "variable": "application_of_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_APPLICATION_OF_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "doorNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "locality", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "city", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "dated_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DATED_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "appCreatedDate", - "value": { - "path": "$.additionalDetails.appCreatedDate" - }, - "type": "date" - }, - { - "variable": "order_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_in_ref_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_IN_REF_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "applicationNumber", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "dated", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DATED_IN_LOWER_CASE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "seeking_disconnection_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SEEKING_DICONNECTION_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_consumer_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONNECTION_CONSUMER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "door_no_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DOOR_NO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "locality_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOCALITY_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_order_message", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_ORDER_MESSAGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_billing_details_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_BILLINGDETAILS_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "billing_period_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_BILLINGPERIOD_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "lowercase_to_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_LOWERCASE_TO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "billing_date_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_BILLING_DATE_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "bill_number_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_BILLING_NUMBER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "billing_amount_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_BILLING_AMOUNT_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "due_date_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_DUE_DATE_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "current_meter_reading_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CURRENT_METER_READING_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "note_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_NOTE_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "note_message", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_NOTE_MESSAGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "to_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "muncipal_commisioner_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_MUNCIPAL_COMMISIONER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://billing-service:8080/billing-service/bill/v2/_fetchbill", - "queryParam": "tenantId=$.tenantId,consumerCode=$.connectionNo,businessService=SW", - "apiRequest": null, - "responseMapping": [ - { - "variable": "billingFromPeriod", - "value": "$.Bill[0].billDetails[0].fromPeriod", - "type": "date", - "format": "mm-dd-YYYY" - }, - { - "variable": "billingToPeriod", - "value": "$.Bill[0].billDetails[0].fromPeriod", - "type": "date", - "format": "mm-dd-YYYY" - }, - { - "variable": "billingDate", - "value": "$.Bill[0].billDate", - "type": "date", - "format": "mm-dd-YYYY" - }, - { - "variable": "billNumber", - "value": "$.Bill[0].billNumber" - }, - { - "variable": "billingAmount", - "value": "$.Bill[0].billDetails[0].amount" - }, - { - "variable": "dueDate", - "value": "$.Bill[0].billDetails[0].expiryDate" - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pdf-service/data-config/ws-waterconnectiondetails-metered.json b/pdf-service/data-config/ws-waterconnectiondetails-metered.json deleted file mode 100644 index 53b034ec..00000000 --- a/pdf-service/data-config/ws-waterconnectiondetails-metered.json +++ /dev/null @@ -1,535 +0,0 @@ -{ - "key": "ws-waterconnectiondetails-metered", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.WaterConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "propertyId", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "consumerNo", - "value": { - "path": "$.connectionNo" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "appDate", - "value": { - "path": "$.additionalDetails.appCreatedDate" - }, - "type": "date" - }, - { - "variable": "initialMeterReading", - "value": { - "path": "$.additionalDetails.initialMeterReading" - } - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "localityMohalla", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners.*.name" - } - }, - { - "variable": "waterSource", - "value": { - "path": "$.waterSource" - } - }, - { - "variable": "noOfTapsProposed", - "value": { - "path": "$.proposedTaps" - } - }, - { - "variable": "pipeSizeProposed", - "value": { - "path": "$.proposedPipeSize" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "localityMohalla", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "connectionType", - "value": { - "path": "$.connectionType" - } - }, - { - "variable": "waterSubSource", - "value": { - "path": "$.waterSubSource" - } - }, - { - "variable": "propertyId", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "holderName", - "value": { - "path": "$.connectionHolders.*.name" - } - }, - { - "variable": "mobileNo", - "value": { - "path": "$.connectionHolders.*.mobileNumber" - } - }, - { - "variable": "guardianName", - "value": { - "path": "$.connectionHolders.*.fatherOrHusbandName" - } - }, - { - "variable": "connectionExecutionDate", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "correspondingAddress", - "value": { - "path": "$.connectionHolders.*.correspondenceAddress" - } - }, - { - "variable": "documents", - "value": { - "path": "$.documents.*.documentType" - } - }, - { - "variable": "meterId", - "value": { - "path": "$.meterId" - } - }, - { - "variable": "meterInstallationDate", - "value": { - "path": "$.meterInstallationDate" - }, - "type": "date" - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_taps", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TAPS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_source", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_SOURCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pipe_size", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PIPE_SIZE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_number", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_NUMBER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPLICATION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_sub_source", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_SUB_SOURCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "document_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DOCUMENT_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_execution_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_EXECUTION_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_holder_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONNECTION_HOLDER_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_id", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "holder_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_HOLDER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_MOBILE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "corresponding_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CORRESPONDING_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_connectiondetail", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_CONNECTIONDETAIL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "meter_id", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_METER_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "meter_installation_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_METER_INSTALLATION_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "initial_meter_reading", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_INITIAL_METER_READING" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://localhost:8083/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-waterconnectiondetails-nonmetered.json b/pdf-service/data-config/ws-waterconnectiondetails-nonmetered.json deleted file mode 100644 index b5c966a6..00000000 --- a/pdf-service/data-config/ws-waterconnectiondetails-nonmetered.json +++ /dev/null @@ -1,510 +0,0 @@ -{ - "key": "ws-waterconnectiondetails-nonmetered", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.WaterConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "propertyId", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "consumerNo", - "value": { - "path": "$.connectionNo" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "appDate", - "value": { - "path": "$.additionalDetails.appCreatedDate" - }, - "type": "date" - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "localityMohalla", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners.*.name" - } - }, - { - "variable": "waterSource", - "value": { - "path": "$.waterSource" - } - }, - { - "variable": "noOfTapsProposed", - "value": { - "path": "$.proposedTaps" - } - }, - { - "variable": "pipeSizeProposed", - "value": { - "path": "$.proposedPipeSize" - } - }, - { - "variable": "connectionType", - "value": { - "path": "$.connectionType" - } - }, - { - "variable": "waterSubSource", - "value": { - "path": "$.waterSubSource" - } - }, - { - "variable": "propertyId", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "holderName", - "value": { - "path": "$.connectionHolders.*.name" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "localityMohalla", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "mobileNo", - "value": { - "path": "$.connectionHolders.*.mobileNumber" - } - }, - { - "variable": "guardianName", - "value": { - "path": "$.connectionHolders.*.fatherOrHusbandName" - } - }, - { - "variable": "connectionExecutionDate", - "value": { - "path": "$.connectionExecutionDate" - }, - "type": "date" - }, - { - "variable": "correspondingAddress", - "value": { - "path": "$.connectionHolders.*.correspondenceAddress" - } - }, - { - "variable": "documents", - "value": { - "path": "$.documents.*.documentType" - } - }, - { - "variable": "disconnectionReason", - "value": { - "path": "$.additionalDetails.reasonForDisconnection" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_taps", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TAPS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_source", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_SOURCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pipe_size", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PIPE_SIZE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_number", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_NUMBER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPLICATION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_sub_source", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_SUB_SOURCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "document_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DOCUMENT_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_execution_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_EXECUTION_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_holder_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONNECTION_HOLDER_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CONNECTION_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_id", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "holder_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_HOLDER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_MOBILE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "corresponding_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CORRESPONDING_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_connectiondetail", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_CONNECTIONDETAIL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_proposed_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DISCONNECTION_PROPOSED_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_reason", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DISCONNECTION_REASON" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://localhost:8083/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-waterdisconnection.json b/pdf-service/data-config/ws-waterdisconnection.json deleted file mode 100644 index 1049b875..00000000 --- a/pdf-service/data-config/ws-waterdisconnection.json +++ /dev/null @@ -1,359 +0,0 @@ -{ - "key": "ws-waterdisconnection", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.WaterConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "applicationNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "propertyId", - "value": { - "path": "$.property.propertyId" - } - }, - { - "variable": "cityName", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "doorHouseNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "buildingColonyName", - "value": { - "path": "$.property.address.buildingName" - } - }, - { - "variable": "streetName", - "value": { - "path": "$.property.address.street" - } - }, - { - "variable": "localityMohalla", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners.*.name" - } - }, - { - "variable": "disconnectionType", - "value": { - "path": "$.connectionType" - } - }, - { - "variable": "disconnectionProposedDate", - "value": { - "path": "$.dateEffectiveFrom" - }, - "type":"date" - }, - { - "variable": "holderName", - "value": { - "path": "$.connectionHolders.*.name" - } - }, - { - "variable": "mobileNo", - "value": { - "path": "$.connectionHolders.*.mobileNumber" - } - }, - { - "variable": "guardianName", - "value": { - "path": "$.connectionHolders.*.fatherOrHusbandName" - } - }, - { - "variable": "correspondingAddress", - "value": { - "path": "$.connectionHolders.*.correspondenceAddress" - } - }, - { - "variable": "documents", - "value": { - "path": "$.documents.*.documentType" - } - }, - { - "variable": "disconnectionReason", - "value": { - "path": "$.additionalDetails.reasonForDisconnection" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "application_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_APPLICATION_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "water_application", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_WATER_APPLICATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "document_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DOCUMENT_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_holder_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONNECTION_HOLDER_DETAIL_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_details_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_DETAILS_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_id", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "property_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "owner_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_OWNER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "holder_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_HOLDER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "mobile_no", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_MOBILE_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "guardian_name", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_GUARDIAN_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "corresponding_address", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_CORRESPONDING_ADDRESS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_type", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DISCONNECTION_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_proposed_date", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DISCONNECTION_PROPOSED_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_reason", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DISCONNECTION_REASON" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/data-config/ws-waterdisconnectionnotice.json b/pdf-service/data-config/ws-waterdisconnectionnotice.json deleted file mode 100644 index 1ecfc9a8..00000000 --- a/pdf-service/data-config/ws-waterdisconnectionnotice.json +++ /dev/null @@ -1,547 +0,0 @@ -{ - "key": "ws-waterdisconnectionnotice", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.WaterConnection.*", - "entityIdPath": "$.applicationNo", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "appNo", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "consumerName", - "value": { - "path": "$.connectionHolders[0].name" - } - }, - { - "variable": "tenantName", - "value": { - "path": "$.tenantName" - } - }, - { - "variable": "municipalCouncil", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SUNAM_DEV_MUNICIPAL_COUNCIL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "logo_sub_header", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOGO_SUB_HEADER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnectionNotice", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_NOTICE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "date_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DATE_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "sub_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SUBJECT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ref_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_REFERENCE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnectionNoticeDate", - "value": { - "path": "$.disconnectionNoticeDate" - }, - "type": "date" - }, - { - "variable": "disconnection_of_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_DISCONNECTION_OF_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONNECTION_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_no_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSUMER_NO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumerNo", - "value": { - "path": "$.connectionNo" - } - }, - { - "variable": "applicationType", - "value": { - "path": "$.applicationType" - } - }, - { - "variable": "application_of_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_APPLICATION_OF_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "doorNo", - "value": { - "path": "$.property.address.doorNo" - } - }, - { - "variable": "locality", - "value": { - "path": "$.property.address.locality.name" - } - }, - { - "variable": "city", - "value": { - "path": "$.property.address.city" - } - }, - { - "variable": "ownerName", - "value": { - "path": "$.property.owners[0].name" - } - }, - { - "variable": "dated_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DATED_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "appCreatedDate", - "value": { - "path": "$.additionalDetails.appCreatedDate" - }, - "type": "date" - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "order_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_ORDER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_in_ref_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_IN_REF_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "applicationNumber", - "value": { - "path": "$.applicationNo" - } - }, - { - "variable": "dated", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DATED_IN_LOWER_CASE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "seeking_disconnection_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_SEEKING_DICONNECTION_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "connection_consumer_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CONNECTION_CONSUMER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "door_no_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_DOOR_NO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "locality_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_LOCALITY_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_order_message", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_ORDER_MESSAGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disconnection_billing_details_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_BILLINGDETAILS_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "billing_period_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_BILLINGPERIOD_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "lowercase_to_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_LOWERCASE_TO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "billing_date_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_BILLING_DATE_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "bill_number_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_BILLING_NUMBER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "billing_amount_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_BILLING_AMOUNT_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "due_date_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_DUE_DATE_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "current_meter_reading_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_CURRENT_METER_READING_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "note_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_NOTE_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "note_message", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_DISCONNECTION_NOTE_MESSAGE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "to_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_TO_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "muncipal_commisioner_label", - "value": { - "path": "PDF_STATIC_LABEL_WS_MUNCIPAL_COMMISIONER_LABEL" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://billing-service:8080/billing-service/bill/v2/_fetchbill", - "queryParam": "tenantId=$.tenantId,consumerCode=$.connectionNo,businessService=WS", - "apiRequest": null, - "responseMapping": [ - { - "variable": "billingFromPeriod", - "value": "$.Bill[0].billDetails[0].fromPeriod", - "type": "date", - "format": "mm-dd-YYYY" - }, - { - "variable": "billingToPeriod", - "value": "$.Bill[0].billDetails[0].fromPeriod", - "type": "date", - "format": "mm-dd-YYYY" - }, - { - "variable": "billingDate", - "value": "$.Bill[0].billDate", - "type": "date", - "format": "mm-dd-YYYY" - }, - { - "variable": "billNumber", - "value": "$.Bill[0].billNumber" - }, - { - "variable": "billingAmount", - "value": "$.Bill[0].billDetails[0].amount" - }, - { - "variable": "dueDate", - "value": "$.Bill[0].billDetails[0].expiryDate" - } - ] - }, - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.property.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo_header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - } - ] - } - ] - } - ] - } - ] - } -} diff --git a/pdf-service/format-config/bill-amendment-note.json b/pdf-service/format-config/bill-amendment-note.json deleted file mode 100644 index fbf7c9df..00000000 --- a/pdf-service/format-config/bill-amendment-note.json +++ /dev/null @@ -1,549 +0,0 @@ -{ - "key": "bill-amendment-credit-note", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "color":"#484848", - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo-header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{note_type}}", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -100, - 0, - -25, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - - { - "style": "note-info", - "columns": [ - { - "text": [ - { - "text": "{{note_id}} ", - "bold": true - }, - { - "text": "{{applicationNo}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{note_date}}", - "bold": true - }, - { - "text": "{{date}}", - "bold": false - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - - { - "style": "header", - "columns": [ - { - "text": [ - { - "text": "{{against}}", - "bold": true - } - ], - "alignment": "left" - } - ] - }, - { - "style": "header-1", - "text": "{{user-name}}", - "alignment": "left" - }, - { - "style": "header-1", - "text": "{{permanentAddress}}", - "alignment": "left" - }, - { - "style": "header", - "text": " ", - "alignment": "left" - }, - - { - "style": "note-info-1", - "columns": [ - { - "text": [ - { - "text": "{{adjustment_amount_details}}", - "bold": true - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{total_amount}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -200, - 1 - ] - }, - { - "text": [ - { - "text": "{{rs}} {{totalAmount}}", - "bold": true - } - ], - "alignment": "right", - "fontSize": 20, - "margin": [ - 0, - 25, - -10, - 1 - ] - } - ] - }, - - { - "style": "ws-table", - "table": { - "widths": [ - "70%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "10%", - "30%", - "30%" - ], - "body": [ - [ - { - "text": "{{sl_no}}", - "alignment": "center" - }, - { - "text": "{{tax_heads}}", - "alignment": "left" - }, - { - "text": "{{reduced_amount}}", - "alignment": "right" - } - ], - [ - { - "text": "1.", - "alignment": "center" - }, - { - "text": "{{water_tax}}", - "alignment": "left" - }, - { - "text": "{{waterTax}}", - "alignment": "right" - } - ], - [ - { - "text": "2.", - "alignment": "center" - }, - { - "text": "{{water_cess}}", - "alignment": "left" - }, - { - "text": "{{waterCess}}", - "alignment": "right" - } - ], - [ - { - "text": "3.", - "alignment": "center" - }, - { - "text": "{{interest}}", - "alignment": "left" - }, - { - "text": "{{interestAmount}}", - "alignment": "right" - } - ], - [ - { - "text": "4.", - "alignment": "center" - }, - { - "text": "{{penalty}}", - "alignment": "left" - }, - { - "text": "{{penaltyAmount}}", - "alignment": "right" - } - ], - [ - { - "text": "5.", - "alignment": "center" - }, - { - "text": "{{arrears}}", - "alignment": "left" - }, - { - "text": "{{arrearsAmount}}", - "alignment": "right" - } - ], - [ - { - "text": " " - }, - { - "text": "{{total_amount}}", - "alignment": "left" - }, - { - "text": "{{totalAmount}}", - "alignment": "right" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - - { - "style": "ws-table-1", - "table": { - "widths": [ - "130%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "120%" - ], - "body": [ - [ - { - "text": "{{box_note}}", - "alignment": "left" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - - { - "style": "header", - "text": " ", - "alignment": "left" - }, - - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{generated_by}}: ", - "bold": true - }, - { - "text": "{{user-name}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner/eo}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - - { - "style": "no-signature", - "text": "{{no_signature}}" - }, - - { - "style": "no-signature", - "text": "{{box_validity}}" - } - ], - - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "ws-head": { - "margin": [ - -39, - -38, - -38, - 0 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "ws-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-1": { - "fontSize": 12, - "color": "#000000", - "margin": [ - 380, - -120, - 20, - 10 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -10, - 8, - 0, - 8 - ] - }, - "header": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "header-1": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "note-info": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 10, - -10, - 0 - ], - "color": "#000000" - }, - "note-info-1": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 10, - -10, - -45 - ], - "color": "#000000" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 10, - -10, - 0 - ], - "color": "#484848" - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/bill-amendment.json b/pdf-service/format-config/bill-amendment.json deleted file mode 100644 index 5317c84f..00000000 --- a/pdf-service/format-config/bill-amendment.json +++ /dev/null @@ -1,546 +0,0 @@ -{ - "key": "bill-amendment-summary", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "color":"#484848", - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo-header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{serviceType}} department", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -100, - 0, - -25, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - - { - "columns": [ - { - "text": "{{bill_amendment_application}}", - "style": "ws-header", - "margin": [ - 0, - 0, - 10, - 10 - ] - }, - { - "text": "{{bill_amendment_application_number}}", - "alignment": "right", - "margin": [ - 0, - 0, - -50, - 10 - ] - }, - { - "text": "{{applicationNo}}", - "alignment": "right", - "bold": true, - "margin": [ - -150, - 0, - -20, - 0 - ] - } - ], - "margin": [ - -26, - 10, - 0, - 0 - ] - }, - - { - "columns": [ - { - "text": "{{adjustment_amount_details}}", - "style": "header" - } - ] - }, - - { - "style": "ws-table", - "table": { - "widths": [ - "102%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "10%", - "45%", - "45%" - ], - "body": [ - [ - { - "text": "{{sl_no}}", - "alignment": "center" - }, - { - "text": "{{tax_heads}}", - "alignment": "center" - }, - { - "text": "{{reduced_amount}}", - "alignment": "center" - } - ], - [ - { - "text": "1.", - "alignment": "center" - }, - { - "text": "{{water_tax}}", - "alignment": "left" - }, - { - "text": "{{waterTax}}", - "alignment": "right" - } - ], - [ - { - "text": "2.", - "alignment": "center" - }, - { - "text": "{{water_cess}}", - "alignment": "left" - }, - { - "text": "{{waterCess}}", - "alignment": "right" - } - ], - [ - { - "text": "3.", - "alignment": "center" - }, - { - "text": "{{interest}}", - "alignment": "left" - }, - { - "text": "{{interestAmount}}", - "alignment": "right" - } - ], - [ - { - "text": "4.", - "alignment": "center" - }, - { - "text": "{{penalty}}", - "alignment": "left" - }, - { - "text": "{{penaltyAmount}}", - "alignment": "right" - } - ], - [ - { - "text": "5.", - "alignment": "center" - }, - { - "text": "{{arrears}}", - "alignment": "left" - }, - { - "text": "{{arrearsAmount}}", - "alignment": "right" - } - ], - [ - { - "text": " " - }, - { - "text": "{{total_amount}}", - "alignment": "left" - }, - { - "text": "{{totalAmount}}", - "alignment": "right" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{demand_revision_basis_details}}", - "bold": true, - "alignment": "left", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "102%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "33%", - "33%", - "33%" - ], - "body": [ - [ - { - "text": "{{demand_revision_basis}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{court_order_no}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{with_effect_from}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{demandRevisionBasis}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{courtOrderNo}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{withEffectFrom}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "Documents", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "102%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "33%", - "33%", - "33%" - ], - "body": [ - [ - { - "text": "{{court_order}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{self_declaration}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{past_bills}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{courtOrder}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{selfDeclaration}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{pastBills}}", - "alignment": "center", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - } - ], - - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "ws-head": { - "margin": [ - -39, - -38, - -38, - 0 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "ws-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -10, - 8, - 0, - 8 - ] - }, - "header": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/birth-certificate.json b/pdf-service/format-config/birth-certificate.json deleted file mode 100644 index 33904401..00000000 --- a/pdf-service/format-config/birth-certificate.json +++ /dev/null @@ -1,509 +0,0 @@ -{ - "key": "birth-certificate", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - - { - "style": "ws-head", - "table": { - "widths": ["20%", "60%", "20%"], - "body": [ - [ - { - "stack": [ - { - "text": "No .1", - "style": "appendix-header-serialNo" - } - ] - }, - { - "stack": [ - { - "text": "GOVERNMENT OF PANJAB", - "style": "appendix-header-body" - }, - { - "text": "DEPARTMENT OF HEALTH AND FAMILY WELFARE", - "style": "appendix-header-body", - "margin": [0, 0, 0, 0] - } - ] - }, - { - "stack": [ - { - "text": "Form-7", - "style": "appendix-header-formNo" - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "text": "Chief Registrar Births & Deaths, Punjab", - "style": "title-header" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "text": "BIRTH CERTIFICATE", - "style": "title-header", - "decoration": "underline" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "columns": [ - { - "text": ["This is to certify that the following information has been taken from the original birth record which is registered in the birth register of Local Registrar, Births & Deaths, {{parentsCity}}, Block/ Police Station- {{parentsStreet}} Taluk- {{parentsTehsil}} District- {{parentsDistrict}} of {{parentsState}} State of the Year – {{year}}"], - "style": "rule-body_multiLang" - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "columns": [ - { - "text": "NAME: {{name}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "SEX: {{gender}}", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "DATE OF BIRTH: {{dob}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "PLACE OF BIRTH: {{placeOfBirth}}", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "NAME OF MOTHER: {{motherName}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "NAME OF FATHER: {{fatherName}}", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "ADDRESS OF PARENTS AT THE TIME OF BIRTH OF THE CHILD: {{childAddress}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "PERMANENT ADDRESS OF PARENTS: {{parentsAddress}}", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "REGISTRATION NUMBER: {{registrationNo}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "DATE OF REGISTRATION: {{registration_date}}", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "REMARKS (IF ANY): {{remarks}}", - "width": "49%", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "DATE OF ISSUE: {{issueDate}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "Signature, Name & address of issuing Authority", - "style": "details-body", - "margin": [0, -15, 0, 0] - } - ] - } - ] - - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "image": "{{qr_code_image}}", - "width": 70, - "height": 70, - "style": "qr-code" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "columns": [ - { - "text": "Issued Under Section 12/17 of the Registration of Births and Deaths Act, 1969 and Rule 8/13 the Registration of Births and Deaths Rules,2004", - "style": "footer" - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "text": "Ensure registration of every birth and death.", - "style": "footer" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "text": "Register the Births / Deaths event within 21 Days and get a free copy", - "style": "footer" - } - ] - ] - }, - "layout": "noBorders" - } - - ], - "styles": { - "pdf-header": { - "fillColor": "#F2F2F2", - "margin": [-70, -41, -81, 10] - }, - "appendix-header": { - "color": "#000000", - "bold": true, - "fontSize": 9, - "fontWeight": 400, - "alignment": "center" - }, - "appendix-header-emblem": { - "color": "#000000", - "alignment": "center", - "margin": [0, -30, 0, 0] - }, - "instruction-body": { - "color": "#000000", - "bold": false, - "fontSize": 7, - "fontWeight": 400, - "alignment": "center", - "margin": [0, -20, 0, 0] - }, - "qr-code": { - "color": "#000000", - "alignment": "left", - "margin": [0, 0, 0, 0] - }, - "footer": { - "color": "#000000", - "alignment": "left", - "margin": [ - 0, - 30, - 0, - 0 - ] - }, - "title-header": { - "color": "#004d00", - "bold": true, - "fontSize": 14, - "alignment": "center", - "margin": [0, -1, 0, 0] - }, - "title-header_multiLang": { - "color": "#004d00", - "bold": true, - "fontSize": 15, - "alignment": "center", - "margin": [0, 0, 0, -10] - }, - "appendix-header-serialNo": { - "color": "#000000", - "bold": false, - "fontSize": 8, - "fontWeight": 400, - "margin": [0, -5, 0, 0] - }, - "appendix-header-formNo": { - "color": "#000000", - "bold": false, - "fontSize": 8, - "fontWeight": 400, - "margin": [20, -5, 0, 0] - }, - "rule-header": { - "color": "#000000", - "bold": false, - "fontSize": 10, - "fontWeight": 400, - "margin": [0, 0, 0, 3] - }, - "rule-header_multiLang": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [0, 0, 0, -1] - }, - "rule-body": { - "color": "#000000", - "bold": false, - "fontSize": 10, - "fontWeight": 400, - "margin": [0, 0, 0, 0] - }, - "rule-body_multiLang": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [0, 0, 0, 0] - }, - "details-body": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [0, 5, 0, 0] - }, - "appendix-header-body": { - "color": "#000099", - "bold": true, - "fontSize": 9, - "fontWeight": 400, - "alignment": "center" - }, - "receipt-value-down-sub": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "alignment": "left", - "margin": [0, 0, 0, 5] - }, - "receipt-value-down-rec": { - "color": "#000000", - "bold": false, - "fontSize": 13, - "fontWeight": 400, - "alignment": "left", - "margin": [0, 0, 0, 0] - }, - "receipt-value-down": { - "color": "#000000", - "bold": false, - "fontSize": 13, - "fontWeight": 400, - "alignment": "left", - "margin": [-8, 0, 0, 5] - }, - "pdf-application-no-value": { - "fontSize": 12, - "font": "Roboto", - "italics": true, - "margin": [-18, 8, 0, 0], - "color": "#484848" - }, - "pdf-header-text": { - "color": "#484848", - "fontSize": 20, - "bold": true, - "letterSpacing": 0.74, - "margin": [0, 0, 0, 5] - }, - "pdf-header-sub-text": { - "color": "#484848", - "fontSize": 15, - "letterSpacing": 0.6 - }, - "pdf-application-no": { - "fontSize": 12, - "bold": true, - "margin": [-18, 8, 0, 0], - "color": "#484848" - }, - "pdf-card-title": { - "fontSize": 11, - "bold": true, - "margin": [-18, 16, 8, 8], - "color": "#484848", - "fontWeight": 500 - }, - "pdf-card-no-title": { - "fontSize": 11, - "bold": true, - "color": "#484848", - "fontWeight": 500 - }, - "pdf-table-card-white": { - "fillColor": "white", - "fontSize": 7, - "color": "#484848", - "margin": [-20, -2, -8, -8] - }, - "pdf-table-card": { - "fillColor": "#F2F2F2", - "fontSize": 7, - "color": "#484848", - "margin": [-20, -2, -8, -8] - }, - "pdf-card-key": { - "color": "rgba(0, 0, 0, 0.54)", - "fontSize": 8, - "margin": [0, 1, 0, 0] - }, - "pdf-card-sub-header": { - "color": "rgba(0, 0, 0, 0.94)", - "fontSize": 9, - "bold": true, - "margin": [0, 3, 0, 0] - }, - "pdf-card-value": { - "fontSize": 10, - "color": "rgba(0, 0, 0, 0.87)", - "margin": [0, 0, 0, 1] - }, - "pdf-head-qr-code": { - "fillColor": "#F2F2F2", - "margin": [-70, -41, -81, 0] - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/bpa-revocation.json b/pdf-service/format-config/bpa-revocation.json deleted file mode 100644 index 36f83542..00000000 --- a/pdf-service/format-config/bpa-revocation.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "key": "bpa-revocation", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "columns": [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "alignment": "left" - }, - { - "stack": [ - { - "text": "{{tenantName}} {{Muncipal_Council}}", - "style": "header" - }, - { - "text": "{{Revocation_Title}}", - "style": "sub-header" - } - ] - }, - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "alignment": "right" - } - ] - }, - { - "columns": [ - { - "text": [ - { - "text": "{{Dated}} : ", - "bold": true - }, - { - "text": "{{revocationDate}}", - "bold": true - } - ], - "alignment": "right" - } - ], - "style": "top-margin" - }, - { - "text": [ - { - "text": "{{SALUTATION}} " - }, - { - "text": "{{ownerName}},", - "bold": true - } - ], - "style": "top-margin" - }, - { - "text": [ - { - "text": "{{Permision_Issued}} " - }, - { - "text": "{{planPermissionNo}}", - "bold": true, - "font": "Roboto" - }, - { - "text": " {{WRT_APPNO}} " - }, - { - "text": "{{applicationNo}}", - "bold": true, - "font": "Roboto" - }, - { - "text": " {{dated}} " - }, - { - "text": "{{createdDate}}", - "bold": true - }, - { - "text": " {{isRevocated}}. " - } - ], - "style": "top-low-margin" - }, - { - "text": [ - { - "text": "{{revocationReasonIs}}" - }, - { - "text": " {{revocationReason}}.", - "bold": true - }, - { - "text": " {{noAuthText}}." - } - ], - "style": "top-low-margin" - }, - { - "text": [ - { - "text": "{{contactULB}}." - } - ], - "style": "top-low-margin" - }, - { - "stack": [ - { - "text": "{{BY_ORDER}}", - "style": "top-margin" - }, - { - "text": "{{AUTH_OFFICER}}", - "margin": 2 - }, - { - "text": "{{revocatedBy}}", - "margin": 2 - } - ], - "alignment": "right", - "style": "top-margin" - } - ], - "styles": { - "header": { - "bold": true, - "alignment": "center" - }, - "sub-header": { - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 5 - ] - }, - "top-margin": { - "margin": [ - 0, - 30, - 0, - 0 - ] - }, - "top-low-margin": { - "margin": [ - 0, - 10, - 0, - 0 - ] - } - } - } -} diff --git a/pdf-service/format-config/buildingpermit-low.json b/pdf-service/format-config/buildingpermit-low.json deleted file mode 100644 index c0cb4268..00000000 --- a/pdf-service/format-config/buildingpermit-low.json +++ /dev/null @@ -1,330 +0,0 @@ -{ - "key": "buildingpermit-low", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "text" : "{{GENERATED_ON}} : ", - "absolutePosition" : { - "x" : 400, - "y" : 5 - } - }, - { - "text" : " {{orderGeneratedOn}}", - "absolutePosition" : { - "x" : 490, - "y" : 5 - } - }, - { - "columns": [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "alignment": "left" - }, - { - "stack": [ - { - "text": "{{tenantName}} {{Muncipal_Council}}", - "style": "header" - }, - { - "text": "{{BPA_FORM}}", - "style": "sub-header" - }, - { - "text": "{{BPA_FORM_APPROVAL}}", - "style": "header" - }, - { - "text": "{{BPA_BYELAWS}}", - "style": "sub-header" - } - ] - }, - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "alignment": "right" - } - ] - }, - { - "columns": [ - { - "text": [ - { - "text": "{{PLAN_PERMISION_NO}} : ", - "bold": true - }, - { - "text": "{{planPermissionNo}}", - "bold": true, - "font": "Roboto" - } - ], - "alignment": "left", - "width": "*" - } - ], - "style": "top-margin" - }, - { - "text": [ - { - "text": "{{WRT_TXT}}" - }, - { - "text" : " {{applicationNo}}", - "bold" : true, - "font": "Roboto" - }, - { - "text" : " {{dated}}" - }, - { - "text" : " {{applicationDate}}" - }, - { - "text" : ", {{PERMISSION_GRANT_TXT}} : " - } - ], - "style": "top-margin" - }, - { - "text": [ - { - "text": "{{SALUTATION}} " - }, - { - "text": "{{favourOf}}", - "bold": true - }, - { - "text": " {{FOR}} " - } - ], - "style": "top-margin" - }, - { - "text": [ - { - "text": "{{DSCR1}} {{PLOT_NO}}" - }, - { - "text": " {{plotNo}}", - "bold": true - }, - { - "text": " {{KHATA_NO}} " - }, - { - "text": "{{khataNo}}", - "bold": true - }, - { - "text": " {{HOLDING_NO}} " - }, - { - "text": "{{holdingNo}}", - "bold": true - }, - { - "text" : " {{SERVEY_NO}} " - }, - { - "text" : "{{reServeyPlotNo}}", - "bold" : true - }, - { - "text" : " {{TOWNPLANNING_TXT}} " - }, - { - "text" : "{{townPlanningScheme}}", - "bold" : true - }, - { - "text" : " {{PROPOSE_LAND}} " - }, - { - "text" : "{{proposedLandUse}}", - "bold" : true - }, - { - "text": " {{OF}} " - }, - { - "text": "{{tenantName}} {{BPA_PDF_MUNCIPAL}}", - "bold": true - }, - { - "text": " {{CONDNS_TXT}}" - } - ] - }, - { - "separator": ")", - "ol": ["{{conditions}}"] - }, - { - "stack": [ - { - "text": "{{PERMIT_DETAILS_TXT}}," - } - ], - "bold": true, - "style": "top-margin" - }, - { - "table": { - "widths": [ - "auto", - "auto" - ], - "body": [ - [ - { - "text" : "{{FEE_DSCR}}", - "alignment" : "center", - "bold" : true - }, - { - "text" : "{{AMOUNT}}", - "bold" : true, - "alignment" : "right" - } - ], - "{{#paymentDetails}}[{ \"text\":\"{{headCode}}\", \"border\":[ true, true, true, true ],\"alignment\": \"center\"},{ \"text\":\"{{amnt}}\", \"border\":[ true, true, true, true ],\"alignment\": \"right\"}]{{/paymentDetails}}", - [ - { - "text" : "{{TOTAL}}", - "alignment" : "center" - }, - { - "text" : "{{totalDue}}", - "alignment" : "right" - } - ] - ] - }, - "margin": [ - 0, - 5, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{BY_ORDER}}", - "style": "top-margin" - }, - { - "text": "{{AUTH_OFFICER}}", - "margin": 2 - }, - { - "text": "{{tenantName}}", - "margin": 2 - } - ], - "alignment": "right", - "style": "top-margin" - }, - { - "text" : [ - { - "text" : "{{AUTH_DSCR}}" - } - ] - }, - { - "text": [ - { - "text": "{{VALIDITY_DSCR}} " - }, - { - "text": "{{validityDate}}" - }, - { - "text": " {{ONLY}}." - } - ], - "style": "top-margin", - "bold": true - }, - { - "text": "{{NOTE}} : ", - "bold": true, - "style": "top-margin" - }, - { - "text": [ - { - "text" : "{{SUMMARY1}}" - }, - { - "text" : " {{Bihar_Tenant}} " - }, - { - "text" : "{{SUMMARY2}}." - } - ], - "style": "top-margin" - }, - { - "image": "{{qrCode}}", - "alignment": "right", - "width": 100, - "height": 100 - }, - { - "stack":[ - { - "text" : "{{REPORT_RUNDATE}} : {{reportrunDate}}", - "alignment" : "right" - } - ] - } - ], - "footer": "(function(currentPage, pageCount) { return currentPage.toString() + ' of ' + pageCount; })", - "styles": { - "header": { - "bold": true, - "alignment": "center" - }, - "sub-header": { - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 5 - ] - }, - "top-margin": { - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - "top-high-margin": { - "margin": [ - 0, - 30, - 0, - 0 - ] - } - } - } -} diff --git a/pdf-service/format-config/buildingpermit.json b/pdf-service/format-config/buildingpermit.json deleted file mode 100644 index 3739d3e3..00000000 --- a/pdf-service/format-config/buildingpermit.json +++ /dev/null @@ -1,342 +0,0 @@ -{ - "key": "buildingpermit", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "text" : "{{GENERATED_ON}} : ", - "absolutePosition" : { - "x" : 400, - "y" : 5 - } - }, - { - "text" : " {{orderGeneratedOn}}", - "absolutePosition" : { - "x" : 490, - "y" : 5 - } - }, - { - "columns": [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "alignment": "left" - }, - { - "stack": [ - { - "text": "{{tenantName}} {{Muncipal_Council}}", - "style": "header" - }, - { - "text": "{{BPA_FORM}}", - "style": "sub-header" - }, - { - "text": "{{BPA_FORM_APPROVAL}}", - "style": "header" - }, - { - "text": "{{BPA_BYELAWS}}", - "style": "sub-header" - } - ] - }, - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "alignment": "right" - } - ] - }, - { - "columns": [ - { - "text": [ - { - "text": "{{PLAN_PERMISION_NO}} : ", - "bold": true - }, - { - "text": "{{planPermissionNo}}", - "bold": true, - "font": "Roboto" - } - ], - "alignment": "left", - "width": "*" - } - ], - "style": "top-margin" - }, - { - "text": [ - { - "text": "{{WRT_TXT}}" - }, - { - "text": " {{applicationNo}}", - "bold": true, - "font": "Roboto" - }, - { - "text": " {{dated}}" - }, - { - "text": " {{applicationDate}}" - }, - { - "text": ", {{PERMISSION_GRANT_TXT}} : " - } - ], - "style": "top-margin" - }, - { - "text": [ - { - "text": "{{SALUTATION}} " - }, - { - "text": "{{favourOf}}", - "bold": true - }, - { - "text": " {{FOR}} " - } - ], - "style": "top-margin" - }, - { - "text": [ - { - "text": "{{DSCR1}} {{PLOT_NO}}" - }, - { - "text": " {{plotNo}}", - "bold": true - }, - { - "text": " {{KHATA_NO}} " - }, - { - "text": "{{khataNo}}", - "bold": true - }, - { - "text": " {{HOLDING_NO}} " - }, - { - "text": "{{holdingNo}}", - "bold": true - }, - { - "text": " {{SERVEY_NO}} " - }, - { - "text": "{{reServeyPlotNo}}", - "bold": true - }, - { - "text": " {{TOWNPLANNING_TXT}} " - }, - { - "text": "{{townPlanningScheme}}", - "bold": true - }, - { - "text": " {{PROPOSE_LAND}} " - }, - { - "text": "{{proposedLandUse}}", - "bold": true - }, - { - "text": " {{OF}} " - }, - { - "text": "{{tenantName}} {{BPA_PDF_MUNCIPAL}}", - "bold": true - }, - { - "text": " {{CONDNS_TXT}}" - } - ] - }, - { - "separator": ")", - "ol": [ - "{{conditions}}" - ] - }, - { - "stack": [ - { - "text": "{{PERMIT_DETAILS_TXT}}," - } - ], - "bold": true, - "style": "top-margin" - }, - { - "table": { - "widths": [ - "auto", - "auto" - ], - "body": [ - [ - { - "text": "Fee Description", - "bold": true - }, - { - "text": "Amount (Rs)", - "bold": true, - "alignment": "right" - } - ], - [ - { - "text": "{{appHeadCode}}" - }, - { - "text": "{{appFee}}", - "alignment": "right" - } - ], - [ - { - "text": "{{sanHeadCode}}" - }, - { - "text": "{{sanFee}}", - "alignment": "right" - } - ], - [ - { - "text": "Total", - "bold": true - }, - { - "text": "{{totalDue}}", - "bold": true, - "alignment": "right" - } - ] - ] - }, - "margin": [ - 0, - 5, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{BY_ORDER}}", - "style": "top-margin" - }, - { - "text": "{{AUTH_OFFICER}}", - "margin": 2 - }, - { - "text": "{{approvedBy}}", - "margin": 2 - } - ], - "alignment": "right", - "style": "top-margin" - }, - { - "text": [ - { - "text": "{{VALIDITY_DSCR}} " - }, - { - "text": "{{validityDate}}" - }, - { - "text": " {{ONLY}}." - } - ], - "style": "top-margin", - "bold": true - }, - { - "text": "{{NOTE}} : ", - "bold": true, - "style": "top-margin" - }, - { - "text": [ - { - "text": "{{SUMMARY1}}" - }, - { - "text": " {{Bihar_Tenant}} " - }, - { - "text": "{{SUMMARY2}}." - } - ], - "style": "top-margin" - }, - { - "image": "{{qrCode}}", - "alignment": "right", - "width": 100, - "height": 100 - }, - { - "stack":[ - { - "text" : "{{REPORT_RUNDATE}} : {{reportrunDate}}", - "alignment" : "right" - } - ] - } - ], - "footer": "(function(currentPage, pageCount) { return currentPage.toString() + ' of ' + pageCount; })", - "styles": { - "header": { - "bold": true, - "alignment": "center" - }, - "sub-header": { - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 5 - ] - }, - "top-margin": { - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - "top-high-margin": { - "margin": [ - 0, - 30, - 0, - 0 - ] - } - } - } -} diff --git a/pdf-service/format-config/consolidated-pdf1.json b/pdf-service/format-config/consolidated-pdf1.json deleted file mode 100644 index d9197f53..00000000 --- a/pdf-service/format-config/consolidated-pdf1.json +++ /dev/null @@ -1,561 +0,0 @@ -{ - "key": "consolidated-pdf1", - "config": { - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{variable16}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "Amritsar Municipal Corportaion", - "style": "receipt-logo-header" - }, - { - "text": "Property Tax payment Receipt", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "C Block, Ranjit Avenue, Amritsar" - }, - { - "text": " Tel. +91-183-2502339" - }, - { - "text": "website: www.amritsarcorp.com" - }, - { - "text": "Email: cmcasr@punjab.gov.in" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -150, - 0, - 0, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "Receipt No.", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable3}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "Consumer ID", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable14}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "Payment Date", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable13}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "Payer Name", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable1}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "Payer Contact", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable2}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "", - "border": [ - false, - false, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "Service Type", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable4}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "Billing Period", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable6}} to {{variable7}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "Paid Amount", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable5}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "Pending Amount", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable19}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "Payment Mode", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable9}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "Transaction ID", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable15}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "G8 Receipt No.", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable10}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "G8 Receipt Date", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable11}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "Generated by: ", - "bold": true - }, - { - "text": "Satplal Dhillon", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "Commissioner/EO", - "bold": true - } - ], - "alignment": "right" - } - ] - }, - { - "style": "no-signature", - "text": "This is Computer generated receipt, Signature is not required" - }, - { - "style": "pt-disclaimer", - "stack": [ - { - "text": "Disclamer", - "bold": true, - "style": "pt-disclaimer-value" - }, - { - "text": "Lorem ipsum dolor sit amet", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "Lorem ipsum dolor sit amet", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "Lorem ipsum dolor sit amet", - "bold": false, - "style": "pt-disclaimer-value" - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 16, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 13, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -30, - 45, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -30, - 28, - -8, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 8, - 0, - 8 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 0, - 5, - 0, - 0 - ], - "color": "#484848" - } - } - } -} diff --git a/pdf-service/format-config/consolidated-pdf2.json b/pdf-service/format-config/consolidated-pdf2.json deleted file mode 100644 index f41c0de5..00000000 --- a/pdf-service/format-config/consolidated-pdf2.json +++ /dev/null @@ -1,1030 +0,0 @@ -{ - "key": "consolidated-pdf2", - "config": { - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{variable1}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "Amritsar Municipal Corportaion", - "style": "receipt-logo-header" - }, - { - "stack": [ - { - "text": "C Block, Ranjit Avenue, Amritsar" - }, - { - "text": " Tel. +91-183-2502339" - }, - { - "text": "website: www.amritsarcorp.com" - }, - { - "text": "Email: cmcasr@punjab.gov.in" - } - ] - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "Total Amount due" - }, - { - "text": "{{variable11}}", - "style": "amount-due" - }, - { - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "image": "{{variable}}", - "width": 40, - "height": 40, - "border": [ - false, - false, - false, - false - ], - "style": "qr-image" - }, - { - "stack": [ - { - "text": "Scan Code to pay", - "style": "qr-text" - }, - { - "text": "Use any Bank/UPI App", - "style": "qr-text" - } - ], - "border": [ - false, - false, - false, - false - ] - } - ] - ], - "alignment": "right", - "margin": [ - 0, - 10, - 0, - 0 - ] - } - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -150, - 2, - -20, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - 130, - 130, - -2, - 130, - 130 - ], - "body": [ - [ - { - "text": "Payer Name", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable2}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - }, - { - "text": "", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "Bill No.", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable5}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "Mobile No.", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable3}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": "", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "Bill Period", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable6}} - {{variable7}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "Payer Address", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable4}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": "", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "Bill Issue Date", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable8}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - }, - { - "text": "", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "Bill Due Date", - "border": [ - true, - false, - false, - true - ], - "style": "right-receipt-table" - }, - { - "text": "{{variable7}}", - "border": [ - false, - false, - true, - true - ], - "style": "right-receipt-table2" - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "text": "Billing Summary - Property Tax", - "border": [ - true, - true, - true, - false - ], - "style": "receipt-table-value" - } - ], - [ - { - "table": { - "widths": [ - "15%", - "20%", - "11%", - "12%", - "11%", - "12%", - "11%", - "11%" - ], - "body": [ - [ - { - "text": "Property ID", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "Bill Period", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "Arrears", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "Charge", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "Penalty", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "Rebate", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "Others", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "Total", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - } - ], - [ - { - "text": "{{variable12}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{variable6}}-{{variable7}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{variable13}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{variable14}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{variable9}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{variable10}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{variable14}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{variable11}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2", - "bold": true - } - ] - ] - }, - "border": [ - true, - false, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table3", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "text": "Important Message", - "border": [ - true, - true, - true, - false - ], - "margin": [ - 9, - 10, - 0, - 5 - ], - "style": "receipt-table-value" - } - ], - [ - { - "ol": [ - { - "text": "Payment received by cheque/demand draft shall be subject to realization.", - "margin": [ - 8, - 0, - 0, - 5 - ] - }, - { - "text": "This document is not a proof of Property Ownership and regularization of unauthorized construction.", - "margin": [ - 8, - 0, - 0, - 5 - ] - }, - { - "text": "This is a computer generated document, hence requires no signature.", - "margin": [ - 8, - 0, - 0, - 5 - ] - }, - { - "text": "Assessment & Payment is subject to verification/Scrutiny by competitive authority.", - "margin": [ - 8, - 0, - 0, - 5 - ] - }, - { - "text": "Please deposit property tax dues for earlier years also. Ignore, if already paid.", - "margin": [ - 8, - 0, - 0, - 5 - ] - }, - { - "text": "If the tax payers fail to pay the property tax within 15 days from the date of receipt of this Demand Bill, the same amount can be collected by issuing a distraint warrant u/s Section-269 of Municipal Corporations Act, 1955 (formerly GHMC Act, 1955)", - "margin": [ - 8, - 0, - 0, - 10 - ] - } - ], - "border": [ - true, - false, - true, - true - ], - "alignment": "left" - } - ] - ] - }, - "layout": {} - }, - { - "canvas": [ - { - "type": "line", - "x1": -40, - "y1": 30, - "x2": 700, - "y2": 30, - "dash": { - "length": 10, - "space": 5 - } - } - ] - }, - { - "image": "{{variable1}}", - "width": 14, - "height": 14, - "margin": [ - -30, - -7, - 0, - 0 - ] - }, - { - "text": "Acknowledgement( For Official use only)", - "style": "footer-header" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "Date", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "24/04/2018", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "Consumer ID", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable15}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "Bill No.", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable5}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "Name & Address", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable4}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "Total Payment", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{variable16}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ] - ] - } - } - ], - "styles": { - "noc-head": { - "margin": [ - -25, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 13, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 45, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - -8 - ] - }, - "noc-table3": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 30, - -8, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 5, - 0, - 0 - ] - }, - "receipt-table-value2": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 5, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 5, - 0, - 0 - ] - }, - "receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 10 - ] - }, - "right-receipt-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - -10, - 0, - 10 - ] - }, - "right-receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - -10, - 0, - 0 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "amount-due": { - "fontSize": 30, - "color": "#FC8019", - "fontWeight": 700 - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 0, - 5, - 0, - 0 - ], - "color": "#484848" - }, - "qr-text": { - "fontSize": 12, - "margin": [ - 40, - 0, - 0, - 0 - ], - "color": "#484848", - "alignment": "left" - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right" - }, - "footer-header": { - "margin": [ - 0, - 15, - 0, - -40 - ], - "color": "#000000", - "alignment": "center" - } - } - } -} diff --git a/pdf-service/format-config/consolidatedbill.json b/pdf-service/format-config/consolidatedbill.json deleted file mode 100644 index 2c6bd358..00000000 --- a/pdf-service/format-config/consolidatedbill.json +++ /dev/null @@ -1,972 +0,0 @@ -{ - "key": "consolidatedbill", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ] - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{total_amount_due}}" - }, - { - "text": "{{Rs}} {{totalAmountDue}}", - "style": "amount-due" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -150, - 2, - -20, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - 130, - 130, - -2, - 130, - 130 - ], - "body": [ - [ - { - "text": "{{payer_name}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_no}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billNo}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{mobile_no}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{mobileNo}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_period}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} - {{toPeriod}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{consumer_no}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{propertyID}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_issue_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billIssueDate}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_address}}", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerAddress}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_due_date}}", - "border": [ - true, - false, - false, - true - ], - "style": "right-receipt-table" - }, - { - "text": "{{billDueDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "right-receipt-table2" - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "text": "{{billing_summary_property_tax}} {{serviceType}}", - "border": [ - true, - true, - true, - false - ], - "style": "receipt-table-value" - } - ], - [ - { - "table": { - "widths": [ - "15%", - "15%", - "15%", - "15%", - "20%", - "15%" - ], - "body": [ - [ - { - "text": "{{arrears_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{charge_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{penalty_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{rebate_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{adjustment_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{total_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - } - ], - [ - { - "text": "{{arrears}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{charge}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{penalty}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{rebate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{adjustments/paid}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{total}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2", - "bold": true - } - ] - ] - }, - "border": [ - true, - false, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table3", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "text": "{{important_message}}", - "border": [ - true, - true, - true, - false - ], - "margin": [ - 9, - 10, - 0, - 5 - ], - "style": "receipt-table-value" - } - ], - [ - { - "ol": [ - { - "text": "{{payment_received}}", - "margin": [ - 8, - 0, - 0, - 3 - ] - }, - { - "text": "{{this_document}}", - "margin": [ - 8, - 0, - 0, - 3 - ] - }, - { - "text": "{{this_is_a}}", - "margin": [ - 8, - 0, - 0, - 3 - ] - }, - { - "text": "{{assessment_payment}}", - "margin": [ - 8, - 0, - 0, - 3 - ] - }, - { - "text": "{{please_deposit}}", - "margin": [ - 8, - 0, - 0, - 3 - ] - }, - { - "text": "{{if_the_tax}}", - "margin": [ - 8, - 0, - 0, - 5 - ] - } - ], - "border": [ - true, - false, - true, - true - ], - "alignment": "left" - } - ] - ] - }, - "layout": {} - }, - { - "canvas": [ - { - "type": "line", - "x1": -40, - "y1": 30, - "x2": 700, - "y2": 30, - "dash": { - "length": 10, - "space": 5 - } - } - ] - }, - { - "image": "{{scissorImage}}", - "width": 24, - "height": 24, - "margin": [ - -30, - -11.2, - 0, - 0 - ] - }, - - { - "text": "{{acknowledgement_for}}", - "style": "footer-header", - "pageBreak": "before" - - }, - { - "style": "noc-table4", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "{{date_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billdate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{consumer_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{bill_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{name_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}, {{nameAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{total_payment}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{total}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ] - ] - } - }, - { - "text": "{{receivers_signature}}", - "style": "footer-bottom" - } - ], - "styles": { - "noc-head": { - "margin": [ - -25, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 13, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 10, - -8, - -8 - ] - }, - "noc-table4": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 75, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - -8 - ] - }, - "noc-table3": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 30, - -8, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 5, - 0, - 0 - ] - }, - "receipt-table-value2": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 5, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 5, - 0, - 0 - ] - }, - "receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 11, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 10 - ] - }, - "right-receipt-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 5, - 0, - 10 - ] - }, - "right-receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 5, - 0, - 0 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "amount-due": { - "fontSize": 30, - "color": "#FC8019", - "bold": true, - "fontWeight": 700 - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 0, - 5, - 0, - 0 - ], - "color": "#484848" - }, - "qr-text": { - "fontSize": 12, - "margin": [ - 40, - 0, - 0, - 0 - ], - "color": "#484848", - "alignment": "left" - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right" - }, - "footer-header": { - "margin": [ - 0, - 15, - 0, - -40 - ], - "bold": true, - "color": "#000000", - "alignment": "center" - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#000000", - "alignment": "right" - } - } - } -} diff --git a/pdf-service/format-config/consolidatedreceipt.json b/pdf-service/format-config/consolidatedreceipt.json deleted file mode 100644 index 66735e94..00000000 --- a/pdf-service/format-config/consolidatedreceipt.json +++ /dev/null @@ -1,612 +0,0 @@ -{ - "key": "consolidatedreceipt", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo-header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{serviceType}} {{payment_receipt}}", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -100, - 0, - -25, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{receipt_no}}.", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{receiptNo}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table", - "font": "Roboto" - }, - { - "text": "{{consumer_id}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{payment_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{payer_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_contact}}", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerContact}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text" : "{{payment_status}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text" : "{{paymentStatus}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "next-noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{service_type}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{serviceType}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{billing_period}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} {{to}} {{toPeriod}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{total_bill_amount}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{dueAmount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{paid_amount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{paidAmount}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{pending_amount}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{pendingAmount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{excess_amount_paid}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{excessAmountPaid}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payment_mode}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentMode}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{transaction_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{transactionID}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{g8_receipt_no}}.", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptNo}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "{{g8_receipt_date}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{generated_by}}: ", - "bold": true - }, - { - "text": "{{user-name}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner/eo}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - { - "style": "no-signature", - "text": "{{no_signature}}" - }, - { - "style": "pt-disclaimer", - "stack": [ - { - "text": "{{disclamer}}", - "bold": true, - "style": "pt-disclaimer-value" - }, - { - "style": "pt-disclaimer-value", - "table": { - "widths": [ - "120%", - "*", - "*", - "*" - ], - "body": ["{{#variable11}}[{\"text\":\"{{disclaimerContent}}\",\"border\":[false,false,false,false],\"style\":\"pt-disclaimer-value\"}]{{/variable11}}"] - }, - "layout": {} - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 45, - -22, - -8 - ] - }, - "next-noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 28, - -22, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -2, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 8, - 0, - 8 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - } - } - } -} diff --git a/pdf-service/format-config/death-certificate.json b/pdf-service/format-config/death-certificate.json deleted file mode 100644 index dc9d8f91..00000000 --- a/pdf-service/format-config/death-certificate.json +++ /dev/null @@ -1,508 +0,0 @@ -{ - "key": "death-certificate", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - - { - "style": "ws-head", - "table": { - "widths": ["20%", "60%", "20%"], - "body": [ - [ - { - "stack": [ - { - "text": "No .1", - "style": "appendix-header-serialNo" - } - ] - }, - { - "stack": [ - { - "text": "GOVERNMENT OF PANJAB", - "style": "appendix-header-body" - }, - { - "text": "DEPARTMENT OF HEALTH AND FAMILY WELFARE", - "style": "appendix-header-body", - "margin": [0, 0, 0, 0] - } - ] - }, - { - "stack": [ - { - "text": "Form-7", - "style": "appendix-header-formNo" - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "text": "Chief Registrar Births & Deaths, Punjab", - "style": "title-header" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "text": "DEATH CERTIFICATE", - "style": "title-header", - "decoration": "underline" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "columns": [ - { - "text": ["This is to certify that the following information has been taken from the original birth record which is registered in the birth register of Local Registrar, Births & Deaths, {{parentsCity}}, Block/ Police Station- {{parentsStreet}} Taluk- {{parentsTehsil}} District- {{parentsDistrict}} of {{parentsState}} State of the Year – {{year}}"], - "style": "rule-header" - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "columns": [ - { - "text": "NAME: {{name}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "SEX: {{gender}}", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "DATE OF DEATH: {{dod}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "PLACE OF DEATH: {{placeOfDeath}}", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "NAME OF MOTHER: {{motherName}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "NAME OF FATHER: {{fatherName}}", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "ADDRESS OF PARENTS AT THE TIME OF DEATH OF THE CHILD: {{childAddress}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "PERMANENT ADDRESS OF PARENTS: {{parentsAddress}}", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "REGISTRATION NUMBER: {{registrationNo}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "DATE OF REGISTRATION: {{registration_date}}", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "REMARKS (IF ANY): {{remarks}}", - "width": "49%", - "style": "details-body" - } - ] - } - ], - [ - { - "columns": [ - { - "text": "DATE OF ISSUE: {{issueDate}}", - "width": "49%", - "style": "details-body" - }, - { - "text": " ", - "width": "1%" - }, - { - "text": "Signature, Name & address of issuing Authority", - "style": "details-body", - "margin": [0, -15, 0, 0] - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "image": "{{qr_code_image}}", - "width": 70, - "height": 70, - "style": "qr-code" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "columns": [ - { - "text": "Issued Under Section 12/17 of the Registration of Births and Deaths Act, 1969 and Rule 8/13 the Registration of Births and Deaths Rules,2004", - "style": "footer" - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "text": "Ensure registration of every birth and death.", - "style": "footer" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-head", - "table": { - "widths": ["*"], - "body": [ - [ - { - "text": "Register the Births / Deaths event within 21 Days and get a free copy", - "style": "footer" - } - ] - ] - }, - "layout": "noBorders" - } - - ], - "styles": { - "pdf-header": { - "fillColor": "#F2F2F2", - "margin": [-70, -41, -81, 10] - }, - "appendix-header": { - "color": "#000000", - "bold": true, - "fontSize": 9, - "fontWeight": 400, - "alignment": "center" - }, - "appendix-header-emblem": { - "color": "#000000", - "alignment": "center", - "margin": [0, -30, 0, 0] - }, - "instruction-body": { - "color": "#000000", - "bold": false, - "fontSize": 7, - "fontWeight": 400, - "alignment": "center", - "margin": [0, -20, 0, 0] - }, - "qr-code": { - "color": "#000000", - "alignment": "left", - "margin": [0, 0, 0, 0] - }, - "footer": { - "color": "#000000", - "alignment": "left", - "margin": [ - 0, - 0, - 0, - 0 - ] - }, - "title-header": { - "color": "#004d00", - "bold": true, - "fontSize": 14, - "alignment": "center", - "margin": [0, -1, 0, 0] - }, - "title-header_multiLang": { - "color": "#004d00", - "bold": true, - "fontSize": 15, - "alignment": "center", - "margin": [0, 0, 0, -10] - }, - "appendix-header-serialNo": { - "color": "#000000", - "bold": false, - "fontSize": 8, - "fontWeight": 400, - "margin": [0, -5, 0, 0] - }, - "appendix-header-formNo": { - "color": "#000000", - "bold": false, - "fontSize": 8, - "fontWeight": 400, - "margin": [20, -5, 0, 0] - }, - "rule-header": { - "color": "#000000", - "bold": false, - "fontSize": 10, - "fontWeight": 400, - "margin": [0, 0, 0, 3] - }, - "rule-header_multiLang": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [0, 0, 0, -1] - }, - "rule-body": { - "color": "#000000", - "bold": false, - "fontSize": 10, - "fontWeight": 400, - "margin": [0, 0, 0, 0] - }, - "rule-body_multiLang": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [0, 0, 0, 0] - }, - "details-body": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [0, 5, 0, 0] - }, - "appendix-header-body": { - "color": "#000099", - "bold": true, - "fontSize": 9, - "fontWeight": 400, - "alignment": "center" - }, - "receipt-value-down-sub": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "alignment": "left", - "margin": [0, 0, 0, 5] - }, - "receipt-value-down-rec": { - "color": "#000000", - "bold": false, - "fontSize": 13, - "fontWeight": 400, - "alignment": "left", - "margin": [0, 0, 0, 0] - }, - "receipt-value-down": { - "color": "#000000", - "bold": false, - "fontSize": 13, - "fontWeight": 400, - "alignment": "left", - "margin": [-8, 0, 0, 5] - }, - "pdf-application-no-value": { - "fontSize": 12, - "font": "Roboto", - "italics": true, - "margin": [-18, 8, 0, 0], - "color": "#484848" - }, - "pdf-header-text": { - "color": "#484848", - "fontSize": 20, - "bold": true, - "letterSpacing": 0.74, - "margin": [0, 0, 0, 5] - }, - "pdf-header-sub-text": { - "color": "#484848", - "fontSize": 15, - "letterSpacing": 0.6 - }, - "pdf-application-no": { - "fontSize": 12, - "bold": true, - "margin": [-18, 8, 0, 0], - "color": "#484848" - }, - "pdf-card-title": { - "fontSize": 11, - "bold": true, - "margin": [-18, 16, 8, 8], - "color": "#484848", - "fontWeight": 500 - }, - "pdf-card-no-title": { - "fontSize": 11, - "bold": true, - "color": "#484848", - "fontWeight": 500 - }, - "pdf-table-card-white": { - "fillColor": "white", - "fontSize": 7, - "color": "#484848", - "margin": [-20, -2, -8, -8] - }, - "pdf-table-card": { - "fillColor": "#F2F2F2", - "fontSize": 7, - "color": "#484848", - "margin": [-20, -2, -8, -8] - }, - "pdf-card-key": { - "color": "rgba(0, 0, 0, 0.54)", - "fontSize": 8, - "margin": [0, 1, 0, 0] - }, - "pdf-card-sub-header": { - "color": "rgba(0, 0, 0, 0.94)", - "fontSize": 9, - "bold": true, - "margin": [0, 3, 0, 0] - }, - "pdf-card-value": { - "fontSize": 10, - "color": "rgba(0, 0, 0, 0.87)", - "margin": [0, 0, 0, 1] - }, - "pdf-head-qr-code": { - "fillColor": "#F2F2F2", - "margin": [-70, -41, -81, 0] - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/firenoc-receipt.json b/pdf-service/format-config/firenoc-receipt.json deleted file mode 100644 index afa0f628..00000000 --- a/pdf-service/format-config/firenoc-receipt.json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "key":"firenoc-receipt", - "config":{ - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 120, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{variable32}}", - "width": 60, - "height": 61.25, - "margin": [ - 51, - 12, - 10, - 10 - ] - }, - { - "stack": [ - { - "text": "{{variable20}} NAGAR PANCHAYAT", - "style": "receipt-logo-header" - }, - { - "text": "Fire NOC Payment Receipt", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 10, - 23, - 0, - 0 - ] - }, - { - "image": "{{variable14}}", - "width": 70, - "height": 70, - "margin": [ - 50, - 8, - 8, - 8 - ], - "alignment": "right" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-subhead", - "columns": [ - { - "text": [ - { - "text": "Application No. ", - "bold": true - }, - { - "text": "{{variable1}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "Date of Payment ", - "bold": true - }, - { - "text": "{{variable6}}", - "bold": false - } - ], - "alignment": "right" - } - ] - }, - { - "style": "noc-subhead", - "columns": [ - { - "text": [ - { - "text": "Payment Receipt No. ", - "bold": true - }, - { - "text": "{{variable7}}", - "bold": false - } - ], - "alignment": "left" - } - ] - }, - "{{#variable3}}{ \"text\": \"INSTITUTION DETAILS\", \"style\": \"noc-title\" }, { \"style\": \"noc-table\", \"table\": { \"widths\": [\"*\", \"*\", \"*\", \"*\"], \"body\": [ [ { \"text\": \"Type of Institution\", \"border\": [true, true, false, false] }, { \"text\": \"Name of Institute\", \"border\": [false, true, false, false] }, { \"text\": \"Official Telephone No.\", \"border\": [false, true, false, false] }, { \"text\": \"Authorized Person\", \"border\": [false, true, true, false] } ], [ { \"text\": \"{{variable21}}\", \"style\": \"receipt-table-value\", \"border\": [true, false, false, false] }, { \"text\": \"{{variable22}}\", \"style\": \"receipt-table-value\", \"border\": [false, false, false, false] }, { \"text\": \"{{variable23}}\", \"style\": \"receipt-table-value\", \"border\": [false, false, false, false] }, { \"text\": \"{{variable24}}\", \"style\": \"receipt-table-value\", \"border\": [false, false, true, false] } ], [ { \"text\": \"Designation in Institution\", \"border\": [true, false, false, false] }, { \"text\": \"Mobile No. of Authorized Person\", \"border\": [false, false, false, false] }, { \"text\": \"Email of Authorized Person\", \"border\": [false, false, false, false] }, { \"text\": \"Official Correspondence Address\", \"border\": [false, false, true, false] } ], [ { \"text\": \"{{variable25}}\", \"style\": \"receipt-table-value\", \"border\": [true, false, false, true] }, { \"text\": \"{{variable26}}\", \"style\": \"receipt-table-value\", \"border\": [false, false, false, true] }, { \"text\": \"{{variable27}}\", \"style\": \"receipt-table-value\", \"border\": [false, false, false, true] }, { \"text\": \"{{variable28}}\", \"style\": \"receipt-table-value\", \"border\": [false, false, true, true] } ] ] }, \"layout\": {} }{{/variable3}}{{^variable3}}{ \"text\": \"APPLICANT INFORMATION\", \"style\": \"noc-title\" }, { \"style\": \"noc-table", "table\": { \"widths\": [ \"*\", \"*\", \"*\", \"*\" ], \"body\": [ \"{{#variable2}}[{\"text\":\"Applicant Name\",\"border\":[true,true,false,true],\"style\":\"receipt-table-value\"},{\"text\":\"{{name}}\",\"border\":[false,true,true,true]},{\"text\":\"Mobile No.\",\"border\":[true,true,false,true],\"style\":\"receipt-table-value\"},{\"text\":\"{{mobileNumber}}\",\"border\":[false,true,true,true]}]{{/variable2}}\" ] }, \"layout\": {} }{{/variable3}}", - { - "text": "AMOUNT PAID", - "style": "noc-title" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "NOC Fee", - "border": [ - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "NOC Taxes", - "border": [ - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "Adhoc Penalty/Rebate", - "border": [ - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "TOTAL", - "border": [ - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - } - ], - [ - { - "text": "{{variable8}}", - "border": [ - true, - true, - true, - true - ], - "alignment": "center" - }, - { - "text": "{{variable9}}", - "border": [ - true, - true, - true, - true - ], - "alignment": "center" - }, - { - "text": "{{variable31}}", - "border": [ - true, - true, - true, - true - ], - "alignment": "center" - }, - { - "text": "{{variable10}}", - "border": [ - true, - true, - true, - true - ], - "alignment": "center" - } - ] - ] - }, - "layout": {} - }, - { - "text": "PAYMENT INFORMATION", - "style": "noc-title" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "Payment Mode", - "border": [ - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "Transaction ID/ Cheque/ DD No.", - "border": [ - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "Bank Name & Branch", - "border": [ - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - } - ], - [ - { - "text": "{{variable18}}", - "border": [ - true, - true, - true, - true - ], - "alignment": "center" - }, - { - "text": "{{variable12}}", - "border": [ - true, - true, - true, - true - ], - "alignment": "center" - }, - { - "text": "{{variable13}}", - "border": [ - true, - true, - true, - true - ], - "alignment": "center" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "Generated by: ", - "bold": true - }, - { - "text": "NOC Approver", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "Commissioner/EO", - "bold": true - } - ], - "alignment": "right" - } - ] - } - ], - "footer": [], - "styles": { - "noc-head": { - "fillColor": "#F2F2F2", - "margin": [ - -70, - -41, - -81, - 0 - ] - }, - "receipt-logo-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 16, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 13, - "letterSpacing": 0.6 - }, - "noc-subhead": { - "fontSize": 12, - "bold": true, - "margin": [ - -18, - 8, - 0, - 0 - ], - "color": "#484848" - }, - "noc-title": { - "fontSize": 10, - "bold": true, - "margin": [ - -18, - 16, - 8, - 8 - ], - "color": "#484848", - "fontWeight": 500 - }, - "noc-table": { - "fontSize": 10, - "color": "#484848", - "margin": [ - -20, - -2, - -8, - -8 - ] - }, - "receipt-header-details": { - "fontSize": 9, - "margin": [ - 0, - 0, - 0, - 8 - ], - "color": "#484848" - }, - "noc-table-key": { - "color": "#484848", - "bold": false, - "fontSize": 10 - }, - "receipt-table-value": { - "color": "#484848", - "bold": true, - "fontSize": 10 - }, - "receipt-footer": { - "color": "#484848", - "fontSize": 8, - "margin": [ - -6, - 15, - -15, - -10 - ] - }, - "receipt-no": { - "color": "#484848", - "fontSize": 10 - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -20, - 30, - -10, - 0 - ], - "color": "#484848" - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/fsm-receipt.json b/pdf-service/format-config/fsm-receipt.json deleted file mode 100644 index aeafe93c..00000000 --- a/pdf-service/format-config/fsm-receipt.json +++ /dev/null @@ -1,474 +0,0 @@ -{ - "key": "fsm-receipt", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo-header}} {{ulbgrade}}", - "style": "receipt-logo-header" - }, - { - "text": "{{serviceType}} ", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -100, - 0, - -25, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{receipt_no}}.", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{receiptNo}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table", - "font": "Roboto" - }, - { - "text": "{{consumer_id}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{payer_name}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{payment_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentDate}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_contact}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerContact}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{service_type}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{serviceType}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{paid_amount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{paidAmount}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payment_mode}}", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentMode}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "{{transaction_id}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{transactionID}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table", - "font": "Roboto" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{generated_by}}: ", - "bold": true - }, - { - "text": "{{user-name}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner/eo}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - { - "style": "no-signature", - "text": "{{no_signature}}" - }, - { - "style": "pt-disclaimer", - "stack": [ - { - "text": "{{disclamer}}", - "bold": true, - "style": "pt-disclaimer-value" - }, - { - "style": "pt-disclaimer-value", - "table": { - "widths": [ - "120%", - "*", - "*", - "*" - ], - "body": [ - "{{#variable11}}[{\"text\":\"{{disclaimerContent}}\",\"border\":[false,false,false,false],\"style\":\"pt-disclaimer-value\"}]{{/variable11}}" - ] - }, - "layout": {} - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 45, - -22, - -8 - ] - }, - "next-noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 28, - -22, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 11, - "fontWeight": 500, - "margin": [ - -2, - 2, - 0, - 2 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [ - -30, - 2, - 0, - 2 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - } - } - } -} diff --git a/pdf-service/format-config/mcollect-bill.json b/pdf-service/format-config/mcollect-bill.json deleted file mode 100644 index 052bd2fc..00000000 --- a/pdf-service/format-config/mcollect-bill.json +++ /dev/null @@ -1,779 +0,0 @@ -{ - "key": "mcollect-bill", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "watermark": { "text": "DIGIT UAT DIGIT UAT", "color": "gery", "opacity": 0.1, "bold": true, "italics": false }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - "33%", - "33%", - "33%" - ], - "body": [ - [ - { - "text":"{{letter-code}}", - "style": "receipt-logo-header" - }, - { - "text":"{{letter-header}}", - "alignment":"center", - "style": "receipt-logo-header" - - }, - { - "text":"{{letter-section}}", - "alignment": "right", - "color": "#484848", - "style": "receipt-logo-header", - "margin": [ - 0, - 0, - -30, - 0 - ] - - } - ] - ] - }, - "layout": "noBorders" - }, - { - "canvas": [ - { - "type": "line", - "x1": -25, "y1": -5, - "x2": 540, "y2": -5, - "lineWidth": 0.1 - }, - { - "type": "line", - "x1": -25, "y1": -2.5, - "x2": 540, "y2": -2.5, - "lineWidth": 0.1 - } - ] - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "stack":[ - { - "text":"{{cb-name}} {{cantonment-board}}", - "alignment":"center", - "style": "receipt-logo-title-name" - }, - { - "text":"{{form-number}}", - "alignment":"center", - "style": "receipt-logo-title" - }, - { - "text":"{{rule-number}}", - "alignment":"center", - "style": "receipt-logo-title" - }, - { - "text":"{{challan}} / {{bill}}", - "alignment":"center", - "style": "receipt-logo-title" - } - ], - "border":[ - true, - true, - true, - false - ] - } - ], - [ - { - "stack":[ - { - "table": { - "widths": [ - "20%", - "30%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{challan_no}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{challanNo}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - - }, - { - "text":"{{challan_date}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{challanDate}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down", - "font": "Roboto" - } - ] - ] - } - }, - { - "table": { - "widths": [ - "20%", - "30%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{bill_no}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{billNo}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - - }, - { - "text":"{{bill_date}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{billDate}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down", - "font": "Roboto" - } - ] - ] - } - }, - { - "table": { - "widths": [ - "20%", - "30%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{service_category}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{serviceCategory}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - }, - { - "text":"{{service_type}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{serviceType}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - } - - ] - ] - } - }, - { - "table": { - "widths": [ - "20%", - "30%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{validity_from}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{fromPeriod}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down", - "font": "Roboto" - }, - { - "text":"{{validity_to}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{toPeriod}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down", - "font": "Roboto" - } - ] - ] - } - }, - { - "table": { - "widths": [ - "20%", - "30%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{consumer_Name}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{payerName}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - }, - { - "text":"{{payer_contact}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{payerContact}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down", - "font": "Roboto" - } - - ] - ] - } - }, - { - "table": { - "widths": [ - "19%", - "81%" - ], - "body": [ - [ - { - "text":"{{address_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{doorHouseNo}}, {{buildingName}}, {{streetName}}, {{mohalla}}, {{pinCode}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - } - ] - ] - } - } - - ] - } - ] - - ] - }, - "layout": {} - }, - { - "style": "noc-table3", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "text": "{{total_amount}}", - "border": [ - true, - true, - true, - false - ], - "style": "receipt-table-value-total", - "bold": false - } - ], - [ - { - "text": "{{Rs}} {{totalAmount}}", - "border": [ - true, - false, - true, - false - ], - "style": "receipt-table-value-total", - "fontSize": 20 - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table4", - "table": { - "widths": [ - "60%", - "30%", - "10%" - ], - "body": [ - "{{#variable10}}[{\"text\": \"{{trade_license_tax}}\",\"border\": [true,false,false,false], \"style\": \"receipt-table-value-down\"},{\"text\": \"{{tradeLicenseTax}}\", \"border\": [false,false,false,false], \"style\": \"receipt-table-value-down\"},{ \"text\": \" \",\"border\": [false,false,true, false ]}]{{/variable10}}" - ] - }, - "layout": {} - }, - { - "canvas": [ - { - "type": "line", - "x1": -25, - "y1": 0, - "x2": 345, - "y2": 0, - "lineWidth": 1 - } - ] - }, - { - "style": "noc-table4", - "table": { - "widths": [ - "60%", - "30%", - "10%" - ], - "body": [ - [ - { - "text": "{{total_amount}}", - "border": [ - true, - false, - false, - true - ], - "bold": true, - "style": "receipt-table-value-down" - }, - { - "text": "{{totalAmount}}", - "border": [ - false, - false, - false, - true - ], - "bold": true, - "style": "receipt-table-value-down" - }, - { - "image": "{{qrcodeimage}}", - "style": "receipt-table-value-total-Qr", - "border": [ - false, - false, - true, - true - ], - "width": 72, - "height": 72 - } - - ] - ] - }, - "layout": {} - }, - { - "table": { - "widths": [ - "*" - - ], - "body": [ - [ - { - "style": "no-signature", - "text": "{{no_signature}}" - } - ] - ] - }, - "layout": "noBorders" - } - - ], - "styles": { - "noc-head": { - "margin": [ - -25, - -30, - 0, - 1 - ] - }, - "qr-head": { - "margin": [ - 0, - 30, - 0, - 1 - ] - }, - "noc-table3": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 15, - -25, - -0 - ] - }, - "noc-table4": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 0, - -25, - -0 - ] - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -20, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "receipt-logo-title": { - "color": "#000000", - "bold": true, - "fontSize": 9, - "fontWeight": 500 - }, - "receipt-logo-title-name": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500 - }, - "receipt-logo-header": { - "color": "#484848", - "fontSize": 9, - "bold": false, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 45, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -25, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 5, - 0, - 5 - ] - }, - "receipt-table-value-total": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "alignment": "right", - "margin": [ - 0, - 5, - 30, - 0 - ] - }, - "receipt-table-value-total-Qr": { - "alignment": "right", - "margin": [ - 0, - -40, - 10, - 0 - ] - }, - "receipt-table-value-down": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "alignment": "left", - "margin": [ - 3, - 5, - 0, - 5 - ] - }, - "receipt-table-value2": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "receipt-table-value-cont": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 5, - 0, - 0 - ] - }, - "receipt-table2": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "pt-disclaimer": { - "fontSize": 11, - "margin": [ - -27, - 0, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 10, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - } - - - } - - } - } diff --git a/pdf-service/format-config/mcollect-challan.json b/pdf-service/format-config/mcollect-challan.json deleted file mode 100644 index b648cc25..00000000 --- a/pdf-service/format-config/mcollect-challan.json +++ /dev/null @@ -1,852 +0,0 @@ -{ - "key": "mcollect-challan", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "watermark": { "text": "DIGIT UAT DIGIT UAT", "color": "gery", "opacity": 0.1, "bold": true, "italics": false }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - "33%", - "33%", - "33%" - ], - "body": [ - [ - { - "text":"{{letter-code}}", - "style": "receipt-logo-header" - }, - { - "text":"{{letter-header}}", - "alignment":"center", - "style": "receipt-logo-header" - - }, - { - "text":"{{letter-section}}", - "alignment": "right", - "color": "#484848", - "style": "receipt-logo-header", - "margin": [ - 0, - 0, - -30, - 0 - ] - - } - ] - ] - }, - "layout": "noBorders" - }, - { - "canvas": [ - { - "type": "line", - "x1": -25, "y1": -5, - "x2": 540, "y2": -5, - "lineWidth": 0.1 - }, - { - "type": "line", - "x1": -25, "y1": -2.5, - "x2": 540, "y2": -2.5, - "lineWidth": 0.1 - } - ] - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "stack":[ - { - "text":"{{cb-name}} {{cantonment-board}}", - "alignment":"center", - "style": "receipt-logo-title-name" - }, - { - "text":"{{form-number}}", - "alignment":"center", - "style": "receipt-logo-title" - }, - { - "text":"{{challanStatus}}", - "style": "receipt-logo-title-status" - }, - { - "text":"{{rule-number}}", - "alignment":"center", - "style": "receipt-logo-title" - }, - { - "text":"{{challan}} / {{bill}}", - "alignment":"center", - "style": "receipt-logo-title" - } - ], - "border":[ - true, - true, - true, - false - ] - } - ], - [ - { - "stack":[ - { - "table": { - "widths": [ - "20%", - "30%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{challan_no}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{challanNo}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - - }, - { - "text":"{{challan_date}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{challanDate}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down", - "font": "Roboto" - } - ] - ] - } - }, - { - "table": { - "widths": [ - "20%", - "30%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{bill_no}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{billNo}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - - }, - { - "text":"{{bill_date}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{billDate}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down", - "font": "Roboto" - } - ] - ] - } - }, - { - "table": { - "widths": [ - "20%", - "30%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{service_category}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{serviceCategory}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - }, - { - "text":"{{service_type}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{serviceType}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - } - ] - ] - } - }, - { - "table": { - "widths": [ - "20%", - "30%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{validity_from}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{fromPeriod}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down", - "font": "Roboto" - }, - { - "text":"{{validity_to}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{toPeriod}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down", - "font": "Roboto" - } - ] - ] - } - }, - { - "table": { - "widths": [ - "20%", - "30%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{consumer_Name}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{consumerName}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - }, - { - "text":"{{payer_contact}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{payerContact}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down", - "font": "Roboto" - } - - ] - ] - } - }, - { - "table": { - "widths": [ - "19%", - "81%" - ], - "body": [ - [ - { - "text":"{{address_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{doorHouseNo}}, {{buildingName}}, {{streetName}}, {{mohalla}}, {{pinCode}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - - } - ] - ] - } - }, - { - "table": { - "widths": [ - "19%", - "81%" - ], - "body": [ - [ - { - "text":"{{remarks_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text":"{{challanRemarks}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-logo-title-remarks-new" - } - ] - ] - } - } - ] - } - ] - - ] - }, - "layout": {} - }, - { - "style": "noc-table3", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "text": "{{total_amount}}", - "border": [ - true, - true, - true, - false - ], - "style": "receipt-table-value-total", - "bold": false - } - ], - [ - { - "text": "{{Rs}} {{totalAmount}}", - "border": [ - true, - false, - true, - false - ], - "style": "receipt-table-value-total", - "fontSize": 20 - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table4", - "table": { - "widths": [ - "60%", - "30%", - "10%" - ], - "body": [ - "{{#variable10}}[{\"text\": \"{{trade_license_tax}}\",\"border\": [true,false,false,false], \"style\": \"receipt-table-value-down\"},{\"text\": \"{{tradeLicenseTax}}\", \"border\": [false,false,false,false], \"style\": \"receipt-table-value-down\"},{ \"text\": \" \",\"border\": [false,false,true, false ]}]{{/variable10}}" - ] - }, - "layout": {} - }, - { - "canvas": [ - { - "type": "line", - "x1": -25, - "y1": 0, - "x2": 345, - "y2": 0, - "lineWidth": 1 - } - ] - }, - { - "style": "noc-table4", - "table": { - "widths": [ - "60%", - "30%", - "10%" - ], - "body": [ - [ - { - "text": "{{total_amount}}", - "border": [ - true, - false, - false, - true - ], - "bold": true, - "style": "receipt-table-value-down" - }, - { - "text": "{{totalAmount}}", - "border": [ - false, - false, - false, - true - ], - "bold": true, - "style": "receipt-table-value-down" - }, - { - "image": "{{qrcodeimage}}", - "style": "receipt-table-value-total-Qr", - "border": [ - false, - false, - true, - true - ], - "width": 72, - "height": 72 - } - - ] - ] - }, - "layout": {} - }, - { - "table": { - "widths": [ - "*" - - ], - "body": [ - [ - { - "style": "no-signature", - "text": "{{no_signature}}" - } - ] - ] - }, - "layout": "noBorders" - } - - ], - "styles": { - "noc-head": { - "margin": [ - -25, - -30, - 0, - 1 - ] - }, - "qr-head": { - "margin": [ - 0, - 30, - 0, - 1 - ] - }, - "noc-table3": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 15, - -25, - -0 - ] - }, - "noc-table4": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 0, - -25, - -0 - ] - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -20, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "receipt-logo-title": { - "color": "#000000", - "bold": true, - "fontSize": 9, - "fontWeight": 500 - }, - "receipt-logo-title-name": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500 - }, - "receipt-logo-header": { - "color": "#484848", - "fontSize": 9, - "bold": false, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-title-status": { - "color": "#FF0000", - "alignment": "right", - "bold": true, - "fontSize": 13, - "fontWeight": 500, - "margin": [ - 0, - -22, - 60, - 0 - ] - }, - "receipt-logo-title-remarks": { - "color": "#000000", - "alignment": "right", - "bold": true, - "fontSize": 8, - "fontWeight": 500, - "margin": [ - 0, - -22, - 70, - -10 - ] - }, - "receipt-logo-title-remarks-new": { - "color": "#FF0000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 5, - 0, - 5 - ] - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 45, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -25, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 5, - 0, - 5 - ] - }, - "receipt-table-value-total": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "alignment": "right", - "margin": [ - 0, - 5, - 30, - 0 - ] - }, - "receipt-table-value-total-Qr": { - "alignment": "right", - "margin": [ - 0, - -40, - 10, - 0 - ] - }, - "receipt-table-value-down": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "alignment": "left", - "margin": [ - 3, - 5, - 0, - 5 - ] - }, - "receipt-table-value2": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "receipt-table-value-cont": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 5, - 0, - 0 - ] - }, - "receipt-table2": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "pt-disclaimer": { - "fontSize": 11, - "margin": [ - -27, - 0, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 10, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - } - - - } - - } - } diff --git a/pdf-service/format-config/misc-receipt.json b/pdf-service/format-config/misc-receipt.json deleted file mode 100644 index babaa3eb..00000000 --- a/pdf-service/format-config/misc-receipt.json +++ /dev/null @@ -1,592 +0,0 @@ -{ - "key": "misc-receipt", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*" - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{logo-header}}", - "style": "receipt-logo-header" - }, - { - "text": "{{payment_receipt}}", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "center", - "margin": [ - 0, - 10, - 0, - 0 - ] - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{receipt_info}}", - "bold": true - } - ], - "alignment": "left" - } - ] - }, - { - "style": "noc-table", - "table": { - "widths": [ - "16%", - "18%", - "16%", - "10%", - "18%", - "22%" - ], - "body": [ - [ - { - "text": "{{receipt_no}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{receiptNo}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - }, - { - "text": "{{payment_date}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentDate}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - }, - { - "text": "{{consumer_id}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{payer_info}}", - "bold": true - } - ], - "alignment": "left" - } - ] - }, - { - "style": "noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{payer_name}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - }, - { - "text": "{{payer_contact}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerContact}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{payment_info}}", - "bold": true - } - ], - "alignment": "left" - } - ] - }, - { - "style": "next-noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{service_type}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{serviceType}}", - "border": [ - false, - true, - false, - true - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": " ", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{billing_period}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} {{to}} {{toPeriod}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - }, - { - "text": "{{paid_amount}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{paidAmount}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payment_mode}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentMode}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - }, - { - "text": "{{transaction_id}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{transactionID}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{g8_receipt_no}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptNo}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "{{g8_receipt_date}} :", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptDate}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{generated_by}} : ", - "bold": true - }, - { - "text": "{{user-name}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner/eo}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - { - "style": "no-signature", - "text": "{{no_signature}}" - }, - { - "style": "pt-disclaimer", - "stack": [ - { - "text": "{{disclamer}}", - "bold": true, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_1}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_2}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_3}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_4}}", - "bold": false, - "style": "pt-disclaimer-value" - } - ] - } - ], - "styles": { - "noc-head": { - "fillColor": "#b8bfcc", - "margin": [ - -25, - -30, - -22, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 20, - -22, - 0 - ] - }, - "next-noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 10, - -22, - 0 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 10, - "fontWeight": 500, - "margin": [ - 8, - 8, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 10, - "fontWeight": 400, - "margin": [ - -6, - 8, - 0, - 0 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 9, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - } - } - } -} diff --git a/pdf-service/format-config/occupancy-certificate.json b/pdf-service/format-config/occupancy-certificate.json deleted file mode 100644 index 27fae414..00000000 --- a/pdf-service/format-config/occupancy-certificate.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "key": "occupancy-certificate", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "columns": [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "alignment": "left" - }, - { - "stack": [ - { - "text": "{{appendix}}" - }, - { - "text": "{{seeRule}}" - }, - { - "text": "{{ocName}}" - }, - { - "text": "{{or}}" - }, - { - "text": "{{certificateUse}}" - }, - { - "text": "{{tenantName}} {{Muncipal_Council}}" - } - ], - "style": "header" - }, - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "alignment": "right" - } - ] - }, - { - "columns": [ - { - "text": [ - { - "text": "{{PLAN_PERMISION_NO}} : ", - "bold": true - }, - { - "text": "{{planPermissionNo}}", - "bold": true, - "font": "Roboto" - } - ], - "alignment": "left", - "width": "*" - }, - { - "text": [ - { - "text": "{{Dated}} : ", - "bold": true - }, - { - "text": "{{applicationDate}}", - "bold": true, - "font": "Roboto" - } - ], - "alignment": "right", - "width": "auto" - } - ], - "style": "top-margin", - "bold" : true, - "font" : "Roboto" - }, - { - "text": [ - { - "text": "{{ref}} :-" - }, - { - "text": " {{applicationNumber}}" - }, - { - "text" : " {{applicationNo}}" - }, - { - "text" : " {{dated}}" - }, - { - "text" : " {{applicationDate}}" - }, - { - "text" : " {{from}}" - }, - { - "text" : " {{SALUTATION}} {{ownerName}}" - } - ], - "style": "top-margin", - "bold" : true, - "font" : "Roboto" - }, - { - "text": [ - { - "text": "{{certifiedText}}" - }, - { - "text": " {{planPermissionNo}}" - }, - { - "text": " {{dated}} " - }, - { - "text": " {{applicationDate}}" - }, - { - "text": " {{issuedTo}}" - }, - { - "text": " {{ownerName}}" - }, - { - "text": " {{supervisedBy}}" - }, - { - "text": " {{approvedBy}}" - }, - { - "text" : " {{ocSummaryText}}" - } - ], - "style": "top-margin" - }, - { - "columns": [ - { - "stack": [ - { - "text": "{{place}} : {{tenantName}}" - }, - { - "text": "{{Dated}} : {{applicationDate}}" - } - ], - "alignment": "left", - "width": "*" - }, - { - "text": [ - { - "text": "{{approvedByName}} {{approvedBy}}, {{assistantEngineer}}", - "bold": true - } - ], - "alignment": "right", - "width": "auto" - } - ], - "style": "top-high-margin", - "bold" : true, - "font" : "Roboto" - }, - { - "image": "{{qrCode}}", - "alignment": "right", - "width": 100, - "height": 100 - } - ], - "footer": "(function(currentPage, pageCount) { return currentPage.toString() + ' of ' + pageCount; })", - "styles": { - "header": { - "bold": true, - "alignment": "center" - }, - "top-margin": { - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - "top-high-margin": { - "margin": [ - 0, - 50, - 0, - 0 - ] - } - } - } -} diff --git a/pdf-service/format-config/passvehicle-certificate.json b/pdf-service/format-config/passvehicle-certificate.json deleted file mode 100644 index 26ed98b0..00000000 --- a/pdf-service/format-config/passvehicle-certificate.json +++ /dev/null @@ -1,500 +0,0 @@ -{ - "key": "passvehicle-certificate", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - - { - "style": "noc-head", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "image": "{{qr}}", - "width": 70, - "height": 70, - "margin": [ - 50, - 8, - -30, - 8 - ], - "alignment": "right" - } - - ] - ] - }, - "layout": "noBorders" - }, - - { - "style":"noc-head", - "table":{ - "widths":[ - "*" - ], - "body":[ - [ - { - "image": "{{userpic}}", - "width": 80, - "height": 92, - "alignment": "center", - "margin": [ - 0, - 10, - 0, - 10 - ] - } - ], - [ - { - "stack": [ - { - "text":"{{municipal_corportaion}}", - "style":"receipt-logo-header" - } - ], - "alignment":"left", - "margin":[ - 0, - 10, - 0, - 0 - ] - } - ], - [ - { - "stack": [ - { - "text":"{{trade_license_certifcate}}", - "style":"receipt-sub-logo-header" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_license_no}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeLicenseNo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{application_no}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{applicationNo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_type}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeType}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{pass_subCategory}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{passSubCategory}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{purpose_label}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{purpose_content}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{license_issue_date}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{licenseIssueDate}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{license_validity_from}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{licenseValidityFrom}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{license_validity_to}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{licenseValidityTo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{vehicle_number_label}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{vehicleNumber}}", - "style":"receipt-sub-logo-sub-header", - "font": "Roboto" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{vehicle_company_label}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{vehicleCompany}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{vehicle_model_label}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{vehicleModel}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - } - ], - "alignment":"left", - "margin":[ - 0, - 10, - 0, - 0 - ] - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"receipt-approver", - "columns": [ - { - "text":[ - { - "text":"{{approved_by}} ", - "bold": true - }, - { - "text":" {{approvedBy}}", - "bold": false - } - ], - "alignment":"left" - }, - { - "text":[ - { - "text":"{{commissioner}}", - "bold": true - } - ], - "alignment":"right" - } - ] - }, - { - "text": "{{disclaimer_heading}}", - "bold": true, - "style": "receipt-approver", - "alignment": "left", - "fontSize": 13, - "margin": [ - -10, - 70, - 0, - 0 - ] - }, - { - "text": "{{disclaimer_body}}", - "style": "receipt-sub-logo-sub-header", - "alignment": "left", - "fontSize": 13, - "margin": [ - -10, - 10, - 0, - 0 - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -35, - 0, - -2 - ] - }, - "receipt-approver": { - "color": "#000000", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "center", - "margin": [ - -10, - 50, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 20, - "letterSpacing": 0.74, - "alignment": "center", - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-sub-logo-header": { - "color": "#000000", - "fontSize": 18, - "letterSpacing": 0.74, - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 0 - ] - }, - "receipt-sub-logo-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "left", - "margin": [ - 50, - 40, - 0, - 0 - ] - }, - "receipt-sub-address-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -90, - 0 - ] - }, - "receipt-sub-website-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -120, - 0 - ] - }, - "receipt-sub-email-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -110, - 0 - ] - } - } - } - } \ No newline at end of file diff --git a/pdf-service/format-config/property-bill.json b/pdf-service/format-config/property-bill.json deleted file mode 100644 index 7ace661d..00000000 --- a/pdf-service/format-config/property-bill.json +++ /dev/null @@ -1,1232 +0,0 @@ -{ - "key": "property-bill", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ] - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{total_amount_due}}" - }, - { - "text": "{{Rs}} {{totalAmountDue}}", - "style": "amount-due" - }, - { - "style": "noc-table", - "table": { - "widths": [ - 35, - "*" - ], - "body": [ - [ - { - "image": "{{qrcodeimage}}", - "width": 64, - "height": 64 - }, - { - "stack": [ - { - "text": "{{scanpay_label}}", - "style": "receipt-table-value2", - "margin": [ - 0, - -10, - 0, - 0 - ] - }, - { - "text": "{{bankupi_label}}", - "style": "bill-message-value", - "margin": [ - 0, - 4, - 0, - 0 - ] - }, - { - "text": "{{app_label}}", - "style": "bill-message-value", - "margin": [ - 0, - 4, - 0, - 0 - ] - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - 30, - 2, - -20, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - 130, - 130, - -2, - 130, - 130 - ], - "body": [ - [ - { - "text": "{{payer_name}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_no}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billNo}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{mobile_no}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{mobileNo}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_period}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} - {{toPeriod}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{tl_application_no}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{propertyID}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_issue_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billIssueDate}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_address}}", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerAddress}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_due_date}}", - "border": [ - true, - false, - false, - true - ], - "style": "right-receipt-table" - }, - { - "text": "{{billDueDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "right-receipt-table2" - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "text": "{{billing_summary_property_tax}} {{serviceType}}", - "border": [ - true, - true, - true, - false - ], - "style": "receipt-table-value" - } - ], - [ - { - "table": { - "widths": [ - "10%", - "11%", - "10%", - "15%", - "11%", - "20%" - - ], - "body": [ - [ - { - "text": "{{charge_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{penalty_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{rebate_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{adhoc_penalty_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{adhoc_rebate_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{adjustment_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - } - ], - [ - - { - "text": "{{charge}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{penalty}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{rebate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{adhoc_penalty}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{adhoc_rebate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2", - "bold": true - }, - { - "text": "{{advance_carryforward}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ] - ] - } - } - ], - [ - { - "table": { - "widths" : [ - "15%", - "15%", - "11%", - "11%", - "11%", - "11%", - "11%" - ], - "body":[ - [ - { - "text": "{{owner_exemption_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{unit_usage_exemption_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{fire_cess_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{cancer_cess_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{time_interest_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{decimal_ceiling_debit_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{decimal_ceiling_credit_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - } - ], - [ - { - "text": "{{owner_exemption}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{unit_usage_exemption}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{fire_cess}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{cancer_cess}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{time_interest}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{decimal_ceiling_debit}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{decimal_ceiling_credit}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2", - "bold": true - } - ] - - ] - } - - } - ], - [ - { - "table": { - "widths" : [ - "11%", - "11%", - "11%" - ], - "body":[ - [ - { - "text": "{{arrears_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{roundoff_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{total_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - } - ], - [ - { - "text": "{{arrearrs}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{roundoff}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{total}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2", - "bold": true - } - ] - - ] - } - - } - ] - ] - }, - "layout": {} - }, - - { - "style" : "noc-table3", - "table" : { - "widths": [ - "103%" - ], - "body":[ - [ - { - "style": "noc-table3", - "table": { - "widths": [ - "100%" - ], - "body": ["[{\"text\": \"{{important_message}}\",\"border\":[false,false,false,false],\"style\":\"bill-message-header\"}],{{#variable11}}[{\"text\":\"{{disclaimerContent}}\",\"border\":[false,false,false,false],\"style\":\"bill-message-value\"}]{{/variable11}}"] - } - } - ] - ] - - } - }, - { - "canvas": [ - { - "type": "line", - "x1": -40, - "y1": 30, - "x2": 700, - "y2": 30, - "dash": { - "length": 10, - "space": 5 - } - } - ] - }, - { - "image": "{{scissorImage}}", - "width": 24, - "height": 24, - "margin": [ - -30, - -11.2, - 0, - 0 - ] - }, - - { - "text": "{{acknowledgement_for}}", - "style": "footer-header" - - }, - { - "style": "noc-table4", - "table": { - "widths": [ - "25%", - "30%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{date_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billdate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{consumer_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{bill_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{name_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}, {{nameAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{total_payment}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{total}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ] - ] - } - }, - { - "text": "{{receivers_signature}}", - "style": "footer-bottom" - } - ], - "styles": { - "noc-head": { - "margin": [ - -25, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 13, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 10, - -8, - -8 - ] - }, - "noc-table4": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 75, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - -8 - ] - }, - "noc-table3": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 30, - -8, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 5, - 0, - 0 - ] - }, - "receipt-table-value2": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 5, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -10, - 5, - 0, - 0 - ] - }, - "receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 11, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 10 - ] - }, - "right-receipt-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 5, - 0, - 10 - ] - }, - "right-receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -10, - 5, - 0, - 0 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "amount-due": { - "fontSize": 30, - "color": "#FC8019", - "bold": true, - "fontWeight": 700 - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - }, - "qr-text": { - "fontSize": 12, - "margin": [ - 40, - 0, - 0, - 0 - ], - "color": "#484848", - "alignment": "left" - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right" - }, - "footer-header": { - "margin": [ - 0, - 15, - 0, - -40 - ], - "bold": true, - "color": "#000000", - "alignment": "center" - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#000000", - "alignment": "right" - }, - "bill-message-header": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 28, - -15, - 0, - 10 - ] - }, - "bill-message-value": { - "color": "#484848", - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 28, - -5, - 0, - 10 - ] - }, - "disclaimer-table": { - "fontSize": 12, - "bold": false, - "color": "#FC8019", - "margin": [ - -25, - 16, - -8, - -8 - ] - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/property-receipt.json b/pdf-service/format-config/property-receipt.json deleted file mode 100644 index 75893b66..00000000 --- a/pdf-service/format-config/property-receipt.json +++ /dev/null @@ -1,612 +0,0 @@ -{ - "key": "property-receipt", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo-header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{serviceType}} {{payment_receipt}}", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -100, - 0, - -25, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{receipt_no}}.", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{receiptNo}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table", - "font": "Roboto" - }, - { - "text": "{{consumer_id}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{payment_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{payer_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_contact}}", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerContact}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text" : "{{payment_status}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text" : "{{paymentStatus}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "next-noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{service_type}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{serviceType}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{billing_period}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} {{to}} {{toPeriod}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{total_bill_amount}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{dueAmount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{paid_amount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{paidAmount}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{pending_amount}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{pendingAmount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{excess_amount_paid}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{excessAmountPaid}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payment_mode}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentMode}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{transaction_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{transactionID}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{g8_receipt_no}}.", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptNo}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "{{g8_receipt_date}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{generated_by}}: ", - "bold": true - }, - { - "text": "{{user-name}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner/eo}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - { - "style": "no-signature", - "text": "{{no_signature}}" - }, - { - "style": "pt-disclaimer", - "stack": [ - { - "text": "{{disclamer}}", - "bold": true, - "style": "pt-disclaimer-value" - }, - { - "style": "pt-disclaimer-value", - "table": { - "widths": [ - "120%", - "*", - "*", - "*" - ], - "body": ["{{#variable11}}[{\"text\":\"{{disclaimerContent}}\",\"border\":[false,false,false,false],\"style\":\"pt-disclaimer-value\"}]{{/variable11}}"] - }, - "layout": {} - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 45, - -22, - -8 - ] - }, - "next-noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 28, - -22, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -10, - 8, - 0, - 8 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 10, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 10, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/pt-receipt.json b/pdf-service/format-config/pt-receipt.json deleted file mode 100644 index 4a1b0797..00000000 --- a/pdf-service/format-config/pt-receipt.json +++ /dev/null @@ -1,808 +0,0 @@ -{ - "key":"pt-receipt", - "config":{ - - "content":[ - { - "style": "pt-reciept-citizen-table", - "margin": [ - 0, - 0, - 0, - 18 - ], - "table": { - "widths": [ - 50, - "*", - 100 - ], - "body": [ - [ - { - "image": "{{variable38}}", - "width": 30, - "margin": [ - 10, - 10, - 10, - 10 - ] - }, - { - "stack": [ - { - "text": "{{variable35}} NAGAR PANCHAYAT", - "style": "receipt-logo-header" - }, - { - "text": "Property Tax Payment Receipt ({{variable36}}) ", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 0 - ] - }, - { - "text": [ - { - "text": "Receipt No.: ", - "bold": true - }, - "{{variable15}}" - ], - "margin": [10, 10, 10, 2] - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-header-details", - "columns": [ - { - "text": [ - { - "text": "Date: ", - "bold": true - }, - "{{variable16}}" - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "Contact Us: ", - "bold": true - }, - "0183-2545155" - ], - "alignment": "right" - } - ] - }, - { - "style": "receipt-header-details", - "columns": [ - { - "text": [ - { - "text": "Assessment Year: ", - "bold": true - }, - "{{variable1}}" - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "Website: ", - "bold": true - }, - "www.amritsarcorp.com" - ], - "alignment": "right" - } - ] - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "body": [ - [ - { - "text": "Existing Property ID:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable2}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Property Tax Unique ID:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable3}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Assessment No:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable4}}", - "border": [ - false, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "PROPERTY ADDRESS", - "style": "pt-reciept-citizen-subheader" - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "House/Door No.:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable5}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Building/Colony Name.:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable6}}", - "border": [ - false, - true, - true, - true - ] - } - ], - [ - { - "text": "Street Name:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable7}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Locality/Mohalla:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable8}}", - "border": [ - false, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "ASSESSMENT INFORMATION", - "style": "pt-reciept-citizen-subheader" - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "Plot Size(sq yards)", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable9}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Property Type:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable10}}", - "border": [ - false, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "BUILT-UP AREA DETAILS", - "style": "pt-reciept-citizen-subheader" - }, - { - "style": "receipt-assess-table", - "table": { - "widths": [ - "*", - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "Floor", - "style": "receipt-assess-table-header" - }, - { - "text": "Usage Type", - "style": "receipt-assess-table-header" - }, - { - "text": "Sub Usage Type", - "style": "receipt-assess-table-header" - }, - { - "text": "Occupancy", - "style": "receipt-assess-table-header" - }, - { - "text": "Built Area/Total Annual Rent(sq yards)", - "style": "receipt-assess-table-header" - } - ], - "{{variable12}}" - ] - }, - "layout": {} - }, - { - "text": "OWNERSHIP INFORMATION", - "style": "pt-reciept-citizen-subheader" - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": ["{{#variable11}}[{\"text\":\"Owner Name\",\"border\":[true,true,false,true],\"style\":\"receipt-table-key\"},{\"text\":\"{{name}}\",\"border\":[false,true,true,true]},{\"text\":\"Father's Name\",\"border\":[true,true,false,true],\"style\":\"receipt-table-key\"},{\"text\":\"{{fatherOrHusbandName}}\",\"border\":[false,true,true,true]}]{{/variable11}}"] - }, - "layout": {} - }, - { - "text": "PAYABLE AMOUNT", - "style": "pt-reciept-citizen-subheader" - }, - { - "style": "receipt-assess-table", - "table": { - "widths": [ - "auto", - "auto", - "auto", - "auto", - "auto", - "auto", - "auto", - "auto", - "auto", - "auto" - ], - "body": [ - [ - { - "text": "Property Tax" - }, - { - "text": "Fire Cess" - }, - { - "text": "Cancer Cess" - }, - { - "text": "Penalty" - }, - { - "text": "Rebate" - }, - { - "text": "Interest" - }, - { - "text": "Usage Exemption" - }, - { - "text": "Special Category Exemption" - }, - { - "text": "Round Off" - }, - { - "text": "Total" - } - ], - [ - { - "text": "{{variable17}}" - }, - { - "text": "{{variable18}}" - }, - { - "text": "{{variable19}}" - }, - { - "text": "{{variable20}}" - }, - { - "text": "{{variable21}}" - }, - { - "text": "{{variable22}}" - }, - { - "text": "{{variable23}}" - }, - { - "text": "{{variable24}}" - }, - { - "text": "{{variable25}}" - }, - { - "text": "{{variable34}}" - } - ] - ] - }, - "layout": {} - }, - { - "text": "PAYMENT INFORMATION", - "style": "pt-reciept-citizen-subheader" - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": [ - "auto", - "auto", - "auto", - "auto" - ], - "body": [ - [ - { - "text": "Total Amount Paid:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable27}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table-value" - }, - { - "text": "Pending Amount:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable37}}", - "border": [ - false, - true, - true, - true - ] - } - ], - [ - { - "text": "Payment Mode:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable28}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Bank Name:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable29}}", - "border": [ - false, - true, - true, - true - ] - } - ], - [ - { - "text": "Transaction ID/ Cheque/ DD No.:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable30}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Transaction Date:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable31}}", - "border": [ - false, - true, - true, - true - ] - } - ], - [ - { - "text": "G8 Receipt No:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable32}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "G8 Receipt Issue Date:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable33}}", - "border": [ - false, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "Commissioner/EO", - "alignment": "right", - "color": "#484848", - "fontSize": 12, - "bold": true, - "margin": [ - 0, - 30, - 0, - 30 - ] - }, - { - "text": "Note:", - "alignment": "left", - "style": "receipt-footer" - }, - { - "ol": [ - { - "text": "Payment received by cheque/demand draft shall be subject to realization.", - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - { - "text": "This document is not a proof of Property Ownership and regularization of unauthorized construction.", - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - { - "text": "This is a computer generated document, hence requires no signature.", - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - { - "text": "Assessment & Payment is subject to verification/Scrutiny by competitive authority.", - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - { - "text": "Please deposit property tax dues for earlier years also. Ignore, if already paid.", - "margin": [ - 0, - 0, - 0, - 5 - ] - } - ], - "alignment": "left", - "style": "receipt-footer" - } - ], - "styles": { - "pt-reciept-citizen-subheader": { - "fontSize": 10, - "bold": true, - "margin": [ - 0, - 16, - 0, - 8 - ], - "color": "#484848" - }, - "pt-reciept-citizen-table": { - "fontSize": 10, - "color": "#484848" - }, - "receipt-assess-table": { - "fontSize": 10, - "color": "#484848", - "margin": [ - 0, - 8, - 0, - 0 - ] - }, - "receipt-assess-table-header": { - "bold": true, - "fillColor": "#D8D8D8", - "color": "#484848" - }, - "receipt-header-details": { - "fontSize": 9, - "margin": [ - 0, - 0, - 0, - 8 - ], - "color": "#484848" - }, - "receipt-table-key": { - "color": "#484848", - "bold": true - }, - "receipt-table-value": { - "color": "#484848" - }, - "receipt-logo-header": { - "color": "#484848", - "fontSize": 16, - "bold": true, - "decoration": "underline", - "decorationColor": "#484848" - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontSize": 13, - "decoration": "underline", - "decorationColor": "#484848" - }, - "receipt-footer": { - "color": "#484848", - "fontSize": 8, - "margin": [ - 0, - 0, - 0, - 5 - ] - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/ptmutationcertificate.json b/pdf-service/format-config/ptmutationcertificate.json deleted file mode 100644 index 07b8fe6d..00000000 --- a/pdf-service/format-config/ptmutationcertificate.json +++ /dev/null @@ -1,518 +0,0 @@ -{ - "key": "ptmutationcertificate", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "image": "{{ULB_LOGO}}", - "width": 70, - "height": 82, - "alignment": "center", - "margin": [ - 0, - 10, - 0, - 10 - ] - } - ], - [ - { - "stack": [ - { - "text": "{{ULB_CITY}} {{municipal_corportaion}}", - "style": "receipt-logo-header" - }, - { - "text": "{{ULB_ADDRESS}}", - "style": "receipt-logo-sub-header" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text": "{{corporation_fax}} : {{CorporationContact_Value}} ", - "style": "receipt-sub-address-sub-header" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text": "{{corporation_website}} : {{corporationWebsite}}", - "style": "receipt-sub-website-sub-header" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text": "{{corporation_email}} : {{corporationEmail}}", - "style": "receipt-sub-email-sub-header" - } - ] - ] - }, - "layout": "noBorders" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - } - ], - [ - { - "stack": [ - { - "text": "{{Mutation_Approval_Certificate}}", - "style": "receipt-sub-logo-header" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "35%", - "65%" - ], - "body": [ - [ - { - "text": "{{Property_ID_Label}}", - "style": "receipt-content" - }, - { - "text": "{{Property_ID}}", - "style": "receipt-content", - "font": "Roboto" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "35%", - "65%" - ], - "body": [ - [ - { - "text": "{{Mutation_Number_Label}}", - "style": "receipt-content" - }, - { - "text": "{{Mutation_Number}}", - "style": "receipt-content", - "font": "Roboto" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "35%", - "65%" - ], - "body": [ - [ - { - "text": "{{Application_Number_Label}}", - "style": "receipt-content" - }, - { - "text": "{{Application_Number}}", - "style": "receipt-content", - "font": "Roboto" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "35%", - "65%" - ], - "body": [ - [ - { - "text": "{{Receipt_Number_Label}}", - "style": "receipt-content" - }, - { - "text": "{{Receipt_Number}}", - "style": "receipt-content", - "font": "Roboto" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "35%", - "65%" - ], - "body": [ - [ - { - "text": "{{Approval_Date_Label}}", - "style": "receipt-content" - }, - { - "text": "{{Approval_Date}}", - "style": "receipt-content", - "font": "Roboto" - } - ] - ] - }, - "layout": "noBorders" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - } - - ], - [ - { - "stack": [ - { - "text": "{{Order_Label}}", - "bold": true, - "style": "receipt-order-header" - }, - { - "text": "{{Mutation_Declaration_Label}}", - "style": "receipt-order-content" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - } - ], - [ - { - "stack": [ - { - "style": "noc-head", - "table": { - "widths": [ - "35%", - "65%" - ], - "body": [ - [ - { - "text": "{{Transferrer_Details_Label}}", - "style": "receipt-content" - }, - { - "text": "{{Transferrer_Name}} {{Transferrer_Relation}} {{Transferrer_Relative_Name}}", - "style": "receipt-content" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "35%", - "65%" - ], - "body": [ - [ - { - "text": "{{Transferree_Details_Label}}", - "style": "receipt-content" - }, - { - "text": "{{Transferree_Name}} {{Transferree_Relation}} {{Transferree_Relative_Name}}", - "style": "receipt-content" - } - ] - ] - }, - "layout": "noBorders" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - } - - ], - [ - { - "stack": [ - { - "text": "{{Mutation_To_Label}}", - "bold": true, - "style": "receipt-order-header" - }, - { - "text": "{{Shri_Smt_Label}} {{Transferree_Name}}", - "style": "receipt-order-content" - }, - { - "text": "{{Transferree_Address}}", - "style": "receipt-order-content" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{approved_by}} ", - "bold": true - }, - { - "text": "{{approved_by_value}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner}}", - "bold": true - } - ], - "alignment": "right" - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -35, - 0, - -2 - ] - }, - "receipt-approver": { - "color": "#000000", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "center", - "margin": [ - -10, - 50, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 20, - "letterSpacing": 0.74, - "alignment": "center", - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-sub-logo-header": { - "color": "#000000", - "fontSize": 18, - "letterSpacing": 0.74, - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 10 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 0 - ] - }, - "receipt-sub-logo-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "left", - "margin": [ - 50, - 40, - 0, - 0 - ] - }, - "receipt-sub-address-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -80, - 0 - ] - }, - "receipt-sub-website-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -120, - 0 - ] - }, - "receipt-sub-email-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -110, - 0 - ] - }, - "receipt-order-header": { - "color": "#000000", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "left", - "margin": [ - 19, - 0, - 0, - 1 - ] - }, - "receipt-order-content": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.4, - "alignment": "left", - "margin": [ - 19, - -2, - 0, - 1 - ] - }, - "receipt-content": { - "color": "#000000", - "fontSize": 14, - "letterSpacing": 0.4, - "alignment": "left", - "margin": [ - 50, - 30, - 0, - 0 - ] - } - } - } - } \ No newline at end of file diff --git a/pdf-service/format-config/sewerage-bill-amendment-note.json b/pdf-service/format-config/sewerage-bill-amendment-note.json deleted file mode 100644 index 83f7c486..00000000 --- a/pdf-service/format-config/sewerage-bill-amendment-note.json +++ /dev/null @@ -1,521 +0,0 @@ -{ - "key": "sw-bill-amendment-credit-note", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "color":"#484848", - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo-header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{note_type}}", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -100, - 0, - -25, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - - { - "style": "note-info", - "columns": [ - { - "text": [ - { - "text": "{{note_id}} ", - "bold": true - }, - { - "text": "{{applicationNo}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{note_date}}", - "bold": true - }, - { - "text": "{{date}}", - "bold": false - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - - { - "style": "header", - "columns": [ - { - "text": [ - { - "text": "{{against}}", - "bold": true - } - ], - "alignment": "left" - } - ] - }, - { - "style": "header-1", - "text": "{{user-name}}", - "alignment": "left" - }, - { - "style": "header-1", - "text": "{{permanentAddress}}", - "alignment": "left" - }, - { - "style": "header", - "text": " ", - "alignment": "left" - }, - - { - "style": "note-info-1", - "columns": [ - { - "text": [ - { - "text": "{{adjustment_amount_details}}", - "bold": true - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{total_amount}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -200, - 1 - ] - }, - { - "text": [ - { - "text": "{{rs}} {{totalAmount}}", - "bold": true - } - ], - "alignment": "right", - "fontSize": 20, - "margin": [ - 0, - 25, - -10, - 1 - ] - } - ] - }, - - { - "style": "ws-table", - "table": { - "widths": [ - "70%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "10%", - "30%", - "30%" - ], - "body": [ - [ - { - "text": "{{sl_no}}", - "alignment": "center" - }, - { - "text": "{{tax_heads}}", - "alignment": "left" - }, - { - "text": "{{reduced_amount}}", - "alignment": "right" - } - ], - [ - { - "text": "1.", - "alignment": "center" - }, - { - "text": "{{sewerage_charge}}", - "alignment": "left" - }, - { - "text": "{{sewerageCharge}}", - "alignment": "right" - } - ], - [ - { - "text": "2.", - "alignment": "center" - }, - { - "text": "{{interest}}", - "alignment": "left" - }, - { - "text": "{{sewerageInterest}}", - "alignment": "right" - } - ], - [ - { - "text": "3.", - "alignment": "center" - }, - { - "text": "{{penalty}}", - "alignment": "left" - }, - { - "text": "{{seweragePenalty}}", - "alignment": "right" - } - ], - [ - { - "text": " " - }, - { - "text": "{{total_amount}}", - "alignment": "left" - }, - { - "text": "{{totalAmount}}", - "alignment": "right" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - - { - "style": "ws-table-1", - "table": { - "widths": [ - "130%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "120%" - ], - "body": [ - [ - { - "text": "{{box_note}}", - "alignment": "left" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - - { - "style": "header", - "text": " ", - "alignment": "left" - }, - - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{generated_by}}: ", - "bold": true - }, - { - "text": "{{user-name}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner/eo}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - - { - "style": "no-signature", - "text": "{{no_signature}}" - }, - - { - "style": "no-signature", - "text": "{{box_validity}}" - } - ], - - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "ws-head": { - "margin": [ - -39, - -38, - -38, - 0 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "ws-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-1": { - "fontSize": 12, - "color": "#000000", - "margin": [ - 380, - -120, - 20, - 10 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -10, - 8, - 0, - 8 - ] - }, - "header": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "header-1": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "note-info": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 10, - -10, - 0 - ], - "color": "#000000" - }, - "note-info-1": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 10, - -10, - -45 - ], - "color": "#000000" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 10, - -10, - 0 - ], - "color": "#484848" - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/testconsolidatedreceipt.json b/pdf-service/format-config/testconsolidatedreceipt.json deleted file mode 100644 index bb9d7d72..00000000 --- a/pdf-service/format-config/testconsolidatedreceipt.json +++ /dev/null @@ -1,573 +0,0 @@ -{ - "key": "testconsolidatedreceipt", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo-header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{serviceType}} {{payment_receipt}}", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -100, - 0, - -25, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{receipt_no}}.", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{receiptNo}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table", - "font": "Roboto" - }, - { - "text": "{{consumer_id}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{payment_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{payer_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_contact}}", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerContact}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text" : " ", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text" : " ", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "next-noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{service_type}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{serviceType}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{billing_period}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} {{to}} {{toPeriod}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{paid_amount}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{paidAmount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{pending_amount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{pendingAmount}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payment_mode}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentMode}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{transaction_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{transactionID}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{g8_receipt_no}}.", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptNo}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "{{g8_receipt_date}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{generated_by}}: ", - "bold": true - }, - { - "text": "{{user-name}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner/eo}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - { - "style": "no-signature", - "text": "{{no_signature}}" - }, - { - "style": "pt-disclaimer", - "stack": [ - { - "text": "{{disclamer}}", - "bold": true, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_1}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_2}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_3}}", - "bold": false, - "style": "pt-disclaimer-value" - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 45, - -22, - -8 - ] - }, - "next-noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 28, - -22, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 8, - 0, - 8 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - } - }, - "footer": "(function(currentPage, pageCount) { return currentPage.toString() + ' of ' + pageCount; })" - } -} diff --git a/pdf-service/format-config/testlocalconsolidatedbill.json b/pdf-service/format-config/testlocalconsolidatedbill.json deleted file mode 100644 index 2d7fde53..00000000 --- a/pdf-service/format-config/testlocalconsolidatedbill.json +++ /dev/null @@ -1,999 +0,0 @@ -{ - "key": "testlocalconsolidatedbill", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo_header}}", - "style": "receipt-logo-header" - }, - { - "stack": [ - { - "text": "C Block, Ranjit Avenue, Amritsar" - }, - { - "text": " Tel. +91-183-2502339" - }, - { - "text": "website: www.amritsarcorp.com" - }, - { - "text": "Email: cmcasr@punjab.gov.in" - } - ] - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{total_amount_due}}" - }, - { - "text": "{{totalAmountDue}}", - "style": "amount-due" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -150, - 2, - -20, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - 130, - 130, - -2, - 130, - 130 - ], - "body": [ - [ - { - "text": "{{payer_name}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_no}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billNo}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{mobile_no}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{mobileNo}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_period}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} - {{toPeriod}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_address}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerAddress}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_issue_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billIssueDate}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": " ", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_due_date}}", - "border": [ - true, - false, - false, - true - ], - "style": "right-receipt-table" - }, - { - "text": "{{billDueDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "right-receipt-table2" - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "text": "{{billing_summary_property_tax}}", - "border": [ - true, - true, - true, - false - ], - "style": "receipt-table-value" - } - ], - [ - { - "table": { - "widths": [ - "18%", - "26%", - "10%", - "9%", - "10%", - "9%", - "10%", - "9%" - ], - "body": [ - [ - { - "text": "{{property_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{bill_period}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{arrears_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{charge_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{penalty_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{rebate_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{others_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{total_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - } - ], - [ - { - "text": "{{propertyID}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{fromPeriod}}-{{toPeriod}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{arrears}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{charge}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{penalty}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{rebate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{others}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{total}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2", - "bold": true - } - ] - ] - }, - "border": [ - true, - false, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table3", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "text": "{{important_message}}", - "border": [ - true, - true, - true, - false - ], - "margin": [ - 9, - 10, - 0, - 5 - ], - "style": "receipt-table-value" - } - ], - [ - { - "ol": [ - { - "text": "{{payment_received}}", - "margin": [ - 8, - 0, - 0, - 5 - ] - }, - { - "text": "{{this_document}}", - "margin": [ - 8, - 0, - 0, - 5 - ] - }, - { - "text": "{{this_is_a}}", - "margin": [ - 8, - 0, - 0, - 5 - ] - }, - { - "text": "{{assessment_payment}}", - "margin": [ - 8, - 0, - 0, - 5 - ] - }, - { - "text": "{{please_deposit}}", - "margin": [ - 8, - 0, - 0, - 5 - ] - }, - { - "text": "{{if_the_tax}}", - "margin": [ - 8, - 0, - 0, - 10 - ] - } - ], - "border": [ - true, - false, - true, - true - ], - "alignment": "left" - } - ] - ] - }, - "layout": {} - }, - { - "canvas": [ - { - "type": "line", - "x1": -40, - "y1": 30, - "x2": 700, - "y2": 30, - "dash": { - "length": 10, - "space": 5 - } - } - ] - }, - { - "image": "{{scissorImage}}", - "width": 14, - "height": 14, - "margin": [ - -30, - -7, - 0, - 0 - ] - }, - { - "text": "{{acknowledgement_for}}", - "style": "footer-header" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "{{date_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "date", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{consumer_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{bill_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{name_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{nameAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{total_payment}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{totalPayment}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ] - ] - } - }, - { - "text": "{{receivers_signature}}", - "style": "footer-bottom" - } - ], - "styles": { - "noc-head": { - "margin": [ - -25, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 13, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 45, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - -8 - ] - }, - "noc-table3": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 30, - -8, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 5, - 0, - 0 - ] - }, - "receipt-table-value2": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 5, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 5, - 0, - 0 - ] - }, - "receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 11, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 10 - ] - }, - "right-receipt-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - -10, - 0, - 10 - ] - }, - "right-receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - -10, - 0, - 0 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "amount-due": { - "fontSize": 30, - "color": "#FC8019", - "bold": true, - "fontWeight": 700 - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 0, - 5, - 0, - 0 - ], - "color": "#484848" - }, - "qr-text": { - "fontSize": 12, - "margin": [ - 40, - 0, - 0, - 0 - ], - "color": "#484848", - "alignment": "left" - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right" - }, - "footer-header": { - "margin": [ - 0, - 15, - 0, - -40 - ], - "color": "#000000", - "alignment": "center" - }, - "footer-bottom": { - "margin": [ - 0, - 10, - 0, - 0 - ], - "color": "#000000", - "alignment": "right" - } - } - } - } \ No newline at end of file diff --git a/pdf-service/format-config/testlocalconsolidatedreceipt.json b/pdf-service/format-config/testlocalconsolidatedreceipt.json deleted file mode 100644 index 6aecca7b..00000000 --- a/pdf-service/format-config/testlocalconsolidatedreceipt.json +++ /dev/null @@ -1,579 +0,0 @@ -{ - "key": "testlocalconsolidatedreceipt", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo-header}}", - "style": "receipt-logo-header" - }, - { - "text": "{{serviceType}} {{payment_receipt}}", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -100, - 0, - -25, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "{{receipt_no}}.", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{receiptNo}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{consumer_id}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payment_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{payer_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_contact}}", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerContact}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text" : " ", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text" : " ", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "next-noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{service_type}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{serviceType}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{billing_period}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} {{to}} {{toPeriod}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{paid_amount}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{paidAmount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{pending_amount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{pendingAmount}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payment_mode}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentMode}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{transaction_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{transactionID}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{g8_receipt_no}}.", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptNo}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "{{g8_receipt_date}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{generated_by}}: ", - "bold": true - }, - { - "text": "{{user-name}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner/eo}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - { - "style": "no-signature", - "text": "{{no_signature}}" - }, - { - "style": "pt-disclaimer", - "stack": [ - { - "text": "{{disclamer}}", - "bold": true, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_1}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_2}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_3}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_4}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_5}}", - "bold": false, - "style": "pt-disclaimer-value" - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 45, - -22, - -8 - ] - }, - "next-noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 28, - -22, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 8, - 0, - 8 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/tl-receipt.json b/pdf-service/format-config/tl-receipt.json deleted file mode 100644 index b11b6fb8..00000000 --- a/pdf-service/format-config/tl-receipt.json +++ /dev/null @@ -1,902 +0,0 @@ -{ - "key":"tl-receipt", - "config":{ - "content": [ - { - "style": "tl-head", - "table": { - "widths": [ - 50, - "*", - 100 - ], - "body": [ - [ - { - "image": "{{variable33}}", - "width": 50, - "height": 61.25, - "margin": [ - 45, - 12, - 10, - 10 - ] - }, - { - "stack": [ - { - "text": "{{variable30}} Nagar Panchayat", - "style": "receipt-logo-header" - }, - { - "text": "Trade License Payment Receipt ({{variable31}})", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "center", - "margin": [ - 56, - 23, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "Receipt No.", - "style": "receipt-no", - "bold": true - }, - { - "text": "{{variable16}}", - "style": "receipt-no", - "bold": true - } - ], - "alignment": "center", - "margin": [-50, 30, 0, 2] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "pt-reciept-citizen-header", - "columns": [ - { - "text": [ - { - "text": "Application Type ", - "bold": true - }, - { - "text": "{{variable1}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "Old License No. ", - "bold": true - }, - { - "text": "{{variable2}}", - "bold": false - } - ], - "alignment": "right" - } - ] - }, - { - "style": "pt-reciept-citizen-header", - "columns": [ - { - "text": [ - { - "text": "Application No. ", - "bold": true - }, - { - "text": "{{variable3}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "Receipt No. ", - "bold": true - }, - { - "text": "{{variable16}}", - "bold": false - } - ], - "alignment": "right" - } - ] - }, - { - "style": "pt-reciept-citizen-header", - "columns": [ - { - "text": [ - { - "text": "Financial Year ", - "bold": true - }, - { - "text": "{{variable4}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "Payment Date ", - "bold": true - }, - { - "text": "{{variable17}}", - "bold": false - } - ], - "alignment": "right" - } - ] - }, - { - "text": "TRADE DETAILS", - "style": "pt-reciept-citizen-subheader" - }, - - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": ["*", "*", "*", "*"], - "body": [ - [ - { - "text": "Trade Name", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable5}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Trade Category", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable6}}", - "border": [ - false, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": ["24%", "76%"], - "body": [ - [ - { - "text": "Trade Type", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable7}}", - "border": [ - false, - false, - true, - true - ] - } - ], - [ - { - "text": "Accessories", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable8}}", - "border": [ - false, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "TRADE LOCATION DETAILS", - "style": "pt-reciept-citizen-subheader" - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": ["*", "*", "*", "*"], - "body": [ - [ - { - "text": "House/Door No.", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable9}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Building/Colony Name.", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable10}}", - "border": [ - false, - true, - true, - true - ] - } - ], - [ - { - "text": "Street Name", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable11}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Locality/Mohalla", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable12}}", - "border": [ - false, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "OWNERSHIP INFORMATION", - "style": "pt-reciept-citizen-subheader" - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths":["*", "*", "*", "*"], - "body": ["{{#variable13}}[{\"text\":\"Owner Name\",\"border\":[true,true,false,true],\"style\":\"receipt-table-key\"},{\"text\":\"{{name}}","border\":[false,true,true,true]},{\"text\":\"Mobile No.\",\"border\":[true,true,false,true],\"style\":\"receipt-table-key\"},{\"text\":\"{{mobileNumber}}\",\"border\":[false,true,true,true]}]{{/variable13}}"] - }, - "layout": {} - }, - { - "text": "PAYABLE AMOUNT", - "style": "pt-reciept-citizen-subheader" - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": ["*", "*", "*", "*", "*", "*"], - "body": [ - [ - { - "text": "Trade License Fee", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-key", - "alignment": "center" - }, - { - "text": "Penalty", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-key", - "alignment": "center" - }, - { - "text": "Rebate", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-key", - "alignment": "center" - }, - { - "text": "Adhoc Penalty", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-key", - "alignment": "center" - }, - { - "text": "Adhoc Rebate", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-key", - "alignment": "center" - }, - { - "text": "Total", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-key", - "alignment": "center" - } - ], - [ - { - "text": "{{variable18}}", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "{{variable26}}", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "{{variable27}}", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "{{variable28}}", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "{{variable29}}", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "{{variable19}}", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - } - ] - ] - }, - "layout": {} - }, - { - "text": "PAYMENT INFORMATION", - "style": "pt-reciept-citizen-subheader" - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": ["*", "*", "*", "*"], - "body": [ - [ - { - "text": "Total Amount Paid:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable20}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "Amount Due:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable32}}", - "border": [ - false, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": ["*", "*", "*"], - "body": [ - [ - { - "text": "Payment Mode", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-key", - "alignment": "center" - }, - { - "text": "Transaction ID/ Cheque/ DD No.", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-key", - "alignment": "center" - }, - { - "text": "Bank Name & Branch", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-key", - "alignment": "center" - } - ], - [ - { - "text": "{{variable21}}", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "{{variable22}}", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - }, - { - "text": "{{variable23}}", - "border": [ - true, - true, - true, - true, - true, - true, - true - ], - "style": "receipt-table-value", - "alignment": "center" - } - ] - ] - }, - "layout": {} - }, - { - "style": "pt-reciept-citizen-table", - "table": { - "widths": ["*", "*", "*", "*"], - "body": [ - [ - { - "text": "G8 Receipt No:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable24}}", - "border": [ - false, - true, - true, - true - ] - }, - { - "text": "G8 Receipt Issue Date:", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-key" - }, - { - "text": "{{variable25}}", - "border": [ - false, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "Generated by: ", - "bold": true - }, - { - "text": "Kulvinder Approver", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "Commissioner/EO", - "bold": true - } - ], - "alignment": "right" - } - ] - } - ], - "footer": [ - { - "text": "Note:\n1. Payment received by cheque/demand draft shall be subject to realization.\n2. This document is not a proof of Property Ownership.\n3. This is a computer generated document, hence requires no signature.", - "style": "receipt-footer" - } - ], - "styles": { - "tl-head": { - "fillColor": "#F2F2F2", - "margin": [ - -41, - -41, - -41, - 0 - ] - }, - "pt-reciept-citizen-header": { - "fontSize": 12, - "bold": true, - "margin": [ - 0, - 8, - 0, - 0 - ], - "color": "#484848" - }, - "pt-reciept-citizen-subheader": { - "fontSize": 10, - "bold": true, - "margin": [ - 0, - 16, - 0, - 8 - ], - "color": "#484848" - }, - "pt-reciept-citizen-table": { - "fontSize": 10, - "color": "#484848" - }, - "receipt-assess-table": { - "fontSize": 10, - "color": "#484848", - "margin": [ - 0, - 8, - 0, - 0 - ] - }, - "receipt-assess-table-header": { - "bold": true, - "fillColor": "#D8D8D8", - "color": "#484848" - }, - "receipt-header-details": { - "fontSize": 9, - "margin": [ - 0, - 0, - 0, - 8 - ], - "color": "#484848" - }, - "receipt-table-key": { - "color": "#484848", - "bold": true - }, - "receipt-table-value": { - "color": "#484848" - }, - "receipt-logo-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 16, - "bold": true, - "letterSpacing": 0.74 - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 13, - "letterSpacing": 1.6, - "margin": [ - 0, - 6, - 0, - 0 - ] - }, - "receipt-footer": { - "color": "#484848", - "fontSize": 8, - "margin": [ - 30, - -20, - 0, - 0 - ] - }, - "receipt-no": { - "color": "#484848", - "fontSize": 10 - }, - "receipt-approver": { - "fontSize": 10, - "bold": true, - "margin": [ - 0, - 60, - 0, - 8 - ], - "color": "#484848" - } - } - } -} - \ No newline at end of file diff --git a/pdf-service/format-config/tlapplication.json b/pdf-service/format-config/tlapplication.json deleted file mode 100644 index fa6d9fde..00000000 --- a/pdf-service/format-config/tlapplication.json +++ /dev/null @@ -1,1370 +0,0 @@ -{ - "key": "tlapplication", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - "*", - "*", - "*" - ], - "body": [ - [ - { - "text":"{{trade_license_application}}", - "style": "receipt-logo-header" - }, - { - "text":"{{application_no}}", - "alignment":"right", - "color": "#484848", - "margin": [ - 0, - 2, - -50, - 0 - ] - }, - { - "text":"{{applicationNumber}}", - "alignment": "right", - "color": "#484848", - "bold": true, - "margin": [ - -150, - 2, - -20, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "stack":[ - { - "text":"{{total_amount}}", - "style":"receipt-table-value-total", - "bold" : false - }, - { - "text":"{{Rs}} {{totalAmount}}", - "style":"receipt-table-value-total", - "fontSize": 20 - } - ], - "border":[ - true, - true, - true, - false - ] - } - ], - [ - { - "stack":[ - { - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text":"{{trade_license_tax}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - }, - { - "text":"{{tradeLicenseTax}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - } - ] - ] - } - }, - { - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text":"{{rebate_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - }, - { - "text":"{{rebate}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - } - ] - ] - } - }, - { - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text":"{{penalty_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - }, - { - "text":"{{penalty}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-down" - } - ] - ] - } - }, - { - "canvas": [ - { - "type": "line", - "x1": 0, "y1": 0, - "x2": 315, "y2": 0, - "lineWidth": 1 - } - ] - }, - { - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text":"{{total_amount}}", - "border":[ - false, - false, - false, - false - ], - "bold": true, - "style": "receipt-table-value-down" - }, - { - "text":"{{totalAmount}}", - "border":[ - false, - false, - false, - false - ], - "bold": true, - "style": "receipt-table-value-down" - } - ] - ] - } - } - ], - "border":[ - true, - false, - true, - true - ], - "margin": [ - 0, - -15, - 0, - 0 - ] - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "text":"{{trade_details}}", - "border":[ - true, - true, - true, - false - ], - "style": "receipt-table-value" - } - ], - [ - { - "table": { - "widths": [ - "25%", - "25%", - "30%", - "20%" - ], - "body": [ - [ - { - "text":"{{application_type}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{old_application_number}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont", - "fontSize": 11 - }, - { - "text":"{{licence_type}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{trade_name}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - } - ], - [ - { - "text":"{{applicationType}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{oldLicenseNumber}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{licenseType}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{tradeName}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ], - [ - { - "text":"{{structure_type}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{structure_sub_type}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont", - "fontSize": 11 - }, - { - "text":"{{trade_commencement}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{trade_gst_no}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - } - ], - [ - { - "text":"{{structureType}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{structureSubType}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{commencementDate}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{tradeGstNo}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ], - [ - { - "text":"{{operational_area}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{no_of_employees}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont", - "fontSize": 11 - }, - { - "text":" ", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":" ", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - } - ], - [ - { - "text":"{{operationalArea}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{noOfEmployees}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":" ", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":" ", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ] - ] - }, - "border":[ - true, - false, - true, - false - ] - } - - ], - [ - { - "canvas": [ - { - "type": "line", - "x1": 5, "y1": 0, - "x2": 550, "y2": 0, - "lineWidth": 1 - } - ], - "border":[ - true, - false, - true, - false - ] - } - ], - [ - { - "table": { - "widths":["*", "*", "*", "*"], - "body": ["{{#variable13}}[{\"text\":\"{{trade_category}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\" }, { \"text\":\"{{trade_type}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\", \"fontSize\": 11 }, { \"text\":\"{{trade_sub_type}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\" }, { \"text\":\"{{uom_measurement}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\" } ], [ { \"text\":\"{{tradeCat}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" }, { \"text\":\"{{tradetyp}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" }, { \"text\":\"{{tradesub}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" }, { \"text\":\"{{UOM-measurement}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" } ], [ { \"text\":\"{{uom_value}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\" }, { \"text\":\" \", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\", \"fontSize\": 11 }, { \"text\":\" \", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\" }, { \"text\":\" \", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\" } ], [ { \"text\":\"{{uomValue}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" }, { \"text\":\" \", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" }, { \"text\":\" \", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" }, { \"text\":\" \", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" } ]{{/variable13}}" ] - }, - "border":[ - true, - false, - true, - false - ] - } - - ], - [ - { - "canvas": [ - { - "type": "line", - "x1": 5, "y1": 0, - "x2": 550, "y2": 0, - "lineWidth": 1 - } - ], - "border":[ - true, - false, - true, - false - ] - } - ], - [ - { - "table": { - "widths":["*", "*", "*", "*"], - "body": ["{{#variable14}}[{\"text\":\"{{accesory_type}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\" },{ \"text\":\"{{uom_label}}\",\"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\", \"fontSize\": 11 }, { \"text\":\"{{uom_value}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\" }, { \"text\":\"{{accessory_count}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table-value-cont\" } ], [ { \"text\":\"{{accesoryType}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" }, { \"text\":\"{{uom}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" }, { \"text\":\"{{accessoryUomValue}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" }, { \"text\":\"{{accessoryCount}}\", \"border\":[ false, false, false, false ], \"style\": \"receipt-table2\" } ]{{/variable14}}" ] - }, - "border":[ - true, - false, - true, - false - ] - } - - ], - [ - { - "canvas": [ - { - "type": "line", - "x1": 5, "y1": 0, - "x2": 550, "y2": 0, - "lineWidth": 1 - } - ], - "border":[ - true, - false, - true, - false - ] - } - ], - [ - { - "table": { - "widths": [ - "25%", - "25%", - "20%", - "30%" - ], - "body": [ - [ - { - "text":"{{property_assessment_id}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{city_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont", - "fontSize": 11 - }, - { - "text":"{{door_house_no}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{building_colony_name}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - } - ], - [ - { - "text":"{{propertyAssessmentId}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{city}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{doorHouseNo}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{buildingColonyName}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ], - [ - { - "text":"{{street_name}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{mohalla_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont", - "fontSize": 11 - }, - { - "text":"{{pincode_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{electricity_connection_no}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - } - ], - [ - { - "text":"{{streetName}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{mohalla}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{pincode}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{electricityConnectionNo}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ] - ] - }, - "border":[ - true, - false, - true, - true - ] - } - - ] - ] - }, - "layout": {} - }, - { - "stack": [ - { - "style": "noc-table2", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "text":"{{owner_details}}", - "border":[ - true, - true, - true, - false - ], - "style": "receipt-table-value" - } - ], - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text":"{{type_of_ownership}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{type_of_sub_ownership}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont", - "fontSize": 11 - }, - { - "text":"{{mobile_no}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{name_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - } - ], - [ - { - "text":"{{typeOfOwnership}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{typeOfSubOwnership}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{mobileNo}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{name}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ], - [ - { - "text":"{{father_husband}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{relationship_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont", - "fontSize": 11 - }, - { - "text":"{{gender_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{date_of_birth}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - } - ], - [ - { - "text":"{{fatherHusbandName}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{relationship}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{gender}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{dateOfBirth}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ], - [ - { - "text":"{{email_label}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{pan_no}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont", - "fontSize": 11 - }, - { - "text":"{{correspondance_address}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{special_owner}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - } - ], - [ - { - "text":"{{email}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{panNo}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{correspondenceAddress}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{specialOwnerCategory}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ] - ] - }, - "border":[ - true, - false, - true, - true - ] - } - - ] - ], - "unbreakable": true - }, - "layout": {} - } - ], - "unbreakable": true - }, - { - "stack": [ - { - "style": "noc-table2", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "text":"{{documents_label}}", - "border":[ - true, - true, - true, - false - ], - "style": "receipt-table-value" - } - ], - [ - { - "table": { - "widths": [ - "33%", - "33%", - "33%", - "1%" - ], - "body": [ - [ - { - "text":"{{ownership_proof}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont" - }, - { - "text":"{{owners_id_proof}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont", - "fontSize": 11 - }, - { - "text":"{{owner_photo}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table-value-cont", - "fontSize": 11 - } - - ], - [ - { - "text":"{{ownershipProof}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{ownersIdProof}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{ownerPhoto}}", - "border":[ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ] - ] - }, - "border":[ - true, - false, - true, - true - ] - } - - ] - ], - "unbreakable": true - }, - "layout": {} - } - ], - "unbreakable": true - } - - ], - "styles": { - "noc-head": { - "margin": [ - -25, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#484848", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 45, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -25, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 5, - 5, - 0, - 0 - ] - }, - "receipt-table-value-total": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "alignment": "right", - "margin": [ - 0, - 5, - 30, - 0 - ] - }, - "receipt-table-value-down": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "alignment": "left", - "margin": [ - 3, - 5, - 0, - 5 - ] - }, - "receipt-table-value2": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "receipt-table-value-cont": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 5, - 0, - 0 - ] - }, - "receipt-table2": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 0 - ] - } - - } - - } -} \ No newline at end of file diff --git a/pdf-service/format-config/tlcertificate.json b/pdf-service/format-config/tlcertificate.json deleted file mode 100644 index cbc149dd..00000000 --- a/pdf-service/format-config/tlcertificate.json +++ /dev/null @@ -1,558 +0,0 @@ -{ - "key": "tlcertificate", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "image": "{{qrCode}}", - "absolutePosition" : { - "x" : 480, - "y" : 5 - }, - "width": 100, - "height": 100 - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "*" - ], - "body":[ - [ - { - "image": "{{userpic}}", - "width": 70, - "height": 82, - "alignment": "center", - "margin": [ - 0, - 10, - 0, - 10 - ] - } - ], - [ - { - "stack": [ - { - "text":"{{municipal_corportaion}}", - "style":"receipt-logo-header" - }, - { - "text":"{{ulb-address}}", - "style":"receipt-logo-sub-header" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text": "{{corporation_contact}} : {{corporationContact}} ", - "style": "receipt-sub-address-sub-header" - - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text": "{{corporation_website}} : {{corporationWebsite}}", - "style": "receipt-sub-website-sub-header" - - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text": "{{corporation_email}} : {{corporationEmail}}", - "style": "receipt-sub-email-sub-header" - - } - ] - ] - }, - "layout": "noBorders" - } - ], - "alignment":"left", - "margin":[ - 0, - 10, - 0, - 0 - ] - } - ], - [ - { - "stack": [ - { - "text":"{{trade_license_certifcate}}", - "style":"receipt-sub-logo-header" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_license_no}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeLicenseNo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{application_no}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{applicationNo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{reciept_no}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{recieptNo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{financial_year}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{financialYear}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_name}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeName}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_owner_name}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeOwnerName}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_owner_contact}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeOwnerContact}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_address}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeAddress}}, {{city}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_type}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeType}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{accessories_label}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{accessories}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_license_fee}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeLicenseFee}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{license_issue_date}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{licenseIssueDate}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{license_validity}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{licenseValidityFrom}} {{to}} {{licenseValidityTo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - } - ], - "alignment":"left", - "margin":[ - 0, - 10, - 0, - 0 - ] - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"receipt-approver", - "columns": [ - { - "text":[ - { - "text":"{{approved_by}} ", - "bold": true - }, - { - "text":" {{approvedBy}}", - "bold": false - } - ], - "alignment":"left" - }, - { - "text":[ - { - "text":"{{commissioner}}", - "bold": true - } - ], - "alignment":"right" - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -35, - 0, - -2 - ] - }, - "receipt-approver": { - "color": "#000000", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "center", - "margin": [ - -10, - 50, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 20, - "letterSpacing": 0.74, - "alignment": "center", - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-sub-logo-header": { - "color": "#000000", - "fontSize": 18, - "letterSpacing": 0.74, - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 0 - ] - }, - "receipt-sub-logo-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "left", - "margin": [ - 50, - 40, - 0, - 0 - ] - }, - "receipt-sub-address-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -90, - 0 - ] - }, - "receipt-sub-website-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -120, - 0 - ] - }, - "receipt-sub-email-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -110, - 0 - ] - } - } - } - } \ No newline at end of file diff --git a/pdf-service/format-config/tlrenewalcertificate.json b/pdf-service/format-config/tlrenewalcertificate.json deleted file mode 100644 index a26a8cf9..00000000 --- a/pdf-service/format-config/tlrenewalcertificate.json +++ /dev/null @@ -1,549 +0,0 @@ -{ - "key": "tlrenewalcertificate", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style":"noc-head", - "table":{ - "widths":[ - "*" - ], - "body":[ - [ - { - "image": "{{userpic}}", - "width": 70, - "height": 82, - "alignment": "center", - "margin": [ - 0, - 10, - 0, - 10 - ] - } - ], - [ - { - "stack": [ - { - "text":"{{municipal_corportaion}}", - "style":"receipt-logo-header" - }, - { - "text":"{{ulb-address}}", - "style":"receipt-logo-sub-header" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text": "{{corporation_contact}} : {{corporationContact}} ", - "style": "receipt-sub-address-sub-header" - - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text": "{{corporation_website}} : {{corporationWebsite}}", - "style": "receipt-sub-website-sub-header" - - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-head", - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "text": "{{corporation_email}} : {{corporationEmail}}", - "style": "receipt-sub-email-sub-header" - - } - ] - ] - }, - "layout": "noBorders" - } - ], - "alignment":"left", - "margin":[ - 0, - 10, - 0, - 0 - ] - } - ], - [ - { - "stack": [ - { - "text":"{{trade_license_certifcate}}", - "style":"receipt-sub-logo-header" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_license_no}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeLicenseNo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{application_no}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{applicationNo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{reciept_no}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{recieptNo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{financial_year}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{financialYear}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_name}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeName}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_owner_name}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeOwnerName}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_owner_contact}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeOwnerContact}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_address}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeAddress}}, {{city}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_type}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeType}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{accessories_label}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{accessories}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{trade_license_fee}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{tradeLicenseFee}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{license_issue_date}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{licenseIssueDate}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"noc-head", - "table":{ - "widths":[ - "35%", - "65%" - ], - "body":[ - [ - { - "text":"{{license_validity}}", - "style":"receipt-sub-logo-sub-header" - }, - { - "text":"{{licenseValidityFrom}} {{to}} {{licenseValidityTo}}", - "style":"receipt-sub-logo-sub-header" - } - ] - ] - }, - "layout":"noBorders" - } - ], - "alignment":"left", - "margin":[ - 0, - 10, - 0, - 0 - ] - } - ] - ] - }, - "layout":"noBorders" - }, - { - "style":"receipt-approver", - "columns": [ - { - "text":[ - { - "text":"{{approved_by}} ", - "bold": true - }, - { - "text":" {{approvedBy}}", - "bold": false - } - ], - "alignment":"left" - }, - { - "text":[ - { - "text":"{{commissioner}}", - "bold": true - } - ], - "alignment":"right" - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -35, - 0, - -2 - ] - }, - "receipt-approver": { - "color": "#000000", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "center", - "margin": [ - -10, - 50, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 20, - "letterSpacing": 0.74, - "alignment": "center", - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-sub-logo-header": { - "color": "#000000", - "fontSize": 18, - "letterSpacing": 0.74, - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "center", - "margin": [ - 0, - 5, - 0, - 0 - ] - }, - "receipt-sub-logo-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.6, - "alignment": "left", - "margin": [ - 50, - 40, - 0, - 0 - ] - }, - "receipt-sub-address-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -90, - 0 - ] - }, - "receipt-sub-website-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -120, - 0 - ] - }, - "receipt-sub-email-sub-header": { - "color": "#484848", - "fontSize": 14, - "letterSpacing": 0.1, - "alignment": "right", - "margin": [ - 50, - 30, - -110, - 0 - ] - } - } - } - } diff --git a/pdf-service/format-config/tradelicense-bill.json b/pdf-service/format-config/tradelicense-bill.json deleted file mode 100644 index b9170037..00000000 --- a/pdf-service/format-config/tradelicense-bill.json +++ /dev/null @@ -1,912 +0,0 @@ -{ - "key": "tradelicense-bill", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ] - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{total_amount_due}}" - }, - { - "text": "{{Rs}} {{totalAmountDue}}", - "style": "amount-due" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -150, - 2, - -20, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - 130, - 130, - -2, - 130, - 130 - ], - "body": [ - [ - { - "text": "{{payer_name}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_no}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billNo}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{mobile_no}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{mobileNo}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_period}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} - {{toPeriod}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{tl_application_no}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{propertyID}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_issue_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billIssueDate}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_address}}", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerAddress}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_due_date}}", - "border": [ - true, - false, - false, - true - ], - "style": "right-receipt-table" - }, - { - "text": "{{billDueDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "right-receipt-table2" - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "text": "{{billing_summary_property_tax}} {{serviceType}}", - "border": [ - true, - true, - true, - false - ], - "style": "receipt-table-value" - } - ], - [ - { - "table": { - "widths": [ - "15%", - "15%", - "15%", - "20%", - "15%" - ], - "body": [ - [ - { - "text": "{{charge_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{penalty_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{rebate_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{adjustment_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{total_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - } - ], - [ - { - "text": "{{charge}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{penalty}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{rebate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{adjustments/paid}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{totalAmountDue}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2", - "bold": true - } - ] - ] - }, - "border": [ - true, - false, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - - { - "style" : "noc-table3", - "table" : { - "widths": [ - "103%" - ], - "body":[ - [ - { - "style": "noc-table3", - "table": { - "widths": [ - "100%" - ], - "body": ["[{\"text\": \"{{important_message}}\",\"border\":[false,false,false,false],\"style\":\"bill-message-header\"}],{{#variable11}}[{\"text\":\"{{disclaimerContent}}\",\"border\":[false,false,false,false],\"style\":\"bill-message-value\"}]{{/variable11}}"] - } - } - ] - ] - - } - }, - { - "canvas": [ - { - "type": "line", - "x1": -40, - "y1": 30, - "x2": 700, - "y2": 30, - "dash": { - "length": 10, - "space": 5 - } - } - ] - }, - { - "image": "{{scissorImage}}", - "width": 24, - "height": 24, - "margin": [ - -30, - -11.2, - 0, - 0 - ] - }, - - { - "text": "{{acknowledgement_for}}", - "style": "footer-header", - "pageBreak": "before" - - }, - { - "style": "noc-table4", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{date_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billdate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{consumer_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{bill_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{name_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}, {{nameAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{total_payment}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{total}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ] - ] - } - }, - { - "text": "{{receivers_signature}}", - "style": "footer-bottom" - } - ], - "styles": { - "noc-head": { - "margin": [ - -25, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 13, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 10, - -8, - -8 - ] - }, - "noc-table4": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 75, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - -8 - ] - }, - "noc-table3": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 30, - -8, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 5, - 0, - 0 - ] - }, - "receipt-table-value2": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 5, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -10, - 5, - 0, - 0 - ] - }, - "receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 11, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 10 - ] - }, - "right-receipt-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 5, - 0, - 10 - ] - }, - "right-receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -10, - 5, - 0, - 0 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "amount-due": { - "fontSize": 30, - "color": "#FC8019", - "bold": true, - "fontWeight": 700 - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - }, - "qr-text": { - "fontSize": 12, - "margin": [ - 40, - 0, - 0, - 0 - ], - "color": "#484848", - "alignment": "left" - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right" - }, - "footer-header": { - "margin": [ - 0, - 15, - 0, - -40 - ], - "bold": true, - "color": "#000000", - "alignment": "center" - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#000000", - "alignment": "right" - }, - "bill-message-header": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 28, - -15, - 0, - 10 - ] - }, - "bill-message-value": { - "color": "#484848", - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 28, - -5, - 0, - 10 - ] - }, - "disclaimer-table": { - "fontSize": 12, - "bold": false, - "color": "#FC8019", - "margin": [ - -25, - 16, - -8, - -8 - ] - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/tradelicense-receipt.json b/pdf-service/format-config/tradelicense-receipt.json deleted file mode 100644 index 234bf442..00000000 --- a/pdf-service/format-config/tradelicense-receipt.json +++ /dev/null @@ -1,612 +0,0 @@ -{ - "key": "tradelicense-receipt", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo-header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{serviceType}} {{payment_receipt}}", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -100, - 0, - -25, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{receipt_no}}.", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{receiptNo}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table", - "font": "Roboto" - }, - { - "text": "{{consumer_id}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{payment_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{payer_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_contact}}", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerContact}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text" : "{{payment_status}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text" : "{{paymentStatus}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "next-noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{service_type}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{serviceType}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{billing_period}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} {{to}} {{toPeriod}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{total_bill_amount}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{dueAmount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{paid_amount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{paidAmount}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{pending_amount}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{pendingAmount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{excess_amount_paid}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{excessAmountPaid}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payment_mode}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentMode}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{transaction_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{transactionID}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{g8_receipt_no}}.", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptNo}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "{{g8_receipt_date}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{generated_by}}: ", - "bold": true - }, - { - "text": "{{user-name}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner/eo}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - { - "style": "no-signature", - "text": "{{no_signature}}" - }, - { - "style": "pt-disclaimer", - "stack": [ - { - "text": "{{disclamer}}", - "bold": true, - "style": "pt-disclaimer-value" - }, - { - "style": "pt-disclaimer-value", - "table": { - "widths": [ - "120%", - "*", - "*", - "*" - ], - "body": ["{{#variable11}}[{\"text\":\"{{disclaimerContent}}\",\"border\":[false,false,false,false],\"style\":\"pt-disclaimer-value\"}]{{/variable11}}"] - }, - "layout": {} - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 45, - -22, - -8 - ] - }, - "next-noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 28, - -22, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -10, - 8, - 0, - 8 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 10, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 10, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/ws-applicationsewerage.json b/pdf-service/format-config/ws-applicationsewerage.json deleted file mode 100644 index 8dbfb2f9..00000000 --- a/pdf-service/format-config/ws-applicationsewerage.json +++ /dev/null @@ -1,1418 +0,0 @@ -{ - "key": "ws-applicationsewerage", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "margin": [ - 12, - 10, - 12, - 10 - ] - }, - { - "stack": [ - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{logo_sub_header}}", - "bold": false - } - ], - "alignment": "left", - "margin": [ - 10, - 30, - 0, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "columns": [ - { - "text": "{{sewerage_application}}", - "style": "ws-header" - }, - { - "text": "{{appDate}}", - "bold": false - }, - { - "text": "{{application_no}}", - "alignment": "right", - "margin": [ - 0, - 2, - -50, - 0 - ] - }, - { - "text": "{{applicationNo}}", - "alignment": "right", - "bold": false, - "margin": [ - -150, - 2, - -20, - 0 - ] - } - ], - "margin": [ - -26, - 10, - 0, - 0 - ] - }, - { - "text": "{{property_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{property_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{property_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{property_usage_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{property_usage_sub_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{propertyId}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{propertyType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{propertyUsageType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{propertyUsageSubType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{plot_size}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{no_of_floor}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{rainwater_harvesting_facility}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{plotSize}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{noOfFloor}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{rainwaterHarvestingFacility}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{property_location_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{city}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{door_house_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{building_colony_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{street_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{cityName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{doorHouseNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{buildingColonyName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{streetName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{locality_mohalla}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{pin_code}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{localityMohalla}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{pinCode}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{property_owner_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - "{{#variable13}}[{\"text\":\"{{owner_name}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" }, { \"text\":\"{{email_label}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\", \"fontSize\": 11 }, { \"text\":\"{{gender_label}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" }, { \"text\":\"{{dob_label}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" } ], [ { \"text\":\"{{ownerName}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{ownerEmailId}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{gender}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{dob}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" } ], [ { \"text\":\"{{guardian_name}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" }, { \"text\":\"{{relationship_label}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\", \"fontSize\": 11 }, { \"text\":\"{{correspondence_address}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" }, { \"text\":\"{{special_applicant_category}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" } ], [ { \"text\":\"{{guardianName}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{relationshipLabel}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{correspondenceAddress}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{specialApplicantCategory}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" } ]{{/variable13}}" - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{connection_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{apply_category}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{no_of_water_closets_proposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{no_of_water_toilets_proposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{applyCategory}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{noOfWaterClosetsProposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{noOfWaterToiletsProposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{document_details_header}}", - "style": "header" - }, - { - "stack": [ - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "33%", - "33%", - "33%", - "1%" - ], - "body": [ - [ - { - "text": "{{ownership_proof}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{owners_id_proof}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "fontSize": 11 - }, - { - "text": "{{electricty_bill}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "fontSize": 11 - } - ], - [ - { - "text": "{{ownershipProof}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{ownersIdProof}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{electricityBill}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - false - ] - } - ], - [ - { - "table": { - "widths": [ - "33%", - "33%", - "33%", - "1%" - ], - "body": [ - [ - { - "text": "{{plumber_report}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{building_plan}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "fontSize": 11 - }, - { - "text": "{{property_tax_reciept}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "fontSize": 11 - } - ], - [ - { - "text": "{{plumberReport}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{buildingPlan}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{ptTaxReciept}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - false, - true, - true - ] - } - ] - ], - "unbreakable": true - }, - "layout": {} - } - ], - "unbreakable": true - }, - { - "text": "{{additional_connection_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{connection_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{no_of_water_closets}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{no_of_toilets}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{connectionType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{noOfWaterClosets}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{noOfToilets}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{plumber_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{plumber_provided_by}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{plumber_licence_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{plumber_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{plumber_mobile_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{plumberProvidedBy}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{plumberLicenceNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{plumberName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{plumberMobileNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{road_charges_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{road_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{area_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{roadType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{area}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{activation_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{connection_execution_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{connectionExecutionDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - } - ], - "styles": { - "ws-head": { - "margin": [ - -39, - -38, - -38, - 0 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontFamily": "Cambay", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "ws-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right", - "backgroundColor": "#dddddd" - }, - "receipt-table-value-total": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "alignment": "right", - "margin": [ - 0, - 5, - 30, - 0 - ] - } - } - } -} diff --git a/pdf-service/format-config/ws-applicationwater.json b/pdf-service/format-config/ws-applicationwater.json deleted file mode 100644 index 331231dd..00000000 --- a/pdf-service/format-config/ws-applicationwater.json +++ /dev/null @@ -1,1502 +0,0 @@ -{ - "key": "ws-applicationwater", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "margin": [ - 12, - 10, - 12, - 10 - ] - }, - { - "stack": [ - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{logo_sub_header}}", - "bold": false - } - ], - "alignment": "left", - "margin": [ - 10, - 30, - 0, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "columns": [ - { - "text": "{{water_application}}", - "style": "ws-header" - }, - { - "text": "{{appDate}}", - "bold": false - }, - { - "text": "{{application_no}}", - "alignment": "right", - "margin": [ - 0, - 2, - -50, - 0 - ] - }, - { - "text": "{{applicationNo}}", - "alignment": "right", - "bold": false, - "margin": [ - -150, - 2, - -20, - 0 - ] - } - ], - "margin": [ - -26, - 10, - 0, - 0 - ] - }, - { - "text": "{{property_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{property_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{property_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{property_usage_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{property_usage_sub_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{propertyId}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{propertyType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{propertyUsageType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{propertyUsageSubType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{plot_size}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{no_of_floor}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{rainwater_harvesting_facility}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{plotSize}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{noOfFloor}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{rainwaterHarvestingFacility}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{property_location_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{city}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{door_house_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{building_colony_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{street_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{cityName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{doorHouseNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{buildingColonyName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{streetName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{locality_mohalla}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{pin_code}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{localityMohalla}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{pinCode}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{property_owner_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - "{{#variable13}}[{\"text\":\"{{owner_name}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" }, { \"text\":\"{{email_label}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\", \"fontSize\": 11 }, { \"text\":\"{{gender_label}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" }, { \"text\":\"{{dob_label}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" } ], [ { \"text\":\"{{ownerName}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{ownerEmailId}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{gender}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{dob}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" } ], [ { \"text\":\"{{guardian_name}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" }, { \"text\":\"{{relationship_label}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\", \"fontSize\": 11 }, { \"text\":\"{{correspondence_address}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" }, { \"text\":\"{{special_applicant_category}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table\" } ], [ { \"text\":\"{{guardianName}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{relationshipLabel}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{correspondenceAddress}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" }, { \"text\":\"{{specialApplicantCategory}}\", \"border\":[ false, false, false, false ], \"style\": \"ws-sub-table-value\" } ]{{/variable13}}" - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{connection_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{apply_category}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{no_of_taps_proposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{pipe_size_proposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{applyCategory}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{noOfTapsProposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{pipeSizeProposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{document_details_header}}", - "style": "header" - }, - { - "stack": [ - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "33%", - "33%", - "33%", - "1%" - ], - "body": [ - [ - { - "text": "{{ownership_proof}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{owners_id_proof}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "fontSize": 11 - }, - { - "text": "{{electricty_bill}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "fontSize": 11 - } - ], - [ - { - "text": "{{ownershipProof}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{ownersIdProof}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{electricityBill}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - false - ] - } - ], - [ - { - "table": { - "widths": [ - "33%", - "33%", - "33%", - "1%" - ], - "body": [ - [ - { - "text": "{{plumber_report}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{building_plan}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "fontSize": 11 - }, - { - "text": "{{property_tax_reciept}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "fontSize": 11 - } - ], - [ - { - "text": "{{plumberReport}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{buildingPlan}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{ptTaxReciept}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - false, - true, - true - ] - } - ] - ], - "unbreakable": true - }, - "layout": {} - } - ], - "unbreakable": true - }, - { - "text": "{{additional_connection_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{connection_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{no_of_taps}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{water_source}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{water_sub_source}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{connectionType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{noOfTaps}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{waterSource}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{waterSubSource}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{pipe_size}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{pipeSize}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{plumber_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{plumber_provided_by}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{plumber_licence_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{plumber_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{plumber_mobile_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{plumberProvidedBy}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{plumberLicenceNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{plumberName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{plumberMobileNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{road_charges_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{road_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{area_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{roadType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{area}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{activation_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{connection_execution_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{meter_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{meter_installation_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{initial_meter_reading}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{connectionExecutionDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{meterId}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{meterInstallationDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{initialMeterReading}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - } - ], - "styles": { - "ws-head": { - "margin": [ - -39, - -38, - -38, - 0 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontFamily": "Cambay", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "ws-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right", - "backgroundColor": "#dddddd" - }, - "receipt-table-value-total": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "alignment": "right", - "margin": [ - 0, - 5, - 30, - 0 - ] - } - } - } -} diff --git a/pdf-service/format-config/ws-bill.json b/pdf-service/format-config/ws-bill.json deleted file mode 100644 index 861bdf8d..00000000 --- a/pdf-service/format-config/ws-bill.json +++ /dev/null @@ -1,1194 +0,0 @@ -{ - "key": "ws-bill", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ] - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{total_amount_due}}" - }, - { - "text": "{{Rs}} {{totalAmountDue}}", - "style": "amount-due" - }, - { - "text":"{{cancelledStatus}}", - "style": "receipt-logo-title-status" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -150, - 2, - -20, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table5", - "table":{ - "widths":[ - "25%", - "25%", - "23%", - "30%" - ], - "body":[ - [ - { - "text": "{{property_id}}", - "border": [ - true, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{propertyUniqueID}}", - "border": [ - false, - true, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "{{property_address}}", - "border": [ - false, - true, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{propertyAddress}} {{locality}}, {{city}}", - "border": [ - false, - true, - true, - true - ], - "style": "receipt-table3" - } - ] - - ] - }, - "layout": {} - }, - { - "style": "noc-table", - "table": { - "widths": [ - 130, - 130, - -2, - 130, - 133 - ], - "body": [ - [ - { - "text": "{{payer_name}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_no}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billNo}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{mobile_no}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{mobileNo}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_period}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} - {{toPeriod}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_address}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerAddress}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_issue_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billIssueDate}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": " ", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ] - }, - { - "text": "{{bill_due_date}}", - "border": [ - true, - false, - false, - true - ], - "style": "right-receipt-table" - }, - { - "text": "{{billDueDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "right-receipt-table2" - } - ] - ] - }, - "layout": {} - }, - { - "style": "noc-table2", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "text": "{{billing_summary_property_tax}} {{serviceType}}", - "border": [ - true, - true, - true, - false - ], - "style": "receipt-table-value" - } - ], - [ - { - "table": { - "widths": [ - "26%", - "25%", - "15%", - "17%", - "17%" - ], - "body": [ - [ - { - "text": "{{consumer_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{bill_period}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{arrears_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{advanceAdjusted_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{advanceAvailable_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - } - ], - [ - { - "text": "{{propertyID}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{fromPeriod}}-{{toPeriod}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{arrears}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text":"{{advanceAdjusted}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{advanceAvailable}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ], - [ - { - "table": { - "widths": [ - "26%", - "25%", - "15%", - "17%", - "17%" - ], - "body": [ - [ - { - "text": "{{charge_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{penalty_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{rebate_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{others_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - }, - { - "text": "{{total_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value2" - } - ], - [ - { - "text": "{{charge}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{penalty}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{rebate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{others}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2" - }, - { - "text": "{{calculatedTotal}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table2", - "bold": true - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - - ] - }, - "layout": {} - }, - { - "style": "noc-table3", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "text": "{{important_message}}", - "border": [ - true, - true, - true, - false - ], - "margin": [ - 9, - 10, - 0, - 5 - ], - "style": "receipt-table-value" - } - ], - [ - { - "text": "{{payment_received}}", - "border": [ - true, - false, - true, - false - ], - "margin": [ - 8, - 0, - 0, - 3 - ] - } - ], - [ - { - "text": "{{this_document}}", - "border": [ - true, - false, - true, - false - ], - "margin": [ - 8, - 0, - 0, - 3 - ] - } - ], - [ - { - "text": "{{this_is_a}}", - "border": [ - true, - false, - true, - false - ], - "margin": [ - 8, - 0, - 0, - 3 - ] - } - ], - [ - { - "text": "{{assessment_payment}}", - "border": [ - true, - false, - true, - false - ], - "margin": [ - 8, - 0, - 0, - 3 - ] - } - ], - [ - { - "text": "{{please_deposit}}", - "border": [ - true, - false, - true, - false - ], - "margin": [ - 8, - 0, - 0, - 3 - ] - } - ], - [ - { - "text": "{{if_the_tax}}", - "border": [ - true, - false, - true, - true - ], - "margin": [ - 8, - 0, - 0, - 5 - ] - } - ] - ] - }, - "layout": {} - }, - { - "canvas": [ - { - "type": "line", - "x1": -40, - "y1": 28, - "x2": 700, - "y2": 28, - "dash": { - "length": 10, - "space": 5 - } - } - ] - }, - { - "text": "{{acknowledgement_for}}", - "style": "footer-header" - }, - { - "style": "noc-table4", - "table": { - "widths": [ - "*", - "*", - "*", - "*" - ], - "body": [ - [ - { - "text": "{{date_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billdate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{consumer_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{bill_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{billNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{name_address}} ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}, {{nameAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{total_payment}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{total}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - } - ] - ] - } - }, - { - "text": "{{receivers_signature}}", - "style": "footer-bottom" - } - ], - "styles": { - "noc-head": { - "margin": [ - -25, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#484848", - "fontFamily": "Roboto", - "fontSize": 13, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 10, - -8, - -8 - ] - }, - "noc-table4": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 75, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - -8 - ] - }, - "noc-table3": { - "fontSize": 10, - "color": "#484848", - "margin": [ - -25, - 30, - -8, - -8 - ] - }, - "noc-table5": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 0 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 5, - 0, - 0 - ] - }, - "receipt-table-value2": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 5, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 5, - 0, - 0 - ] - }, - "receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 11, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 10 - ] - }, - "receipt-table3": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -6, - 5, - 0, - 0 - ] - }, - "right-receipt-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 5, - 0, - 10 - ] - }, - "right-receipt-table2": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 5, - 0, - 0 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "amount-due": { - "fontSize": 30, - "color": "#FC8019", - "bold": true, - "fontWeight": 700 - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 0, - 5, - 0, - 0 - ], - "color": "#484848" - }, - "receipt-logo-title-status": { - "color": "#FF0000", - "alignment": "right", - "bold": true, - "fontSize": 13, - "fontWeight": 500, - "margin": [ - 0, - 30, - 25, - 0 - ] - }, - "qr-text": { - "fontSize": 12, - "margin": [ - 40, - 0, - 0, - 0 - ], - "color": "#484848", - "alignment": "left" - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right" - }, - "footer-header": { - "margin": [ - 0, - 15, - 0, - -40 - ], - "bold": true, - "color": "#000000", - "alignment": "center" - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#000000", - "alignment": "right" - } - } - } -} diff --git a/pdf-service/format-config/ws-consolidatedacknowlegment.json b/pdf-service/format-config/ws-consolidatedacknowlegment.json deleted file mode 100644 index 3f5680e8..00000000 --- a/pdf-service/format-config/ws-consolidatedacknowlegment.json +++ /dev/null @@ -1,984 +0,0 @@ -{ - "key": "ws-consolidatedacknowlegment", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "margin": [ - 12, - 10, - 12, - 10 - ] - }, - { - "stack": [ - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{logo_sub_header}}" - } - ], - "alignment": "left", - "margin": [ - 10, - 30, - 0, - 0 - ] - }, - { - "stack": [ - { - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABkAAAAZAAQMAAAAbwhzkAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURQAAAP7+/soH9D0AAAYwSURBVHja7dyxcYNAEAVQPA4UugRKoTRcGqW4BIcKNMKBcABzXu8JhIXn/UwSJ/Zt/Oea8Z+kAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAXkiyGdTn77iaHt79nLHa1oQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEJA9IC+ZVvolhHS3b88hpE+130FAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQP4AMmQK7vNpruVme80OppxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQECOCeluH1PdeBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQkGND4pvaQUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBADgYJE0OG+TTh0TggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7QqqSgpS78TUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQF5LGRF4h2MjwoICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMhGkPI0izvTP6Ju/IosLnk/b1/yBwEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB+RVyz1+mdjDlEu6gW4wKAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKyB6Scc1hp76MdjCGk3I0f5jsAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQHZBRJ348PhYkhNrb6rWTIICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMi2kB8yPfTRJFKepnz07fbjdX40tT4QEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEJCtICuSqtWndjDllHotCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIRpDPpj797B+umSOv08PvGcj0sQUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAdkD8pJppV/mkMXRYT5VuRtf3kFXU8kHAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQF5DGQoltbbImQxzYpMkMVN7SAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAeDnMZEype8p46CgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIA8AeSem9pr0oKAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOwJSU0zh3ynW7yvOM17ceRurAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMi2kKr00dFTZgdTrjU7AAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB2RhyvICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICArMkXJlylJdANIpEAAAAASUVORK5CYII=", - "width": 70, - "height": 70, - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "qr-image" - } - ] - ] - } - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "columns": [ - { - "width": "20%", - "text": "{{consumer_no}}" - }, - { - "width": "50%", - "text": "{{consumerNo}}" - }, - { - "width": "14%", - "text": " " - }, - { - "width": "10%", - "text": "{{status_label}}", - "alignment": "right" - }, - { - "width": "10%", - "text": "{{status}}", - "alignment": "right" - } - ], - "margin": [ - -26, - 10, - 0, - 0 - ] - }, - { - "text": "{{service_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{service}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{connection_category}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{connection_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{meter_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{water_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{connectionCategory}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{connectionType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{meterID}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{pipe_size}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{connection_execution_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{rainwater_harvesting_facility}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{water_source}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{pipeSize}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{connectionExecutionDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{rainwaterHarvestingFacility}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{waterSource}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{water_sub_source}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{waterSubSource}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{property_details_header}}", - "style": "header" - }, - { - "style": "ws-table-property", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{property_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{property_usage_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{plot_size}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{propertyType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{propertyUsageType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{plotSize}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{property_ID}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{city_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{plot_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{building_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{propertyID}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{city}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{plot}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{building}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{street_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{locality_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{pincode_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{location_on_map}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{streetName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{locality}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{pincode}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{lat}} {{long}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{owner_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{owner_mobile_number}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{owner_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{gender_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{guardian_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{ownerMobileNumber}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{ownerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{gender}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{guardian}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{guardian_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{owner_category}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{email_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{correspondence_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{guardianName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{ownerCategory}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{email}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{correspondenceAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - } - ], - "styles": { - "ws-head": { - "fillColor": "#F2F2F2", - "margin": [ - -39, - -38, - -38, - 0 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontFamily": "Cambay", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "ws-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-property": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 110 - ] - }, - "header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right", - "backgroundColor": "#dddddd" - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/ws-consolidatedsewerageconnection.json b/pdf-service/format-config/ws-consolidatedsewerageconnection.json deleted file mode 100644 index b9558f0d..00000000 --- a/pdf-service/format-config/ws-consolidatedsewerageconnection.json +++ /dev/null @@ -1,806 +0,0 @@ -{ - "key": "ws-consolidatedsewerageconnection", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "margin": [ - 12, - 10, - 12, - 10 - ] - }, - { - "stack": [ - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{logo_sub_header}}" - } - ], - "alignment": "left", - "margin": [ - 10, - 30, - 0, - 0 - ] - }, - { - "stack": [ - { - "table": { - "widths": [ - "*", - "*" - ], - "body": [ - [ - { - "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABkAAAAZAAQMAAAAbwhzkAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURQAAAP7+/soH9D0AAAYwSURBVHja7dyxcYNAEAVQPA4UugRKoTRcGqW4BIcKNMKBcABzXu8JhIXn/UwSJ/Zt/Oea8Z+kAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAXkiyGdTn77iaHt79nLHa1oQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEJA9IC+ZVvolhHS3b88hpE+130FAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQP4AMmQK7vNpruVme80OppxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQECOCeluH1PdeBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQkGND4pvaQUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBADgYJE0OG+TTh0TggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7QqqSgpS78TUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQF5LGRF4h2MjwoICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMhGkPI0izvTP6Ju/IosLnk/b1/yBwEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB+RVyz1+mdjDlEu6gW4wKAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKyB6Scc1hp76MdjCGk3I0f5jsAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQHZBRJ348PhYkhNrb6rWTIICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMi2kB8yPfTRJFKepnz07fbjdX40tT4QEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEJCtICuSqtWndjDllHotCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIRpDPpj797B+umSOv08PvGcj0sQUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAdkD8pJppV/mkMXRYT5VuRtf3kFXU8kHAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQF5DGQoltbbImQxzYpMkMVN7SAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAeDnMZEype8p46CgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIA8AeSem9pr0oKAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOwJSU0zh3ynW7yvOM17ceRurAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMi2kKr00dFTZgdTrjU7AAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB2RhyvICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICArMkXJlylJdANIpEAAAAASUVORK5CYII=", - "width": 70, - "height": 70, - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "qr-image" - } - ] - ] - } - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "columns": [ - { - "width": "20%", - "text": "{{consumer_no}}" - }, - { - "width": "50%", - "text": "{{consumerNo}}" - }, - { - "width": "14%", - "text": " " - }, - { - "width": "10%", - "text": "{{status_label}}", - "alignment": "right" - }, - { - "width": "10%", - "text": "{{status}}", - "alignment": "right" - } - ], - "margin": [ - -26, - 10, - 0, - 0 - ] - }, - { - "text": "{{service_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{service}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{connection_execution_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{unit_of_measurement}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{sewarage_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{connectionExecutionDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{uom}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{property_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{property_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{property_usage_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{plot_size}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{propertyType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{propertyUsageType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{plotSize}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{property_ID}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{city_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{plot_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{building_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{propertyID}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{city}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{plot}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{building}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{street_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{locality_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{pincode_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{location_on_map}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{streetName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{locality}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{pincode}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{lat}} {{long}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{owner_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{owner_mobile_number}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{owner_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{gender_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{guardian_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{ownerMobileNumber}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{ownerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{gender}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{guardian}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{guardian_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{owner_category}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{email_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{correspondence_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ], - [ - { - "text": "{{guardianName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{ownerCategory}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{email}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{correspondenceAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - } - ], - "styles": { - "ws-head": { - "fillColor": "#F2F2F2", - "margin": [ - -39, - -38, - -38, - 0 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontFamily": "Cambay", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "ws-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right", - "backgroundColor": "#dddddd" - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/ws-estimationnotice.json b/pdf-service/format-config/ws-estimationnotice.json deleted file mode 100644 index a3959bcf..00000000 --- a/pdf-service/format-config/ws-estimationnotice.json +++ /dev/null @@ -1,742 +0,0 @@ -{ - "key": "ws-estimationnotice", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "rowSpan": 2, - "alignment": "center", - "margin": [ - 10, - 10, - -10, - 10 - ] - }, - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "main_header", - "alignment": "left" - }, - { - "text": "{{estimation_notice_header}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "", - "alignment": "center" - }, - { - "text": "{{logo_sub_header}}", - "style": "sub_header", - "alignment": "left" - }, - { - "text": "{{appDate}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "{{app_number}}:", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": " {{appNo}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 155, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": "Service {{user_name}}:", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": " {{service}} {{connection_header}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 155, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": "Connection Holder Details", - "style": "ws-sub-table-bold", - "alignment": "left", - "margin": [ - 20, - 20, - -600, - 10 - ] - }, - { - "text": "", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 155, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": "{{user_name}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": " {{name}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 155, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": "{{mobile_no}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": " {{mobileNumber}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 155, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": "{{guardian_name}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": " {{guardianName}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 155, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": "{{user_address}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": " {{address}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 155, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": " ", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": " ", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 155, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": "{{usage_type}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": " {{usageType}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 155, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-table-property", - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "table": { - "widths": [ - "50%", - "34%", - "50%", - "32%" - ], - "body": [ - [ - { - "text": "{{additional_comments}}", - "border": [ - false, - false, - false, - false - ], - "italics": true, - "style": "ws-sub-table-bold", - "margin": [ - 5, - 10, - -600, - 0 - ] - }, - { - "text": "{{estimation_header}} {{service}} {{connection_header}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-bold", - "margin": [ - 5, - 10, - -600, - 0 - ] - } - ], - [ - { - "ol": [ - { - "text": "{{penaltyComments}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "margin": [ - 0, - 0, - 0, - 0 - ] - } - ] - }, - [ - { - "style": "ws-sub-table", - "margin": [ - 0, - 0, - 0, - 0 - ], - "table": { - "widths": [ - "*" - ], - "body": [ - [ - { - "table": { - "widths": [ - "80%", - "90%" - ], - "body": [ - [ - { - "text": "{{fee_estimate}}", - "alignment": "left" - }, - { - "text": "{{amount}}", - "alignment": "right" - } - ], - [ - { - "text": "{{form_fee}}", - "style": "ws-table-row-odd" - }, - { - "text": "{{formFee}}", - "alignment": "right", - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{scrutiny_fee}}", - "style": "ws-table-row-even" - }, - { - "text": "{{ScrutinyFee}}", - "alignment": "right", - "style": "ws-table-row-even" - } - ], - [ - { - "text": "{{one_time_fee}}", - "style": "ws-table-row-odd" - }, - { - "text": "{{oneTimeFee}}", - "alignment": "right", - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{other_charge}}", - "style": "ws-table-row-even" - }, - { - "text": "{{otherCharge}}", - "alignment": "right", - "style": "ws-table-row-even" - } - ], - [ - { - "text": "{{road_charge}}", - "style": "ws-table-row-odd" - }, - { - "text": "{{roadCharge}}", - "alignment": "right", - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{security_charge}}", - "style": "ws-table-row-even" - }, - { - "text": "{{securityCharge}}", - "alignment": "right", - "style": "ws-table-row-even" - } - ], - [ - { - "text": "{{tax_cess}}", - "style": "ws-table-row-odd" - }, - { - "text": "{{taxCess}}", - "alignment": "right", - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{penalty}}", - "style": "ws-table-row-even" - }, - { - "text": "{{penaltyAmount}}", - "alignment": "right", - "style": "ws-table-row-even" - } - ], - [ - { - "text": "{{rebate}}", - "style": "ws-table-row-odd" - }, - { - "text": "{{rebateAmount}}", - "alignment": "right", - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{total}}", - "style": "ws-table-row-final" - }, - { - "text": "{{totalAmount}}", - "alignment": "right", - "style": "ws-table-row-final" - } - ] - ] - }, - "layout": "noBorders", - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - } - ] - ] - ] - }, - "layout": "noBorders", - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": "noBorders" - } - ], - "styles": { - "ws-head": { - "margin": [ - -42, - -40, - -42, - 0 - ], - "fillColor": "#F47738", - "fillOpacity": 0.15 - }, - "ws-table": { - "fontSize": 10, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-property": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 5, - -8, - 15 - ] - }, - "header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "ws-sub-table-bold": { - "color": "#000000", - "bold": true, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#F47738", - "fillColor": "#F47738", - "alignment": "right" - }, - "main_header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "italics": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - "header2": { - "color": "#F47738", - "textTransform": "uppercase", - "bold": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - -60, - 0, - 20, - 0 - ] - }, - "sub_header": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 300, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - "ws-table-row-odd": { - "color": "#000000", - "fontSize": 12, - "bold": false, - "fontWeight": 400, - "lineHeight": 0.9, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 3, - 3, - 3, - 3 - ] - }, - "ws-table-row-even": { - "color": "#000000", - "fontSize": 12, - "bold": false, - "fontWeight": 400, - "lineHeight": 0.9, - "margin": [ - 3, - 3, - 3, - 3 - ] - } - } - } -} diff --git a/pdf-service/format-config/ws-onetime-receipt.json b/pdf-service/format-config/ws-onetime-receipt.json deleted file mode 100644 index 7ae3091a..00000000 --- a/pdf-service/format-config/ws-onetime-receipt.json +++ /dev/null @@ -1,614 +0,0 @@ -{ - "key": "ws-onetime-receipt", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25 - }, - { - "stack": [ - { - "text": "{{logo-header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{serviceType}} {{payment_receipt}}", - "style": "receipt-logo-sub-header" - } - ], - "alignment": "left", - "margin": [ - 0, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{address}}" - }, - { - "text": "{{phoneNumber}}" - }, - { - "text": "{{website}}" - }, - { - "text": "{{email}}" - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - -100, - 0, - -25, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{receipt_no}}.", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{receiptNo}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table", - "font": "Roboto" - }, - { - "text": "{{application_id}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{consumerID}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{payment_date}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{payer_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerName}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payer_contact}}", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{payerContact}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "{{payment_status}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentStatus}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "next-noc-table", - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{service_type}}", - "border": [ - true, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{serviceType}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{billing_period}}", - "border": [ - false, - true, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{fromPeriod}} - {{toPeriod}}", - "border": [ - false, - true, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{bill_amount}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{dueAmount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{paid_amount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{paidAmount}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{pending_amount}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{pendingAmount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{advance_amount}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "₹ {{advanceAmount}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table" - } - ], - [ - { - "text": "{{payment_mode}}", - "border": [ - true, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{paymentMode}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table" - }, - { - "text": "{{transaction_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-table-value" - }, - { - "text": "{{transactionID}}", - "border": [ - false, - false, - true, - false - ], - "style": "receipt-table", - "font": "Roboto" - } - ], - [ - { - "text": "{{g8_receipt_no}}.", - "border": [ - true, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptNo}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table" - }, - { - "text": "{{g8_receipt_date}}", - "border": [ - false, - false, - false, - true - ], - "style": "receipt-table-value" - }, - { - "text": "{{G8ReceiptDate}}", - "border": [ - false, - false, - true, - true - ], - "style": "receipt-table" - } - ] - ] - }, - "layout": {} - }, - { - "style": "receipt-approver", - "columns": [ - { - "text": [ - { - "text": "{{generated_by}}: ", - "bold": true - }, - { - "text": "{{user-name}}", - "bold": false - } - ], - "alignment": "left" - }, - { - "text": [ - { - "text": "{{commissioner/eo}}", - "bold": true - } - ], - "alignment": "right", - "margin": [ - 0, - 0, - -10, - 1 - ] - } - ] - }, - { - "style": "no-signature", - "text": "{{no_signature}}" - }, - { - "style": "pt-disclaimer", - "stack": [ - { - "text": "{{disclamer}}", - "bold": true, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_1}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_2}}", - "bold": false, - "style": "pt-disclaimer-value" - }, - { - "text": "{{disclamer_3}}", - "bold": false, - "style": "pt-disclaimer-value" - } - ] - } - ], - "styles": { - "noc-head": { - "margin": [ - -30, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "receipt-logo-sub-header": { - "color": "#000000", - "fontSize": 12, - "letterSpacing": 0.6 - }, - "noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 45, - -22, - -8 - ] - }, - "next-noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 28, - -22, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 8, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 8, - 0, - 8 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, - 30, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" - } - } - } -} diff --git a/pdf-service/format-config/ws-sanctionletter-old.json b/pdf-service/format-config/ws-sanctionletter-old.json deleted file mode 100644 index fcb0b474..00000000 --- a/pdf-service/format-config/ws-sanctionletter-old.json +++ /dev/null @@ -1,1034 +0,0 @@ -{ - "key": "ws-sanctionletter-old", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "100%" - ], - "body": [ - [ - { - "text": "{{UAT}} {{cityName}} {{Municipal_Corporation}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-header" - } - ], - [ - { - "text": "{{cityName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-header" - } - ], - [ - { - "text": "{{presented_by}} : {{presentByName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-header" - } - ], - [ - { - "text": "{{commissioner_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-header" - } - ], - [ - { - "text": "{{usageType}}", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "auto", - "text": "{{app_no}}", - "style": "ws-sub-header" - }, - { - "width": "2%", - "text": ":", - "style": "ws-sub-header" - }, - { - "width": "auto", - "text": "{{applicationNumber}}", - "style": "ws-sub-data" - }, - { - "width": "auto", - "text": "{{date_label}}", - "style": "ws-sub-header", - "alignment": "right" - }, - { - "width": "*", - "text": "{{connectionExecutionDate}}", - "alignment": "right", - "style": "ws-sub-data" - } - ], - "margin": [ - 25, - 10, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "20%", - "text": "{{sub_label}}", - "style": "receipt-value-down" - }, - { - "width": "80%", - "text": "{{applicationType}} {{sub_data1}} {{applicationType}} {{sub_data2}} {{doorNo}} {{locality_label}} {{locality}} {{order_issued}} ", - "style": "receipt-value-down" - } - ], - "margin": [ - 50, - 10, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "20%", - "text": "{{ref_label}}", - "style": "receipt-value-down" - }, - { - "width": "80%", - "ol": [ - { - "text": "{{ref_message1}} {{ownerName}} {{doorNo}} {{locality_label}} {{locality}} {{dated_label}} {{date}}", - "style": "receipt-value-down" - }, - { - "text": "{{ref_message2}}", - "style": "receipt-value-down" - } - ] - } - ], - "margin": [ - 50, - 10, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{order_label}}", - "style": "ws-sub-header" - } - ], - "margin": [ - 25, - 10, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{in_ref_label}} {{ownerName}} {{order_meassage1}} {{applicationType}} {{order_meassage2}} {{doorNo}} {{locality}} {{order_meassage3}}", - "style": "receipt-value-down" - } - ], - "margin": [ - 50, - 10, - 0, - 0 - ] - } - ], - [ - { - "stack": [ - { - "table": { - "widths": [ - "3%", - "50%", - "3%", - "auto", - "auto" - ], - "body": [ - [ - { - "text": "1.", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{form_fee}}", - "layout": "noBorders", - "border": [ - false - ] - }, - { - "text": ":", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{Rs}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{formFee}}", - "alignment": "right", - "border": [ - false - ] - } - ], - [ - { - "text": "2.", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{scrutiny_fee}}", - "border": [ - false - ] - }, - { - "text": ":", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{Rs}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{ScrutinyFee}}", - "alignment": "right", - "border": [ - false - ] - } - ], - [ - { - "text": "3.", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{one_time_fee}}", - "border": [ - false - ] - }, - { - "text": ":", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{Rs}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{oneTimeFee}}", - "alignment": "right", - "border": [ - false - ] - } - ], - [ - { - "text": "4.", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{other_charge}}", - "border": [ - false - ] - }, - { - "text": ":", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{Rs}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{otherCharge}}", - "alignment": "right", - "border": [ - false - ] - } - ], - [ - { - "text": "5.", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{road_charge}}", - "border": [ - false - ] - }, - { - "text": ":", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{Rs}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{roadCharge}}", - "alignment": "right", - "border": [ - false - ] - } - ], - [ - { - "text": "6.", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{security_charge}}", - "border": [ - false - ] - }, - { - "text": ":", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{Rs}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{securityCharge}}", - "alignment": "right", - "border": [ - false - ] - } - ], - [ - { - "text": "7.", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{tax_cess}}", - "border": [ - false - ] - }, - { - "text": ":", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{Rs}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{taxCess}}", - "alignment": "right", - "border": [ - false - ] - } - ], - [ - { - "text": "8.", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{penalty}}", - "border": [ - false - ] - }, - { - "text": ":", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{Rs}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{penaltyAmount}}", - "alignment": "right", - "border": [ - false - ] - } - ], - [ - { - "text": "9.", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{rebate}}", - "border": [ - false - ] - }, - { - "text": ":", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{Rs}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{rebateAmount}}", - "alignment": "right", - "border": [ - false - ] - } - ], - [ - { - "text": " ", - "border": [ - false - ] - }, - { - "text": "{{total}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": ":", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{Rs}}", - "alignment": "center", - "border": [ - false - ] - }, - { - "text": "{{totalAmount}}", - "alignment": "right", - "border": [ - false - ] - } - ] - ] - } - } - ], - "border": [ - false, - false, - false, - false - ], - "margin": [ - 50, - 5, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{order_data2}} {{service}} {{order_data3}} {{app_no}}:{{applicationNumber}}", - "style": "receipt-value-down" - } - ], - "margin": [ - 30, - 10, - 0, - 0 - ] - } - ], - [ - { - "stack": [ - { - "text": "{{for_commissioner_label}}", - "style": "receipt-table-value-total", - "fontSize": 12 - }, - { - "text": "{{UAT}} {{cityName}} {{Municipal_Corporation}}", - "style": "receipt-table-value-total", - "fontSize": 12 - } - ], - "border": [ - false, - false, - false, - false - ], - "margin": [ - 40, - 80, - 0, - 0 - ] - } - ], - [ - { - "stack": [ - { - "table": { - "widths": [ - "10%", - "40%" - ], - "body": [ - [ - { - "text": "{{to_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-value-down" - }, - { - "text": " ", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-value-down" - } - ], - [ - { - "text": "{{sri_smt_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-value-down" - }, - { - "text": "{{ownerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-value-down" - } - ], - [ - { - "text": "{{door_no_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-value-down" - }, - { - "text": "{{doorNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "receipt-value-down" - } - ] - ] - } - }, - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "auto", - "text": "{{app_no}}", - "style": "ws-consumer-sub-header" - }, - { - "width": "2%", - "text": ":" - }, - { - "width": "auto", - "text": "{{applicationNumber}}", - "style": "ws-consumer-sub-header" - } - ], - "margin": [ - 0, - 10, - 0, - 0 - ] - } - ] - ], - "border": [ - false, - false, - false, - false - ], - "margin": [ - 50, - 5, - 0, - 0 - ] - } - ], - [ - { - "stack": [ - { - "text": "{{copy_message1}} {{service}} {{copy_message-sub1}}", - "style": "receipt-value-down" - } - ], - "border": [ - false, - false, - false, - false - ], - "margin": [ - 50, - 30, - 30, - 10 - ] - } - ], - [ - { - "stack": [ - { - "text": "{{copy_message2}}", - "style": "receipt-value-down" - } - ], - "border": [ - false, - false, - false, - false - ], - "margin": [ - 50, - 10, - 30, - 10 - ] - } - ] - ] - }, - "border": [ - true, - true, - true, - true - ] - } - ] - ] - }, - "layout": {} - } - ], - "styles": { - "ws-head": { - "fillColor": "#F2F2F2", - "margin": [ - -39, - -38, - -38, - 0 - ] - }, - "ws-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-property": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 110 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400 - }, - "ws-table-header": { - "color": "#000000", - "bold": true, - "fontSize": 18, - "fontWeight": 500, - "alignment": "center", - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "ws-inner-table": { - "color": "#000000", - "alignment": "center", - "margin": [ - 10, - 10, - 10, - 10 - ] - }, - "ws-sub-header": { - "color": "#000000", - "bold": true, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 10, - 10, - 10, - 10 - ] - }, - "ws-sub-data": { - "color": "#000000", - "fontSize": 14, - "fontWeight": 400, - "margin": [ - 10, - 10, - 10, - 10 - ] - }, - "ws-ul-header": { - "color": "#000000", - "fontSize": 16, - "fontWeight": 500 - }, - "ws-consumer-sub-header": { - "color": "#000000", - "fontSize": 12, - "fontWeight": 500 - }, - "receipt-value-down": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "alignment": "left", - "margin": [ - 3, - 0, - 0, - 5 - ] - }, - "ws-sign": { - "color": "#000000", - "fontSize": 14, - "fontWeight": 400, - "bold": true, - "alignment": "right", - "margin": [ - 0, - 5, - 30, - 0 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 5, - 5, - 0, - 0 - ] - }, - "receipt-table-value-total": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "alignment": "right", - "margin": [ - 0, - 5, - 30, - 0 - ] - }, - "receipt-table-value-down": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "alignment": "left", - "margin": [ - 3, - 5, - 0, - 5 - ] - } - } - } -} diff --git a/pdf-service/format-config/ws-sanctionletter.json b/pdf-service/format-config/ws-sanctionletter.json deleted file mode 100644 index c0cb7cab..00000000 --- a/pdf-service/format-config/ws-sanctionletter.json +++ /dev/null @@ -1,478 +0,0 @@ -{ - "key": "ws-sanctionletter", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "rowSpan": 2, - "alignment": "center", - "margin": [ - 10, - 10, - -10, - 10 - ] - }, - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "main_header", - "alignment": "left" - }, - { - "text": "{{sanctionLetter}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "", - "alignment": "center" - }, - { - "text": "{{logo_sub_header}}", - "style": "sub_header", - "alignment": "left" - }, - { - "text": "{{appCreatedDate}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "{{sub_label}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 50, - 10, - -50, - 10 - ] - }, - { - "text": "{{applicationType}} {{sub_data1}} {{applicationType}} {{sub_data2}} {{doorNo}} {{locality_label}} {{locality}} {{order_issued}} ", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 65, - 10, - -100, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": "{{ref_label}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 50, - 10, - -50, - 10 - ] - }, - { - "ol": [ - { - "text": "{{ref_message1}} {{ownerName}} {{doorNo}} {{locality_label}} {{locality}} {{dated_label}} {{appCreatedDate}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 65, - 10, - -5, - 0 - ] - }, - { - "text": "{{ref_message2}}{{applicationNumber}} {{dated_label}} {{estimationLetterDate}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 65, - 10, - -100, - 0 - ] - } - ] - }, - { - "text": "", - "alignment": "right" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-table-property", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{order_label}}", - "style": "ws-sub-table" - } - ], - "margin": [ - 25, - 10, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{in_ref_label}} {{applicationNumber}} {{dated}} {{appCreatedDate}} {{order_message2}} {{applicationType}} {{order_message3}} {{door_no}} {{doorNo}} {{locality_label}} {{locality}}{{order_message4}} {{totalAmount}} {{order_message5}} {{applicationType}} {{order_message6}} {{totalAmount}} {{dated}} {{sanctionLetterDate}} {{order_message7}}", - "style": "ws-sub-table-value" - } - ], - "margin": [ - 30, - 10, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{order_message12}} {{plumberName}}{{order_message13}} {{licenceNo}}{{order_message14}} {{contactNo}}{{order_message10}} {{sla}} {{order_message15}} {{slaDate}}{{order_message11}}", - "style": "ws-sub-table-value" - } - ], - "margin": [ - 30, - 10, - 0, - 0 - ] - } - ] - ] - } - }, - { - "style": "ws-table", - "margin": [ - 10, - 5, - 0, - 0 - ], - "table": { - "widths": [ - "50%", - "50%", - "25%", - "25%" - ], - "body": [ - [ - { - "stack": [ - { - "text": "{{to_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{sri_smt_label}} {{ownerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{doorNo}}, {{locality}}, {{cityName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ] - }, - { - "stack": [ - { - "text": "{{for_commissioner_label}}", - "bold": true, - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "", - "bold": true, - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "text": "This is a computer generated document, Hence requires no signature.", - "style": "footer-bottom", - "alignment": "center" - } - ], - "styles": { - "ws-head": { - "margin": [ - -42, - -40, - -42, - 0 - ], - "fillColor": "#F47738", - "fillOpacity": 0.15 - }, - "ws-table": { - "fontSize": 10, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-property": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 5, - -8, - 15 - ] - }, - "header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#F47738", - "fillColor": "#F47738", - "alignment": "right" - }, - "main_header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "italics": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - "header2": { - "color": "#F47738", - "textTransform": "uppercase", - "bold": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - -60, - 0, - 20, - 0 - ] - }, - "sub_header": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 300, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - "ws-table-row-odd": { - "color": "#000000", - "fontSize": 12, - "fontWeight": 400, - "lineHeight": 0.9, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 3, - 3, - 3, - 3 - ] - }, - "ws-table-row-even": { - "color": "#000000", - "fontSize": 12, - "fontWeight": 400, - "lineHeight": 0.9, - "margin": [ - 3, - 3, - 3, - 3 - ] - } - } - } -} diff --git a/pdf-service/format-config/ws-sewagedisconnection.json b/pdf-service/format-config/ws-sewagedisconnection.json deleted file mode 100644 index e80fab4c..00000000 --- a/pdf-service/format-config/ws-sewagedisconnection.json +++ /dev/null @@ -1,560 +0,0 @@ -{ - "key": "ws-sewagedisconnection", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "margin": [ - 12, - 10, - 12, - 10 - ] - }, - { - "stack": [ - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{logo_sub_header}}" - } - ], - "alignment": "left", - "margin": [ - 10, - 30, - 0, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "columns": [ - { - "text": "{{sewerage_application}}", - "style": "ws-header" - }, - { - "text": "{{application_no}}", - "alignment": "right", - "margin": [ - 0, - 2, - -50, - 0 - ] - }, - { - "text": "{{applicationNo}}", - "alignment": "right", - "bold": true, - "margin": [ - -150, - 2, - -20, - 0 - ] - } - ], - "margin": [ - -26, - 10, - 0, - 0 - ] - }, - { - "text": "{{property_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{property_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{propertyId}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{owner_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{ownerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{property_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{doorHouseNo}}, {{buildingColonyName}}, {{streetName}}, {{localityMohalla}}, {{cityName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{connection_holder_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{holder_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{holderName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{mobile_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{mobileNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{guardian_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{guardianName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{corresponding_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{correspondingAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{disconnection_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{disconnection_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{disconnectionType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{disconnection_proposed_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{disconnectionProposedDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{disconnection_reason}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{disconnectionReason}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{document_details_header}}", - "style": "header" - }, - { - "stack": [ - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "33%", - "33%", - "33%", - "1%" - ], - "body": [ - [ - { - "text": "{{documents}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ], - "unbreakable": true - }, - "layout": {} - } - ], - "unbreakable": true - } - ], - "styles": { - "ws-head": { - "margin": [ - -39, - -38, - -38, - 0 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontFamily": "Cambay", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "ws-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -8, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -8, - 0, - 0, - 10 - ] - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right", - "backgroundColor": "#dddddd" - }, - "receipt-table-value-total": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "alignment": "right", - "margin": [ - 0, - 5, - 30, - 0 - ] - } - } - } -} diff --git a/pdf-service/format-config/ws-sewerageconnectiondetails.json b/pdf-service/format-config/ws-sewerageconnectiondetails.json deleted file mode 100644 index 18bdac3e..00000000 --- a/pdf-service/format-config/ws-sewerageconnectiondetails.json +++ /dev/null @@ -1,776 +0,0 @@ -{ - "key": "ws-sewerageconnectiondetails", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "rowSpan": 2, - "alignment": "center", - "margin": [ - 10, - 10, - -20, - 10 - ] - }, - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "main_header", - "alignment": "left" - }, - { - "text": "{{water_connectiondetail}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "", - "alignment": "center" - }, - { - "text": "{{logo_sub_header}}", - "style": "sub_header", - "alignment": "left" - }, - { - "text": "{{appDate}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "{{consumer_number}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": "{{consumerNo}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 150, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "text": "{{connection_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{connection_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{connectionType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{water_closets}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{noOfWaterClosets}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{no_of_toilets}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{noOfToilets}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{connection_execution_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{connectionExecutionDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - }, - { - "text": "{{property_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{property_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{propertyId}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{owner_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{ownerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{property_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{doorHouseNo}}, {{streetName}}, {{localityMohalla}}, {{cityName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - }, - { - "text": "{{connection_holder_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{holder_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{holderName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{mobile_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{mobileNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{guardian_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{guardianName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{corresponding_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{correspondingAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - } - ], - "styles": { - "ws-head": { - "margin": [ - -42, - -40, - -42, - 0 - ], - "fillColor": "#F47738", - "fillOpacity": 0.15 - }, - "ws-table": { - "fontSize": 10, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-property": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 5, - -8, - 15 - ] - }, - "header": { - "color": "#F47738", - "textTransform": "uppercase", - "bold": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - -20, - 25, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "ws-sub-table-bold": { - "color": "#000000", - "bold": true, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#F47738", - "fillColor": "#F47738", - "alignment": "right" - }, - "main_header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "italics": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 20, - 0, - 0, - 0 - ] - }, - "header2": { - "color": "#F47738", - "textTransform": "uppercase", - "bold": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - -60, - 0, - 10, - 0 - ] - }, - "sub_header": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 300, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 20, - 0, - 0, - 0 - ] - }, - "ws-table-row-odd": { - "color": "#000000", - "fontSize": 12, - "bold": false, - "fontWeight": 400, - "lineHeight": 0.9, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 3, - 3, - 3, - 3 - ] - }, - "ws-table-row-even": { - "color": "#000000", - "fontSize": 12, - "bold": false, - "fontWeight": 400, - "lineHeight": 0.9, - "margin": [ - 3, - 3, - 3, - 3 - ] - } - } - } -} diff --git a/pdf-service/format-config/ws-seweragedisconnectionnotice.json b/pdf-service/format-config/ws-seweragedisconnectionnotice.json deleted file mode 100644 index 43827bb2..00000000 --- a/pdf-service/format-config/ws-seweragedisconnectionnotice.json +++ /dev/null @@ -1,660 +0,0 @@ -{ - "key": "ws-seweragedisconnectionnotice", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "rowSpan": 2, - "alignment": "center", - "margin": [ - 10, - 10, - -10, - 10 - ] - }, - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "main_header", - "alignment": "left" - }, - { - "text": "{{disconnectionNotice}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "", - "alignment": "center" - }, - { - "text": "{{logo_sub_header}}", - "style": "sub_header", - "alignment": "left" - }, - { - "text": "{{appCreatedDate}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "{{sub_label}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 50, - 10, - -50, - 10 - ] - }, - { - "text": "{{disconnection_of_label}} {{applicationType}} {{connection_label}}, {{consumer_no_label}}. {{consumerNo}}.", - "style": "ws-sub-table-value", - "alignment": "center", - "margin": [ - 40, - 10, - -100, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": "{{ref_label}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 50, - 10, - -50, - 10 - ] - }, - { - "text": "{{application_of_label}} {{ownerName}}, {{doorNo}}, {{locality}}, {{city}}, {{dated_label}} {{appCreatedDate}}.", - "style": "ws-sub-table-value", - "alignment": "center", - "margin": [ - 40, - 10, - -100, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-table-property", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{order_label}}", - "style": "ws-sub-table" - } - ], - "margin": [ - 25, - 10, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{disconnection_in_ref_label}} {{applicationNumber}}, {{dated}} {{appCreatedDate}} {{seeking_disconnection_label}} {{applicationType}} {{connection_consumer_label}} {{consumerNo}} {{door_no_label}} {{doorNo}}, {{locality_label}} {{locality}}.", - "style": "ws-sub-table-value" - } - ], - "margin": [ - 30, - 10, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{disconnection_order_message}}", - "style": "ws-sub-table-value" - } - ], - "margin": [ - 30, - 10, - 0, - 0 - ] - } - ] - ] - }, - "layout": { - } - }, - { - "text": "{{disconnection_billing_details_label}}", - "style": "header", - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - { - "style": "ws-table", - "margin": [ - 5, - 0, - 0, - 10 - ], - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "50%", - "50%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{billing_period_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - }, - { - "text": "{{billingFromPeriod}} {{lowercase_to_label}} {{billingToPeriod}}", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{billing_date_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - }, - { - "text": "{{billDate}}", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - } - ], - [ - { - "text": "{{bill_number_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - }, - { - "text": "{{billNumber}}", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{billing_amount_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - }, - { - "text": "{{billingAmount}}", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - } - ], - [ - { - "text": "{{due_date_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - }, - { - "text": "{{dueDate}}", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{current_meter_reading_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - }, - { - "text": "N/A", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - }, - { - "text": "{{note_label}} {{note_message}}", - "margin": [ - 10, - 5, - 5, - 10 - ] - }, - { - "style": "ws-table", - "margin": [ - 10, - 5, - 0, - 0 - ], - "table": { - "widths": [ - "50%", - "50%", - "25%", - "25%" - ], - "body": [ - [ - { - "stack": [ - { - "text": "{{to_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{consumerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{doorNo}}, {{locality}}, {{city}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ] - }, - { - "stack": [ - { - "text": "{{muncipal_commisioner_label}}", - "bold": true, - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{city}}", - "bold": true, - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "text": "This is a computer generated document, Hence requires no signature.", - "style": "footer-bottom", - "alignment": "center" - } - ], - "styles": { - "ws-head": { - "margin": [ - -42, - -40, - -42, - 0 - ], - "fillColor": "#F47738", - "fillOpacity": 0.15 - }, - "ws-table": { - "fontSize": 10, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-property": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 5, - -8, - 15 - ] - }, - "header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#F47738", - "fillColor": "#F47738", - "alignment": "right" - }, - "main_header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "italics": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - "header2": { - "color": "#F47738", - "textTransform": "uppercase", - "bold": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - -60, - 0, - 20, - 0 - ] - }, - "sub_header": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 300, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - "ws-table-row-odd": { - "color": "#000000", - "fontSize": 12, - "fontWeight": 400, - "lineHeight": 0.9, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 3, - 3, - 3, - 3 - ] - }, - "ws-table-row-even": { - "color": "#000000", - "fontSize": 12, - "fontWeight": 400, - "lineHeight": 0.9, - "margin": [ - 3, - 3, - 3, - 3 - ] - } - } - } -} \ No newline at end of file diff --git a/pdf-service/format-config/ws-waterconnectiondetails-metered.json b/pdf-service/format-config/ws-waterconnectiondetails-metered.json deleted file mode 100644 index 47f6ee3c..00000000 --- a/pdf-service/format-config/ws-waterconnectiondetails-metered.json +++ /dev/null @@ -1,956 +0,0 @@ -{ - "key": "ws-waterconnectiondetails-metered", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "rowSpan": 2, - "alignment": "center", - "margin": [ - 10, - 10, - -20, - 10 - ] - }, - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "main_header", - "alignment": "left" - }, - { - "text": "{{water_connectiondetail}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "", - "alignment": "center" - }, - { - "text": "{{logo_sub_header}}", - "style": "sub_header", - "alignment": "left" - }, - { - "text": "{{appDate}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "{{consumer_number}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": "{{consumerNo}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 150, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "text": "{{connection_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{connection_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{connectionType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{no_of_taps}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{noOfTapsProposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{pipe_size}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{pipeSizeProposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{water_source}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{waterSource}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{water_sub_source}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{waterSubSource}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{connection_execution_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{connectionExecutionDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{meter_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{meterId}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{meter_installation_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{meterInstallationDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{initial_meter_reading}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{initialMeterReading}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - }, - { - "text": "{{property_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{property_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{propertyId}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{owner_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{ownerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{property_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{doorHouseNo}}, {{streetName}}, {{localityMohalla}}, {{cityName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - }, - { - "text": "{{connection_holder_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{holder_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{holderName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{mobile_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{mobileNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{guardian_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{guardianName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{corresponding_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{correspondingAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - } - ], - "styles": { - "ws-head": { - "margin": [ - -42, - -40, - -42, - 0 - ], - "fillColor": "#F47738", - "fillOpacity": 0.15 - }, - "ws-table": { - "fontSize": 10, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-property": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 5, - -8, - 15 - ] - }, - "header": { - "color": "#F47738", - "textTransform": "uppercase", - "bold": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - -20, - 25, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "ws-sub-table-bold": { - "color": "#000000", - "bold": true, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#F47738", - "fillColor": "#F47738", - "alignment": "right" - }, - "main_header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "italics": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 20, - 0, - 0, - 0 - ] - }, - "header2": { - "color": "#F47738", - "textTransform": "uppercase", - "bold": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - -60, - 0, - 10, - 0 - ] - }, - "sub_header": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 300, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 20, - 0, - 0, - 0 - ] - }, - "ws-table-row-odd": { - "color": "#000000", - "fontSize": 12, - "bold": false, - "fontWeight": 400, - "lineHeight": 0.9, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 3, - 3, - 3, - 3 - ] - }, - "ws-table-row-even": { - "color": "#000000", - "fontSize": 12, - "bold": false, - "fontWeight": 400, - "lineHeight": 0.9, - "margin": [ - 3, - 3, - 3, - 3 - ] - } - } - } -} diff --git a/pdf-service/format-config/ws-waterconnectiondetails-nonmetered.json b/pdf-service/format-config/ws-waterconnectiondetails-nonmetered.json deleted file mode 100644 index a8c6eb20..00000000 --- a/pdf-service/format-config/ws-waterconnectiondetails-nonmetered.json +++ /dev/null @@ -1,848 +0,0 @@ -{ - "key": "ws-waterconnectiondetails-nonmetered", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "rowSpan": 2, - "alignment": "center", - "margin": [ - 10, - 10, - -20, - 10 - ] - }, - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "main_header", - "alignment": "left" - }, - { - "text": "{{water_connectiondetail}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "", - "alignment": "center" - }, - { - "text": "{{logo_sub_header}}", - "style": "sub_header", - "alignment": "left" - }, - { - "text": "{{appDate}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "{{consumer_number}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 20, - 0, - -600, - 10 - ] - }, - { - "text": "{{consumerNo}}", - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 150, - 0, - 0, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "text": "{{connection_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{connection_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{connectionType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{no_of_taps}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{noOfTapsProposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{pipe_size}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{pipeSizeProposed}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{water_source}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{waterSource}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{water_sub_source}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{waterSubSource}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{connection_execution_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{connectionExecutionDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - }, - { - "text": "{{property_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{property_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{propertyId}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{owner_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{ownerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{property_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{doorHouseNo}}, {{streetName}}, {{localityMohalla}}, {{cityName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - }, - { - "text": "{{connection_holder_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{holder_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{holderName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{mobile_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{mobileNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{guardian_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{guardianName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ], - [ - { - "text": "{{corresponding_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - -5, - 0, - -600, - 10 - ] - }, - { - "text": "{{correspondingAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value", - "alignment": "left", - "margin": [ - 50, - 0, - -100, - 0 - ] - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - } - ], - "styles": { - "ws-head": { - "margin": [ - -42, - -40, - -42, - 0 - ], - "fillColor": "#F47738", - "fillOpacity": 0.15 - }, - "ws-table": { - "fontSize": 10, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-property": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 5, - -8, - 15 - ] - }, - "header": { - "color": "#F47738", - "textTransform": "uppercase", - "bold": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - -20, - 25, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "ws-sub-table-bold": { - "color": "#000000", - "bold": true, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#F47738", - "fillColor": "#F47738", - "alignment": "right" - }, - "main_header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "italics": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 20, - 0, - 0, - 0 - ] - }, - "header2": { - "color": "#F47738", - "textTransform": "uppercase", - "bold": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - -60, - 0, - 10, - 0 - ] - }, - "sub_header": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 300, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 20, - 0, - 0, - 0 - ] - }, - "ws-table-row-odd": { - "color": "#000000", - "fontSize": 12, - "bold": false, - "fontWeight": 400, - "lineHeight": 0.9, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 3, - 3, - 3, - 3 - ] - }, - "ws-table-row-even": { - "color": "#000000", - "fontSize": 12, - "bold": false, - "fontWeight": 400, - "lineHeight": 0.9, - "margin": [ - 3, - 3, - 3, - 3 - ] - } - } - } -} diff --git a/pdf-service/format-config/ws-waterdisconnection.json b/pdf-service/format-config/ws-waterdisconnection.json deleted file mode 100644 index 46c1c398..00000000 --- a/pdf-service/format-config/ws-waterdisconnection.json +++ /dev/null @@ -1,560 +0,0 @@ -{ - "key": "ws-waterdisconnection", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "margin": [ - 12, - 10, - 12, - 10 - ] - }, - { - "stack": [ - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "receipt-logo-header" - }, - { - "text": "{{logo_sub_header}}" - } - ], - "alignment": "left", - "margin": [ - 10, - 30, - 0, - 0 - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "columns": [ - { - "text": "{{water_application}}", - "style": "ws-header" - }, - { - "text": "{{application_no}}", - "alignment": "right", - "margin": [ - 0, - 2, - -50, - 0 - ] - }, - { - "text": "{{applicationNo}}", - "alignment": "right", - "bold": true, - "margin": [ - -150, - 2, - -20, - 0 - ] - } - ], - "margin": [ - -26, - 10, - 0, - 0 - ] - }, - { - "text": "{{property_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{property_id}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{propertyId}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{owner_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{ownerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{property_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{doorHouseNo}}, {{buildingColonyName}}, {{streetName}}, {{localityMohalla}}, {{cityName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{connection_holder_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{holder_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{holderName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{mobile_no}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{mobileNo}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{guardian_name}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{guardianName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{corresponding_address}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{correspondingAddress}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{disconnection_details_header}}", - "style": "header" - }, - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "25%", - "25%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{disconnection_type}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{disconnectionType}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{disconnection_proposed_date}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{disconnectionProposedDate}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ], - [ - { - "text": "{{disconnection_reason}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{disconnectionReason}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": {} - }, - { - "text": "{{document_details_header}}", - "style": "header" - }, - { - "stack": [ - { - "style": "ws-table", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "33%", - "33%", - "33%", - "1%" - ], - "body": [ - [ - { - "text": "{{documents}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ], - "unbreakable": true - }, - "layout": {} - } - ], - "unbreakable": true - } - ], - "styles": { - "ws-head": { - "margin": [ - -39, - -38, - -38, - 0 - ] - }, - "receipt-logo-header": { - "color": "#000000", - "fontFamily": "Cambay", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - -10, - 0, - 5 - ] - }, - "ws-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -8, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -8, - 0, - 0, - 10 - ] - }, - "qr-image": { - "margin": [ - -40, - -1, - -3, - 0 - ], - "color": "#484848", - "alignment": "right", - "backgroundColor": "#dddddd" - }, - "receipt-table-value-total": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "alignment": "right", - "margin": [ - 0, - 5, - 30, - 0 - ] - } - } - } -} diff --git a/pdf-service/format-config/ws-waterdisconnectionnotice.json b/pdf-service/format-config/ws-waterdisconnectionnotice.json deleted file mode 100644 index a5d3b485..00000000 --- a/pdf-service/format-config/ws-waterdisconnectionnotice.json +++ /dev/null @@ -1,660 +0,0 @@ -{ - "key": "ws-waterdisconnectionnotice", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "ws-head", - "table": { - "widths": [ - 60, - "*", - 120 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "rowSpan": 2, - "alignment": "center", - "margin": [ - 10, - 10, - -10, - 10 - ] - }, - { - "text": "{{logo_header}} {{Municipal_Corporation}}", - "style": "main_header", - "alignment": "left" - }, - { - "text": "{{disconnectionNotice}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "", - "alignment": "center" - }, - { - "text": "{{logo_sub_header}}", - "style": "sub_header", - "alignment": "left" - }, - { - "text": "{{appCreatedDate}}", - "style": "header2", - "alignment": "right", - "border": [ - false, - false, - false, - false - ] - } - ], - [ - { - "text": "{{sub_label}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 50, - 10, - -50, - 10 - ] - }, - { - "text": "{{disconnection_of_label}} {{applicationType}} {{connection_label}}, {{consumer_no_label}}. {{consumerNo}}.", - "style": "ws-sub-table-value", - "alignment": "center", - "margin": [ - 40, - 10, - -100, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ], - [ - { - "text": "{{ref_label}}", - "style": "ws-sub-table", - "alignment": "left", - "margin": [ - 50, - 10, - -50, - 10 - ] - }, - { - "text": "{{application_of_label}} {{ownerName}}, {{doorNo}}, {{locality}}, {{city}}, {{dated_label}} {{appCreatedDate}}.", - "style": "ws-sub-table-value", - "alignment": "center", - "margin": [ - 40, - 10, - -100, - 0 - ] - }, - { - "text": "", - "alignment": "right" - } - ] - ] - }, - "layout": "noBorders" - }, - { - "style": "ws-table-property", - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{order_label}}", - "style": "ws-sub-table" - } - ], - "margin": [ - 25, - 10, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{disconnection_in_ref_label}} {{applicationNumber}}, {{dated}} {{appCreatedDate}} {{seeking_disconnection_label}} {{applicationType}} {{connection_consumer_label}} {{consumerNo}} {{door_no_label}} {{doorNo}}, {{locality_label}} {{locality}}.", - "style": "ws-sub-table-value" - } - ], - "margin": [ - 30, - 10, - 0, - 0 - ] - } - ], - [ - { - "border": [ - false, - false, - false, - false - ], - "columns": [ - { - "width": "100%", - "text": "{{disconnection_order_message}}", - "style": "ws-sub-table-value" - } - ], - "margin": [ - 30, - 10, - 0, - 0 - ] - } - ] - ] - }, - "layout": { - } - }, - { - "text": "{{disconnection_billing_details_label}}", - "style": "header", - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - { - "style": "ws-table", - "margin": [ - 5, - 0, - 0, - 10 - ], - "table": { - "widths": [ - "103%" - ], - "body": [ - [ - { - "table": { - "widths": [ - "50%", - "50%", - "25%", - "25%" - ], - "body": [ - [ - { - "text": "{{billing_period_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - }, - { - "text": "{{billingFromPeriod}} {{lowercase_to_label}} {{billingToPeriod}}", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{billing_date_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - }, - { - "text": "{{billDate}}", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - } - ], - [ - { - "text": "{{bill_number_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - }, - { - "text": "{{billNumber}}", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{billing_amount_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - }, - { - "text": "{{billingAmount}}", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - } - ], - [ - { - "text": "{{due_date_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - }, - { - "text": "{{dueDate}}", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-odd" - } - ], - [ - { - "text": "{{current_meter_reading_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - }, - { - "text": "N/A", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-table-row-even" - } - ] - ] - }, - "border": [ - false, - false, - false, - false - ] - } - ] - ] - }, - "layout": { - } - }, - { - "text": "{{note_label}} {{note_message}}", - "margin": [ - 10, - 5, - 5, - 10 - ] - }, - { - "style": "ws-table", - "margin": [ - 10, - 5, - 0, - 0 - ], - "table": { - "widths": [ - "50%", - "50%", - "25%", - "25%" - ], - "body": [ - [ - { - "stack": [ - { - "text": "{{to_label}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{consumerName}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - }, - { - "text": "{{doorNo}}, {{locality}}, {{city}}", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table" - } - ] - }, - { - "stack": [ - { - "text": "{{muncipal_commisioner_label}}", - "bold": true, - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "{{city}}", - "bold": true, - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - }, - { - "text": "", - "alignment": "right", - "border": [ - false, - false, - false, - false - ], - "style": "ws-sub-table-value" - } - ] - } - ] - ] - }, - "layout": "noBorders" - }, - { - "text": "This is a computer generated document, Hence requires no signature.", - "style": "footer-bottom", - "alignment": "center" - } - ], - "styles": { - "ws-head": { - "margin": [ - -42, - -40, - -42, - 0 - ], - "fillColor": "#F47738", - "fillOpacity": 0.15 - }, - "ws-table": { - "fontSize": 10, - "color": "#484848", - "margin": [ - -25, - 18, - -8, - 10 - ] - }, - "ws-table-property": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 5, - -8, - 15 - ] - }, - "header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -25, - 15, - 0, - -10 - ] - }, - "ws-sub-table-value": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 10 - ] - }, - "ws-sub-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - 3, - 8, - 0, - 0 - ] - }, - "footer-bottom": { - "margin": [ - 0, - 50, - 0, - 0 - ], - "bold": true, - "color": "#F47738", - "fillColor": "#F47738", - "alignment": "right" - }, - "main_header": { - "color": "#000000", - "textTransform": "uppercase", - "bold": true, - "italics": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - "header2": { - "color": "#F47738", - "textTransform": "uppercase", - "bold": true, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "fontSize": 14, - "fontWeight": 500, - "margin": [ - -60, - 0, - 20, - 0 - ] - }, - "sub_header": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 300, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 10, - 0, - 0, - 0 - ] - }, - "ws-table-row-odd": { - "color": "#000000", - "fontSize": 12, - "fontWeight": 400, - "lineHeight": 0.9, - "fillColor": "#F47738", - "fillOpacity": 0.15, - "margin": [ - 3, - 3, - 3, - 3 - ] - }, - "ws-table-row-even": { - "color": "#000000", - "fontSize": 12, - "fontWeight": 400, - "lineHeight": 0.9, - "margin": [ - 3, - 3, - 3, - 3 - ] - } - } - } -} diff --git a/reports/config/asset-reports.yml b/reports/config/asset-reports.yml deleted file mode 100644 index 5e38d058..00000000 --- a/reports/config/asset-reports.yml +++ /dev/null @@ -1,1522 +0,0 @@ ---- -ReportDefinitions: -- reportName: AssetImmovableRegister - summary: Immovable Asset Register Report - version: 1.0.0 - moduleName: asset - viewPath: assetImmovableReport - selectiveDownload: true - externalService: - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27IMMOVABLE%27++%26%26+%40.isAssetAllow%3D%3Dtrue%29%5D - keyOrder: id,name,depreciationRate,parent,tenantId - tableName: tbl_assetsubcategory - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27IMMOVABLE%27++%26%26+%40.isAssetAllow%3D%3Dfalse%29%5D - keyOrder: id,name,tenantId - tableName: tbl_assetcategory - stateData: true - sourceColumns: - - name: name - label: reports.asset.name - type: string - source: asset - - name: code - label: reports.asset.code - type: string - linkedReport: - reportName: AssetImmovableRegisterDetail - linkedColumn: _parent?reportName={reportName}&assetdetail={code} - source: asset - - name: dateofcreation - label: reports.asset.dateofcreation - type: epoch - source: asset - - name: grossvalue - label: reports.asset.grossvalue - type: number - source: asset - - name: originalvalue - label: reports.asset.originalvalue - type: number - source: asset - searchParams: - - name: assetcategory - label: reports.asset.assetCategory - isMandatory: false - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F(%20%40.assetCategoryType%3D%3D%27IMMOVABLE%27%20%26%26%20%40.isAssetAllow%3D%3Dfalse)%5D|$.MdmsRes.ASSET.AssetCategory.*.id|$.MdmsRes.ASSET.AssetCategory.*.name - source: asset - stateData: true - wrapper: true - searchClause : AND assetsubcategory.assetsubcategoryparent =$assetcategory - - name: assetsubcategory - label: reports.asset.assetSubCategory - isMandatory: false - type: url - pattern: /egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F(%20%40.parent%3D%3D{assetcategory})%5D|$.MdmsRes.ASSET.AssetCategory.*.id|$.MdmsRes.ASSET.AssetCategory.*.name - source: asset - stateData: true - wrapper: true - searchClause : AND asset.assetcategory=$assetsubcategory - - name: department - label: reports.asset.departmentCode - isMandatory: false - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid|$..code|$..name - source: asset - stateData: true - wrapper: true - searchClause : AND asset.departmentcode=$department - - name: code - label: reports.asset.code - type: string - isMandatory: false - source: asset - searchClause : AND asset.code in ($code) - - name: name - label: reports.asset.name - type: string - isMandatory: false - source: asset - searchClause : AND asset.name ilike $name - - name: originalvaluefrom - label: reports.asset.originalvaluefrom - type: number - source: asset - searchClause : AND asset.originalvalue>=$originalvaluefrom - isMandatory: false - - name: originalvalueto - label: reports.asset.originalvalueto - type: number - source: asset - searchClause : AND asset.originalvalue<=$originalvalueto - isMandatory: false - - name: fromDate - label: reports.asset.fromDate - type: date - source: asset - searchClause : AND asset.createddate>=$fromDate - isMandatory: false - - name: toDate - label: reports.asset.toDate - type: date - source: asset - searchClause : AND asset.createddate<=$toDate - isMandatory: false - - - - - query: select asset.name,asset.code,asset.ordernumber,asset.warrantyavailable,asset.wipreferenceno,asset.titledocumentsavailable as titledocumentsavailable, - asset.accumulateddepreciation,asset.grossvalue,asset.id,asset.quantity,asset.totalarea,asset.openingdate,asset.fundsource, - asset.location,(select string_agg(land.surveynumber,',') from egasset_asset_landdetails land where land.isenabled=true and asset.id=land.assetid group by asset.id) as - totalsurveyno,asset.acquiredfrom,asset.anticipatedLife,asset.modeofacquisition,asset.warrantyexpirydate,asset.defectliabilityyear as - defectliability,asset.defectliabilitymonth as defectliabilitymonth,asset.assetCategoryType,asset.defectliabilityday as defectliabilityday, - asset.securitydepositretained,asset.securitydepositrealized,asset.dateofcreation,asset.acquisitiondate,asset.grossvalue,asset.originalvalue, - currentvalue.currentamount,disposal.salevalue as disposalsalevalue,disposal.profitlossvoucherreference as disposalvoucherno,disposal.disposaldate, - disposal.buyername,disposal.buyeraddress,revaluation.revaluationdate,revaluation.incrementalrevalsum,revaluation.decrementalrevalsum, - depreciation.depreciationvalue,depreciation.totaldepreciationval,assetsubcategoryname,assetSubCategory.depreciationrate,assetsubcategoryparent, - assetparentcategoryname from egasset_asset asset left outer join (select b.* from egasset_current_value b inner join ( select assetid,tenantid, - max(createdtime) as createdtime from egasset_current_value where tenantid = $tenantid group by assetid,tenantid) c ON b.assetid = c.assetid - and b.tenantid=c.tenantid AND c.createdtime=b.createdtime) currentvalue ON asset.id=currentvalue.assetid AND asset.tenantid=currentvalue.tenantid - left outer join egasset_disposal disposal ON asset.id=disposal.assetid AND asset.tenantId = disposal.tenantid left outer join - ( select dep1.*,depsum.totaldepreciationval from egasset_depreciation dep1 inner join (select assetid,tenantid,max(createdtime) as createdtime - from egasset_depreciation where tenantid = $tenantid group by assetid,tenantid ) depmax ON dep1.assetid=depmax.assetid AND - dep1.tenantid=depmax.tenantid AND dep1.createdtime=depmax.createdtime inner join (select assetid,tenantid,sum(depreciationvalue) as - totaldepreciationval from egasset_depreciation where tenantid = $tenantid group by assetid,tenantid) depsum ON dep1.assetid=depsum.assetid - AND dep1.tenantid=depsum.tenantid ) depreciation ON asset.id=depreciation.assetid AND asset.tenantid=depreciation.tenantid left outer join - (select rev1.*,revinc.incrementalrevalsum,revdec.decrementalrevalsum from egasset_revaluation rev1 inner join (select assetid,tenantid,max(createddate) - as createddate from egasset_revaluation where tenantid = $tenantid group by assetid,tenantid ) revalmax ON rev1.assetid=revalmax.assetid AND - rev1.tenantid=revalmax.tenantid AND rev1.createddate=revalmax.createddate left outer join (select assetid,tenantid,sum(revaluationamount) as - incrementalrevalsum from egasset_revaluation where tenantid = $tenantid AND typeofchange='INCREASED' group by assetid,tenantid) revinc - ON rev1.assetid=revinc.assetid and rev1.tenantid=revinc.tenantid left outer join (select assetid,tenantid,sum(revaluationamount) as decrementalrevalsum - from egasset_revaluation where tenantid = $tenantid AND typeofchange='DECREASED' group by assetid,tenantid) revdec - ON rev1.assetid=revdec.assetid and rev1.tenantid=revdec.tenantid where rev1.tenantid = $tenantid) revaluation - ON asset.tenantid=revaluation.tenantid AND asset.id=revaluation.assetid - left outer join ( select assetSubcategory.name assetsubcategoryname,assetSubcategory.depreciationrate as depreciationrate, - assetSubcategory.parent as assetsubcategoryparent,assetSubcategory.tenantid as tenantid,assetSubcategory.id assetsubcategoryid, - ac.name as assetparentcategoryname,ac.id assetparentcategoryid from (VALUES tbl_assetsubcategory) as assetSubcategory (id,name,depreciationRate,parent,tenantId) - inner join (VALUES tbl_assetcategory) as ac (id,name,tenantId) ON assetSubcategory.parent = ac.id ) as - assetsubcategory ON asset.assetcategory::character varying=assetsubcategory.assetsubcategoryid - where asset.tenantid = $tenantid AND asset.assetCategoryType='IMMOVABLE' - - -- reportName: AssetImmovableRegisterDetail - summary: Immovable Asset Register Report - version: 1.0.0 - moduleName: asset - viewPath: assetImmovableReport - selectiveDownload: true - externalService: - - entity: $.MdmsRes.egf-master.FinancialYear - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=egf-master&masterName=FinancialYear&tenantId=$tenantid&filter=%5B%3F(%20%40.startingDate%20%3C%3D%20$currentTime%20%26%26%20%40.endingDate%20%3E%3D%20$currentTime)%5D - keyOrder: startingDate,endingDate - tableName: tbl_financialYears - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27IMMOVABLE%27++%26%26+%40.isAssetAllow%3D%3Dtrue%29%5D - keyOrder: id,name,depreciationRate,parent,tenantId - tableName: tbl_assetsubcategory - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27IMMOVABLE%27++%26%26+%40.isAssetAllow%3D%3Dfalse%29%5D - keyOrder: id,name,tenantId - tableName: tbl_assetcategory - stateData: true - - entity: $.MdmsRes.egf-master.Fund - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=egf-master&masterName=Fund&tenantId=$tenantid - keyOrder: id,tenantId,name,code - tableName: tbl_funds - stateData: true - sourceColumns: - - name: id - label: reports.asset.id - type: number - source: asset - - name: quantity - label: reports.asset.quantity - type: number - source: asset - - name: plintharea - label: reports.asset.plintharea - type: number - source: asset - showColumn: true - - name: cubiccontents - label: reports.asset.cubiccontents - type: string - source: asset - - name: landsurveyno - label: reports.asset.landsurveyno - type: string - source: asset - - name: length - label: reports.asset.length - type: number - source: asset - - name: width - label: reports.asset.width - type: number - source: asset - - name: height - label: reports.asset.height - type: number - source: asset - - name: totalarea - label: reports.asset.totalarea - type: number - source: asset - - name: acquiredfrom - label: reports.asset.acquiredfrom - type: string - source: asset - - name: anticipatedLife - label: reports.asset.anticipatedLife - type: number - source: asset - - name: modeofacquisition - label: reports.asset.modeofacquisition - type: string - source: asset - - name: warrantyexpirydate - label: reports.asset.warrantyexpirydate - type: number - source: asset - - name: defectliability - label: reports.asset.defectliability - type: number - source: asset - - name: defectliabilitymonth - label: reports.asset.defectliabilitymonth - type: number - source: asset - - name: defectliabilityday - label: reports.asset.defectliabilityday - type: string - source: asset - - name: securitydepositretained - label: reports.asset.securitydepositretained - type: number - source: asset - - name: securitydepositrealized - label: reports.asset.securitydepositrealized - type: number - source: asset - - name: dateofcreation - label: reports.asset.dateofcreation - type: string - source: asset - - name: acquisitiondate - label: reports.asset.acquisitiondate - type: string - source: asset - - name: grossvalue - label: reports.asset.grossvalue - type: number - source: asset - - name: originalvalue - label: reports.asset.originalvalue - type: number - source: asset - - name: currentvalue - label: reports.asset.currentvalue - type: number - source: asset - - name: currentamount - label: reports.asset.currentamount - type: number - source: asset - - name: disposalsalevalue - label: reports.asset.disposalsalevalue - type: number - source: asset - - name: disposalvoucherno - label: reports.asset.disposalvoucherno - type: number - source: asset - - name: disposaldate - label: reports.asset.disposaldate - type: string - source: asset - - name: revaluationdate - label: reports.asset.revaluationdate - type: string - source: asset - - name: incrementalrevalsum - label: reports.asset.incrementalrevalsum - type: number - source: asset - - name: decrementalrevalsum - label: reports.asset.decrementalrevalsum - type: number - source: asset - - name: depreciationvalue - label: reports.asset.depreciationvalue - type: number - source: asset - - name: totaldepreciationval - label: reports.asset.totaldepreciationval - type: number - source: asset - - name: name - label: reports.asset.name - type: string - source: asset - - name: code - label: reports.asset.code - type: string - source: asset - - name: ordernumber - label: reports.asset.ordernumber - type: number - - name: warrantyavailable - label: reports.asset.warrantyavailable - type: string - source: asset - - name: wipreferenceno - label: reports.asset.wipreferenceno - type: string - source: asset - - name: floors - label: reports.asset.floors - type: number - source: asset - - name: titledocumentsavailable - label: reports.asset.titledocumentsavailable - type: number - - name: buyername - label: reports.asset.buyername - type: string - source: asset - - name: accumulateddepreciation - label: reports.asset.accumulateddepreciation - type: number - source: asset - - name: openingdate - label: reports.asset.openingdate - type: number - source: asset - - name: fundsourcename - label: reports.asset.fundsource - type: string - source: asset - - name: location - label: reports.asset.location - type: string - source: asset - - name: totalsurveyno - label: reports.asset.totalsurveyno - type: string - source: asset - - name: assetattributes - label: reports.asset.assetattributes - type: string - source: asset - - name: assetsubcategoryname - label: reports.asset.assetsubcategoryname - type: string - source: asset - - name: assetparentcategoryname - label: reports.asset.assetparentcategoryname - type: string - source: asset - - name: depreciationrate - label: reports.asset.depreciationrate - type: string - source: asset - - name: totalrevalsum - label: reports.asset.totalrevalsum - type: string - source: asset - - name: prevtotaldepreciationval - label: reports.asset.prevtotaldepreciationval - type: string - source: asset - - name: currtotaldepreciationval - label: reports.asset.currtotaldepreciationval - type: string - source: asset - searchParams: - - name: fromDate - label: reports.asset.fromDate - type: date - source: asset - searchClause : AND asset.createddate>=$fromDate - isMandatory: false - - name: toDate - label: reports.asset.toDate - type: date - source: asset - searchClause : AND asset.createddate<=$toDate - isMandatory: false - - name: name - label: reports.asset.name - type: string - isMandatory: false - source: asset - searchClause : AND asset.name=$name - - name: code - label: reports.asset.code - type: string - isMandatory: false - source: asset - searchClause : AND asset.code=$code - - name: assetdetail - label: reports.asset.detail - type: number - isMandatory: false - source: asset - searchClause : and asset.code in ($assetdetail) - - query: select asset.name,asset.code,asset.ordernumber,asset.warrantyavailable,asset.wipreferenceno,asset.titledocumentsavailable as titledocumentsavailable, - asset.accumulateddepreciation,asset.grossvalue,asset.id,asset.quantity,asset.totalarea,asset.openingdate,asset.fundsource,funds.fundsourcename, - asset.location,(select string_agg(land.surveynumber,',') from egasset_asset_landdetails land where land.isenabled=true and asset.id=land.assetid group by asset.id) as - totalsurveyno,asset.acquiredfrom,asset.anticipatedLife,asset.modeofacquisition,asset.warrantyexpirydate,asset.defectliabilityyear as - defectliability,asset.defectliabilitymonth as defectliabilitymonth,asset.assetCategoryType,asset.defectliabilityday as defectliabilityday, coalesce(grossvalue,0.0)-coalesce(accumulateddepreciation,0.0)+coalesce(incrementalrevalsum,0.0)-coalesce(decrementalrevalsum,0.0) as totalrevalsum, - asset.securitydepositretained,asset.securitydepositrealized,asset.dateofcreation,asset.acquisitiondate,asset.grossvalue,asset.originalvalue, - currentvalue.currentamount,disposal.salevalue as disposalsalevalue,disposal.profitlossvoucherreference as disposalvoucherno,disposal.disposaldate, - disposal.buyername,disposal.buyeraddress,revaluation.revaluationdate,revaluation.incrementalrevalsum,revaluation.decrementalrevalsum, - depreciation.depreciationvalue,depreciation.totaldepreciationval,depreciation.prevtotaldepreciationval,depreciation.currtotaldepreciationval,assetsubcategoryname,assetSubCategory.depreciationrate,assetsubcategoryparent, assetparentcategoryname from egasset_asset asset left outer join (select b.* from egasset_current_value b inner join ( select assetid,tenantid, max(createdtime) as createdtime from egasset_current_value where tenantid = $tenantid group by assetid,tenantid) c ON b.assetid = c.assetid and b.tenantid=c.tenantid AND c.createdtime=b.createdtime) currentvalue ON asset.id=currentvalue.assetid AND asset.tenantid=currentvalue.tenantid left outer join egasset_disposal disposal ON asset.id=disposal.assetid AND asset.tenantId = disposal.tenantid left outer join ( select dep1.*,depsum.totaldepreciationval,prevtotaldepreciationval,currtotaldepreciationval from egasset_depreciation dep1 - inner join (select assetid,tenantid,max(createdtime) as createdtime from egasset_depreciation where tenantid = $tenantid group by assetid,tenantid ) depmax ON dep1.assetid=depmax.assetid AND - dep1.tenantid=depmax.tenantid AND dep1.createdtime=depmax.createdtime inner join - (select assetid,tenantid,sum(depreciationvalue) as totaldepreciationval from egasset_depreciation where tenantid = $tenantid group by assetid,tenantid) depsum - ON dep1.assetid=depsum.assetid AND dep1.tenantid=depsum.tenantid left outer join - (select assetid,tenantid,sum(depreciationvalue) as prevtotaldepreciationval from egasset_depreciation where tenantid = $tenantid AND todate<=(select startingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) group by assetid,tenantid) prevdepsum - ON dep1.assetid=prevdepsum.assetid AND dep1.tenantid=prevdepsum.tenantid left outer join (select assetid,tenantid,sum(depreciationvalue) as currtotaldepreciationval - from egasset_depreciation where tenantid = $tenantid AND (todate BETWEEN (select startingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) - AND (select endingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) ) group by assetid,tenantid) currdepsum - ON dep1.assetid=currdepsum.assetid AND dep1.tenantid=currdepsum.tenantid) - depreciation ON asset.id=depreciation.assetid AND asset.tenantid=depreciation.tenantid - left outer join - (select rev1.*,revinc.incrementalrevalsum,revdec.decrementalrevalsum from egasset_revaluation rev1 inner join (select assetid,tenantid,max(createddate) - as createddate from egasset_revaluation where tenantid = $tenantid group by assetid,tenantid ) revalmax ON rev1.assetid=revalmax.assetid AND - rev1.tenantid=revalmax.tenantid AND rev1.createddate=revalmax.createddate left outer join (select assetid,tenantid,sum(revaluationamount) as - incrementalrevalsum from egasset_revaluation where tenantid = $tenantid AND typeofchange='INCREASED' group by assetid,tenantid) revinc - ON rev1.assetid=revinc.assetid and rev1.tenantid=revinc.tenantid left outer join (select assetid,tenantid,sum(revaluationamount) as decrementalrevalsum - from egasset_revaluation where tenantid = $tenantid AND typeofchange='DECREASED' group by assetid,tenantid) revdec - ON rev1.assetid=revdec.assetid and rev1.tenantid=revdec.tenantid where rev1.tenantid = $tenantid) revaluation - ON asset.tenantid=revaluation.tenantid AND asset.id=revaluation.assetid - left outer join ( select assetSubcategory.name assetsubcategoryname,assetSubcategory.depreciationrate as depreciationrate, - assetSubcategory.parent as assetsubcategoryparent,assetSubcategory.tenantid as tenantid,assetSubcategory.id assetsubcategoryid, - ac.name as assetparentcategoryname,ac.id assetparentcategoryid from (VALUES tbl_assetsubcategory) as assetSubcategory (id,name,depreciationRate,parent,tenantId) - inner join (VALUES tbl_assetcategory) as ac (id,name,tenantId) ON assetSubcategory.parent = ac.id ) as - assetsubcategory ON asset.assetcategory::character varying=assetsubcategory.assetsubcategoryid - left outer join (select funds.name fundsourcename,funds.code from (VALUES tbl_funds) as funds (id,tenantId,name,code)) as funds ON asset.fundsource=funds.code - where asset.tenantid = $tenantid AND asset.assetCategoryType='IMMOVABLE' - - -- reportName: AssetMovableRegister - summary: Movable Asset Register Report - version: 1.0.0 - moduleName: asset - viewPath: assetMovableReport - selectiveDownload: true - externalService: - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27MOVABLE%27++%26%26+%40.isAssetAllow%3D%3Dtrue%29%5D - keyOrder: id,name,depreciationRate,parent,tenantId - tableName: tbl_assetsubcategory - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27MOVABLE%27++%26%26+%40.isAssetAllow%3D%3Dfalse%29%5D - keyOrder: id,name,tenantId - tableName: tbl_assetcategory - stateData: true - sourceColumns: - - name: name - label: reports.asset.name - type: string - source: asset - - name: code - label: reports.asset.code - type: string - linkedReport: - reportName: AssetMovableRegisterDetail - linkedColumn: _parent?reportName={reportName}&assetdetail={code} - source: asset - - name: dateofcreation - label: reports.asset.dateofcreation - type: epoch - source: asset - - name: grossvalue - label: reports.asset.grossvalue - type: number - source: asset - - name: originalvalue - label: reports.asset.originalvalue - type: number - source: asset - searchParams: - - name: assetcategory - label: reports.asset.assetCategory - isMandatory: false - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F(%20%40.assetCategoryType%3D%3D%27MOVABLE%27%20%26%26%20%40.isAssetAllow%3D%3Dfalse)%5D|$.MdmsRes.ASSET.AssetCategory.*.id|$.MdmsRes.ASSET.AssetCategory.*.name - source: asset - wrapper: true - stateData: true - searchClause : AND assetsubcategory.assetsubcategoryparent =$assetcategory - - name: assetsubcategory - label: reports.asset.assetSubCategory - isMandatory: false - type: url - pattern: /egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F(%20%40.parent%3D%3D{assetcategory})%5D|$.MdmsRes.ASSET.AssetCategory.*.id|$.MdmsRes.ASSET.AssetCategory.*.name - source: asset - wrapper: true - stateData: true - searchClause : AND asset.assetcategory=$assetsubcategory - - name: department - label: reports.asset.departmentCode - isMandatory: false - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid|$..code|$..name - source: asset - wrapper: true - stateData: true - searchClause : AND asset.departmentcode=$department - - name: code - label: reports.asset.code - type: string - isMandatory: false - source: asset - searchClause : AND asset.code in ($code) - - name: name - label: reports.asset.name - type: string - isMandatory: false - source: asset - searchClause : AND asset.name=$name - - name: originalvaluefrom - label: reports.asset.originalvaluefrom - type: number - source: asset - searchClause : AND asset.originalvalue>=$originalvaluefrom - isMandatory: false - - name: originalvalueto - label: reports.asset.originalvalueto - type: number - source: asset - searchClause : AND asset.originalvalue<=$originalvalueto - isMandatory: false - - name: fromDate - label: reports.asset.fromDate - type: date - source: asset - searchClause : AND asset.createddate>=$fromDate - isMandatory: false - - name: toDate - label: reports.asset.toDate - type: date - source: asset - searchClause : AND asset.createddate<=$toDate - isMandatory: false - - - - - - query: select asset.name,asset.code,asset.ordernumber,asset.warrantyavailable,asset.wipreferenceno,asset.titledocumentsavailable as titledocumentsavailable,asset.accumulateddepreciation,asset.grossvalue,asset.id,asset.quantity,asset.totalarea,asset.openingdate,asset.fundsource,asset.location,asset.assetCategoryType, - asset.acquiredfrom,asset.anticipatedLife,asset.modeofacquisition,asset.warrantyexpirydate,asset.defectliabilityyear as defectliability,asset.defectliabilitymonth as defectliabilitymonth,(select string_agg(land.surveynumber,',') from egasset_asset_landdetails land where land.isenabled=true and asset.id=land.assetid group by asset.id) as totalsurveyno, - asset.defectliabilityday as defectliabilityday,asset.securitydepositretained, - asset.securitydepositrealized,asset.dateofcreation,asset.acquisitiondate,asset.grossvalue,asset.originalvalue,currentvalue.currentamount, - disposal.salevalue as disposalsalevalue,disposal.profitlossvoucherreference as disposalvoucherno,disposal.disposaldate,disposal.buyername,disposal.buyeraddress, - revaluation.revaluationdate,revaluation.incrementalrevalsum,revaluation.decrementalrevalsum, - depreciation.depreciationvalue,depreciation.totaldepreciationval,assetsubcategoryname,assetSubCategory.depreciationrate,assetsubcategoryparent, - assetparentcategoryname - from egasset_asset asset left outer join - (select b.* from egasset_current_value b inner join ( select assetid,tenantid,max(createdtime) as createdtime from egasset_current_value - where tenantid = $tenantid group by assetid,tenantid) c - ON b.assetid = c.assetid and b.tenantid=c.tenantid AND c.createdtime=b.createdtime) currentvalue - ON asset.id=currentvalue.assetid AND asset.tenantid=currentvalue.tenantid - left outer join egasset_disposal disposal ON asset.id=disposal.assetid AND asset.tenantId = disposal.tenantid - left outer join ( select dep1.*,depsum.totaldepreciationval from egasset_depreciation dep1 - inner join - (select assetid,tenantid,max(createdtime) as createdtime from egasset_depreciation where tenantid = $tenantid - group by assetid,tenantid ) depmax ON dep1.assetid=depmax.assetid AND dep1.tenantid=depmax.tenantid AND dep1.createdtime=depmax.createdtime - inner join (select assetid,tenantid,sum(depreciationvalue) as totaldepreciationval from egasset_depreciation - where tenantid = $tenantid group by assetid,tenantid) depsum ON dep1.assetid=depsum.assetid - AND dep1.tenantid=depsum.tenantid ) depreciation ON asset.id=depreciation.assetid AND asset.tenantid=depreciation.tenantid - left outer join - (select rev1.*,revinc.incrementalrevalsum,revdec.decrementalrevalsum from egasset_revaluation rev1 inner join - (select assetid,tenantid,max(createddate) as createddate from egasset_revaluation where tenantid = $tenantid - group by assetid,tenantid ) revalmax ON rev1.assetid=revalmax.assetid AND rev1.tenantid=revalmax.tenantid AND rev1.createddate=revalmax.createddate - left outer join - (select assetid,tenantid,sum(revaluationamount) as incrementalrevalsum from egasset_revaluation where tenantid = $tenantid - AND typeofchange='INCREASED' group by assetid,tenantid) revinc ON rev1.assetid=revinc.assetid and rev1.tenantid=revinc.tenantid - left outer join (select assetid,tenantid,sum(revaluationamount) as decrementalrevalsum from egasset_revaluation - where tenantid = $tenantid AND typeofchange='DECREASED' group by assetid,tenantid) revdec - ON rev1.assetid=revdec.assetid and rev1.tenantid=revdec.tenantid - where rev1.tenantid = $tenantid) revaluation - ON asset.tenantid=revaluation.tenantid AND asset.id=revaluation.assetid - left outer join ( select assetSubcategory.name assetsubcategoryname,assetSubcategory.depreciationrate as depreciationrate, - assetSubcategory.parent as assetsubcategoryparent,assetSubcategory.tenantid as tenantid,assetSubcategory.id assetsubcategoryid, - ac.name as assetparentcategoryname,ac.id assetparentcategoryid from (VALUES tbl_assetsubcategory) as assetSubcategory (id,name,depreciationRate,parent,tenantId) - inner join (VALUES tbl_assetcategory) as ac (id,name,tenantId) ON assetSubcategory.parent = ac.id ) as - assetsubcategory ON asset.assetcategory::character varying=assetsubcategory.assetsubcategoryid - where asset.tenantid = $tenantid AND asset.assetCategoryType='MOVABLE' - - -- reportName: AssetMovableRegisterDetail - summary: Movable Asset Register Report - version: 1.0.0 - moduleName: asset - viewPath: assetMovableReport - selectiveDownload: true - externalService: - - entity: $.MdmsRes.egf-master.FinancialYear - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=egf-master&masterName=FinancialYear&tenantId=$tenantid&filter=%5B%3F(%20%40.startingDate%20%3C%3D%20$currentTime%20%26%26%20%40.endingDate%20%3E%3D%20$currentTime)%5D - keyOrder: startingDate,endingDate - tableName: tbl_financialYears - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27MOVABLE%27++%26%26+%40.isAssetAllow%3D%3Dtrue%29%5D - keyOrder: id,name,depreciationRate,parent,tenantId - tableName: tbl_assetsubcategory - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27MOVABLE%27++%26%26+%40.isAssetAllow%3D%3Dfalse%29%5D - keyOrder: id,name,tenantId - tableName: tbl_assetcategory - stateData: true - - entity: $.MdmsRes.egf-master.Fund - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=egf-master&masterName=Fund&tenantId=$tenantid - keyOrder: id,tenantId,name,code - tableName: tbl_funds - stateData: true - sourceColumns: - - name: id - label: reports.asset.id - type: number - source: asset - - name: quantity - label: reports.asset.quantity - type: number - source: asset - - name: plintharea - label: reports.asset.plintharea - type: number - source: asset - showColumn: true - - name: cubiccontents - label: reports.asset.cubiccontents - type: string - source: asset - - name: landsurveyno - label: reports.asset.landsurveyno - type: string - source: asset - - name: length - label: reports.asset.length - type: number - source: asset - - name: width - label: reports.asset.width - type: number - source: asset - - name: height - label: reports.asset.height - type: number - source: asset - - name: totalarea - label: reports.asset.totalarea - type: number - source: asset - - name: acquiredfrom - label: reports.asset.acquiredfrom - type: string - source: asset - - name: anticipatedLife - label: reports.asset.anticipatedLife - type: number - source: asset - - name: modeofacquisition - label: reports.asset.modeofacquisition - type: string - source: asset - - name: warrantyexpirydate - label: reports.asset.warrantyexpirydate - type: number - source: asset - - name: defectliability - label: reports.asset.defectliability - type: number - source: asset - - name: defectliabilitymonth - label: reports.asset.defectliabilitymonth - type: number - source: asset - - name: defectliabilityday - label: reports.asset.defectliabilityday - type: string - source: asset - - name: securitydepositretained - label: reports.asset.securitydepositretained - type: number - source: asset - - name: securitydepositrealized - label: reports.asset.securitydepositrealized - type: number - source: asset - - name: dateofcreation - label: reports.asset.dateofcreation - type: string - source: asset - - name: acquisitiondate - label: reports.asset.acquisitiondate - type: string - source: asset - - name: grossvalue - label: reports.asset.grossvalue - type: number - source: asset - - name: originalvalue - label: reports.asset.originalvalue - type: number - source: asset - - name: currentvalue - label: reports.asset.currentvalue - type: number - source: asset - - name: currentamount - label: reports.asset.currentamount - type: number - source: asset - - name: disposalsalevalue - label: reports.asset.disposalsalevalue - type: number - source: asset - - name: disposalvoucherno - label: reports.asset.disposalvoucherno - type: number - source: asset - - name: disposaldate - label: reports.asset.disposaldate - type: string - source: asset - - name: revaluationdate - label: reports.asset.revaluationdate - type: string - source: asset - - name: incrementalrevalsum - label: reports.asset.incrementalrevalsum - type: number - source: asset - - name: decrementalrevalsum - label: reports.asset.decrementalrevalsum - type: number - source: asset - - name: depreciationvalue - label: reports.asset.depreciationvalue - type: number - source: asset - - name: totaldepreciationval - label: reports.asset.totaldepreciationval - type: number - source: asset - - name: name - label: reports.asset.name - type: string - source: asset - - name: code - label: reports.asset.code - type: string - source: asset - - name: ordernumber - label: reports.asset.ordernumber - type: number - - name: warrantyavailable - label: reports.asset.warrantyavailable - type: string - source: asset - - name: wipreferenceno - label: reports.asset.wipreferenceno - type: string - source: asset - - name: floors - label: reports.asset.floors - type: number - source: asset - - name: titledocumentsavailable - label: reports.asset.titledocumentsavailable - type: number - - name: buyername - label: reports.asset.buyername - type: string - source: asset - - name: accumulateddepreciation - label: reports.asset.accumulateddepreciation - type: number - source: asset - - name: openingdate - label: reports.asset.openingdate - type: number - source: asset - - name: fundsourcename - label: reports.asset.fundsource - type: string - source: asset - - name: location - label: reports.asset.location - type: string - source: asset - - name: totalsurveyno - label: reports.asset.totalsurveyno - type: string - source: asset - - name: assetsubcategoryname - label: reports.asset.assetsubcategoryname - type: string - source: asset - - name: assetparentcategoryname - label: reports.asset.assetparentcategoryname - type: string - source: asset - - name: depreciationrate - label: reports.asset.depreciationrate - type: number - source: asset - - name: totalrevalsum - label: reports.asset.totalrevalsum - type: number - source: asset - - name: prevtotaldepreciationval - label: reports.asset.prevtotaldepreciationval - type: string - source: asset - - name: currtotaldepreciationval - label: reports.asset.currtotaldepreciationval - type: string - source: asset - searchParams: - - name: fromDate - label: reports.asset.fromDate - type: date - source: asset - searchClause : AND asset.createddate>=$fromDate - isMandatory: false - - name: toDate - label: reports.asset.toDate - type: date - source: asset - searchClause : AND asset.createddate<=$toDate - isMandatory: false - - name: name - label: reports.asset.name - type: string - isMandatory: false - source: asset - searchClause : AND asset.name=$name - - name: code - label: reports.asset.code - type: string - isMandatory: false - source: asset - searchClause : AND asset.code=$code - - name: assetcategory - label: reports.asset.assetcategory - type: string - isMandatory: false - source: asset - searchClause : AND asset.assetcategory=assetcategory - - name: assetdetail - label: reports.asset.detail - type: number - isMandatory: false - source: asset - searchClause : and asset.code in ($assetdetail) - - query: select asset.name,asset.code,asset.ordernumber,asset.warrantyavailable,asset.wipreferenceno,asset.titledocumentsavailable as titledocumentsavailable,asset.accumulateddepreciation,asset.grossvalue,asset.id,asset.quantity,asset.totalarea,asset.openingdate,asset.fundsource,asset.location,asset.assetCategoryType, - asset.acquiredfrom,asset.anticipatedLife,asset.modeofacquisition,asset.warrantyexpirydate,asset.defectliabilityyear as defectliability,asset.defectliabilitymonth as defectliabilitymonth,(select string_agg(land.surveynumber,',') from egasset_asset_landdetails land where land.isenabled=true and asset.id=land.assetid group by asset.id) as totalsurveyno,coalesce(grossvalue,0.0)-coalesce(accumulateddepreciation,0.0)+coalesce(incrementalrevalsum,0.0)-coalesce(decrementalrevalsum,0.0) as totalrevalsum, - asset.defectliabilityday as defectliabilityday,asset.securitydepositretained, - asset.securitydepositrealized,asset.dateofcreation,asset.acquisitiondate,asset.grossvalue,asset.originalvalue,currentvalue.currentamount,funds.fundsourcename, - disposal.salevalue as disposalsalevalue,disposal.profitlossvoucherreference as disposalvoucherno,disposal.disposaldate,disposal.buyername,disposal.buyeraddress, - revaluation.revaluationdate,revaluation.incrementalrevalsum,revaluation.decrementalrevalsum, - depreciation.depreciationvalue,depreciation.totaldepreciationval,depreciation.currtotaldepreciationval,depreciation.prevtotaldepreciationval,assetsubcategoryname,assetSubCategory.depreciationrate,assetsubcategoryparent, assetparentcategoryname from egasset_asset asset left outer join - (select b.* from egasset_current_value b inner join ( select assetid,tenantid,max(createdtime) as createdtime from egasset_current_value where tenantid = $tenantid group by assetid,tenantid) c - ON b.assetid = c.assetid and b.tenantid=c.tenantid AND c.createdtime=b.createdtime) currentvalue - ON asset.id=currentvalue.assetid AND asset.tenantid=currentvalue.tenantid left outer join egasset_disposal disposal ON asset.id=disposal.assetid AND asset.tenantId = disposal.tenantid left outer join ( select dep1.*,depsum.totaldepreciationval,prevtotaldepreciationval,currtotaldepreciationval from egasset_depreciation dep1 inner join (select assetid,tenantid,max(createdtime) as createdtime from egasset_depreciation where tenantid = $tenantid group by assetid,tenantid ) depmax ON dep1.assetid=depmax.assetid AND dep1.tenantid=depmax.tenantid AND dep1.createdtime=depmax.createdtime inner join (select assetid,tenantid,sum(depreciationvalue) as totaldepreciationval from egasset_depreciation where tenantid = $tenantid group by assetid,tenantid) depsum ON dep1.assetid=depsum.assetid AND dep1.tenantid=depsum.tenantid left outer join (select assetid,tenantid,sum(depreciationvalue) as prevtotaldepreciationval from egasset_depreciation where tenantid = $tenantid AND todate<=(select startingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) group by assetid,tenantid) prevdepsum ON dep1.assetid=prevdepsum.assetid AND dep1.tenantid=prevdepsum.tenantid left outer join (select assetid,tenantid,sum(depreciationvalue) as currtotaldepreciationval from egasset_depreciation where tenantid = $tenantid AND (todate BETWEEN (select startingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) AND (select endingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) ) group by assetid,tenantid) currdepsum ON dep1.assetid=currdepsum.assetid AND dep1.tenantid=currdepsum.tenantid) depreciation ON asset.id=depreciation.assetid AND asset.tenantid=depreciation.tenantid left outer join - (select rev1.*,revinc.incrementalrevalsum,revdec.decrementalrevalsum from egasset_revaluation rev1 inner join - (select assetid,tenantid,max(createddate) as createddate from egasset_revaluation where tenantid = $tenantid - group by assetid,tenantid ) revalmax ON rev1.assetid=revalmax.assetid AND rev1.tenantid=revalmax.tenantid AND rev1.createddate=revalmax.createddate - left outer join - (select assetid,tenantid,sum(revaluationamount) as incrementalrevalsum from egasset_revaluation where tenantid = $tenantid - AND typeofchange='INCREASED' group by assetid,tenantid) revinc ON rev1.assetid=revinc.assetid and rev1.tenantid=revinc.tenantid - left outer join (select assetid,tenantid,sum(revaluationamount) as decrementalrevalsum from egasset_revaluation - where tenantid = $tenantid AND typeofchange='DECREASED' group by assetid,tenantid) revdec - ON rev1.assetid=revdec.assetid and rev1.tenantid=revdec.tenantid - where rev1.tenantid = $tenantid) revaluation - ON asset.tenantid=revaluation.tenantid AND asset.id=revaluation.assetid - left outer join ( select assetSubcategory.name assetsubcategoryname,assetSubcategory.depreciationrate as depreciationrate, - assetSubcategory.parent as assetsubcategoryparent,assetSubcategory.tenantid as tenantid,assetSubcategory.id assetsubcategoryid, - ac.name as assetparentcategoryname,ac.id assetparentcategoryid from (VALUES tbl_assetsubcategory) as assetSubcategory (id,name,depreciationRate,parent,tenantId) - inner join (VALUES tbl_assetcategory) as ac (id,name,tenantId) ON assetSubcategory.parent = ac.id) as - assetsubcategory ON asset.assetcategory::character varying=assetsubcategory.assetsubcategoryid left outer join (select funds.name fundsourcename,funds.code from (VALUES tbl_funds) as funds (id,tenantId,name,code)) as funds ON asset.fundsource=funds.code - where asset.tenantid = $tenantid AND asset.assetCategoryType='MOVABLE' - - -- reportName: AssetSchedule - summary: Asset Schedule Register Report - version: 1.0.0 - moduleName: asset - viewPath: assetScheduleReport - externalService: - - entity: $.MdmsRes.egf-master.FinancialYear - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=egf-master&masterName=FinancialYear&tenantId=$tenantid&filter=%5B%3F(%20%40.startingDate%20%3C%3D%20$currentTime%20%26%26%20%40.endingDate%20%3E%3D%20$currentTime)%5D - keyOrder: startingDate,endingDate - tableName: tbl_financialYears - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+@.parent%21%3Dnull%29%5D - keyOrder: id,name,depreciationRate,parent,tenantId - tableName: tbl_assetsubcategory - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.parent%3D%3Dnull%29%5D - keyOrder: id,name,tenantId - tableName: tbl_assetcategory - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid - keyOrder: id,name,tenantId,depreciationRate,parent - tableName: tbl_assetcategories - stateData: true - sourceColumns: - - name: assetparentcategoryname - label: reports.asset.assetparentcategoryname - type: string - source: asset - - name: assetsubcategoryname - label: reports.asset.assetsubcategoryname - type: string - source: asset - - name: name - label: reports.asset.schedulename - type: string - source: asset - - name: depreciationrate - label: reports.asset.depreciationrate - type: string - source: asset - - name: code - label: reports.asset.code - type: string - source: asset - - name: revaluationreserveaccount - label: reports.asset.revaluationreserveaccount - type: string - source: asset - - name: previousfynetblock - label: reports.asset.currentstartnetblock - type: number - source: asset - - name: plusrevalsum - label: reports.asset.plusrevalsum - type: string - source: asset - - name: minusrevalsum - label: reports.asset.minusrevalsum - type: number - source: asset - - name: revaltotal - label: reports.asset.revaltotal - type: number - source: asset - - name: accumulateddepreciationaccount - label: reports.asset.accumulateddepreciationaccount - type: string - source: asset - - name: startdepval - label: reports.asset.startdepval - type: number - source: asset - - name: currdepsum - label: reports.asset.currdepsum - type: number - source: asset - - name: totaldepsum - label: reports.asset.totaldepsum - type: number - source: asset - - name: endcurrentamount - label: reports.asset.endcurrentamount - type: string - source: asset - - name: previousfynetblock - label: reports.asset.previousfynetblock - type: string - source: asset - searchParams: - - name: assetcategorytype - label: reports.asset.assetcategorytype - isMandatory: false - type: singlevaluelist - pattern: 'list://IMMOVABLE:IMMOVABLE,MOVABLE:MOVABLE,LAND:LAND' - source: asset - - name: assetcategory - label: reports.asset.assetCategory - isMandatory: false - type: url - pattern: /egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F(%20%40.assetCategoryType%3D%3D%27{assetcategorytype}%27%20%26%26%20%40.isAssetAllow%3D%3Dfalse)%5D|$.MdmsRes.ASSET.AssetCategory.*.id|$.MdmsRes.ASSET.AssetCategory.*.name - source: asset - wrapper: true - stateData: true - searchClause : - - name: assetsubcategory - label: reports.asset.assetSubCategory - isMandatory: false - type: url - pattern: /egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F(%20%40.parent%3D%3D{assetcategory})%5D|$.MdmsRes.ASSET.AssetCategory.*.id|$.MdmsRes.ASSET.AssetCategory.*.name - source: asset - stateData: true - wrapper: true - searchClause : AND asset.assetcategory=$assetsubcategory - - name: department - label: reports.asset.departmentCode - isMandatory: false - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid|$..id|$..name - source: asset - wrapper: true - stateData: true - searchClause : AND asset.departmentcode=$department - - name: code - label: reports.asset.code - type: string - isMandatory: false - source: asset - searchClause : AND asset.code in ($code) - - name: name - label: reports.asset.name - type: string - isMandatory: false - source: asset - searchClause : AND asset.name=$name - - name: originalvaluefrom - label: reports.asset.originalvaluefrom - type: number - source: asset - searchClause : AND asset.originalvalue>=$originalvaluefrom - isMandatory: false - - name: originalvalueto - label: reports.asset.originalvalueto - type: number - source: asset - searchClause : AND asset.originalvalue<=$originalvalueto - isMandatory: false - - name: fromDate - label: reports.asset.fromDate - type: date - source: asset - searchClause : AND asset.createddate>=$fromDate - isMandatory: false - - name: toDate - label: reports.asset.toDate - type: date - source: asset - searchClause : AND asset.createddate<=$toDate - isMandatory: false - - - query: select asset.code,asset.assetcategory,asset.name,asset.originalvalue,asset.revaluationreserveaccount, - asset.accumulateddepreciationaccount,asset.assetaccount,asset.accumulateddepreciation,previousfynetblock,endcurrentamount, - plusrevalsum,minusrevalsum,coalesce(prevdepsum,0)+coalesce(asset.accumulateddepreciation,0) as startdepval, - coalesce(previousfynetblock,0.0)+coalesce(plusrevalsum,0.0)-coalesce(minusRevalsum,0.0) as revaltotal,prevdepsum, currdepsum, - coalesce(prevdepsum,0.0)+coalesce(currdepsum,0.0)+coalesce(asset.accumulateddepreciation,0.0) as totaldepsum,assetsubcategoryname,assetSubCategory.depreciationrate,assetsubcategoryparent, - assetparentcategoryname from egasset_asset asset inner join (select distinct(current.assetid),current.tenantid,current.transactiondate,previousfynetblock,current.createdtime, - endcurrentamount,plusrevalsum,minusrevalsum ,previousfynetblock+plusrevalsum-minusRevalsum as revaltotal,prevdepsum,currdepsum, - prevdepsum+currdepsum as totaldepsum from egasset_current_value current inner join (select value.assetid,currentamount as - endcurrentamount,value.tenantid,value.transactiondate,value.createdtime from egasset_current_value value inner join (select max(createdtime) as createdtime, - assetid,tenantid from egasset_current_value where tenantid=$tenantid AND transactiondate<=(select endingDate::bigint::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) - GROUP BY assetid,tenantid) as maxvalue ON value.assetid=maxvalue.assetid and value.tenantid=maxvalue.tenantid AND - value.createdtime=maxvalue.createdtime) endcurrent ON current.assetid=endcurrent.assetid AND current.tenantid= - endcurrent.tenantid AND current.createdtime=endcurrent.createdtime left outer join (select value.assetid,currentamount as - previousfynetblock,value.tenantid,value.transactiondate,value.createdtime from egasset_current_value value inner join (select max(createdtime) as - createdtime,assetid,tenantid from egasset_current_value where tenantid=$tenantid AND transactiondate<=(select startingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) GROUP BY assetid,tenantid ) as maxvalue ON value.assetid=maxvalue.assetid and - value.tenantid=maxvalue.tenantid AND value.createdtime=maxvalue.createdtime) prevyearcurrent ON current.assetid= - prevyearcurrent.assetid AND current.tenantid=prevyearcurrent.tenantid AND current.createdtime=prevyearcurrent.createdtime - left outer join (select COALESCE(sum(revaluationamount),0.0) plusRevalsum,assetid,tenantid from egasset_revaluation where - tenantid=$tenantid AND typeofchange='INCREASED' AND (revaluationdate BETWEEN (select startingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) AND (select endingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate))) - GROUP BY assetid,tenantid ) plusreval ON current.assetid=plusreval.assetid AND current.tenantid= - plusreval.tenantid left outer join (select sum(revaluationamount) minusRevalsum,assetid,tenantid from egasset_revaluation where - tenantid=$tenantid AND typeofchange='DECREASED' AND (revaluationdate between (select startingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) and (select endingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate))) GROUP BY assetid,tenantid ) minusreval ON current.assetid=minusreval.assetid AND current.tenantid= - minusreval.tenantid left outer join (select sum(depreciationvalue) prevdepsum,assetid,tenantid from egasset_depreciation where - tenantid=$tenantid AND todate<(select startingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) GROUP BY assetid,tenantid ) prevdep ON current.assetid=prevdep. - assetid AND current.tenantid=prevdep.tenantid left outer join (select sum(depreciationvalue) currdepsum,assetid,tenantid from - egasset_depreciation where tenantid=$tenantid AND (todate between (select startingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate)) and (select endingDate::bigint from (VALUES tbl_financialYears) as financialYears (startingDate,endingDate))) GROUP BY assetid,tenantid ) currdep ON current.assetid=currdep.assetid AND current.tenantid= - currdep.tenantid) as transactions ON asset.id=transactions.assetid AND asset.tenantid=transactions.tenantid - left outer join ( select assetSubcategory.name as assetsubcategoryname,CASE WHEN assetSubcategory.depreciationrate='null' THEN 'NA' WHEN assetSubcategory.depreciationrate='' THEN 'NA' ELSE assetSubcategory.depreciationrate END, - assetSubcategory.parent as assetsubcategoryparent,assetSubcategory.tenantid as tenantid,assetSubcategory.id assetsubcategoryid, - ac.name as assetparentcategoryname from (VALUES tbl_assetsubcategory) as assetSubcategory (id,name,depreciationRate,parent,tenantId) - inner join (VALUES tbl_assetcategories) as ac (id,name,tenantId) ON assetSubcategory.parent = ac.id ) as - assetsubcategory ON asset.assetcategory::character varying=assetsubcategory.assetsubcategoryid - WHERE asset.tenantid=$tenantid - -- reportName: LandRegister - summary: Land Register Report - version: 1.0.0 - moduleName: asset - viewPath: landRegisterReport - selectiveDownload: true - externalService: - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27LAND%27++%26%26+%40.isAssetAllow%3D%3Dtrue%29%5D - keyOrder: id,name,depreciationRate,parent,tenantId - tableName: tbl_assetsubcategory - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27LAND%27++%26%26+%40.isAssetAllow%3D%3Dfalse%29%5D - keyOrder: id,name,tenantId - tableName: tbl_assetcategory - stateData: true - sourceColumns: - - name: name - label: reports.asset.name - type: string - source: asset - - name: code - label: reports.asset.code - type: string - linkedReport: - reportName: LandRegisterDetail - linkedColumn: _parent?reportName={reportName}&assetdetail={code} - source: asset - - name: dateofcreation - label: reports.asset.dateofcreation - type: epoch - source: asset - - name: grossvalue - label: reports.asset.grossvalue - type: number - source: asset - - name: originalvalue - label: reports.asset.originalvalue - type: number - source: asset - searchParams: - - name: assetcategory - label: reports.asset.assetCategory - isMandatory: false - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F(%20%40.assetCategoryType%3D%3D%27LAND%27%20%26%26%20%40.isAssetAllow%3D%3Dfalse)%5D|$.MdmsRes.ASSET.AssetCategory.*.id|$.MdmsRes.ASSET.AssetCategory.*.name - source: asset - wrapper: true - stateData: true - searchClause : AND assetsubcategory.assetsubcategoryparent =$assetcategory - - name: assetsubcategory - label: reports.asset.assetSubCategory - isMandatory: false - type: url - pattern: /egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F(%20%40.parent%3D%3D{assetcategory})%5D|$.MdmsRes.ASSET.AssetCategory.*.id|$.MdmsRes.ASSET.AssetCategory.*.name - source: asset - wrapper: true - stateData: true - searchClause : AND asset.assetcategory=$assetsubcategory - - name: department - label: reports.asset.departmentCode - isMandatory: false - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid|$..code|$..name - source: asset - wrapper: true - stateData: true - searchClause : AND asset.departmentcode=$department - - name: code - label: reports.asset.code - type: string - isMandatory: false - source: asset - searchClause : AND asset.code in ($code) - - name: name - label: reports.asset.name - type: string - isMandatory: false - source: asset - searchClause : AND asset.name=$name - - name: originalvaluefrom - label: reports.asset.originalvaluefrom - type: number - source: asset - searchClause : AND asset.originalvalue>=$originalvaluefrom - isMandatory: false - - name: originalvalueto - label: reports.asset.originalvalueto - type: number - source: asset - searchClause : AND asset.originalvalue<=$originalvalueto - isMandatory: false - - name: fromDate - label: reports.asset.fromDate - type: date - source: asset - searchClause : AND asset.createddate>=$fromDate - isMandatory: false - - name: toDate - label: reports.asset.toDate - type: date - source: asset - searchClause : AND asset.createddate<=$toDate - isMandatory: false - - - - - query: select asset.name,asset.code,asset.ordernumber,asset.warrantyavailable,asset.wipreferenceno,asset.titledocumentsavailable as titledocumentsavailable,asset.accumulateddepreciation,asset.grossvalue,asset.id,asset.quantity,asset.totalarea,asset.openingdate,asset.fundsource,asset.location,(select string_agg(land.surveynumber,',') from egasset_asset_landdetails land where land.isenabled=true and asset.id=land.assetid group by asset.id) as totalsurveyno, - asset.acquiredfrom,asset.anticipatedLife,asset.modeofacquisition,asset.warrantyexpirydate,asset.defectliabilityyear as defectliability,asset.defectliabilitymonth as defectliabilitymonth,asset.assetCategoryType, - asset.defectliabilityday as defectliabilityday,asset.securitydepositretained, - asset.securitydepositrealized,asset.dateofcreation,asset.acquisitiondate,asset.grossvalue,asset.originalvalue,currentvalue.currentamount, - disposal.salevalue as disposalsalevalue,disposal.profitlossvoucherreference as disposalvoucherno,disposal.disposaldate,disposal.buyername,disposal.buyeraddress, - revaluation.revaluationdate,revaluation.incrementalrevalsum,revaluation.decrementalrevalsum,assetsubcategoryname,assetSubCategory.depreciationrate,assetsubcategoryparent, - assetparentcategoryname - from egasset_asset asset left outer join - (select b.* from egasset_current_value b inner join ( select assetid,tenantid,max(createdtime) as createdtime from egasset_current_value - where tenantid = $tenantid group by assetid,tenantid) c - ON b.assetid = c.assetid and b.tenantid=c.tenantid AND c.createdtime=b.createdtime) currentvalue - ON asset.id=currentvalue.assetid AND asset.tenantid=currentvalue.tenantid - left outer join egasset_disposal disposal ON asset.id=disposal.assetid AND asset.tenantId = disposal.tenantid - left outer join - (select rev1.*,revinc.incrementalrevalsum,revdec.decrementalrevalsum from egasset_revaluation rev1 inner join - (select assetid,tenantid,max(createddate) as createddate from egasset_revaluation where tenantid = $tenantid - group by assetid,tenantid ) revalmax ON rev1.assetid=revalmax.assetid AND rev1.tenantid=revalmax.tenantid AND rev1.createddate=revalmax.createddate - left outer join - (select assetid,tenantid,sum(revaluationamount) as incrementalrevalsum from egasset_revaluation where tenantid = $tenantid - AND typeofchange='INCREASED' group by assetid,tenantid) revinc ON rev1.assetid=revinc.assetid and rev1.tenantid=revinc.tenantid - left outer join (select assetid,tenantid,sum(revaluationamount) as decrementalrevalsum from egasset_revaluation - where tenantid = $tenantid AND typeofchange='DECREASED' group by assetid,tenantid) revdec - ON rev1.assetid=revdec.assetid and rev1.tenantid=revdec.tenantid - where rev1.tenantid = $tenantid) revaluation - ON asset.tenantid=revaluation.tenantid AND asset.id=revaluation.assetid - left outer join ( select assetSubcategory.name assetsubcategoryname,assetSubcategory.depreciationrate as depreciationrate, - assetSubcategory.parent as assetsubcategoryparent,assetSubcategory.tenantid as tenantid,assetSubcategory.id assetsubcategoryid, - ac.name as assetparentcategoryname from (VALUES tbl_assetsubcategory) as assetSubcategory (id,name,depreciationRate,parent,tenantId) - inner join (VALUES tbl_assetcategory) as ac (id,name,tenantId) ON assetSubcategory.parent = ac.id ) as - assetsubcategory ON asset.assetcategory::character varying=assetsubcategory.assetsubcategoryid - where asset.tenantid = $tenantid AND asset.assetCategoryType='LAND' - - -- reportName: LandRegisterDetail - summary: Land Register Report - version: 1.0.0 - moduleName: asset - viewPath: landRegisterReport - selectiveDownload: true - externalService: - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27LAND%27++%26%26+%40.isAssetAllow%3D%3Dtrue%29%5D - keyOrder: id,name,depreciationRate,parent,tenantId - tableName: tbl_assetsubcategory - stateData: true - - entity: $.MdmsRes.ASSET.AssetCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ASSET&masterName=AssetCategory&tenantId=$tenantid&filter=%5B%3F%28+%40.assetCategoryType%3D%3D%27LAND%27++%26%26+%40.isAssetAllow%3D%3Dfalse%29%5D - keyOrder: id,name,tenantId - tableName: tbl_assetcategory - stateData: true - - entity: $.MdmsRes.egf-master.Fund - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=egf-master&masterName=Fund&tenantId=$tenantid - keyOrder: id,tenantId,name,code - tableName: tbl_funds - stateData: true - sourceColumns: - - name: id - label: reports.asset.id - type: number - source: asset - - name: quantity - label: reports.asset.quantity - type: number - source: asset - - name: plintharea - label: reports.asset.plintharea - type: number - source: asset - showColumn: true - - name: cubiccontents - label: reports.asset.cubiccontents - type: string - source: asset - - name: landsurveyno - label: reports.asset.landsurveyno - type: string - source: asset - - name: length - label: reports.asset.length - type: number - source: asset - - name: width - label: reports.asset.width - type: number - source: asset - - name: height - label: reports.asset.height - type: number - source: asset - - name: totalarea - label: reports.asset.totalarea - type: number - source: asset - - name: acquiredfrom - label: reports.asset.acquiredfrom - type: string - source: asset - - name: anticipatedLife - label: reports.asset.anticipatedLife - type: number - source: asset - - name: modeofacquisition - label: reports.asset.modeofacquisition - type: string - source: asset - - name: warrantyexpirydate - label: reports.asset.warrantyexpirydate - type: number - source: asset - - name: defectliability - label: reports.asset.defectliability - type: number - source: asset - - name: defectliabilitymonth - label: reports.asset.defectliabilitymonth - type: number - source: asset - - name: defectliabilityday - label: reports.asset.defectliabilityday - type: string - source: asset - - name: securitydepositretained - label: reports.asset.securitydepositretained - type: number - source: asset - - name: securitydepositrealized - label: reports.asset.securitydepositrealized - type: number - source: asset - - name: dateofcreation - label: reports.asset.dateofcreation - type: string - source: asset - - name: acquisitiondate - label: reports.asset.acquisitiondate - type: string - source: asset - - name: grossvalue - label: reports.asset.grossvalue - type: number - source: asset - - name: originalvalue - label: reports.asset.originalvalue - type: number - source: asset - - name: currentvalue - label: reports.asset.currentvalue - type: number - source: asset - - name: currentamount - label: reports.asset.currentamount - type: number - source: asset - - name: disposalsalevalue - label: reports.asset.disposalsalevalue - type: number - source: asset - - name: disposalvoucherno - label: reports.asset.disposalvoucherno - type: number - source: asset - - name: disposaldate - label: reports.asset.disposaldate - type: string - source: asset - - name: revaluationdate - label: reports.asset.revaluationdate - type: string - source: asset - - name: incrementalrevalsum - label: reports.asset.incrementalrevalsum - type: number - source: asset - - name: decrementalrevalsum - label: reports.asset.decrementalrevalsum - type: number - source: asset - - name: depreciationvalue - label: reports.asset.depreciationvalue - type: number - source: asset - - name: totaldepreciationval - label: reports.asset.totaldepreciationval - type: number - source: asset - - name: name - label: reports.asset.name - type: string - source: asset - - name: code - label: reports.asset.code - type: string - source: asset - - name: ordernumber - label: reports.asset.ordernumber - type: number - - name: warrantyavailable - label: reports.asset.warrantyavailable - type: string - source: asset - - name: wipreferenceno - label: reports.asset.wipreferenceno - type: string - source: asset - - name: floors - label: reports.asset.floors - type: number - source: asset - - name: titledocumentsavailable - label: reports.asset.titledocumentsavailable - type: number - - name: buyername - label: reports.asset.buyername - type: string - source: asset - - name: accumulateddepreciation - label: reports.asset.accumulateddepreciation - type: number - source: asset - - name: openingdate - label: reports.asset.openingdate - type: number - source: asset - - name: fundsourcename - label: reports.asset.fundsource - type: string - source: asset - - name: location - label: reports.asset.location - type: string - source: asset - - name: totalsurveyno - label: reports.asset.totalsurveyno - type: string - source: asset - - name: assetattributes - label: reports.asset.assetattributes - type: string - source: asset - - name: assetsubcategoryname - label: reports.asset.assetsubcategoryname - type: string - source: asset - - name: assetparentcategoryname - label: reports.asset.assetparentcategoryname - type: string - source: asset - - name: depreciationrate - label: reports.asset.depreciationrate - type: number - source: asset - - name: totalrevalsum - label: reports.asset.totalrevalsum - type: number - source: asset - searchParams: - - name: fromDate - label: reports.asset.fromDate - type: date - source: asset - searchClause : AND asset.createddate>=$fromDate - isMandatory: false - - name: toDate - label: reports.asset.toDate - type: date - source: asset - searchClause : AND asset.createddate<=$toDate - isMandatory: false - - name: name - label: reports.asset.name - type: string - isMandatory: false - source: asset - searchClause : AND asset.name=$name - - name: code - label: reports.asset.code - type: string - isMandatory: false - source: asset - searchClause : AND asset.code=$code - - name: assetdetail - label: reports.asset.detail - type: number - isMandatory: false - source: asset - searchClause : and asset.code in ($assetdetail) - - query: select asset.name,asset.code,asset.ordernumber,asset.warrantyavailable,asset.wipreferenceno,asset.titledocumentsavailable as titledocumentsavailable,asset.accumulateddepreciation,asset.grossvalue,asset.id,asset.quantity,asset.totalarea,asset.openingdate,asset.fundsource,asset.location,(select string_agg(land.surveynumber,',') from egasset_asset_landdetails land where land.isenabled=true and asset.id=land.assetid group by asset.id) as totalsurveyno,asset.assetattributes,funds.fundsourcename, - asset.acquiredfrom,asset.anticipatedLife,asset.modeofacquisition,asset.warrantyexpirydate,asset.defectliabilityyear as defectliability,asset.defectliabilitymonth as defectliabilitymonth,asset.assetCategoryType,coalesce(grossvalue,0.0)-coalesce(accumulateddepreciation,0.0)+coalesce(incrementalrevalsum,0.0)-coalesce(decrementalrevalsum,0.0) as totalrevalsum, - asset.defectliabilityday as defectliabilityday,asset.securitydepositretained, - asset.securitydepositrealized,asset.dateofcreation,asset.acquisitiondate,asset.grossvalue,asset.originalvalue,currentvalue.currentamount, - disposal.salevalue as disposalsalevalue,disposal.profitlossvoucherreference as disposalvoucherno,disposal.disposaldate,disposal.buyername,disposal.buyeraddress, - revaluation.revaluationdate,revaluation.incrementalrevalsum,revaluation.decrementalrevalsum,assetsubcategoryname,assetSubCategory.depreciationrate,assetsubcategoryparent, - assetparentcategoryname - from egasset_asset asset left outer join - (select b.* from egasset_current_value b inner join ( select assetid,tenantid,max(createdtime) as createdtime from egasset_current_value - where tenantid = $tenantid group by assetid,tenantid) c - ON b.assetid = c.assetid and b.tenantid=c.tenantid AND c.createdtime=b.createdtime) currentvalue - ON asset.id=currentvalue.assetid AND asset.tenantid=currentvalue.tenantid - left outer join egasset_disposal disposal ON asset.id=disposal.assetid AND asset.tenantId = disposal.tenantid - left outer join - (select rev1.*,revinc.incrementalrevalsum,revdec.decrementalrevalsum from egasset_revaluation rev1 inner join - (select assetid,tenantid,max(createddate) as createddate from egasset_revaluation where tenantid = $tenantid - group by assetid,tenantid ) revalmax ON rev1.assetid=revalmax.assetid AND rev1.tenantid=revalmax.tenantid AND rev1.createddate=revalmax.createddate - left outer join - (select assetid,tenantid,sum(revaluationamount) as incrementalrevalsum from egasset_revaluation where tenantid = $tenantid - AND typeofchange='INCREASED' group by assetid,tenantid) revinc ON rev1.assetid=revinc.assetid and rev1.tenantid=revinc.tenantid - left outer join (select assetid,tenantid,sum(revaluationamount) as decrementalrevalsum from egasset_revaluation - where tenantid = $tenantid AND typeofchange='DECREASED' group by assetid,tenantid) revdec - ON rev1.assetid=revdec.assetid and rev1.tenantid=revdec.tenantid - where rev1.tenantid = $tenantid) revaluation - ON asset.tenantid=revaluation.tenantid AND asset.id=revaluation.assetid - left outer join ( select assetSubcategory.name assetsubcategoryname,assetSubcategory.depreciationrate as depreciationrate, - assetSubcategory.parent as assetsubcategoryparent,assetSubcategory.tenantid as tenantid,assetSubcategory.id assetsubcategoryid, - ac.name as assetparentcategoryname from (VALUES tbl_assetsubcategory) as assetSubcategory (id,name,depreciationRate,parent,tenantId) - inner join (VALUES tbl_assetcategory) as ac (id,name,tenantId) ON assetSubcategory.parent = ac.id ) as - assetsubcategory ON asset.assetcategory::character varying=assetsubcategory.assetsubcategoryid left outer join (select funds.name fundsourcename,funds.code from (VALUES tbl_funds) as funds (id,tenantId,name,code)) as funds ON asset.fundsource=funds.code - where asset.tenantid = $tenantid AND asset.assetCategoryType='LAND' diff --git a/reports/config/birthcount-reports.yml b/reports/config/birthcount-reports.yml deleted file mode 100644 index 5028a700..00000000 --- a/reports/config/birthcount-reports.yml +++ /dev/null @@ -1,215 +0,0 @@ -ReportDefinitions: -- reportName: BirthRecordsCountReport - summary: Count of Birth Records - version: 1.0.0 - moduleName: rainmaker-bnd - sourceColumns: - - name: tenantid - label: BND_APPL_CANT - type: string - source: bnd - total: false - - name: totalRecords - label: EMP_BND_TOTALRECORDS - type: string - source: bnd - total: true - searchParams: - - name: fromDate - label: BND_FROM_DATE - type: epoch - source: bnd - isMandatory: false - searchClause: AND createdtime >= $fromDate - - name: toDate - label: BND_TO_DATE - type: epoch - source: bnd - isMandatory: false - searchClause: AND createdtime <= $toDate - - name: ulb - label: BND_APPL_CANT - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: bnd - wrapper: true - isMandatory: false - searchClause: AND tenantid = $ulb - query: SELECT CASE WHEN tenantid = 'pb' THEN 'Punjab' ELSE initcap(split_part(tenantid,'.',2)) END AS tenantid, COUNT(CASE WHEN createdby='import-user' OR lastmodifiedby='import-user' THEN createdby ELSE NULL END) AS LegacyRecords, COUNT(CASE WHEN createdby!='import-user' OR lastmodifiedby!='import-user' THEN createdby ELSE NULL END) AS NonLegacyRecords, count(*) as TotalRecords FROM eg_birth_dtls where tenantid != 'pb.testing' - groupby: GROUP BY tenantid - orderby: order by tenantid - -- reportName: DeathRecordsCountReport - summary: Count of Death Records - version: 1.0.0 - moduleName: rainmaker-bnd - sourceColumns: - - name: tenantid - label: BND_APPL_CANT - type: string - source: bnd - total: false - - name: totalRecords - label: EMP_BND_TOTALRECORDS - type: string - source: bnd - total: true - searchParams: - - name: fromDate - label: BND_FROM_DATE - type: epoch - source: bnd - isMandatory: false - searchClause: AND createdtime >= $fromDate - - name: toDate - label: BND_TO_DATE - type: epoch - source: bnd - isMandatory: false - searchClause: AND createdtime <= $toDate - - name: ulb - label: BND_APPL_CANT - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: bnd - wrapper: true - isMandatory: false - searchClause: AND tenantid = $ulb - query: SELECT CASE WHEN tenantid = 'pb' THEN 'Punjab' ELSE initcap(split_part(tenantid,'.',2)) END AS tenantid, COUNT(CASE WHEN createdby='import-user' OR lastmodifiedby='import-user' THEN createdby ELSE NULL END) AS LegacyRecords, COUNT(CASE WHEN createdby!='import-user' OR lastmodifiedby!='import-user' THEN createdby ELSE NULL END) AS NonLegacyRecords, count(*) as TotalRecords FROM eg_death_dtls where tenantid != 'pb.testing' - groupby: GROUP BY tenantid - orderby: order by tenantid - -- reportName: BirthRecordsCountReportCBLevel - summary: Count of Birth Records - version: 1.0.0 - moduleName: rainmaker-bnd - sourceColumns: - - name: tenantid - label: BND_APPL_CANT - type: string - source: bnd - total: false - - name: totalRecords - label: EMP_BND_TOTALRECORDS - type: string - source: bnd - total: true - searchParams: - - name: fromDate - label: BND_FROM_DATE - type: epoch - source: bnd - isMandatory: false - searchClause: AND createdtime >= $fromDate - - name: toDate - label: BND_TO_DATE - type: epoch - source: bnd - isMandatory: false - searchClause: AND createdtime <= $toDate - query: SELECT CASE WHEN tenantid = 'pb' THEN 'Punjab' ELSE initcap(split_part(tenantid,'.',2)) END AS tenantid, COUNT(CASE WHEN createdby='import-user' OR lastmodifiedby='import-user' THEN createdby ELSE NULL END) AS LegacyRecords, COUNT(CASE WHEN createdby!='import-user' OR lastmodifiedby!='import-user' THEN createdby ELSE NULL END) AS NonLegacyRecords, count(*) as TotalRecords FROM eg_birth_dtls where tenantid = $tenantid - groupby: GROUP BY tenantid - orderby: order by tenantid - -- reportName: DeathRecordsCountReportCBLevel - summary: Count of Death Records - version: 1.0.0 - moduleName: rainmaker-bnd - sourceColumns: - - name: tenantid - label: BND_APPL_CANT - type: string - source: bnd - total: false - - name: totalRecords - label: EMP_BND_TOTALRECORDS - type: string - source: bnd - total: true - searchParams: - - name: fromDate - label: BND_FROM_DATE - type: epoch - source: bnd - isMandatory: false - searchClause: AND createdtime >= $fromDate - - name: toDate - label: BND_TO_DATE - type: epoch - source: bnd - isMandatory: false - searchClause: AND createdtime <= $toDate - query: SELECT CASE WHEN tenantid = 'pb' THEN 'Punjab' ELSE initcap(split_part(tenantid,'.',2)) END AS tenantid, COUNT(CASE WHEN createdby='import-user' OR lastmodifiedby='import-user' THEN createdby ELSE NULL END) AS LegacyRecords, COUNT(CASE WHEN createdby!='import-user' OR lastmodifiedby!='import-user' THEN createdby ELSE NULL END) AS NonLegacyRecords, count(*) as TotalRecords FROM eg_death_dtls where tenantid = $tenantid - groupby: GROUP BY tenantid - orderby: order by tenantid - -- reportName: BirthAndDeathCertificatePayment - summary: Birth and Death Certificate Paid and Downloaded Records - version: 1.0.0 - moduleName: rainmaker-bnd - sourceColumns: - - name: servicetype - label: BND_SERVICE_TYPE - type: string - source: bnd - total: false - - name: receiptnumber - label: BND_RECEIPT_NO - type: string - source: bnd - total: false - - name: paymentdate - label: BND_PAYMENT_DATE - type: string - source: bnd - total: false - - name: consumer_code - label: BND_APPL_NO - type: string - source: bnd - total: false - - name: paidby - label: BND_CONSUMER_NAME - type: string - source: bnd - total: false - - name: payername - label: BND_PAYER_NAME - type: string - source: bnd - total: false - - name: mobilenumber - label: BND_PAYER_CONTACT - type: string - source: bnd - total: false - - name: paymentmode - label: BND_PAYMENT_MODE - type: string - source: bnd - total: false - - name: txn_amount - label: BND_PAID_AMOUNT - type: string - source: bnd - total: true - - name: transactionnumber - label: BND_TRANSACTION_ID - type: string - source: bnd - total: false - searchParams: - - name: fromDate - label: BND_FROM_DATE - type: epoch - source: bnd - isMandatory: false - searchClause: AND pay.createdtime >= $fromDate - - name: toDate - label: BND_TO_DATE - type: epoch - source: bnd - isMandatory: false - searchClause: AND pay.createdtime <= $toDate - query: select case when paydtl.businessservice = 'BIRTH_CERT' THEN 'Birth' when paydtl.businessservice = 'DEATH_CERT' THEN 'Death' END as servicetype ,paydtl.receiptnumber, To_char((To_timestamp(pay.transactiondate / 1000) at time Zone 'Asia/Kolkata'), 'DD/MM/YYYY') as paymentdate, txn.consumer_code, pay.paidby, pay.payername, pay.mobilenumber, pay.paymentmode, CAST(txn.txn_amount as text) txn_amount, pay.transactionnumber from egcl_payment pay left join egcl_paymentdetail paydtl ON paydtl.paymentid = pay.id left join eg_pg_transactions txn on txn.txn_id = pay.transactionnumber where paydtl.businessservice in ('BIRTH_CERT','DEATH_CERT') and pay.tenantid = $tenantid - orderby: order by pay.createdtime desc \ No newline at end of file diff --git a/reports/config/citizen-reports.yml b/reports/config/citizen-reports.yml deleted file mode 100644 index 47098b07..00000000 --- a/reports/config/citizen-reports.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -ReportDefinitions: -- reportName: CitizenService - summary: Citizen Services Report - version: 1.0.0 - moduleName: citizen - sourceColumns: - - name: receiptNo - label: reports.citizen.receiptno - type: string - source: citizen - - name: receiptDate - label: reports.citizen.receiptdate - type: number - source: citizen - - name: totalAmount - label: reports.citizen.totalamount - type: number - source: citizen - - name: payeeName - label: reports.citizen.payeename - type: number - source: citizen - - name: consumerAddress - label: reports.citizen.consumeraddress - type: number - source: citizen - - name: print - label: reports.citizen.print - type: number - source: citizen - linkedReport: - reportName: ReceiptDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - searchParams: - - name: consumerno - label: reports.citizen.consumerno - type: string - source: citizen - isMandatory: false - searchClause: and consumerNo = $consumerno - - name: receiptno - label: reports.citizen.receiptno - type: string - source: citizen - isMandatory: false - searchClause: and receiptno = $receiptno - query: select receiptNo,receiptDate,totalAmount,payeeName,consumerAddress,'print' as print from egcl_legacy_receipt_header where tenantid = $tenantid - diff --git a/reports/config/common-reports.yml b/reports/config/common-reports.yml deleted file mode 100644 index 98f4b55f..00000000 --- a/reports/config/common-reports.yml +++ /dev/null @@ -1,68 +0,0 @@ ---- -ReportDefinitions: -- reportName: CommonInbox - summary: Common Inbox - version: 1.0.0 - moduleName: common - sourceColumns: - - name: createddate - label: reports.common.createddate - type: epoch - source: common - - name: sendername - label: reports.common.sendername - type: string - source: egpgr_router - - name: natureoftask - label: reports.common.natureoftask - type: string - source: common - - name: status - label: reports.common.status - type: string - source: common - - name: details - label: reports.common.details - type: string - source: common - - name: url - label: reports.common.url - type: string - source: common - searchParams: - - name: positionId - label: reports.pgr.complaintcategorytype - type: number - source: seva - - name: complainttype - label: reports.pgr.complainttype - type: number - source: seva - query: select * from ( - (select sub.createddate as createddate,sub.name as senderName,'Grievance' as natureoftask ,sub_a.code as status, - 'Complaint No.'|| sub.crn||' regarding '|| - (select name from egpgr_complainttype where code =sub.servicecode AND tenantid=sub.tenantid) ||' in '|| sub_a.code as details, - replace('_url?/pgr/viewGrievance/:srn',':srn',replace(sub.crn, '/', '%2F')::character varying) as url from submission sub inner join submission_attribute sub_a on sub.crn = sub_a.crn where - sub_a.key in('systemStatus','status') and sub_a.code in ('REGISTERED','FORWARDED','PROCESSING','REOPENED','ONHOLD') and sub.positionid IN ($positionId) and sub.tenantid = $tenantid order by createdDate desc) - union - (select createddate as createddate,sendername as sendername,natureoftask as natureoftask,value as status, abstractestimate.abstractestimatenumber::character varying ||':'||comments as details, - replace('_url?/non-framework/works/transaction/update/abstractEstimate/:id', ':id', replace(abstractestimate.abstractestimatenumber, '/', '%2F')::character varying) as url from EG_WF_STATES states JOIN - egw_abstractestimate abstractestimate ON abstractestimate.stateid = states.id::character varying where type = 'AbstractEstimate' and owner_pos IN ($positionId) - and states.tenantId=$tenantid and states.status<>2 order by states.createdDate desc) - union - (select createddate as createddate,sendername as sendername,natureoftask as natureoftask,value as status, abstractestimate.abstractestimatenumber::character varying ||':'||comments as details, - replace('_url?/non-framework/works/transaction/update/abstractEstimate/:id', ':id', replace(abstractestimate.abstractestimatenumber, '/', '%2F')::character varying) as url from EG_WF_STATES states JOIN - egw_abstractestimate abstractestimate ON abstractestimate.stateid = states.id::character varying where type = 'SpilloverAbstractEstimate' and owner_pos IN ($positionId) - and states.tenantId=$tenantid and states.status<>2 order by states.createdDate desc) - union - (select createddate as createddate,sendername as sendername,natureoftask as natureoftask,value as status, detailedestimate.id::character varying ||':'||comments as details, - replace('_url?/non-framework/works/transaction/viewDetailedEstimate/:id', ':id', replace(detailedestimate.estimatenumber, '/', '%2F')::character varying) as url from EG_WF_STATES states JOIN - egw_detailedestimate detailedestimate ON detailedestimate.stateid = states.id::character varying where type = 'DetailedEstimate' and owner_pos IN ($positionId) - and states.tenantId=$tenantid and states.status<>2 order by states.createdDate desc) - union - (select createddate as createddate,sendername as sendername,natureoftask as natureoftask,value as status, detailedestimate.id::character varying ||':'||comments as details, - replace('_url?/non-framework/works/transaction/viewDetailedEstimate/:id', ':id', replace(detailedestimate.estimatenumber, '/', '%2F')::character varying) as url from EG_WF_STATES states JOIN - egw_detailedestimate detailedestimate ON detailedestimate.stateid = states.id::character varying where type = 'SpilloverDetailedEstimate' and owner_pos IN ($positionId) - and states.tenantId=$tenantid and states.status<>2 order by states.createdDate desc)) result - order by createddate desc; - diff --git a/reports/config/e-pass-reports.yml b/reports/config/e-pass-reports.yml deleted file mode 100644 index bb145438..00000000 --- a/reports/config/e-pass-reports.yml +++ /dev/null @@ -1,96 +0,0 @@ -ReportDefinitions: -- reportName: epassreport - summary: epass report - version: 1.0.0 - moduleName: rainmaker-epass - sourceColumns: - - name: applicationnumber - label: reports.epass.applicationnumber - type: string - source: epass - total: false - - name: applicationdate - label: reports.epass.applicationdate - type: string - source: epass - total: false - - name: fromdistrict - label: reports.epass.fromdistrict - type: string - source: epass - total: false - - name: todistrict - label: reports.epass.todistrict - type: string - source: epass - total: false - - name: tradeType - label: reports.epass.tradetype - type: string - source: epass - total: false - - name: issuedate - label: reports.epass.issuedate - type: string - source: epass - total: false - - name: purpose - label: reports.epass.purpose - type: string - source: epass - total: false - - name: vehiclenumber - label: reports.epass.vehiclenumber - type: string - source: epass - total: false - - name: licensenumber - label: reports.epass.licensenumber - type: string - source: epass - total: false - - name: status - label: reports.epass.status - type: string - source: epass - total: false - - name: rejectionremarks - label: reports.epass.rejectionremarks - type: string - source: epass - total: false - searchParams: - - name: fromDate - label: reports.epass.fromDate - type: epoch - source: epass - isMandatory: false - searchClause: AND tl.createdtime >= $fromDate - - name: toDate - label: reports.epass.toDate - type: epoch - source: epass - isMandatory: false - searchClause: AND tl.createdtime <= $toDate - query: | - select - tl.applicationnumber, - to_char((To_timestamp(tl.createdtime/1000) at time Zone 'Asia/Kolkata'),'DD-MM-YYYY HH:MI AM') as applicationDate, - CASE WHEN tlu.tradeType = 'INTERSTATE' THEN 'Other State to MP Pass' - WHEN tlu.tradeType = 'INTRASTATE' THEN 'MP Inter District Pass' - WHEN tlu.tradeType = 'MP_TO_OTHER_STATE' THEN 'MP to Other State Pass' - ELSE 'NA' END as tradeType, - initcap(replace(tld.additionaldetail->>'fromDistrict', 'MP_', '')) as fromDistrict, - initcap(replace(tld.additionaldetail->>'toDistrict', 'MP_', '')) as toDistrict, - COALESCE(to_char((To_timestamp(tl.issueddate/1000) at time Zone 'Asia/Kolkata'),'DD-MM-YYYY HH:MI AM'), '') as issueDate, - initcap(replace(COALESCE(tld.additionaldetail->>'purpose', ''), '_',' ')) as purpose, - COALESCE(tld.additionaldetail->>'vehicleNumber', '') as vehicleNumber, - COALESCE(tl.licensenumber, '') as licensenumber, - initcap(tl.status) as status, - COALESCE(tlw.comment, '') as rejectionRemarks - from eg_tl_tradelicense as tl - inner join eg_tl_tradelicensedetail as tld on tld.tradelicenseid = tl.id - inner join eg_tl_TradeUnit as tlu on tlu.tradeLicenseDetailId = tld.id - left join eg_wf_processinstance_v2 as tlw on tlw.businessid = tl.applicationnumber and tlw.action = 'REJECT' - where tl.tenantid = $tenantid and tl.status not in ('INITIATED') - orderby: order by tl.createdtime desc diff --git a/reports/config/employee-report.yml b/reports/config/employee-report.yml deleted file mode 100644 index 104f9df1..00000000 --- a/reports/config/employee-report.yml +++ /dev/null @@ -1,122 +0,0 @@ -ReportDefinitions: -- reportName: EmployeeReport - decryptionPathId: EmployeeReport - summary: Fetches employee data based on provided search parameters - version: 1.0.0 - moduleName: hrms - externalService: - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_def_dept - - entity: $.MdmsRes.common-masters.Designation - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Designation&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_def_desig - - entity: $.MdmsRes.ACCESSCONTROL-ROLES.roles - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=ACCESSCONTROL-ROLES&masterName=roles&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_def_roles - sourceColumns: - - name: id - label: reports.hrms.id - type: string - source: eg_hrms_employee - - name: uuid - label: reports.hrms.uuid - type: string - source: eg_hrms_employee - showColumn: false - - name: name - label: reports.hrms.name - type: string - source: eg_hrms_employee - - name: rolecodes - label: reports.hrms.role - type: stringarray - source: eg_hrms_employee - isLocalisationRequired: true - localisationPrefix: ACCESSCONTROL_ROLES_ROLES_ - - name: designation - label: reports.hrms.designation - type: string - source: eg_hrms_employee - isLocalisationRequired: true - localisationPrefix: COMMON_MASTERS_DESIGNATION_ - - name: department - label: reports.hrms.department - type: string - source: eg_hrms_employee - isLocalisationRequired: true - localisationPrefix: COMMON_MASTERS_DEPARTMENT_ - - name: status - label: reports.hrms.status - type: string - source: eg_hrms_employee - isLocalisationRequired: true - localisationPrefix: EGOV_HRMS_EMPLOYEESTATUS_ - searchParams: - - name: ulb - label: ULB - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: pt - wrapper: true - isMandatory: true - searchClause: AND emp_data.tenantid = $ulb - - name: status - label: reports.hrms.status - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=pb&moduleName=egov-hrms&masterName=EmployeeStatus|$.MdmsRes.egov-hrms.EmployeeStatus[?(@.active)].code|$.MdmsRes.egov-hrms.EmployeeStatus[?(@.active)].code - source: seva - isMandatory: false - isLocalisationRequired: true - localisationPrefix: EGOV_HRMS_EMPLOYEESTATUS_ - searchClause: AND emp_data.employeestatus IN ( $status ) - - name: role - label: reports.hrms.role - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=pb&moduleName=ACCESSCONTROL-ROLES&masterName=roles|$.MdmsRes.ACCESSCONTROL-ROLES.roles[?(@.code nin ['CITIZEN'])].code|$.MdmsRes.ACCESSCONTROL-ROLES.roles[?(@.code nin ['Citizen'])].code - isMandatory: false - isLocalisationRequired: true - localisationPrefix: ACCESSCONTROL_ROLES_ROLES_ - searchClause: AND ARRAY[ $role ]::varchar[] && emp_data.rolecodes::varchar[] - - name: deptname - label: reports.pgr.dept.name - type: multivaluelist - source: eg_pgr_service - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$.MdmsRes.common-masters.Department[*].code|$.MdmsRes.common-masters.Department[*].code - isMandatory: false - isLocalisationRequired: true - localisationPrefix: COMMON_MASTERS_DEPARTMENT_ - searchClause: AND deptmap_def.code IN ($deptname) - query: | - WITH emp_data AS (SELECT DISTINCT - ehe.id, - ehe.uuid, - ehe.tenantid, - eu.name, - (SELECT ARRAY(SELECT DISTINCT er.name from eg_user eu LEFT JOIN eg_userrole_v1 eur ON eu.id=eur.user_id AND eu.tenantid=eur.user_tenantid LEFT JOIN (VALUES tbl_def_roles) AS er(name,code) ON eur.role_code=er.code WHERE eu.uuid=ehe.uuid AND er.name IS NOT NULL)) as role, - (SELECT ARRAY(SELECT DISTINCT er.code from eg_user eu LEFT JOIN eg_userrole_v1 eur ON eu.id=eur.user_id AND eu.tenantid=eur.user_tenantid LEFT JOIN (VALUES tbl_def_roles) AS er(name,code) ON eur.role_code=er.code WHERE eu.uuid=ehe.uuid AND er.code IS NOT NULL)) as rolecodes, - eha.designation, - eha.department, - ehe.employeestatus - FROM eg_hrms_employee ehe - LEFT OUTER JOIN eg_user eu ON ehe.uuid = eu.uuid - LEFT OUTER JOIN eg_hrms_assignment eha ON eu.uuid = eha.employeeid - WHERE eu.active = true) - SELECT emp_data.id as id, - emp_data.name as name, - emp_data.uuid as uuid, - ARRAY_TO_STRING(emp_data.role, ',') as role, - ARRAY_TO_STRING(emp_data.rolecodes, ',') as rolecodes, - desigmap_def.code as designation, - deptmap_def.code as department, - emp_data.employeestatus as status - FROM emp_data - INNER JOIN (VALUES tbl_def_dept) AS deptmap_def(name,code) ON deptmap_def.code=emp_data.department - INNER JOIN (VALUES tbl_def_desig) AS desigmap_def(name,code) ON desigmap_def.code=emp_data.designation - WHERE 1=1 - order by: ehe.id ASC - - diff --git a/reports/config/finance-reports.yml b/reports/config/finance-reports.yml deleted file mode 100644 index a7cb996b..00000000 --- a/reports/config/finance-reports.yml +++ /dev/null @@ -1,177 +0,0 @@ -ReportDefinitions: - - reportName: ReceiptRegister - summary: Receipt Register - version: 1.0.0 - moduleName: finance - externalService: - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_def_dept - sourceColumns: - - name: receiptnumber - label: reports.fin.erp.receiptnumber - type: string - source: finance-erp - total: false - - name: receiptdate - label: reports.fin.erp.receiptdate - type: string - source: finance-erp - total: false - - name: service - label: reports.fin.erp.service - type: string - source: finance-erp - total: false - - name: department - label: reports.fin.erp.department - type: string - source: finance-erp - total: false - - name: cash - label: reports.fin.erp.cash - type: number - source: finance-erp - total: true - - name: chequenumber - label: reports.fin.erp.chequenumber - type: number - source: finance-erp - total: false - - name: cheque - label: reports.fin.erp.cheque - type: number - source: finance-erp - total: true - - name: online - label: reports.fin.erp.online - type: number - source: finance-erp - total: true - - name: card - label: reports.fin.erp.card - type: number - source: finance-erp - total: true - - name: status - label: reports.fin.erp.status - type: string - source: finance-erp - total: false - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: false - searchClause: AND receiptdate >= $fromDate - - name: toDate - label: reports.pt.toDate - type: epoch - source: pt - isMandatory: false - searchClause: AND receiptdate <= $toDate - - name: dept - label: Department - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$.MdmsRes.common-masters.Department[*].code|$.MdmsRes.common-masters.Department[*].name - source: finance-erp - wrapper: true - isMandatory: false - searchClause: AND deptmap_def.code = $dept - - name: service - label: Service - type: singlevaluelist - pattern: http://egov-common-masters:8080/egov-common-masters/businessDetails/_search?tenantId=$tenantid&active=true|$.BusinessDetails[*].code|$.BusinessDetails[*].name - source: finance-erp - wrapper: true - isMandatory: false - searchClause: AND rt.businessdetails = $service - - query: select to_char(to_timestamp(rt.receiptdate/1000),'DD/MM/YYYY') as receiptdate, rt.receiptnumber as receiptnumber, bd.name as Service, deptmap_def.name as department, (case when instrumenttype='Cash' then ins.amount end) as cash, (case when instrumenttype='Cheque' then ins.amount when instrumenttype='DD' then ins.amount end) as cheque, (case when instrumenttype='Cheque' then ins.instrumentnumber when instrumenttype='DD' then ins.instrumentnumber end) as chequenumber, (case when instrumenttype='Online' then ins.amount end) as online, (case when instrumenttype='Card' then amount end) as card, rt.status as status from egcl_receiptheader rt inner join (VALUES tbl_def_dept) AS deptmap_def(name,code) on deptmap_def.code=rt.department, eg_businessdetails bd, egcl_instrumentheader ins where ins.id = (select instrumentheader from egcl_receiptinstrument where receiptheader = rt.id) and rt.tenantid = bd.tenantid and rt.businessdetails = bd.code - orderby: ORDER BY receiptdate DESC NULLS LAST - - reportName: BankRemittance - summary: BankRemittance - version: 1.0.0 - moduleName: finance - sourceColumns: - - name: receiptnumber - label: reports.fin.erp.receiptnumber - type: string - source: finance-erp - total: false - - name: receiptdate - label: reports.fin.erp.receiptdate - type: string - source: finance-erp - total: false - - name: modeofpayment - label: reports.fin.erp.modeofpayment - type: string - source: finance-erp - total: false - - name: chequenumber - label: reports.fin.erp.chequenumber - type: string - source: finance-erp - total: false - - name: bankname - label: reports.fin.erp.bankname - type: string - source: finance-erp - total: false - - name: branchname - label: reports.fin.erp.branchname - type: string - source: finance-erp - total: false - - name: chequdate - label: reports.fin.erp.chequedate - type: string - source: finance-erp - total: false - - name: amount - label: reports.fin.erp.amount - type: number - source: finance-erp - total: true - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: false - searchClause: AND receiptdate >= $fromDate - - name: toDate - label: reports.pt.toDate - type: epoch - source: pt - isMandatory: false - searchClause: AND receiptdate <= $toDate - - name: dept - label: Department - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$.MdmsRes.common-masters.Department[*].code|$.MdmsRes.common-masters.Department[*].name - source: finance-erp - wrapper: true - isMandatory: false - searchClause: AND rt.department = $dept - - name: service - label: Service - type: singlevaluelist - pattern: http://egov-common-masters:8080/egov-common-masters/businessDetails/_search?tenantId=$tenantid&active=true|$.BusinessDetails[*].code|$.BusinessDetails[*].name - source: finance-erp - wrapper: true - isMandatory: false - searchClause: AND rt.businessdetails = $service - - name: bankaccount - label: Bank Account - type: singlevaluelist - pattern: https://jalandhar-dev.egovernments.org/services/EGF/rest/bankaccount?tenantId=$tenantid|$.bankaccounts[*].code|$.bankaccounts[*].account - source: finance-erp - wrapper: true - isMandatory: false - searchClause: And ins.bankaccountid = $bankaccount - - query: select receiptnumber as receiptnumber , to_char(to_timestamp(receiptdate/1000),'DD/MM/YYYY') as receiptdate, instrumenttypeid as modeofpayment, transactionnumber as chequenumber, bankid as bankname, branchname branchname,amount as amount from egf_instrumentvoucher vh INNER JOIN egf_instrument ins on ins.id = vh.instrumentid INNER JOIN egcl_receiptheader rt on rt.id = vh.receiptheaderid WHERE rt.status = 'Remitted' diff --git a/reports/config/fsm-reports.yml b/reports/config/fsm-reports.yml deleted file mode 100644 index db7ccf83..00000000 --- a/reports/config/fsm-reports.yml +++ /dev/null @@ -1,530 +0,0 @@ -ReportDefinitions: - - reportName: FSMDailyCollectionReport - decryptionPathId: FSMDailyCollectionReport - summary: Report is used for check FSM daily collection. - version: 1.0.0 - moduleName: fsm - sourceColumns: - - name: receiptdate - label: REPORT_FSM_RESULT_RECEIPTDATE - type: string - source: fsm - total: false - - name: receiptnumber - label: REPORT_FSM_RESULT_RECEIPTNUMBER - type: string - source: fsm - total: false - - name: applicationno - label: REPORT_FSM_RESULT_APPLICATIONNO - type: string - source: fsm - total: false - - name: name - label: REPORT_FSM_RESULT_APPLICANTNAME - type: string - source: fsm - total: false - - name: user_uuid - label: REPORT_FSM_RESULT_USER_UUID - type: string - source: fsm - showColumn: false - - name: instrumenttype - label: REPORT_FSM_RESULT_PAYMENTMODE - type: string - source: fsm - total: false - - name: chequedate - label: REPORT_FSM_RESULT_CHEQUEDATE - type: string - source: fsm - total: false - - name: chequeno - label: REPORT_FSM_RESULT_CHEQUENO - type: string - source: fsm - total: false - - name: bankname - label: REPORT_FSM_RESULT_BANKNAME - type: string - source: fsm - total: false - - name: transactionid - label: REPORT_FSM_RESULT_TRANSACTIONID - type: string - source: fsm - total: false - - name: carddigit - label: REPORT_FSM_RESULT_CARDDIGIT - type: string - source: fsm - total: false - - name: amount - label: REPORT_FSM_RESULT_AMOUNT - type: string - source: fsm - total: true - - name: status - label: REPORT_FSM_RESULT_STATUS - type: string - source: fsm - total: false - searchParams: - - name: fromDate - label: REPORTS_FSM_PARAM_FROMDATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND app.createdtime >= $fromDate - - name: toDate - label: REPORTS_FSM_PARAM_TODATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND app.createdtime <= $toDate - - name: instrumentType - label: REPORTS_FSM_PARAM_INSTRUMENTTYPE - type: singlevaluelist - pattern: 'list://CASH:CASH,ONLINE:ONLINE,CARD:CARD,DD:DD,CHEQUE:CHEQUE' - source: fsm - wrapper: true - isMandatory: false - searchClause: AND pay.paymentmode = $instrumentType - - name: collectionOperator - label: REPORTS_FSM_PARAM_COLLECTIONOPERATOR - type: singlevaluelist - pattern: http://egov-hrms:8080/egov-hrms/employees/_search?tenantId=$tenantid&roles=FSM_COLLECTOR|$.Employees[*].user.id|$.Employees[*].user.name|$.Employees[*].user.username - source: fsm - wrapper: true - isMandatory: false - searchClause: AND pay.createdby= $collectionOperator - - name: status - label: REPORTS_FSM_PARAM_STATUS - type: singlevaluelist - pattern: 'list://NEW:NEW,DEPOSITED:DEPOSITED,CANCELLED:CANCELLED,DISHONOURED:DISHONOURED' - source: fsm - wrapper: true - isMandatory: false - searchClause: AND pay.paymentstatus = $status - - name: dsoId - label: REPORTS_FSM_PARAM_DSONAME - type: singlevaluelist - pattern: http://vendor.egov:8080/vendor/v1/_search?tenantId=$tenantid|$.vendor.*.id|$.vendor.*.name - source: fsm - wrapper: true - isMandatory: false - searchClause: AND app.dso_id = $dsoId - query: | - select To_char(To_timestamp(paydl.receiptdate / 1000), 'DD/MM/YYYY') as receiptdate, paydl.receiptnumber as receiptnumber,b.consumercode AS applicationno,(select name from eg_user where uuid=app.accountid ) as name, pay.paymentmode as instrumenttype, (case when (pay.paymentmode like 'CHEQUE' OR pay.paymentmode like 'DD') then To_char(To_timestamp(pay.instrumentdate / 1000), 'DD/MM/YYYY') else 'NA' end) as chequedate, (case when (pay.paymentmode like 'CHEQUE' OR pay.paymentmode like 'DD') then pay.instrumentnumber else 'NA' end) as chequeno, (case when (pay.paymentmode like 'CHEQUE' OR pay.paymentmode like 'DD') then pay.additionaldetails::json#>>'{bankDetails,BANK}' else 'NA' end) as bankname, (case when pay.paymentmode='ONLINE' then pay.transactionnumber else 'NA' end) as transactionid, (case when pay.paymentmode='CARD' then pay.instrumentnumber else '' end) as carddigit, bd.amount as amount,pay.paymentstatus as status from egcl_bill b inner join egcl_billdetial bd ON b.id = bd.billid AND b.tenantid = bd.tenantid INNER JOIN eg_fsm_application app on b.consumercode =app.applicationno and b.tenantid =app.tenantid inner join egcl_paymentdetail paydl ON b.id = paydl.billid AND b.tenantid = paydl.tenantid inner join egcl_payment pay ON paydl.paymentid = pay.id and paydl.tenantid =pay.tenantid where pay.tenantid=$tenantid and b.businessservice ='FSM.TRIP_CHARGES' - orderby: order by paydl.receiptdate desc - - reportName: FSMRequestReport - summary: Report gives the highlevel information of FSM Requests - version: 1.0.0 - moduleName: fsm - externalService: - - entity: $.TenantBoundary[0].boundary - apiURL: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality&tenantId=$tenantId - keyOrder: name,code - tableName: fsm_boundary - - entity: $.MdmsRes.FSM.PropertyType - apiURL: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_get?moduleName=FSM&masterName=PropertyType&tenantId=$tenantId - keyOrder: name,code - tableName: fsm_property_type - - entity: $.messages - apiURL: http://egov-localization.egov:8080/localization/messages/v1/_search?locale=en_IN&tenantId=pb&module=rainmaker-fsm&codes=CS_COMMON_FSM_PENDING_DSO_APPROVAL,CS_COMMON_FSM_CREATED,CS_COMMON_FSM_PENDING_APPL_FEE_PAYMENT,CS_COMMON_FSM_ASSING_DSO,CS_COMMON_FSM_DSO_REJECTED,CS_COMMON_FSM_DSO_INPROGRESS,CS_COMMON_FSM_PENDING_DSO_APPROVAL,CS_COMMON_FSM_COMPLETED,CS_COMMON_FSM_REJECTED,CS_COMMON_FSM_CANCELED,CS_COMMON_FSM_CITIZEN_FEEDBACK_PENDING,REPORTS_FSM_PARAM_TENANT,ACTION_TEST_FSM_DAILY_DESLUDING_REPORT,ACTION_TEST_FSM_AREA_WISE_COLLECTION_REPORT,ACTION_TEST_FSM_FSTP_PLANT_WITH_VEHICLE_LOG_REPORT,REPORT_FSM_RESULT_VEHICLEENTRYDATE,REPORT_FSM_RESULT_SLA_COMPLIANCE - keyOrder: message,code - tableName: fsm_status_keys - sourceColumns: - - name: applicationNo - label: REPORT_FSM_RESULT_APPLICATION_NO - type: string - source: fsm - - name: applicationDate - label: REPORT_FSM_RESULT_APPLICATIONDATE - type: string - source: fsm - - name: locality - label: REPORT_FSM_RESULT_LOCALITY - type: string - source: fsm - - name: currentStatus - label: REPORT_FSM_RESULT_CURRENT_STATUS - type: string - source: fsm - - name: proprtyTypeSubType - label: REPORT_FSM_RESULT_PROPERTYSUBTYPE - type: string - source: fsm - - name: dsoName - label: REPORT_FSM_RESULT_DSO_NAME - type: string - source: fsm - - name: assignedToDSoOn - label: REPORT_FSM_RESULT_ASSIGNED_TO_DSO_ON - type: string - source: fsm - - name: dateOfCompletion - label: REPORT_FSM_RESULT_DATE_OF_COMPLETION - type: string - source: fsm - - name: amountpaid - label: REPORT_FSM_RESULT_AMOUNT_PAID - type: currency - source: fsm - total: true - searchParams: - - name: fromDate - label: REPORTS_FSM_PARAM_FROMDATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND fsm.createdtime >= $fromDate - - name: toDate - label: REPORTS_FSM_PARAM_TODATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND fsm.createdtime <= $toDate - - name: dsoId - label: REPORTS_FSM_PARAM_DSO_NAME - type: singlevaluelist - pattern: http://vendor.egov:8080/vendor/v1/_search?offset=0&limit=-1&tenantId=$tenantid|$.vendor.*.id|$.vendor.*.name - source: fsm - wrapper: true - isMandatory: false - searchClause: AND fsm.dso_id = $dsoId - - name: status - label: REPORTS_FSM_PARAM_STATUS - type: singlevaluelist - pattern: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/businessservice/_search?tenantId=$tenantid&businessServices=FSM|$.BusinessServices[0].states.[?(@.applicationStatus != null )].applicationStatus|$.BusinessServices[0].states.[?(@.applicationStatus != null )].applicationStatus - source: rainmaker-fsm - wrapper: true - isMandatory: false - isLocalisationRequired: true - localisationPrefix: CS_COMMON_FSM_ - searchClause: AND fsm.applicationstatus = $status - - name: locality - label: REPORTS_FSM_PARAM_LOCALITY - type: singlevaluelist - pattern: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality&tenantId=$tenantid|$.TenantBoundary[0].boundary.*.code|$.TenantBoundary[0].boundary.*.name - source: fsm - wrapper: true - isMandatory: false - searchClause: AND address.locality = $locality - query: | - SELECT fsm.applicationno as applicationNo , to_char(to_timestamp(fsm.createdtime/1000),'DD/MM/YYYY') as applicationDate,boundary.name as locality, - statuskeys.message as currentStatus,propertytype.name as proprtyTypeSubType,vendor.name dsoName, - CASE WHEN pidso.lastmodifiedtime <= 0 THEN 'NA' ELSE to_char(to_timestamp(pidso.lastmodifiedtime/1000),'DD/MM/YYYY') END as assignedToDSoOn, - CASE WHEN picomplete.lastmodifiedtime <= 0 THEN 'NA' ELSE to_char(to_timestamp(picomplete.lastmodifiedtime/1000),'DD/MM/YYYY') END as dateOfCompletion, - coalesce(payment.amountpaid) as amountpaid - FROM eg_fsm_application fsm - JOIN eg_fsm_address address ON ( address.fsm_id = fsm.id) - LEFT JOIN eg_vendor vendor ON ( vendor.id = fsm.dso_id) - LEFT JOIN (select pi.businessId,MAX(pi.lastmodifiedtime) as lastmodifiedtime from eg_wf_processinstance_v2 pi - LEFT JOIN eg_wf_state_v2 status ON ( status.uuid =pi.status) - where pi.businessService='FSM' AND status.applicationstatus='PENDING_DSO_APPROVAL' GROUP BY pi.businessId) pidso ON ( pidso.businessId = fsm.applicationno) - LEFT JOIN (select pi.businessId,pi.lastmodifiedtime from eg_wf_processinstance_v2 pi - JOIN eg_wf_state_v2 status ON ( status.uuid =pi.status) - where pi.businessService='FSM' AND status.applicationstatus='CITIZEN_FEEDBACK_PENDING') picomplete ON ( picomplete.businessId = fsm.applicationno) - LEFT JOIN egcl_bill bill ON ( bill.consumercode = fsm.applicationno) - LEFT JOIN egcl_paymentdetail payment ON ( payment.billid = bill.id ) - LEFT JOIN (VALUES fsm_boundary) AS boundary(name,code) ON (boundary.code = address.locality) - LEFT JOIN (VALUES fsm_property_type) propertytype(name,code) ON ( propertytype.code = fsm.propertyusage) - LEFT JOIN (VALUES fsm_status_keys) statuskeys(message,code) ON ( statuskeys.code = CONCAT('CS_COMMON_FSM_',fsm.applicationstatus)) WHERE fsm.tenantid=$tenantid - orderby: ORDER BY applicationNo - - reportName: FSMVehicleLogReport - summary: Report is used for check FSM Vehicle log report. - version: 1.0.0 - moduleName: fsm - sourceColumns: - - name: applicationno - label: REPORT_FSM_RESULT_APPLICATIONNO - type: string - source: fsm - total: false - - name: vehiclelogno - label: REPORT_FSM_RESULT_VEHICLELOGNO - type: string - source: fsm - total: false - - name: dsoname - label: REPORT_FSM_RESULT_DSONAME - type: string - source: fsm - total: false - - name: vehicleno - label: REPORT_FSM_RESULT_VEHICLENO - type: string - source: fsm - total: false - - name: vehicleentrytime - label: REPORT_FSM_RESULT_VEHICLEENTRYTIME - type: string - source: fsm - total: false - - name: vehicleexittime - label: REPORT_FSM_RESULT_VEHICLEEXITTIME - type: string - source: fsm - total: false - - name: septagedumped - label: REPORT_FSM_RESULT_SEPTAGEDUMPED - type: string - source: fsm - total: true - searchParams: - - name: fstpcode - label: REPORTS_FSM_PARAM_FSTPNAME - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=FSM&masterName=FSTPPlantInfo|$.MdmsRes.FSM.FSTPPlantInfo.*.PlantCode|$.MdmsRes.FSM.FSTPPlantInfo.*.PlantName - source: fsm - wrapper: true - isMandatory: true - searchClause: AND vhtrip.additionaldetails ::json ->>'plantCode' in ($fstpcode) - - name: fromDate - label: REPORTS_FSM_PARAM_FROMDATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND app.createdtime >= $fromDate - - name: toDate - label: REPORTS_FSM_PARAM_TODATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND app.createdtime <= $toDate - - name: dsoId - label: REPORTS_FSM_PARAM_DSONAME - type: singlevaluelist - pattern: http://vendor.egov:8080/vendor/v1/_search?tenantId=$tenantid|$.vendor.*.id|$.vendor.*.name - source: fsm - wrapper: true - isMandatory: false - searchClause: AND app.dso_id = $dsoId - - name: vehicleNo - label: REPORTS_FSM_PARAM_VEHICLENUMBER - type: string - source: fsm - isMandatory: false - searchClause: AND vehicle.registrationnumber ilike '%'||$vehicleNo||'%' - query: | - select app.applicationno as applicationno, vhtrip.applicationno as vehiclelogno, vendor.name as dsoname, vehicle.registrationnumber as vehicleno, to_char((to_timestamp(vhtrip.tripstarttime)::timestamp at time zone 'utc' at time Zone 'Asia/Kolkata'), 'dd/mm/yyyy HH24:MI:SS') as vehicleentrytime, to_char((to_timestamp(vhtrip.tripendtime)::timestamp at time zone 'utc' at time Zone 'Asia/Kolkata'), 'dd/mm/yyyy HH24:MI:SS') as vehicleexittime, vhtrip.volumecarried as septagedumped from eg_fsm_application app join eg_vehicle_trip_detail vhtripdtl on app.applicationno=vhtripdtl.referenceno join eg_vehicle_trip vhtrip on vhtripdtl.trip_id=vhtrip.id left join eg_vehicle vehicle on vhtrip.vehicle_id=vehicle.id left join eg_vendor vendor ON app.dso_id =vendor.id where app.tenantid=$tenantid - orderby: order by app.applicationno desc - - reportName: FSMDailyDesludingReport - summary: Report is used to check FSM daily desludging request - version: 1.0.0 - moduleName: fsm - sourceColumns: - - name: applicationno - label: REPORT_FSM_RESULT_APPLICATIONNO - type: string - source: fsm - - name: applicationDate - label: REPORT_FSM_RESULT_APPLICATIONDATE - type: string - source: fsm - - name: currentStatus - label: REPORT_FSM_RESULT_CURRENT_STATUS - type: string - source: fsm - - name: dsoName - label: REPORT_FSM_RESULT_DSO_NAME - type: string - source: fsm - - name: amountpaid - label: REPORT_FSM_RESULT_AMOUNT_PAID - type: currency - source: fsm - total: true - - name: dateOfCompletion - label: REPORT_FSM_RESULT_DATE_OF_COMPLETION - type: string - source: fsm - searchParams: - - name: fromDate - label: REPORTS_FSM_PARAM_FROMDATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND app.createdtime >= $fromDate - - name: toDate - label: REPORTS_FSM_PARAM_TODATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND app.createdtime <= $toDate - - name: ulb - label: REPORTS_FSM_PARAM_TENANT - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants| $.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: fsm - wrapper: true - isMandatory: false - searchClause: AND app.tenantid in ($ulb) - - name: dsoId - label: REPORTS_FSM_PARAM_DSONAME - type: singlevaluelist - pattern: http://vendor.egov:8080/vendor/v1/_search?tenantId=$tenantid|$.vendor.*.id|$.vendor.*.name - source: fsm - wrapper: true - isMandatory: false - searchClause: AND app.dso_id = $dsoId - query: | - SELECT app.applicationno, to_char(to_timestamp(app.createdtime/1000),'DD/MM/YYYY') as applicationDate, CASE WHEN (app.status='' or app.status is NULL) THEN 'NA' ELSE app.status END as currentStatus, vendor.name as dsoname, coalesce(payment.amountpaid) as amountpaid, CASE WHEN (app.completed_on <= 0 or app.completed_on is NULL) THEN 'NA' ELSE to_char(to_timestamp(app.completed_on/1000),'DD/MM/YYYY') END as dateOfCompletion from eg_fsm_application app join eg_vendor vendor ON (app.dso_id =vendor.id) LEFT JOIN egcl_bill bill ON ( bill.consumercode = app.applicationno) LEFT JOIN egcl_paymentdetail payment ON ( payment.billid = bill.id ) where app.tenantid=$tenantid - orderby: order by app.createdtime desc - - reportName: FSMAreaWiseDailyCollectionReport - summary: Report is used to check area wise daily collection report - version: 1.0.0 - moduleName: fsm - sourceColumns: - - name: applicationno - label: REPORT_FSM_RESULT_APPLICATIONNO - type: string - source: fsm - - name: locality - label: REPORT_FSM_RESULT_LOCALITY - type: string - source: fsm - - name: dsoName - label: REPORT_FSM_RESULT_DSO_NAME - type: string - source: fsm - - name: currentStatus - label: REPORT_FSM_RESULT_CURRENT_STATUS - type: string - source: fsm - - name: slaCompliance - label: REPORT_FSM_RESULT_SLA_COMPLIANCE - type: string - source: fsm - total: true - - name: septagedumped - label: REPORT_FSM_RESULT_SEPTAGEDUMPED - type: string - source: fsm - total: true - searchParams: - - name: fromDate - label: REPORTS_FSM_PARAM_FROMDATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND app.createdtime >= $fromDate - - name: toDate - label: REPORTS_FSM_PARAM_TODATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND app.createdtime <= $toDate - - name: ulb - label: REPORTS_FSM_PARAM_TENANT - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants| $.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: fsm - wrapper: true - isMandatory: true - searchClause: AND app.tenantid in ($ulb) - - name: locality - label: REPORTS_FSM_PARAM_LOCALITY - type: singlevaluelist - pattern: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality&tenantId=$tenantid|$.TenantBoundary[0].boundary.*.code|$.TenantBoundary[0].boundary.*.name - source: fsm - wrapper: true - isMandatory: false - searchClause: AND address.locality = $locality - - name: dsoId - label: REPORTS_FSM_PARAM_DSONAME - type: singlevaluelist - pattern: http://vendor.egov:8080/vendor/v1/_search?tenantId=$tenantid|$.vendor.*.id|$.vendor.*.name - source: fsm - wrapper: true - isMandatory: false - searchClause: AND app.dso_id = $dsoId - query: | - SELECT app.applicationno, address.locality as locality, vendor.name as dsoname, app.status as currentStatus, CASE WHEN app.status = 'COMPLETED' THEN DATE_PART('day', AGE(to_timestamp(app.createdtime/1000), to_timestamp(app.completed_on/1000))) ELSE ((DATE_PART('day', AGE(to_timestamp(app.createdtime/1000), to_timestamp((EXTRACT(EPOCH FROM (SELECT NOW())))/1000))))) END as slaCompliance, vhtrip.volumecarried as septagedumped from eg_fsm_application app JOIN eg_fsm_address address ON ( address.fsm_id = app.id) LEFT JOIN eg_vendor vendor ON (app.dso_id =vendor.id) LEFT JOIN eg_wf_processinstance_v2 pi ON (pi.businessId=app.applicationno) LEFT JOIN eg_vehicle_trip_detail vhtripdtl on (app.applicationno=vhtripdtl.referenceno) LEFT JOIN eg_vehicle_trip vhtrip on (vhtripdtl.trip_id=vhtrip.id) where app.tenantid=$tenantid - orderby: order by app.createdtime desc - - reportName: FSMFSTPPlantWithVehicleLogReport - summary: Report is used to check ftsp plant report along with vehicle log - version: 1.0.0 - moduleName: fsm - sourceColumns: - - name: applicationno - label: REPORT_FSM_RESULT_APPLICATIONNO - type: string - source: fsm - - name: vehicleno - label: REPORT_FSM_RESULT_VEHICLENO - type: string - source: fsm - total: false - - name: vehicleentrydate - label: REPORT_FSM_RESULT_VEHICLEENTRYDATE - type: string - source: fsm - total: false - - name: dsoName - label: REPORT_FSM_RESULT_DSO_NAME - type: string - source: fsm - - name: vehicleentrytime - label: REPORT_FSM_RESULT_VEHICLEENTRYTIME - type: string - source: fsm - total: false - - name: vehicleexittime - label: REPORT_FSM_RESULT_VEHICLEEXITTIME - type: string - source: fsm - total: false - - name: septagedumped - label: REPORT_FSM_RESULT_SEPTAGEDUMPED - type: string - source: fsm - total: true - searchParams: - - name: fromDate - label: REPORTS_FSM_PARAM_FROMDATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND app.createdtime >= $fromDate - - name: toDate - label: REPORTS_FSM_PARAM_TODATE - type: epoch - source: fsm - isMandatory: true - searchClause: AND app.createdtime <= $toDate - - name: ulb - label: REPORTS_FSM_PARAM_TENANT - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants| $.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: fsm - wrapper: true - isMandatory: true - searchClause: AND app.tenantid in ($ulb) - - name: fstpcode - label: REPORTS_FSM_PARAM_FSTPNAME - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=FSM&masterName=FSTPPlantInfo| $.MdmsRes.FSM.FSTPPlantInfo.*.PlantCode|$.MdmsRes.FSM.FSTPPlantInfo.*.PlantName - source: fsm - wrapper: true - isMandatory: true - searchClause: AND vhtrip.additionaldetails ::json ->>'plantCode' in ($fstpcode) - - name: dsoId - label: REPORTS_FSM_PARAM_DSONAME - type: singlevaluelist - pattern: http://vendor.egov:8080/vendor/v1/_search?tenantId=$tenantid|$.vendor.*.id|$.vendor.*.name - source: fsm - wrapper: true - isMandatory: false - searchClause: AND app.dso_id = $dsoId - - name: vehicleNo - label: REPORTS_FSM_PARAM_VEHICLENUMBER - type: string - source: fsm - isMandatory: false - searchClause: AND vehicle.registrationnumber ilike '%'||$vehicleNo||'%' - query: | - select app.applicationno as applicationno, vendor.name as dsoname, vehicle.registrationnumber as vehicleno, to_char(to_timestamp(vhtrip.createdtime/1000),'DD/MM/YYYY') as vehicleentrydate, to_char((to_timestamp(vhtrip.tripstarttime)::timestamp at time zone 'utc' at time Zone 'Asia/Kolkata'), 'HH12:MI:SS AM') as vehicleentrytime, to_char((to_timestamp(vhtrip.tripendtime)::timestamp at time zone 'utc' at time Zone 'Asia/Kolkata'), 'HH12:MI:SS AM') as vehicleexittime, vhtrip.volumecarried as septagedumped from eg_fsm_application app join eg_vehicle_trip_detail vhtripdtl on app.applicationno=vhtripdtl.referenceno join eg_vehicle_trip vhtrip on vhtripdtl.trip_id=vhtrip.id left join eg_vehicle vehicle on vhtrip.vehicle_id=vehicle.id left join eg_vendor vendor ON app.dso_id =vendor.id where app.tenantid=$tenantid - orderby: order by app.createdtime desc \ No newline at end of file diff --git a/reports/config/inventoryReport.yml b/reports/config/inventoryReport.yml deleted file mode 100644 index d04da1db..00000000 --- a/reports/config/inventoryReport.yml +++ /dev/null @@ -1,1090 +0,0 @@ ---- -ReportDefinitions: - # Stock Opening Balance Report -- reportName: openingBalanceReport - summary: Stock Opening Balance Report - version: 1.0.0 - moduleName: inventory - externalService: - - entity: $.MdmsRes.inventory.Material - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid - keyOrder: code,name,tenantId - tableName: tbl_material - - entity: $.MdmsRes.common-masters.Uom - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Uom&tenantId=$tenantid - keyOrder: code,conversionFactor,tenantId - tableName: tbl_uom - sourceColumns: - - - name: financialYear - label: inventory.financialYear - type: string - source: materialReceipt - - - name: storeName - label: inventory.store.name - type: string - source: materialReceipt - - - name: materialCode - label: inventory.material.code - type: string - source: materialReceipt - - - name: materialName - label: inventory.materialName - type: string - source: material - - - name: materialTypeName - label: inventory.material.materialtype - type: string - source: materialReceiptDetails - - - name: uom - label: reports.inventory.openbal.Uom - type: string - source: materialReceiptDetails - - - name: qty - label: reports.inventory.openbal.Qty. - type: string - source: materialReceiptDetails - - - name: rate - label: inventory.Rate - type: string - source: materialReceiptDetails - - - name: totalAmount - label: reports.inventory.openbal.TotalAmount - type: string - source: materialReceiptDetails - - - name: remarks - label: reports.inventory.openbal.Remarks - type: string - source: materialReceiptDetails - - searchParams: - - name: financialYear - label: inventory.financialYear - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=egf-master&masterName=FinancialYear|$..finYearRange|$..finYearRange - source: materialReceipt - isMandatory: true - - - name: storeName - label: inventory.store.name - type: singlevaluelist - pattern: http://inventory-services:8080/inventory-services/stores/_search?active=true&tenantId=$tenantid|$..code|$..name - source: store - isMandatory: true - wrapper: true - - - name: materialTypeName - label: inventory.material.materialtype - type: singlevaluelist - pattern: 'list://OPENING BALANCE:OPENING BALANCE' - source: materialReceipt - isMandatory: false - searchClause: AND matrcpt.receiptType = $materialTypeName - - - name: materialName - label: inventory.materialName - type: string - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid|$.MdmsRes.inventory.Material.*.code|$.MdmsRes.inventory.Material.*.name - source: materialReceipt - isMandatory: false - searchClause: AND mat.name = $materialName - query: SELECT matrcpt.financialyear AS financialyear, - store.name AS storeName, - matrcptdtl.material AS materialcode, - mat.name AS materialname, - matrcpt.receiptType AS materialtypename, - matrcptdtl.uomno AS uom, - (matrcptdtl.receivedqty / (SELECT CAST(conversionFactor AS bigint) FROM (values tbl_uom )AS tb (code,conversionFactor,tenantid) - WHERE tb.code = matrcptdtl.uomno AND tb.tenantid= $tenantid AND matrcptdtl.tenantid = $tenantid)) ::numeric(13,2) AS qty, - matrcptdtl.unitrate AS rate, - (matrcptdtl.unitrate * (matrcptdtl.receivedqty / (SELECT CAST(conversionFactor AS bigint) FROM (values tbl_uom )AS tb (code,conversionFactor,tenantid) - WHERE tb.code = matrcptdtl.uomno AND tb.tenantid= $tenantid AND matrcptdtl.tenantid = $tenantid))) ::numeric(13,2) AS totalamount, - matrcptdtl.remarks AS remarks - FROM materialreceipt matrcpt, - (VALUES tbl_material) AS mat (code, name, tenantid), - (VALUES tbl_uom) AS uomtbl (code,conversionFactor,tenantid), - materialreceiptdetail matrcptdtl , store store - WHERE matrcpt.financialyear = $financialYear - AND matrcpt.receivingstore = store.code - AND matrcpt.receivingstore = $storeName - AND store.tenantid = matrcpt.tenantid - AND mat.tenantid= matrcpt.tenantid - AND uomtbl.code=matrcptdtl.uomno - AND uomtbl.tenantid= store.tenantid - AND matrcpt.tenantid = matrcptdtl.tenantid - AND mat.tenantid = matrcpt.tenantid - AND matrcpt.tenantid = $tenantid - AND matrcpt.mrnnumber = matrcptdtl.mrnnumber - AND mat.code = matrcptdtl.material - -# Supplier Report -- reportName: supplierreport - summary: Supplier List - version: 1.0.0 - moduleName: inventory - sourceColumns: - - name: supplierCode - label: inventory.supplier.code - type: string - source: supplier - - - name: supplierType - label: inventory.supplier.type - type: string - source: supplier - - - name: supplierName - label: inventory.supplier.name - type: string - source: supplier - - - name: status - label: inventory.common.status - type: string - source: supplier - - - name: address - label: inventory.supplier.address - type: string - source: supplier - - - name: contactNo - label: inventory.common.contactNo - type: string - source: supplier - - - name: email - label: inventory.report.email - type: string - source: supplier - - - name: cstNo - label: inventory.common.cstno - type: string - source: supplier - - - name: bankName - label: inventory.common.bankname - type: string - source: supplier - - - name: bankBranch - label: inventory.common.bankbranchname - type: string - source: supplier - - - name: bankAcctNo - label: inventory.common.bankacctno - type: string - source: supplier - - - name: ifsc - label: inventory.common.ifsc - type: string - source: supplier - - - name: contactPerson - label: inventory.common.contactperson - type: string - source: supplier - - - name: contactPersonNo - label: inventory.common.contactpersonno - type: string - source: supplier - - query: SELECT supplier.code AS supplierCode, supplier.type AS supplierType, supplier.name AS supplierName, - supplier.status AS status, supplier.address AS address , supplier.contactno AS contactNo, - supplier.email AS email, supplier.cstno AS cstNo, - bank.name AS bankName, supplier.bankbranch AS bankBranch, supplier.bankacctno AS bankAcctNo, - supplier.bankifsc AS ifsc, supplier.contactperson AS contactPerson, - supplier.contactpersonno AS contactPersonNo - FROM supplier AS supplier, egf_bank bank - WHERE - bank.code = supplier.bankcode - AND bank.tenantid = supplier.tenantid - AND supplier.tenantid = $tenantid - ORDER BY supplier.name asc; - -# Material Returned Report -# Need to change drop down Link based on report and Query -- reportName: materialReturnedReport - summary: Material Returned Report - version: 1.0.0 - moduleName: inventory - sourceColumns: - - - name: materialReturnNo - label: inventory.materialReturnNo - type: string - source: inventory - - - name: returnDate - label: inventory.returnDate - type: string - source: inventory - - - name: supplierName - label: inventory.supplierName - type: epoch - source: inventory - - - name: materialCode - label: inventory.materialCode - type: string - source: inventory - - - name: materialName - label: inventory.materialName - type: string - source: inventory - - - name: returnedQty - label: inventory.returnedQty - type: string - source: inventory - - - name: uom - label: inventory.uom - type: string - source: inventory - - - name: unitRate - label: inventory.unitRate - type: string - source: inventory - - - name: totalReturnedAmount - label: inventory.totalReturnedAmount - type: string - source: inventory - - - name: returnRemarks - label: inventory.returnRemarks - type: string - source: inventory - - - name: returnBy - label: inventory.returnBy - type: string - source: inventory - - searchParams: - - - name: storeName - label: inventory.store.name - type: singlevaluelist - pattern: http://inventory-services:8080/inventory-services/stores/_search?active=true&tenantId=$tenantid|$..code|$..name - source: store - isMandatory: true - - - name: fromDate - label: inventory.fromDate - type: epoch - source: inventory - isMandatory: false - - - name: toDate - label: inventory.toDate - type: epoch - source: inventory - isMandatory: false - - - name: supplierName - label: inventory.supplierName - pattern: http://inventory-services:8080/inventory-services/suppliers/_search?tenantId=$tenantid|$..code|$..name - type: singlevaluelist - source: inventory - isMandatory: false - - - name: materialReturnNo - label: inventory.materialReturnNo - type: singlevaluelist - source: inventory - isMandatory: false - - - name: materialName - label: inventory.materialName - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid|$.MdmsRes.inventory.Material.*.code|$.MdmsRes.inventory.Material.*.name - type: singlevaluelist - source: inventory - isMandatory: false - - query: SELECT * FROM material; - -# Disposal of Scrap Report -# Need to Change drop down Link based on report and Query -- reportName: disposalOfScrapReport - summary: Disposal of Scrap Report - version: 1.0.0 - moduleName: inventory - sourceColumns: - - - name: storeName - label: inventory.storeName - type: string - source: inventory - - - name: materialCode - label: inventory.materialCode - type: string - source: inventory - - - name: materialName - label: inventory.materialName - type: string - source: inventory - - - name: materialTypeName - label: inventory.materialTypeName - type: epoch - source: inventory - - - name: disposalNo - label: inventory.disposalNo - type: string - source: inventory - - - name: disposalDate - label: inventory.disposalDate - type: string - source: inventory - - - name: disposalQty - label: inventory.disposalQty - type: string - source: inventory - - - name: uom - label: inventory.uom - type: string - source: inventory - - - name: disposalValue - label: inventory.disposalValue - type: string - source: inventory - - - name: lotNo - label: inventory.lotNo - type: string - source: inventory - - - name: disposalBy - label: inventory.disposalBy - type: string - source: inventory - - - name: remarks - label: inventory.remarks - type: string - source: inventory - - searchParams: - - - name: storeName - label: inventory.store.name - type: singlevaluelist - pattern: http://inventory-services:8080/inventory-services/stores/_search?active=true&tenantId=$tenantid|$..code|$..name - source: store - isMandatory: true - - - name: disposalFromDate - label: inventory.disposalFromDate - type: epoch - source: inventory - isMandatory: false - - - name: toDate - label: inventory.toDate - type: epoch - source: inventory - isMandatory: false - - - name: materialtypename - label: inventory.materialtypename - type: singlevaluelist - source: inventory - isMandatory: false - - - name: disposalNo - label: inventory.disposalNo - type: singlevaluelist - source: inventory - isMandatory: false - - - name: materialName - label: inventory.materialName - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid|$.MdmsRes.inventory.Material.*.code|$.MdmsRes.inventory.Material.*.name - type: singlevaluelist - source: inventory - isMandatory: false - - query: SELECT * FROM material; - -# Rates comparison with history data Report -- reportName: ratesComparisonWithHistory - summary: Rates comparison with history data - version: 1.0.0 - moduleName: inventory - externalService: - - entity: $.MdmsRes.inventory.Material - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid - keyOrder: code,name,tenantId - tableName: tbl_material - sourceColumns: - - - name: materialCode - label: inventory.material.code - type: string - source: inventory - - - name: materialName - label: inventory.material.name - type: string - source: inventory - - - name: supplierName - label: inventory.supplierName - type: string - source: inventory - - - name: rateType - label: inventory.rateType - type: string - source: inventory - - - name: currentRate - label: inventory.currentRate - type: string - source: inventory - - - name: currentYear - label: inventory.currentYear - type: string - source: inventory - - - name: previousYear - label: inventory.previousYear - type: string - source: inventory - - searchParams: - - name: supplierName - label: inventory.supplierName - pattern: http://inventory-services:8080/inventory-services/suppliers/_search?tenantId=$tenantid|$..code|$..name - type: singlevaluelist - source: inventory - searchClause: AND pl.supplier = $supplierName - wrapper: true - isMandatory: false - - - name: materialName - label: inventory.materialName - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid|$.MdmsRes.inventory.Material.*.code|$.MdmsRes.inventory.Material.*.name - type: singlevaluelist - source: inventory - searchClause: AND pld.material = $materialName - isMandatory: false - wrapper: true - - query: SELECT pld.material AS materialCode, - sup.name AS supplierName, - mat.name AS materialName, - pl.ratetype AS ratetype, - pld.ratePerUnit AS currentRate, - (SELECT count(*) FROM pricelistdetails WHERE material=pld.material AND pld.tenantid = $tenantid - AND fromdate::bigint >= (SELECT EXTRACT(EPOCH FROM timestamptz (CONCAT ((SELECT to_char(now(),'YYYY')),'-','01','-','01')))) - AND todate::bigint <= (SELECT EXTRACT(EPOCH FROM timestamptz (CONCAT ((SELECT to_char(now(),'YYYY')),'-','03','-','01'))))) AS currentYear, - (SELECT count(*) FROM pricelistdetails WHERE material=pld.material AND pricelistdetails.tenantid = $tenantid - AND fromdate::bigint >= (SELECT EXTRACT(EPOCH FROM timestamptz (CONCAT ((SELECT to_char(now()- interval '1 year','YYYY')),'-','01','-','01')))) - AND todate::bigint <= (SELECT EXTRACT(EPOCH FROM timestamptz (CONCAT ((SELECT to_char(now()- interval '1 year','YYYY')),'-','12','-','31'))))) AS previousYear - FROM pricelist pl,pricelistdetails pld,supplier sup,(VALUES tbl_material) AS mat (code, name, tenantid) - WHERE - pld.tenantid = sup.tenantid - AND sup.tenantid = pl.tenantid - AND pl.tenantid = $tenantid - AND mat.tenantid = pld.tenantid - AND pl.supplier = sup.code - AND pl.id = pld.pricelist - AND pld.deleted = false - AND mat.code = pld.material - -# Comparison between different rates Report -- reportName: comparisonBetweenDifferentRates - summary: Comparison between different rates - version: 1.0.0 - moduleName: inventory - externalService: - - entity: $.MdmsRes.inventory.Material - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid - keyOrder: code,name,tenantId - tableName: tbl_material - sourceColumns: - - - name: materialCode - label: inventory.material.code - type: string - source: inventory - - - name: materialName - label: inventory.materialName - type: string - source: inventory - - - name: supplierName - label: inventory.supplierName - type: string - source: inventory - - - name: dtt - label: inventory.DTT - type: string - source: inventory - - - name: quotation - label: inventory.quotation - type: string - source: inventory - - - name: dgsnd - label: inventory.DGSND - type: string - source: inventory - - - name: tender - label: inventory.tender - type: string - source: inventory - - searchParams: - - name: supplierName - label: inventory.supplierName - pattern: http://inventory-services:8080/inventory-services/suppliers/_search?tenantId=$tenantid|$..code|$..name - type: singlevaluelist - source: inventory - searchClause: AND pl.supplier = $supplierName - wrapper: true - isMandatory: false - - - name: materialName - label: inventory.materialName - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid|$.MdmsRes.inventory.Material.*.code|$.MdmsRes.inventory.Material.*.name - type: singlevaluelist - source: inventory - searchClause: AND pld.material = $materialName - isMandatory: false - wrapper: true - - - query: SELECT pld.material AS materialCode, - mat.name AS materialName, - sup.name AS supplierName, - ((SELECT ratePerUnit FROM pricelistdetails WHERE material=pld.material AND pl.rateType = 'Quotation' AND pld.tenantid = $tenantid - AND FROMdate::bigint <= (SELECT extract(epoch FROM now())*1000) AND todate::bigint >= (SELECT extract(epoch FROM now()))*1000) - ORDER BY createdtime desc limit 1) AS quotation, - ((SELECT ratePerUnit FROM pricelistdetails WHERE material=pld.material AND pl.rateType ='DGSC Rate Contract' AND pld.tenantid = $tenantid - AND FROMdate::bigint <= (SELECT extract(epoch FROM now())*1000) AND todate::bigint >= (SELECT extract(epoch FROM now()))*1000) - ORDER BY createdtime desc limit 1) AS dgsnd, - ((SELECT ratePerUnit FROM pricelistdetails WHERE material=pld.material AND pl.rateType = 'ULB Rate Contract' AND pld.tenantid = $tenantid - AND FROMdate::bigint <= (SELECT extract(epoch FROM now())*1000) AND todate::bigint >= (SELECT extract(epoch FROM now()))*1000) - ORDER BY createdtime desc limit 1) AS dtt, - ((SELECT ratePerUnit FROM pricelistdetails WHERE material=pld.material AND pl.rateType = 'One Time Tender' AND pld.tenantid = $tenantid - AND FROMdate::bigint <= (SELECT extract(epoch FROM now())*1000) AND todate::bigint >= (SELECT extract(epoch FROM now()))*1000) - ORDER BY createdtime desc limit 1) AS tender - FROM pricelistdetails pld, pricelist pl, (VALUES tbl_material) AS mat (code, name, tenantid) , supplier sup - WHERE pld.tenantid = $tenantid - AND pl.tenantid = pld.tenantid - AND sup.tenantid=pl.tenantId - AND mat.tenantid = pl.tenantid - AND mat.code = pld.material - AND sup.code = pl.supplier - AND pld.deleted = false - AND pld.pricelist = pl.id - -# Procurement Expenditure Report -# Need to Change drop down Link based on report and Query -- reportName: procurementExpenditureReport - summary: Procurement Expenditure Report - version: 1.0.0 - moduleName: inventory - sourceColumns: - - - name: budgetHeadCode - label: inventory.budgetHeadCode - type: string - source: inventory - - - name: nameOfBudgetHead - label: inventory.nameOfBudgetHead - type: string - source: inventory - - - name: estimateBudget - label: inventory.estimateBudget - type: string - source: inventory - - - name: actualExpenses - label: inventory.actualExpenses - type: string - source: inventory - - - name: remainingBudget - label: inventory.remainingBudget - type: string - source: inventory - - searchParams: - - - name: storeName - label: inventory.store.name - type: singlevaluelist - pattern: http://inventory-services:8080/inventory-services/stores/_search?active=true&tenantId=$tenantid|$..code|$..name - source: inventory - isMandatory: true - wrapper: true - - - name: financialYear - label: inventory.financialYear - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=egf-master&masterName=FinancialYear|$..finYearRange|$..finYearRange - source: inventory - isMandatory: true - - - name: budgetHead - label: inventory.budgetHead - type: singlevaluelist - source: inventory - isMandatory: true - - query: SELECT * FROM material; - -# Supplier wise Purchase Order History Report -- reportName: SupplierwisesPurchaseOrderHistoryReport - summary: Supplier wise Purchase Order History - version: 1.0.0 - moduleName: inventory - sourceColumns: - - - name: supplierName - label: inventory.supplierName - type: string - source: inventory - - - name: supplierCompanyName - label: inventory.supplierCompanyName - type: string - source: inventory - - - name: poNo - label: inventory.poNo - type: string - source: inventory - - - name: poDate - label: inventory.poDate - type: epoch - source: inventory - - - name: poStatus - label: inventory.poStatus - type: string - source: inventory - - - name: expectedDeliveryDate - label: inventory.expecteddeliverydate - type: epoch - source: inventory - - - name: paymentDueDate - label: inventory.paymentDueDate - type: epoch - source: inventory - - - name: qtyOrdered - label: inventory.qtyOrdered - type: string - source: inventory - - - name: poTotal - label: inventory.poTotal - type: string - source: inventory - - - name: amountPaid - label: inventory.amountPaid - type: string - source: inventory - - - name: balanceDue - label: inventory.balanceDue - type: string - source: inventory - - searchParams: - - - name: supplierName - label: inventory.supplierName - pattern: http://inventory-services:8080/inventory-services/suppliers/_search?tenantId=$tenantid|$..code|$..name - type: singlevaluelist - source: inventory - searchClause: AND po.supplier = $supplierName - wrapper: true - isMandatory: false - - - name: supplierCompanyName - label: inventory.supplierCompanyName - pattern: http://inventory-services:8080/inventory-services/suppliers/_search?tenantId=$tenantid&type=COMPANY|$..code|$..name - type: singlevaluelist - source: inventory - searchClause: AND sup.name = $supplierCompanyName - isMandatory: false - - - name: storeName - label: inventory.store.name - pattern: http://inventory-services:8080/inventory-services/stores/_search?active=true&tenantId=$tenantid|$..code|$..name - type: singlevaluelist - searchClause: AND po.store = $storeName - source: inventory - isMandatory: false - wrapper: true - - - name: poNo - label: inventory.poNo - type: string - source: inventory - searchClause: AND po.purchaseordernumber = $poNo - isMandatory: false - - - name: poDate - label: inventory.poDate - type: epoch - source: inventory - searchClause: AND po.purchaseorderdate = $poDate - isMandatory: false - - query: SELECT sup.name AS suppliername, - (SELECT name FROM supplier WHERE type = 'COMPANY' AND tenantid =$tenantid) AS supplierCompanyName, - po.purchaseorderNumber AS PoNo, - po.purchaseorderdate AS PoDate, - po.status AS postatus, - po.expecteddeliverydate AS expecteddeliverydate, - pod.orderquantity AS qtyOrdered - FROM supplier sup,purchaseorder po,purchaseorderdetail pod - WHERE po.tenantid = $tenantid - AND pod.tenantid = po.tenantid - AND pod.tenantid = sup.tenantid - AND po.purchaseordernumber = pod.purchaseorder - AND po.supplier = sup.code - -# Material wise Purchase Order History Report -- reportName: MaterialwisePurchaseOrderHistoryReport - summary: Material wise Purchase Order History - version: 1.0.0 - moduleName: inventory - externalService: - - entity: $.MdmsRes.inventory.Material - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid - keyOrder: code,name,tenantId,description - tableName: tbl_material - sourceColumns: - - - name: materialName - label: inventory.materialName - type: string - source: inventory - - - name: materialdescription - label: inventory.material.description - type: string - source: inventory - - - name: poNo - label: inventory.poNo - type: string - source: inventory - - - name: poDate - label: inventory.poDate - type: epoch - source: inventory - - - name: poStatus - label: inventory.poStatus - type: string - source: inventory - - - name: expectedDeliveryDate - label: inventory.expecteddeliverydate - type: epoch - source: inventory - - - name: paymentDueDate - label: inventory.paymentDueDate - type: epoch - source: inventory - - - name: qtyOrdered - label: inventory.qtyOrdered - type: string - source: inventory - - - name: poTotal - label: inventory.poTotal - type: string - source: inventory - - searchParams: - - - name: materialName - label: inventory.materialName - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid - type: singlevaluelist - source: inventory - searchClause: AND pld.material = $materialName - wrapper: true - isMandatory: false - - - name: storeName - label: inventory.store.name - pattern: http://inventory-services:8080/inventory-services/stores/_search?active=true&tenantId=$tenantid|$..code|$..name - type: singlevaluelist - source: inventory - searchClause: AND po.store = $storeName - isMandatory: false - wrapper: true - - - name: poNo - label: inventory.poNo - type: string - source: inventory - searchClause: AND po.purchaseordernumber = $poNo - isMandatory: false - - - name: poDate - label: inventory.poDate - type: epoch - source: inventory - searchClause: AND po.purchaseorderdate = $poDate - isMandatory: false - - query: SELECT mat.name AS materialName, - mat .description AS materialdescription, - po.purchaseorderNumber AS PoNo, - po.purchaseorderdate AS PoDate, - po.status AS postatus, - po.expecteddeliverydate AS expecteddeliverydate, - pod.orderquantity AS qtyOrdered - FROM (VALUES tbl_material) AS mat (code, name, tenantid,description),purchaseorder po,purchaseorderdetail pod - WHERE po.tenantid = $tenantid - AND pod.tenantid = po.tenantid - AND pod.tenantid = mat.tenantid - AND po.purchaseordernumber = pod.purchaseorder - AND pod.material = mat.code - -# Inventory Register Report -- reportName: inventoryRegisterReport - summary: Inventory Register - version: 1.0.0 - moduleName: inventory - sourceColumns: - - name: storeName - label: inventory.store.name - type: string - source: inventory - - - name: deptName - label: inventory.deptName - type: string - source: inventory - - - name: materialName - label: inventory.materialName - type: string - source: material - - - name: supplierName - label: inventory.suppliername - type: string - source: inventory - - - name: qty - label: inventory.qty - type: string - source: inventory - - - name: uom - label: inventory.uom - type: string - source: inventory - - - name: unitRate - label: inventory.unitrate - type: string - source: inventory - - - name: totalAmount - label: inventory.totalAmount - type: string - source: inventory - - - name: receiptDate - label: inventory.date - type: string - source: inventory - - - name: transactionNumber - label: inventory.transactionnumber - type: string - source: inventory - - - name: receiptType - label: inventory.receiptType - type: string - source: inventory - - searchParams: - - name: storeName - label: inventory.store.name - type: singlevaluelist - pattern: http://inventory-services:8080/inventory-services/stores/_search?active=true&tenantId=$tenantid|$..code|$..name - source: store - searchClause: AND store.code = $storeName - isMandatory: true - wrapper: true - - - name: materialName - label: inventory.materialName - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid|$.MdmsRes.inventory.Material.*.code|$.MdmsRes.inventory.Material.*.name - source: materialReceipt - isMandatory: false - query: select store.name as storeName,store.department as deptName, - sup.name as supplierName, - detail.receivedqty as qty,detail.uomno as uom,detail.unitrate as unitRate, - (detail.receivedqty * detail.unitrate) as totalAmount, - (select to_date(to_char(to_timestamp(Trunc(CAST(mat.receiptdate as bigint)/1000 )), 'YYYY/MM/DD'), 'YYYY-MM-DD')) as receiptDate, - detail.mrnnumber as transactionNumber,mat.receipttype as receipttype - from materialreceiptdetail detail,materialreceipt mat,store store,supplier sup - where detail.tenantid=$tenantid - AND mat.tenantid=detail.tenantid - AND store.tenantid=mat.tenantid - AND sup.tenantid= store.tenantid - AND mat.suppliercode =sup.code - AND mat.receivingstore=store.code - AND mat.mrnnumber=detail.mrnnumber - -# Need to add query -# Stock Aging Report -- reportName: stockAgingReport - summary: Stock Aging Report - version: 1.0.0 - moduleName: inventory - sourceColumns: - - name: materialCode - label: inventory.materialcode - type: string - source: inventory - - - name: materialName - label: inventory.materialName - type: string - source: inventory - - - name: materialTypeName - label: inventory.materialTypeName - type: string - source: material - - - name: lotNo - label: inventory.lotNo - type: string - source: inventory - - - name: qtyFrom0to90Days - label: inventory.qtyFrom0to90Days - type: string - source: inventory - - - name: stockValueFrom0to90Days - label: inventory.stockValueFrom0to90Days - type: string - source: inventory - - - name: qtyFrom91to180Days - label: inventory.qtyFrom91to180Days - type: string - source: inventory - - - name: stockValueFrom91to180Days - label: inventory.stockValueFrom91to180Days - type: string - source: inventory - - - name: qtyFrom181DaysAndAbove - label: inventory.qtyFrom181DaysAndAbove - type: string - source: inventory - - - name: stockValueFrom181DaysAndAbove - label: inventory.stockValueFrom181DaysAndAbove - type: string - source: inventory - - - name: totalQty - label: inventory.totalQty - type: string - source: inventory - - - name: totalStockValue - label: inventory.totalStockValue - type: string - source: inventory - - searchParams: - - name: storeName - label: inventory.store.name - type: singlevaluelist - pattern: http://inventory-services:8080/inventory-services/stores/_search?active=true&tenantId=$tenantid|$..code|$..name - source: store - searchClause: AND store.code = $storeName - isMandatory: true - wrapper: true - - - name: materialTypeName - label: inventory.materialTypeName - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=MaterialType&tenantId=$tenantid|$.MdmsRes.inventory.Material.*.code|$.MdmsRes.inventory.Material.*.name - source: materialReceipt - isMandatory: false - - - name: materialName - label: inventory.materialName - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=inventory&masterName=Material&tenantId=$tenantid|$.MdmsRes.inventory.Material.*.code|$.MdmsRes.inventory.Material.*.name - source: materialReceipt - isMandatory: false - - - name: asOnDate - label: inventory.asOnDate - type: epoch - source: inventory - isMandatory: true - query: - - - - - - - diff --git a/reports/config/lcms-reports.yml b/reports/config/lcms-reports.yml deleted file mode 100644 index ed7a3602..00000000 --- a/reports/config/lcms-reports.yml +++ /dev/null @@ -1,891 +0,0 @@ ---- -ReportDefinitions: -- reportName: CaseRegisterReport - summary: Case Register Report - version: 1.0.0 - moduleName: lcms - selectiveDownload: true - externalService: - - entity: $.MdmsRes.lcms.court - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=court&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_court - sourceColumns: - - name: caseno - label: reports.lcms.caseNo - type: string - source: lcms - showColumn: true - - name: plantiffname - label: reports.lcms.nameOfPlaintiff - type: string - source: lcms - showColumn: true - - name: defendant - label: reports.lcms.nameOfDefendant - type: string - source: lcms - showColumn: true - - name: pleaderengagementdetails - label: reports.lcms.amountOfPleadersEngaged - type: string - source: lcms - showColumn: false - - name: sectionapplied - label: reports.lcms.sectionApplied - type: string - source: lcms - showColumn: false - - name: receiptdate - label: reports.lcms.dateOfReceiptOfOfficer - type: epoch - source: lcms - showColumn: false - - name: summondate - label: reports.lcms.dateOfSummon - type: epoch - source: lcms - showColumn: false - - name: resolutiondetails - label: reports.lcms.resolutionOfMunicipalDate - type: string - source: lcms - showColumn: false - - name: pleaderfee - label: reports.lcms.particularsOfPleadersFee - type: string - source: lcms - showColumn: false - - name: vakalatnamagenerationdate - label: reports.lcms.dateOfProductionOfVakalatnama - type: epoch - source: lcms - showColumn: false - - name: courtname - label: reports.lcms.suitFiledCourtName - type: string - source: lcms - showColumn: true - - name: departmentperson - label: reports.lcms.nameOfResponsibleOfficer - type: string - source: lcms - showColumn: false - - name: judgementdate - label: reports.lcms.dateOfJudgment - type: epoch - source: lcms - showColumn: false - - name: casejudgement - label: reports.lcms.judgmentDetails - type: string - source: lcms - showColumn: false - - name: advocateopinion - label: reports.lcms.opinionOfPleader - type: string - source: lcms - showColumn: false - - name: furtherprocessdetails - label: reports.lcms.furtherProcessDetails - type: string - source: lcms - showColumn: false - - name: particularsamount - label: reports.lcms.particularsOfActualAmount - type: string - source: lcms - showColumn: false - - name: voucherdate - label: reports.lcms.dateOfCredit - type: epoch - source: lcms - showColumn: false - - name: paymentdetails - label: reports.lcms.particularsOfPayment - type: string - source: lcms - showColumn: false - - name: voucherdate - label: reports.lcms.dateOfDebit - type: epoch - source: lcms - showColumn: false - - name: verificationremarks - label: reports.lcms.remarksRegardingReferenceToCourt - type: string - source: lcms - showColumn: false - - name: remarks - label: reports.lcms.remarks - type: string - source: lcms - showColumn: false - searchParams: - - name: fromDate - label: reports.lcms.fromDate - type: epoch - source: lcms - isMandatory: true - - name: toDate - label: reports.lcms.toDate - type: epoch - source: lcms - isMandatory: true - - name: caseNo - label: reports.lcms.caseNo - type: string - isMandatory: false - source: lcms - searchClause : AND upper(lc.caseno) = upper($caseNo) - - name: lcNumber - label: reports.lcms.lcNumber - type: string - isMandatory: false - source: lcms - searchClause : AND upper(lc.summonreferenceno) = upper($lcNumber) - - name: caseTitle - label: reports.lcms.caseTitle - type: string - isMandatory: false - source: lcms - searchClause : AND upper(lc.casedetails) = upper($caseTitle) - - name: courtName - label: reports.lcms.courtName - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=court|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.courtname ->> 'code' = $courtName - - name: plaintiff - label: reports.lcms.plaintiff - type: string - isMandatory: false - source: lcms - searchClause : AND upper(lc.plantiffname) = upper($plaintiff) - - name: defendant - label: reports.lcms.defendant - type: string - isMandatory: false - source: lcms - searchClause : AND upper(lc.defendant) = upper($defendant) - - name: department - label: reports.lcms.department - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.departmentname ->> 'code' = $department - - name: caseStatus - label: reports.lcms.caseStatus - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=caseStatus|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.casestatus ->> 'code' = $caseStatus - query: select lc.caseno, lc.plantiffname, lc.defendant, lc.pleaderengagementdetails ,lc.sectionapplied, lc.summondate, CONCAT(lc.resloution, ', ', lc.resloutiondate) AS resolutiondetails, lc.vakalatnamagenerationdate, (select name from (VALUES tbl_court) as court (code,name) where court.code=lc.courtname::jsonb ->> 'code')as courtname, lc.departmentperson, lhd.judgementdate, lhd.casejudgement, lhd.advocateopinion, lhd.furtherprocessdetails, lc.remarks from egov_lcms_case lc LEFT OUTER JOIN egov_lcms_hearing_details as lhd ON (lc.code = lhd.casecode AND lhd.casestatus ->> 'code'= 'FO') WHERE lc.caseregistrationdate>=$fromDate and lc.caseregistrationdate<=$toDate AND lc.tenantid=$tenantid -- reportName: CaseSummaryReport - summary: Case Summary Report - version: 1.0.0 - moduleName: lcms - selectiveDownload: true - externalService: - - entity: $.MdmsRes.lcms.caseType - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseType&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casetype - - entity: $.MdmsRes.lcms.court - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=court&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_court - - entity: $.MdmsRes.lcms.caseStatus - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseStatus&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casestatus - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_department - sourceColumns: - - name: caseno - label: reports.lcms.caseNo - type: string - source: lcms - showColumn: true - - name: department - label: reports.lcms.department - type: string - source: lcms - showColumn: false - - name: casetype - label: reports.lcms.caseType - type: string - source: lcms - showColumn: false - - name: plantiffname - label: reports.lcms.plaintiff - type: string - source: lcms - showColumn: true - - name: defendant - label: reports.lcms.defendant - type: string - source: lcms - showColumn: true - - name: courtname - label: reports.lcms.courtName - type: string - source: lcms - showColumn: true - - name: advocate - label: reports.lcms.advocateName - type: string - source: lcms - showColumn: false - - name: casestatus - label: reports.lcms.status - type: string - source: lcms - showColumn: false - searchParams: - - name: fromDate - label: reports.lcms.fromDate - type: epoch - source: lcms - isMandatory: true - - name: toDate - label: reports.lcms.toDate - type: epoch - source: lcms - isMandatory: true - - name: caseNo - label: reports.lcms.caseNo - type: string - isMandatory: false - source: lcms - searchClause : AND lc.caseno=$caseNo - - name: department - label: reports.lcms.department - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.departmentname ->> 'code' = $department - - name: advocate - label: reports.lcms.advocate - type: singlevaluelist - pattern: http://lcms-services:8080/lcms-services/legalcase/advocate/_search?tenantId=$tenantid&pageSize=500|$..code|$..name - source: lcms - searchClause : AND position($advocate in tempadvocate.advocatecode) > 0 - isMandatory: false - - name: courtName - label: reports.lcms.courtName - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=court|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.courtname ->> 'code' = $courtName - - name: plaintiff - label: reports.lcms.plaintiff - type: string - isMandatory: false - source: lcms - searchClause : AND lc.plantiffname = $plaintiff - - name: defendant - label: reports.lcms.defendant - type: string - isMandatory: false - source: lcms - searchClause : AND lc.defendant = $defendant - query: select lc.caseno, (select name from (VALUES tbl_department) as departmentdata (code,name) where departmentdata.code= lc.departmentname->>'code')as department, (select name from (VALUES tbl_casetype) as casetype (code,name) where casetype.code=lc.casetype::jsonb ->> 'code') as casetype, lc.plantiffName, lc.defendant, (select name from (VALUES tbl_court) as court (code,name) where court.code=lc.courtname::jsonb ->> 'code') as courtname, tempadvocate.advocatename as advocate,(select name from (VALUES tbl_casestatus) as casestatus (code,name) where casestatus.code=lc.casestatus::jsonb ->> 'code') as casestatus from egov_lcms_case as lc left outer join - (select lca.casecode as casecode, string_agg(la.name,',') as advocatename,string_agg(la.code,',') as advocatecode from egov_lcms_case_advocate as lca inner join egov_lcms_advocate as la on la.code=lca.advocate->>'code' where lca.tenantid=$tenantid group by lca.casecode) as tempadvocate on lc.code=tempadvocate.casecode WHERE lc.caseregistrationdate>=$fromDate and lc.caseregistrationdate<=$toDate and lc.tenantid=$tenantid - -- reportName: CaseDetailReport - summary: Case Detail Report - version: 1.0.0 - moduleName: lcms - selectiveDownload: true - externalService: - - entity: $.MdmsRes.lcms.court - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=court&tenantId=$tenantid - keyOrder: code,name,type - tableName: tbl_court - - entity: $.MdmsRes.lcms.caseCategory - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseCategory&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casecategory - - entity: $.MdmsRes.lcms.caseStatus - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseStatus&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casestatus - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_department - - sourceColumns: - - name: caseno - label: reports.lcms.caseNo - type: string - source: lcms - showColumn: false - - name: courtname - label: reports.lcms.courtName - type: string - source: lcms - showColumn: true - - name: courttype - label: reports.lcms.courtType - type: string - source: lcms - showColumn: false - - name: department - label: reports.lcms.department - type: string - source: lcms - showColumn: false - - name: casecategory - label: reports.lcms.caseCategory - type: string - source: lcms - showColumn: false - - name: sectionapplied - label: reports.lcms.sectionNo - type: string - source: lcms - showColumn: false - - name: advocate - label: reports.lcms.advocateName - type: string - source: lcms - showColumn: false - - name: plantiffname - label: reports.lcms.petitionName - type: string - source: lcms - showColumn: true - - name: defendant - label: reports.lcms.defendant - type: string - source: lcms - showColumn: true - - name: casestatus - label: reports.lcms.caseStatus - type: string - source: lcms - showColumn: true - searchParams: - - name: fromDate - label: reports.lcms.fromDate - type: epoch - source: lcms - isMandatory: true - - name: toDate - label: reports.lcms.toDate - type: epoch - source: lcms - isMandatory: true - - name: caseStatus - label: reports.lcms.caseStatus - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=caseStatus|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.casestatus ->> 'code'= $caseStatus - - name: sectionNo - label: reports.lcms.sectionNo - type: string - isMandatory: false - source: lcms - searchClause : AND lc.sectionapplied=$sectionNo - - name: advocate - label: reports.lcms.advocate - type: singlevaluelist - pattern: http://lcms-services:8080/lcms-services/legalcase/advocate/_search?tenantId=$tenantid&pageSize=500|$..code|$..name - source: lcms - isMandatory: false - searchClause : AND position($advocate in tempadvocate.advocatecode) > 0 - - name: courtName - label: reports.lcms.courtName - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=court|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.courtname ->> 'code' = $courtName - - name: plaintiff - label: reports.lcms.plaintiff - type: string - isMandatory: false - source: lcms - searchClause : AND lc.plantiffname = $plaintiff - - name: defendant - label: reports.lcms.defendant - type: string - isMandatory: false - source: lcms - searchClause : AND lc.defendant = $defendant - - name: caseCategory - label: reports.lcms.caseCategory - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=caseCategory|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.casecategory ->> 'code' = $caseCategory - - name: department - label: reports.lcms.department - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.departmentname ->> 'code' = $department - - name: caseType - label: reports.lcms.caseType - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=caseType|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.casetype ->> 'code' = $caseType - query: select lc.caseno, (select name from (VALUES tbl_court) as court (code,name,type) where court.code=lc.courtname::jsonb ->> 'code') as courtname, (select type from (VALUES tbl_court) as court (code,name,type) where court.code=lc.courtname::jsonb ->> 'code') as courttype, (select name from (VALUES tbl_department) as departmentdata (code,name) where departmentdata.code= lc.departmentname->>'code')as department, (select name from (VALUES tbl_casecategory) as caseCategory (code,name) where caseCategory.code=lc.casecategory::jsonb ->> 'code') as casecategory, lc.sectionapplied, tempadvocate.advocatename as advocate, lc.plantiffName,lc.defendant, (select name from (VALUES tbl_casestatus) as caseStatus (code,name) where caseStatus.code=lc.casestatus::jsonb ->> 'code') as casestatus from egov_lcms_case as lc left outer join - (select lca.casecode as casecode, string_agg(la.name,',') as advocatename,string_agg(la.code,',') as advocatecode from egov_lcms_case_advocate as lca inner join egov_lcms_advocate as la on la.code=lca.advocate->>'code' where lca.tenantid=$tenantid group by lca.casecode) as tempadvocate on lc.code=tempadvocate.casecode WHERE lc.caseregistrationdate>=$fromDate and lc.caseregistrationdate<=$toDate and lc.tenantid=$tenantid -- reportName: CaseHistoryReport - summary: Case History Report - version: 1.0.0 - moduleName: lcms - selectiveDownload: true - externalService: - - entity: $.MdmsRes.lcms.caseType - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseType&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casetype - - entity: $.MdmsRes.lcms.court - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=court&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_court - - entity: $.MdmsRes.lcms.caseStatus - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseStatus&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casestatus - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_department - sourceColumns: - - name: caseno - label: reports.lcms.caseNo - type: string - source: lcms - showColumn: true - - name: summondate - label: reports.lcms.caseDate - type: epoch - source: lcms - showColumn: false - - name: courtname - label: reports.lcms.courtName - type: string - source: lcms - showColumn: true - - name: casetype - label: reports.lcms.caseType - type: string - source: lcms - showColumn: true - - name: department - label: reports.lcms.department - type: string - source: lcms - showColumn: false - - name: advocate - label: reports.lcms.advocateName - type: string - source: lcms - showColumn: true - - name: plantiffname - label: reports.lcms.plaintiff - type: string - source: lcms - showColumn: false - - name: defendant - label: reports.lcms.defendant - type: string - source: lcms - showColumn: false - - name: hearingdate - label: reports.lcms.hearingDate - type: epoch - source: lcms - showColumn: false - - name: casestatus - label: reports.lcms.status - type: string - source: lcms - showColumn: false - searchParams: - - name: fromDate - label: reports.lcms.fromDate - type: epoch - source: lcms - isMandatory: true - - name: toDate - label: reports.lcms.toDate - type: epoch - source: lcms - isMandatory: true - - - name: oragnization - label: reports.lcms.organization - type: singlevaluelist - pattern: http://lcms-services:8080/lcms-services/legalcase/advocate/agency/_search?tenantId=$tenantid&pageSize=500|$.agencies[*].name|$.agencies[*].name - source: lcms - isMandatory: false - - - name: advocatename - label: reports.lcms.advocate - type: url - pattern: /lcms-services/legalcase/advocate/agency/_search?tenantId=$tenantid&agencyName={oragnization}&pageSize=500|$.agencies[*].advocates[*].code|$.agencies[*].advocates[*].name - source: lcms - isMandatory: false - searchClause : AND position($advocatename in tempadvocate.advocatecode) > 0 - - - name: department - label: reports.lcms.department - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.departmentname ->> 'code' = $department - - name: caseType - label: reports.lcms.caseType - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=caseType|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.casetype ->> 'code' = $caseType - - name: courtName - label: reports.lcms.courtName - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=court|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.courtname ->> 'code' = $courtName - - - name: caseStatus - label: reports.lcms.caseStatus - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=caseStatus|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.casestatus ->> 'code'= $caseStatus - query: select lc.caseno, lc.summondate, (select name from (VALUES tbl_court) as court (code,name) where court.code=lc.courtname::jsonb ->> 'code') as courtname, (select name from (VALUES tbl_casetype) as caseType (code,name) where caseType.code=lc.casetype::jsonb ->> 'code') as casetype, tempadvocate.advocatename as advocate, (select name from (VALUES tbl_department) as departmentdata (code,name) where departmentdata.code= lc.departmentname->>'code')as department, lc.plantiffName, lc.defendant, lc.hearingdate, (select name from (VALUES tbl_casestatus) as caseStatus (code,name) where caseStatus.code=lc.casestatus::jsonb ->> 'code') as casestatus from egov_lcms_case as lc left outer join (select lca.casecode as casecode, string_agg(la.name,',') as advocatename,string_agg(la.code,',') as advocatecode from egov_lcms_case_advocate as lca inner join egov_lcms_advocate as la on la.code=lca.advocate->>'code' where lca.tenantid=$tenantid group by lca.casecode) as tempadvocate on lc.code=tempadvocate.casecode WHERE lc.caseregistrationdate>=$fromDate and lc.caseregistrationdate<=$toDate -- reportName: CasePendencyReport - summary: Case Pendency Report - version: 1.0.0 - moduleName: lcms - selectiveDownload: true - externalService: - - entity: $.MdmsRes.lcms.caseType - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseType&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casetype - - entity: $.MdmsRes.lcms.court - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=court&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_court - - entity: $.MdmsRes.lcms.caseStatus - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseStatus&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casestatus - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_department - sourceColumns: - - name: caseno - label: reports.lcms.caseNo - type: string - source: lcms - showColumn: true - - name: advocate - label: reports.lcms.advocateName - type: string - source: lcms - showColumn: true - - name: department - label: reports.lcms.department - type: string - source: lcms - showColumn: true - - name: courtname - label: reports.lcms.courtName - type: string - source: lcms - showColumn: false - - name: casetype - label: reports.lcms.caseType - type: string - source: lcms - showColumn: true - - name: plantiffname - label: reports.lcms.plaintiff - type: string - source: lcms - showColumn: false - - name: defendant - label: reports.lcms.defendant - type: string - source: lcms - showColumn: false - - name: casejudgement - label: reports.lcms.hearingDetails - type: string - source: lcms - showColumn: false - - name: casestatus - label: reports.lcms.caseStatus - type: string - source: lcms - showColumn: false - searchParams: - - name: fromDate - label: reports.lcms.fromDate - type: epoch - source: lcms - isMandatory: true - - name: toDate - label: reports.lcms.toDate - type: epoch - source: lcms - isMandatory: true - - name: department - label: reports.lcms.department - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.departmentname ->> 'code' = $department - - name: advocate - label: reports.lcms.advocate - type: singlevaluelist - pattern: http://lcms-services:8080/lcms-services/legalcase/advocate/_search?tenantId=$tenantid&pageSize=500|$..code|$..name - source: lcms - isMandatory: false - searchClause : AND position($advocate in tempadvocate.advocatecode) > 0 - query: select lc.caseno, tempadvocate.advocatename as advocate, (select name from (VALUES tbl_department) as departmentdata (code,name) where departmentdata.code= lc.departmentname->>'code')as department, (select name from (VALUES tbl_court) as court (code,name) where court.code=lc.courtname::jsonb ->> 'code') as courtname, (select name from (VALUES tbl_casetype) as caseType (code,name) where caseType.code=lc.casetype::jsonb ->> 'code') as casetype, lc.plantiffName, lc.defendant, (select casejudgement from egov_lcms_hearing_details as lhd where lhd.casestatus->>'code'=lc.casestatus->>'code' and lhd.casecode=lc.code order by createdtime desc limit 1 ) as casejudgement, (select name from (VALUES tbl_casestatus) as caseStatus (code,name) where caseStatus.code=lc.casestatus::jsonb ->> 'code') as casestatus from egov_lcms_case as lc left outer join (select lca.casecode as casecode, string_agg(la.name,',') as advocatename,string_agg(la.code,',') as advocatecode from egov_lcms_case_advocate as lca inner join egov_lcms_advocate as la on la.code=lca.advocate->>'code' where lca.tenantid=$tenantid group by lca.casecode) as tempadvocate on lc.code=tempadvocate.casecode WHERE lc.caseregistrationdate>=$fromDate and lc.caseregistrationdate<=$toDate and lc.tenantid=$tenantid -- reportName: CaseStatusReport - summary: Case Status Report - version: 1.0.0 - moduleName: lcms - selectiveDownload: true - externalService: - - entity: $.MdmsRes.lcms.caseType - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseType&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casetype - - entity: $.MdmsRes.lcms.court - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=court&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_court - - entity: $.MdmsRes.lcms.caseStatus - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseStatus&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casestatus - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_department - - sourceColumns: - - name: caseno - label: reports.lcms.caseNo - type: string - source: lcms - showColumn: true - - name: advocate - label: reports.lcms.advocateName - type: string - source: lcms - showColumn: true - - name: department - label: reports.lcms.department - type: string - source: lcms - showColumn: false - - name: courtname - label: reports.lcms.courtName - type: string - source: lcms - showColumn: false - - name: casetype - label: reports.lcms.caseType - type: string - source: lcms - showColumn: true - - name: plantiffname - label: reports.lcms.plaintiff - type: string - source: lcms - showColumn: false - - name: defendant - label: reports.lcms.defendant - type: string - source: lcms - showColumn: false - - name: casejudgement - label: reports.lcms.hearingDetails - type: string - source: lcms - showColumn: false - - name: casestatus - label: reports.lcms.status - type: string - source: lcms - showColumn: true - searchParams: - - name: fromDate - label: reports.lcms.fromDate - type: epoch - source: lcms - isMandatory: true - - name: toDate - label: reports.lcms.toDate - type: epoch - source: lcms - isMandatory: true - - name: caseStatus - label: reports.lcms.caseStatus - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=caseStatus|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.casestatus ->> 'code'= $caseStatus - query: select lc.caseno, (select string_agg(name, ', ') from egov_lcms_advocate where code in( select advocate->>'code' from egov_lcms_case_advocate where casecode=lc.code)) as advocate, (select name from (VALUES tbl_department) as departmentdata (code,name) where departmentdata.code= lc.departmentname->>'code')as department,(select name from (VALUES tbl_court) as court (code,name) where court.code=lc.courtname::jsonb ->> 'code') as courtname, (select name from (VALUES tbl_casetype) as caseType (code,name) where caseType.code=lc.casetype::jsonb ->> 'code') as casetype, lc.plantiffName, lc.defendant,(select casejudgement from egov_lcms_hearing_details as lhd where lhd.casestatus->>'code'=lc.casestatus->>'code' and lhd.casecode=lc.code order by createdtime desc limit 1) as casejudgement, (select name from (VALUES tbl_casestatus) as caseStatus (code,name) where caseStatus.code=lc.casestatus::jsonb ->> 'code') as casestatus from egov_lcms_case as lc WHERE lc.caseregistrationdate>=$fromDate and lc.caseregistrationdate<=$toDate and lc.tenantid=$tenantid -- reportName: DueDateReport - summary: Due Date Report - version: 1.0.0 - moduleName: lcms - selectiveDownload: true - externalService: - - entity: $.MdmsRes.lcms.caseType - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseType&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casetype - - entity: $.MdmsRes.lcms.court - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=court&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_court - - entity: $.MdmsRes.lcms.caseStatus - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=lcms&masterName=caseStatus&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_casestatus - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid - keyOrder: code,name - tableName: tbl_department - sourceColumns: - - name: caseno - label: reports.lcms.caseNo - type: string - source: lcms - showColumn: true - - name: courtname - label: reports.lcms.courtName - type: string - source: lcms - showColumn: false - - name: casetype - label: reports.lcms.caseType - type: string - source: lcms - showColumn: true - - name: department - label: reports.lcms.department - type: string - source: lcms - showColumn: false - - name: departmentperson - label: reports.lcms.concernedPersonName - type: string - source: lcms - showColumn: false - - name: advocate - label: reports.lcms.advocateName - type: string - source: lcms - showColumn: true - - name: plantiffname - label: reports.lcms.plaintiff - type: string - source: lcms - showColumn: false - - name: defendant - label: reports.lcms.defendant - type: string - source: lcms - showColumn: false - - name: casestatus - label: reports.lcms.caseStatus - type: string - source: lcms - showColumn: true - - name: hearingdate - label: reports.lcms.hearingDetailsDateAndTime - type: epoch - source: lcms - showColumn: false - searchParams: - - name: fromDate - label: reports.lcms.fromDate - type: epoch - source: lcms - isMandatory: true - - name: toDate - label: reports.lcms.toDate - type: epoch - source: lcms - isMandatory: true - - name: department - label: reports.lcms.department - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.departmentname ->> 'code' = $department - - name: departmentPerson - label: reports.lcms.departmentPerson - type: string - isMandatory: false - source: lcms - searchClause : AND lc.departmentperson=$departmentPerson - - name: advocate - label: reports.lcms.advocate - type: singlevaluelist - pattern: http://lcms-services:8080/lcms-services/legalcase/advocate/_search?tenantId=$tenantid&pageSize=500|$..code|$..name - source: lcms - isMandatory: false - searchClause : AND position($advocate in tempadvocate.advocatecode) > 0 - - name: courtName - label: reports.lcms.courtName - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=lcms&masterName=court|$..code|$..name - source: lcms - wrapper: true - isMandatory: false - searchClause : AND lc.courtname ->> 'code' = $courtName - query: select lc.caseno, (select name from (VALUES tbl_court) as court (code,name) where court.code=lc.courtname::jsonb ->> 'code') as courtname, (select name from (VALUES tbl_casetype) as caseType (code,name) where caseType.code=lc.casetype::jsonb ->> 'code') as casetype, (select name from (VALUES tbl_department) as departmentdata (code,name) where departmentdata.code= lc.departmentname->>'code')as department, lc.departmentperson, tempadvocate.advocatename as advocate, lc.plantiffName, lc.defendant, (select name from (VALUES tbl_casestatus) as caseStatus (code,name) where caseStatus.code=lc.casestatus::jsonb ->> 'code') as casestatus, lc.hearingdate from egov_lcms_case as lc left outer join (select lca.casecode as casecode, string_agg(la.name,',') as advocatename,string_agg(la.code,',') as advocatecode from egov_lcms_case_advocate as lca inner join egov_lcms_advocate as la on la.code=lca.advocate->>'code' where lca.tenantid=$tenantid group by lca.casecode) as tempadvocate on lc.code=tempadvocate.casecode WHERE lc.caseregistrationdate>=$fromDate and lc.caseregistrationdate<=$toDate and lc.tenantid=$tenantid diff --git a/reports/config/mcollect-reports.yml b/reports/config/mcollect-reports.yml deleted file mode 100644 index 1e460563..00000000 --- a/reports/config/mcollect-reports.yml +++ /dev/null @@ -1,292 +0,0 @@ -ReportDefinitions: - - reportName: MCollectReceiptRegister - decryptionPathId: MCollectReceiptRegister - summary: Report is used for audit and year-end finance reconciliation activities by the ULBs. It also serves as the data dump needed by the ULBs. - version: 1.0.0 - moduleName: mcollect - sourceColumns: - - name: challannumber - label: reports.mcollect.challannumber - type: string - source: mcollect - total: false - - name: receiptnumber - label: reports.mcollect.receiptnumber - type: string - source: mcollect - total: false - - name: receiptdate - label: reports.mcollect.receiptdate - type: string - source: mcollect - total: false - - name: name - label: reports.mcollect.consumername - type: string - source: mcollect - total: false - - name: user_uuid - label: reports.mcollect.user_uuid - type: string - source: mcollect - showColumn: false - - name: service - label: reports.mcollect.servicedetails - type: string - source: mcollect - total: false - localisationPrefix: BILLINGSERVICE_BUSINESSSERVICE_ - isLocalisationRequired: true - - name: amountcollected - label: reports.mcollect.amountcollected - type: string - source: mcollect - total: true - - name: payername - label: reports.mcollect.payername - type: string - source: mcollect - total: false - - name: transactionnumber - label: reports.mcollect.transactionnumber - type: string - source: mcollect - total: false - - name: chequeNo - label: reports.mcollect.chequeNo - type: string - source: mcollect - total: false - searchParams: - - name: service - label: reports.mcollect.service - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=pb&moduleName=BillingService&masterName=BusinessService&filter=%5B?(@.type=='Adhoc')%5D|$.MdmsRes.BillingService.BusinessService.*.code|$.MdmsRes.BillingService.BusinessService.*.code - source: mcollect - wrapper: true - isMandatory: true - searchClause: AND ec.businessService IN ( $service ) - isLocalisationRequired: true - localisationPrefix: BILLINGSERVICE_BUSINESSSERVICE_ - - name: fromDate - label: reports.mcollect.fromDate - type: epoch - source: mcollect - isMandatory: true - searchClause: AND paydl.receiptdate >= $fromDate - - name: toDate - label: reports.mcollect.toDate - type: epoch - source: mcollect - isMandatory: true - searchClause: AND paydl.receiptdate <= $toDate - - name: receiptstatus - label: reports.mcollect.receiptstatus - type: singlevaluelist - pattern: 'list://New:New,Deposited:Deposited,Dishonoured:Dishonoured' - source: mcollect - isMandatory: false - searchClause: AND pay.paymentstatus <= $receiptstatus - - name: collectorname - label: reports.mcollect.collectorname - type: singlevaluelist - pattern: http://egov-hrms:8080/egov-hrms/employees/_search?tenantId=$tenantid&roles=UC_EMP|$.Employees[*].user.id|$.Employees[*].user.name|$.Employees[*].user.username - source: mcollect - wrapper: true - isMandatory: false - searchClause: AND pay.createdby= $collectorname - - query: | - SELECT ec.challanNo as challannumber, paydl.receiptnumber as receiptnumber, To_char(To_timestamp(paydl.receiptdate / 1000), 'DD/MM/YYYY') AS receiptdate, users.name as name, - ec.businessService as service, pay.totalamountpaid AS amountcollected, pay.payername, pay.transactionnumber as transactionnumber, pay.instrumentnumber as chequeNo FROM egcl_payment AS pay - inner join egcl_paymentdetail AS paydl ON pay.id = paydl.paymentid - inner join egcl_bill as bill on paydl.billid = bill.id - inner join eg_echallan as ec on bill.consumercode = ec.challanNo and bill.tenantid = ec.tenantid - inner join eg_user as users on users.uuid = ec.accountid where pay.paymentstatus !='CANCELLED' - orderby: order by paydl.receiptdate desc - - - reportName: MCollectCollectionReport - decryptionPathId: MCollectCollectionReport - summary: It helps administrators track the collection in the ULB and the employee collection performance. - version: 1.0.0 - moduleName: mcollect - sourceColumns: - - name: service - label: reports.mcollect.service - type: string - source: mcollect - total: false - localisationPrefix: BILLINGSERVICE_BUSINESSSERVICE_ - isLocalisationRequired: true - - name: locality - label: reports.mcollect.locality - type: string - source: mcollect - total: false - localisationPrefix: TENANTS_MOHALLA_ - isLocalisationRequired: true - - name: name - label: reports.mcollect.collectorname - type: string - source: mcollect - total: false - - name: paymentmode - label: reports.mcollect.paymentinstrument - type: string - source: mcollect - total: false - - name: totaltransaction - label: reports.mcollect.totaltransaction - type: string - source: mcollect - total: true - - name: amountcollected - label: reports.mcollect.amountcollected - type: string - source: mcollect - total: true - searchParams: - - name: service - label: reports.mcollect.service - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=pb&moduleName=BillingService&masterName=BusinessService&filter=%5B?(@.type=='Adhoc')%5D|$.MdmsRes.BillingService.BusinessService.*.code|$.MdmsRes.BillingService.BusinessService.*.code - source: mcollect - wrapper: true - isMandatory: true - searchClause: AND ec.businessService IN ( $service ) - isLocalisationRequired: true - localisationPrefix: BILLINGSERVICE_BUSINESSSERVICE_ - - name: fromDate - label: reports.mcollect.fromDate - type: epoch - source: mcollect - isMandatory: true - searchClause: AND paydl.receiptdate >= $fromDate - - name: toDate - label: reports.mcollect.toDate - type: epoch - source: mcollect - isMandatory: true - searchClause: AND paydl.receiptdate <= $toDate - - name: name - label: reports.mcollect.collectorname - type: singlevaluelist - pattern: http://egov-hrms:8080/egov-hrms/employees/_search?tenantId=$tenantid&roles=UC_EMP|$.Employees[*].user.id|$.Employees[*].user.name|$.Employees[*].user.username - source: mcollect - wrapper: true - isMandatory: false - searchClause: AND pay.createdby = $name - - name: locality - label: reports.mcollect.locality - type: singlevaluelist - pattern: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality&tenantId=$tenantid|$.TenantBoundary[0].boundary.*.code|$.TenantBoundary[0].boundary.*.code - source: mcollect - wrapper: true - isMandatory: false - localisationPrefix: TENANTS_MOHALLA_ - isLocalisationRequired: true - searchClause: AND eca.locality = $locality - - name: paymentType - label: reports.mcollect.paymentType - type: singlevaluelist - pattern: 'list://CASH:CASH,ONLINE:ONLINE,CARD:CARD,DD:DD,CHEQUE:CHEQUE' - source: mcollect - wrapper: true - isMandatory: false - isLocalisationRequired: true - localisationPrefix: COMMON_MASTERS_PAYMENTMODE_ - searchClause: AND pay.paymentmode = $paymentType - query: | - Select ec.businessService as service, eca.locality as locality, (select name from eg_user where id = pay.createdby::Integer ) as name, - pay.paymentmode as paymentmode, count(DISTINCT ec.challanNo) as totaltransaction, sum(totalamountpaid) as amountcollected from egcl_bill as b - inner join egcl_billdetial as bd on b.id = bd.billid AND b.tenantid = bd.tenantid - inner join eg_echallan as ec on b.consumercode = ec.challanNo and b.tenantid =ec.tenantid - inner join eg_challan_address as eca on ec.id = eca.echallanId - inner join egcl_paymentdetail paydl on b.id = paydl.billid and b.tenantid = paydl.tenantid - inner join egcl_payment pay on paydl.paymentid = pay.id and paydl.tenantid =pay.tenantid where 1=1 - groupby: group by service,locality, name, paymentmode - - - reportName: MCollectChallanRegister - summary: Report is used to track and understand the challans generated, outstanding amount, & different status of the challans. - version: 1.0.0 - moduleName: mcollect - sourceColumns: - - name: service - label: reports.mcollect.service - type: string - source: mcollect - total: false - localisationPrefix: BILLINGSERVICE_BUSINESSSERVICE_ - isLocalisationRequired: true - - name: locality - label: reports.mcollect.locality - type: string - source: mcollect - total: false - localisationPrefix: TENANTS_MOHALLA_ - isLocalisationRequired: true - - name: totalchallans - label: reports.mcollect.totalchallans - type: string - source: mcollect - total: true - - name: status - label: reports.mcollect.status - type: string - source: mcollect - total: false - localisationPrefix: UC_ - isLocalisationRequired: true - - name: totalamount - label: reports.mcollect.totalamount - type: string - source: mcollect - total: true - searchParams: - - name: service - label: reports.mcollect.service - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=pb&moduleName=BillingService&masterName=BusinessService&filter=%5B?(@.type=='Adhoc')%5D|$.MdmsRes.BillingService.BusinessService.*.code|$.MdmsRes.BillingService.BusinessService.*.code - source: mcollect - wrapper: true - isMandatory: false - searchClause: AND ec.businessService = $service - localisationPrefix: BILLINGSERVICE_BUSINESSSERVICE_ - isLocalisationRequired: true - - name: fromDate - label: reports.mcollect.fromDate - type: epoch - source: mcollect - isMandatory: false - searchClause: AND ec.taxPeriodFrom >= $fromDate - - name: toDate - label: reports.mcollect.toDate - type: epoch - source: mcollect - isMandatory: false - searchClause: AND ec.taxPeriodTo <= $toDate - - name: status - label: reports.mcollect.status - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=pb&moduleName=mCollect&masterName=applicationStatus&filter=%5B?(@.active)%5D|$.MdmsRes.mCollect.applicationStatus.*.code|$.MdmsRes.mCollect.applicationStatus.*.code - source: mcollect - wrapper: true - isMandatory: false - localisationPrefix: UC_ - isLocalisationRequired: true - searchClause: AND ec.applicationStatus = $status - - name: locality - label: reports.mcollect.locality - type: singlevaluelist - pattern: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality&tenantId=$tenantid|$.TenantBoundary[0].boundary.*.code|$.TenantBoundary[0].boundary.*.code - source: mcollect - wrapper: true - isMandatory: false - localisationPrefix: TENANTS_MOHALLA_ - isLocalisationRequired: true - searchClause: AND eca.locality = $locality - query: | - select ec.businessService as service , eca.locality as locality, ec.applicationStatus as status, count(DISTINCT ec.challanNo) as totalchallans, sum(bd.totalamount) as totalamount from eg_echallan as ec - join eg_challan_address as eca on ec.id = eca.echallanId - join egbs_billdetail_v1 as bd on ec.challanNo = bd.consumercode where 1=1 - groupby: group by ec.businessService, eca.locality, ec.applicationStatus diff --git a/reports/config/noc-services-reports.yml b/reports/config/noc-services-reports.yml deleted file mode 100644 index c93ea385..00000000 --- a/reports/config/noc-services-reports.yml +++ /dev/null @@ -1,61 +0,0 @@ -ReportDefinitions: -- reportName: NOCApplicationReport - summary: Report to the NOC user to show the list of application processed - version: 1.0.0 - moduleName: rainmaker-nocsrv - sourceColumns: - - name: applicationno - label: reports.noc.applicationno - type: string - source: noc - - name: applicationType - label: reports.noc.applicationType - type: string - source: noc - total: false - - name: createdtime - label: reports.noc.createdtime - type: bigint - source: noc - total: false - - name: lastmodifiedtime - label: reports.noc.lastmodifiedtime - type: bigint - source: noc - total: false - - name: applicationstatus - label: reports.noc.applicationstatus - type: string - source: noc - total: false - searchParams: - - name: fromDate - label: reports.noc.fromDate - type: epoch - source: noc - isMandatory: true - searchClause: AND createdtime >= $fromDate - - name: toDate - label: reports.noc.toDate - type: epoch - source: noc - isMandatory: true - searchClause: AND createdtime <= $toDate - - name: status - label: reports.noc.status - type: singlevaluelist - source: noc - isMandatory: false - searchClause: AND status = $status - - name: applicationType - label: reports.noc.applicationType - type: singlevaluelist - source: noc - isMandatory: false - searchClause: AND applicationType = $applicationType - query: | - select applicationno,applicationType,createdtime,lastmodifiedtime,applicationstatus - from eg_noc - WHERE tenantid = $tenantid - AND status != 'INACTIVE' - orderby: order by applicationno diff --git a/reports/config/pgr-reports.yml b/reports/config/pgr-reports.yml deleted file mode 100644 index 45db9b58..00000000 --- a/reports/config/pgr-reports.yml +++ /dev/null @@ -1,2536 +0,0 @@ -ReportDefinitions: -- reportName: GrievanceByType - summary: Report grouped by Grievance Type and status - based on a date period - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: name - label: reports.pgr.complainttype.name - type: string - source: egpgr_complainttype - - name: registered - label: reports.pgr.status.registered - type: number - source: seva - linkedReport: - reportName: DrillDownComplaintDetailByGrievanceType - linkedColumn: _parent?reportName={reportName}&status={currentColumnName}&complainttype={name} - - name: inprocess - label: reports.pgr.status.inprocess - type: number - source: completed - linkedReport: - reportName: DrillDownComplaintDetailByGrievanceType - linkedColumn: _parent?reportName={reportName}&status=FORWARDED','PROCESSING&complainttype={name} - - name: completed - label: reports.pgr.status.completed - type: number - source: reopened - linkedReport: - reportName: DrillDownComplaintDetailByGrievanceType - linkedColumn: _parent?reportName={reportName}&status=COMPLETED','WITHDRAWN&complainttype={name} - - name: reopened - label: reports.pgr.status.reopened - type: number - source: seva - linkedReport: - reportName: DrillDownComplaintDetailByGrievanceType - linkedColumn: _parent?reportName={reportName}&status={currentColumnName}&complainttype={name} - - name: rejected - label: reports.pgr.status.rejected - type: number - source: seva - linkedReport: - reportName: DrillDownComplaintDetailByGrievanceType - linkedColumn: _parent?reportName={reportName}&status={currentColumnName}&complainttype={name} - - name: withinsla - label: reports.pgr.status.withinsla - type: number - source: seva - linkedReport: - reportName: DrillDownComplaintDetailByGrievanceTypeWithINSLA - linkedColumn: _parent?reportName={reportName}&complainttype={name} - - name: beyondsla - label: reports.pgr.status.beyondsla - type: number - source: seva - linkedReport: - reportName: DrillDownComplaintDetailByGrievanceTypeBeyondSLA - linkedColumn: _parent?reportName={reportName}&complainttype={name} - - name: issla - label: reports.pgr.status.issla - type: string - source: seva - showColumn: false - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: complainttype - label: reports.pgr.complainttype - type: singlevaluelist - pattern: http://pgr-master:8080/pgr-master/service/v1/_search?tenantId=$tenantid&keywords=complaint|$..serviceCode|$..serviceName - source: seva - isMandatory: true - query: SELECT ctype.name, - count(CASE WHEN cs.status::text = 'REGISTERED'::text THEN 1 ELSE NULL::integer END) AS registered, - count(CASE WHEN cs.status::text = ANY (ARRAY['FORWARDED'::character varying::text, 'PROCESSING'::character varying::text, 'ONHOLD'::character varying::text]) THEN 1 ELSE NULL::integer END) AS inprocess, - count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text,'WITHDRAWN'::character varying::text]) THEN 1 ELSE NULL::integer END) AS completed, - count(CASE WHEN cs.status::text = 'REOPENED'::text THEN 1 ELSE NULL::integer END) AS reopened, - count(CASE WHEN cs.status::text ='REJECTED'::text THEN 1 ELSE NULL::integer END) AS rejected, - sum(CASE WHEN (cs.status in ('COMPLETED', 'REJECTED','WITHDRAWN' , 'PROCESSING' , 'REGISTERED','REOPENED', 'ONHOLD','FORWARDED')) - AND (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 ELSE 0 END) AS withinsla, - sum(CASE WHEN (cs.status in ('COMPLETED', 'REJECTED','WITHDRAWN' , 'PROCESSING' , 'REGISTERED','REOPENED', 'ONHOLD', 'FORWARDED')) - AND (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 ELSE 0 END) AS beyondsla, - CASE WHEN bool_or((cs.status::text = ANY (ARRAY['COMPLETED'::character - varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) - AND (cs.lastmodifieddate - cs.createddate) < ('01:00:00'::interval * ctype.slahours::double - precision)) THEN 'Yes'::text WHEN bool_or((cs.status::text <> ALL (ARRAY['COMPLETED'::character - varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) - AND (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval - * ctype.slahours::double precision)) THEN 'Yes'::text ELSE 'No'::text END AS issla - FROM submission cs, egpgr_complainttype ctype WHERE cs.servicecode = ctype.code - and ctype.code = $complainttype and cs.createddate >= $fromDate and cs.createddate - <= $toDate and cs.tenantid = $tenantid - and ctype.tenantid = $tenantid - GROUP BY ctype.name; - - -- reportName: DrillDownComplaintDetailByGrievanceType - summary: DrillDown ComplaintDetail By GrievanceType - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: crn - label: reports.pgr.complaint.crn - type: string - source: submission - linkedReport: - reportName: ComplaintDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - - name: createddate - label: reports.pgr.complaint.createddate - type: epoch - source: submission - - name: complainantname - label: reports.pgr.complaint.complainantname - type: string - source: submission - - name: address - label: reports.pgr.complaint.address - type: string - source: submission - - name: details - label: reports.pgr.complaint.details - type: string - source: submission - - name: status - label: reports.pgr.complaint.status - type: string - source: submission - - name: feedback - label: reports.pgr.complaint.feedback - type: string - source: submission - - name: withinsla - label: reports.pgr.complaint.issla - type: string - source: submission - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: status - label: reports.pgr.dateto - type: string - source: seva - isMandatory: true - - name: complainttype - label: reports.pgr.dateto - type: string - source: egpgr_complainttype - isMandatory: true - query: select cs.crn,cs.createddate,cs.name as complainantname,requesteraddress as address, - cs.details,cs.status,(select code from submission_attribute sa where sa.key='feedback' and sa.crn=cs.crn) as feedback, - CASE WHEN (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) - THEN 'Yes'::text ELSE 'No'::text END AS withinsla from submission cs,egpgr_complainttype ctype , servicetype_keyword sk - where ctype.code=cs.servicecode and cs.status in ($status) and cs.createddate >= $fromDate and cs.createddate <=$toDate - and ctype.code = $complainttype and ctype.code=sk.servicecode and upper(sk.keyword) = upper('complaint') - and sk.tenantid =$tenantid - and cs.tenantid = $tenantid - and ctype.tenantid =$tenantid - - -- reportName: DrillDownComplaintDetailByGrievanceTypeWithINSLA - summary: DrillDown ComplaintDetail By GrievanceType - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: crn - label: reports.pgr.complaint.crn - type: string - source: submission - linkedReport: - reportName: ComplaintDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - - name: createddate - label: reports.pgr.complaint.createddate - type: epoch - source: submission - - name: complainantname - label: reports.pgr.complaint.complainantname - type: string - source: submission - - name: address - label: reports.pgr.complaint.address - type: string - source: submission - - name: details - label: reports.pgr.complaint.details - type: string - source: submission - - name: status - label: reports.pgr.complaint.status - type: string - source: submission - - name: feedback - label: reports.pgr.complaint.feedback - type: string - source: submission - - name: withinsla - label: reports.pgr.complaint.issla - type: string - source: submission - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: status - label: reports.pgr.dateto - type: string - source: seva - isMandatory: true - - name: complainttype - label: reports.pgr.dateto - type: string - source: egpgr_complainttype - isMandatory: true - query: select cs.crn,cs.createddate,cs.name as complainantname,requesteraddress as address,cs.details,cs.status,(select code from submission_attribute sa where sa.key='feedback' and sa.crn=cs.crn) as feedback, CASE WHEN (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 'Yes'::text ELSE 'No'::text END AS withinsla from submission cs,egpgr_complainttype ctype ,servicetype_keyword sk where ctype.code=cs.servicecode and cs.createddate >= $fromDate and cs.createddate <=$toDate and ctype.code = $complainttype - AND cs.status::text = ANY (ARRAY['REGISTERED'::character varying::text, 'PROCESSING'::character varying::text, 'COMPLETED'::character varying::text, 'REJECTED'::character varying::text, 'REOPENED'::character varying::text, 'ONHOLD'::character varying::text]) - AND (cs.lastmodifieddate - cs.createddate) < ('01:00:00'::interval * ctype.slahours::double precision) - AND (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) and ctype.code=sk.servicecode - and upper(sk.keyword) = upper('complaint') - and cs.tenantid = $tenantid - and ctype.tenantid =$tenantid - and sk.tenantid=$tenantid - -- reportName: DrillDownComplaintDetailByGrievanceTypeBeyondSLA - summary: DrillDown ComplaintDetail By GrievanceType - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: crn - label: reports.pgr.complaint.crn - type: string - source: submission - linkedReport: - reportName: ComplaintDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - - name: createddate - label: reports.pgr.complaint.createddate - type: epoch - source: submission - - name: complainantname - label: reports.pgr.complaint.complainantname - type: string - source: submission - - name: address - label: reports.pgr.complaint.address - type: string - source: submission - - name: details - label: reports.pgr.complaint.details - type: string - source: submission - - name: status - label: reports.pgr.complaint.status - type: string - source: submission - - name: feedback - label: reports.pgr.complaint.feedback - type: string - source: submission - - name: withinsla - label: reports.pgr.complaint.issla - type: string - source: submission - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: status - label: reports.pgr.dateto - type: string - source: seva - isMandatory: true - - name: complainttype - label: reports.pgr.dateto - type: string - source: egpgr_complainttype - isMandatory: true - query: select cs.crn,cs.createddate,cs.name as complainantname,requesteraddress as address,cs.details,cs.status,(select code from submission_attribute sa where sa.key='feedback' and sa.crn=cs.crn) as feedback, CASE WHEN (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 'Yes'::text ELSE 'No'::text END AS withinsla from submission cs,egpgr_complainttype ctype ,servicetype_keyword sk where ctype.code=cs.servicecode and cs.createddate >= $fromDate and cs.createddate <=$toDate and ctype.code = $complainttype - AND cs.status::text = ANY(ARRAY['REGISTERED'::character varying::text, 'PROCESSING'::character varying::text, 'COMPLETED'::character varying::text, 'REJECTED'::character varying::text, 'REOPENED'::character varying::text, 'ONHOLD'::character varying::text]) - AND (cs.lastmodifieddate - cs.createddate) > ('01:00:00'::interval * ctype.slahours::double precision) - AND (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double precision) AND ctype.code=sk.servicecode AND upper(sk.keyword) = upper('complaint') - AND sk.tenantid=$tenantid - AND cs.tenantid = $tenantid - AND ctype.tenantid =$tenantid - -- reportName: GrievanceByFunctionary - summary: Functionary Report grouped by Functionary Name - based on a date period - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: employeeusername - label: reports.pgr.functionary.name - type: string - source: egpgr_user - showColumn: false - - name: employeename - label: reports.pgr.functionary.name - type: string - source: eg_user - - name: user_uuid - label: reports.pgr.functionary.user_uuid - type: string - source: eg_user - showColumn: false - - name: registered - label: reports.pgr.status.registered - type: number - source: seva - linkedReport: - reportName: DrillDownComplaintDetailByFunctionary - linkedColumn: _parent?reportName={reportName}&status={currentColumnName}&username={employeeusername} - - name: inprocess - label: reports.pgr.status.inprocess - type: number - source: - linkedReport: - reportName: DrillDownComplaintDetailByFunctionary - linkedColumn: _parent?reportName={reportName}&status=FORWARDED','PROCESSING','NOTCOMPLETED','ONHOLD&username={employeeusername} - - name: completed - label: reports.pgr.status.completed - type: number - source: reopened - linkedReport: - reportName: DrillDownComplaintDetailByFunctionary - linkedColumn: _parent?reportName={reportName}&status=COMPLETED','WITHDRAWN','CLOSED&username={employeeusername} - - name: reopened - label: reports.pgr.status.reopened - type: number - source: seva - linkedReport: - reportName: DrillDownComplaintDetailByFunctionary - linkedColumn: _parent?reportName={reportName}&status={currentColumnName}&username={employeeusername} - - name: rejected - label: reports.pgr.status.rejected - type: number - source: seva - linkedReport: - reportName: DrillDownComplaintDetailByFunctionary - linkedColumn: _parent?reportName={reportName}&status={currentColumnName}&username={employeeusername} - - name: withinsla - label: reports.pgr.status.withinsla - type: number - source: seva - linkedReport: - reportName: DrillDownComplaintDetailByFunctionaryWithINSLA - linkedColumn: _parent?reportName={reportName}&username={employeeusername} - - name: beyondsla - label: reports.pgr.status.beyondsla - type: number - source: seva - linkedReport: - reportName: DrillDownComplaintDetailByFunctionaryBeyondSLA - linkedColumn: _parent?reportName={reportName}&username={employeeusername} - - name: issla - label: reports.pgr.status.issla - type: string - source: seva - showColumn: false - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - query: SELECT us.username AS employeeusername, us.name AS employeename, us.uuid AS user_uuid, count(CASE WHEN cs.status::text = 'REGISTERED'::text - THEN 1 ELSE NULL::integer END) AS registered, count(CASE WHEN cs.status::text = - ANY (ARRAY['FORWARDED'::character varying::text, 'PROCESSING'::character varying::text, 'ONHOLD'::character varying::text, - 'NOTCOMPLETED'::character varying::text]) THEN 1 ELSE NULL::integer END) AS inprocess, - count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text, - 'WITHDRAWN'::character varying::text, 'CLOSED'::character varying::text]) THEN - 1 ELSE NULL::integer END) AS completed, count(CASE WHEN cs.status::text = 'REOPENED'::text - THEN 1 ELSE NULL::integer END) AS reopened, count(CASE WHEN cs.status::text = 'REJECTED'::text - THEN 1 ELSE NULL::integer END) AS rejected, - sum(CASE WHEN (cs.status in ('COMPLETED', 'REJECTED','WITHDRAWN' , 'PROCESSING' , 'REGISTERED','REOPENED', 'ONHOLD','FORWARDED')) - AND (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 ELSE 0 END) AS withinsla, - sum(CASE WHEN (cs.status in ('COMPLETED', 'REJECTED','WITHDRAWN' , 'PROCESSING' , 'REGISTERED','REOPENED', 'ONHOLD','FORWARDED')) - AND (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 ELSE 0 END) AS beyondsla, - CASE WHEN bool_or((cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (cs.lastmodifieddate - cs.createddate) - < ('01:00:00'::interval * ctype.slahours::double precision)) THEN 'Yes'::text - WHEN bool_or((cs.status::text <> ALL (ARRAY['COMPLETED'::character varying::text, - 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND - (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double - precision)) THEN 'Yes'::text ELSE 'No'::text END AS issla FROM submission cs, - egpgr_complainttype ctype, egeis_assignment ass, eg_user us ,servicetype_keyword sk - WHERE cs.positionid = ass.positionid and ass.employeeid=us.id - and cs.servicecode = ctype.code - and cs.createddate >= ass.fromdate and cs.createddate <= ass.todate and isprimary=true - and cs.createddate >= $fromDate and cs.createddate <= $toDate - and ctype.code=sk.servicecode and upper(sk.keyword) = upper('complaint') - and us.tenantid = ctype.tenantid - and sk.tenantid = $tenantid - and us.tenantid = $tenantid - and ass.tenantid = $tenantid - and cs.tenantid = $tenantid - and ctype.tenantid = $tenantid - GROUP BY us.username, us.name; - - -- reportName: DrillDownComplaintDetailByFunctionary - summary: DrillDown ComplaintDetail By Functionary Report - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: crn - label: reports.pgr.complaint.crn - type: string - source: submission - linkedReport: - reportName: ComplaintDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - - name: createddate - label: reports.pgr.complaint.createddate - type: epoch - source: seva - - name: complainantname - label: reports.pgr.complaint.complainantname - type: string - source: submission - - name: address - label: reports.pgr.complaint.address - type: string - source: submission - - name: details - label: reports.pgr.complaint.details - type: string - source: submission - - name: status - label: reports.pgr.complaint.status - type: string - source: submission - - name: feedback - label: reports.pgr.complaint.feedback - type: string - source: seva - - name: issla - label: reports.pgr.complaint.issla - type: string - source: seva - - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: status - label: reports.pgr.status - type: epoch - source: seva - isMandatory: true - - name: username - label: reports.pgr.username - type: epoch - source: seva - isMandatory: true - query: select cs.crn,cs.createddate,cs.name as complainantname, - requesteraddress as address,cs.details,cs.status, - (select code from submission_attribute sa where sa.key='feedback' and sa.crn=cs.crn) as feedback, - CASE WHEN (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 'Yes'::text ELSE 'No'::text END AS issla - from submission cs,egpgr_complainttype ctype,egeis_assignment ass, eg_user us ,servicetype_keyword sk - where ctype.code=cs.servicecode and cs.status IN ($status) - and cs.createddate >= $fromDate and cs.createddate <= $toDate - and cs.positionid = ass.positionid and ass.employeeid=us.id - and cs.createddate >= ass.fromdate and cs.createddate <= ass.todate - and isprimary=true - and us.username =$username - and ctype.code=sk.servicecode - and upper(sk.keyword) = upper('complaint') - and sk.tenantid = $tenantid - and ctype.tenantid = $tenantid - and us.tenantid = $tenantid - and cs.tenantid = $tenantid ; - -- reportName: DrillDownComplaintDetailByFunctionaryWithINSLA - summary: DrillDown ComplaintDetail By Functionary Report - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: crn - label: reports.pgr.complaint.crn - type: string - source: submission - linkedReport: - reportName: ComplaintDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - - name: createddate - label: reports.pgr.complaint.createddate - type: epoch - source: seva - - name: complainantname - label: reports.pgr.complaint.complainantname - type: string - source: submission - - name: address - label: reports.pgr.complaint.address - type: string - source: submission - - name: details - label: reports.pgr.complaint.details - type: string - source: submission - - name: status - label: reports.pgr.complaint.status - type: string - source: submission - - name: feedback - label: reports.pgr.complaint.feedback - type: string - source: seva - - name: issla - label: reports.pgr.complaint.issla - type: string - source: seva - - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: status - label: reports.pgr.status - type: epoch - source: seva - isMandatory: true - - name: username - label: reports.pgr.username - type: epoch - source: seva - isMandatory: true - query: select cs.crn,cs.createddate,cs.name as complainantname, - requesteraddress as address, - cs.details, - cs.status, - (select code from submission_attribute sa where sa.key='feedback' and sa.crn=cs.crn) as feedback, - CASE WHEN (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 'Yes'::text ELSE 'No'::text END AS issla - from submission cs,egpgr_complainttype ctype,egeis_assignment ass, eg_user us,servicetype_keyword sk - where ctype.code=cs.servicecode - and cs.createddate >= $fromDate - and cs.createddate <= $toDate - and cs.positionid = ass.positionid - and ass.employeeid=us.id - and cs.createddate >= ass.fromdate - and cs.createddate <= ass.todate - and isprimary=true and us.username =$username - AND cs.status::text = ANY (ARRAY['REGISTERED'::character varying::text, 'PROCESSING'::character varying::text, 'COMPLETED'::character varying::text, 'REJECTED'::character varying::text, 'REOPENED'::character varying::text, 'ONHOLD'::character varying::text]) - AND ctype.code=sk.servicecode - and upper(sk.keyword) = upper('complaint') - AND (cs.lastmodifieddate - cs.createddate) < ('01:00:00'::interval * ctype.slahours::double precision) - AND (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) - and cs.tenantid = $tenantid - and us.tenantid = $tenantid - and ctype.tenantid = $tenantid - and sk.tenantid = $tenantid - - -- reportName: DrillDownComplaintDetailByFunctionaryBeyondSLA - summary: DrillDown ComplaintDetail By Functionary Report - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: crn - label: reports.pgr.complaint.crn - type: string - source: submission - linkedReport: - reportName: ComplaintDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - - name: createddate - label: reports.pgr.complaint.createddate - type: epoch - source: seva - - name: complainantname - label: reports.pgr.complaint.complainantname - type: string - source: submission - - name: address - label: reports.pgr.complaint.address - type: string - source: submission - - name: details - label: reports.pgr.complaint.details - type: string - source: submission - - name: status - label: reports.pgr.complaint.status - type: string - source: submission - - name: feedback - label: reports.pgr.complaint.feedback - type: string - source: seva - - name: issla - label: reports.pgr.complaint.issla - type: string - source: seva - showColumn: false - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: status - label: reports.pgr.status - type: epoch - source: seva - isMandatory: true - - name: username - label: reports.pgr.username - type: epoch - source: seva - isMandatory: true - query: select cs.crn,cs.createddate, - cs.name as complainantname, - requesteraddress as address, - cs.details, - cs.status, - (select code from submission_attribute sa where sa.key='feedback' and sa.crn=cs.crn) as feedback, - CASE WHEN (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 'Yes'::text ELSE 'No'::text END AS issla - from submission cs,egpgr_complainttype ctype,egeis_assignment ass, eg_user us , servicetype_keyword sk - where ctype.code=cs.servicecode and cs.createddate >= $fromDate - AND cs.createddate <= $toDate - AND cs.positionid = ass.positionid - AND ass.employeeid=us.id - AND cs.createddate >= ass.fromdate - AND cs.createddate <= ass.todate and isprimary=true - AND us.username =$username - AND cs.status::text = ANY(ARRAY['REGISTERED'::character varying::text, 'PROCESSING'::character varying::text, 'COMPLETED'::character varying::text, 'REJECTED'::character varying::text, 'REOPENED'::character varying::text, 'ONHOLD'::character varying::text]) - AND ctype.code=sk.servicecode - AND upper(sk.keyword) = upper('complaint') - AND (cs.lastmodifieddate - cs.createddate) > ('01:00:00'::interval * ctype.slahours::double precision) - AND (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double precision) - AND cs.tenantid = $tenantid - AND us.tenantid = $tenantid - AND ctype.tenantid = $tenantid - AND sk.tenantid = $tenantid - -- reportName: DrillDownByDepartment - summary: Drill Down Report grouped by Department Name - based on a date period - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: name - label: reports.pgr.department.name - type: string - source: eg_department - linkedReport: - reportName: DrillDownDepartmentGetGrievanceType - linkedColumn: _parent?reportName={reportName}&deptname={name} - - name: registered - label: reports.pgr.status.registered - type: number - source: seva - - name: inprocess - label: reports.pgr.status.inprocess - type: number - source: completed - - name: completed - label: reports.pgr.status.completed - type: number - source: reopened - - name: rejected - label: reports.pgr.status.reopened - type: number - source: seva - - name: rejected - label: reports.pgr.status.rejected - type: number - source: seva - - name: withinsla - label: reports.pgr.status.withinsla - type: number - source: seva - - name: beyondsla - label: reports.pgr.status.beyondsla - type: number - source: seva - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - query: select dept.name, count(CASE WHEN cs.status::text = 'REGISTERED'::text THEN 1 ELSE NULL::integer END) AS registered, - count(CASE WHEN cs.status::text = ANY (ARRAY['FORWARDED'::character varying::text, 'PROCESSING'::character varying::text, 'ONHOLD'::character varying::text]) THEN 1 ELSE NULL::integer END) AS inprocess, - count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text,'WITHDRAWN'::character varying::text]) THEN 1 ELSE NULL::integer END) AS completed, - count(CASE WHEN cs.status::text = 'REOPENED'::text THEN 1 ELSE NULL::integer END) AS reopened, - count(CASE WHEN cs.status::text ='REJECTED'::text THEN 1 ELSE NULL::integer END) AS rejected, - sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (cs.lastmodifieddate - cs.createddate) - < ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 WHEN (cs.status::text - <> ALL (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (now() - cs.createddate::timestamp - with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN - 1 ELSE 0 END) AS withinsla, sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character - varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) - AND (cs.lastmodifieddate - cs.createddate) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 WHEN (cs.status::text <> ALL (ARRAY['COMPLETED'::character varying::text, - 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND - (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 ELSE 0 END) AS beyondsla FROM submission cs, - eg_department dept, egpgr_complainttype ctype WHERE cs.department=dept.id and - cs.servicecode = ctype.code and cs.createddate >= $fromDate and cs.createddate - <= $toDate - and cs.tenantid = $tenantid - and ctype.tenantid = $tenantid - and dept.tenantid = $tenantid - GROUP BY dept.name; - -- reportName: DrillDownDepartmentGetGrievanceType - summary: DrillDown Department Report Get GrievanceType - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: name - label: reports.pgr.complaint.name - type: string - source: submission - linkedReport: - reportName: DrillDownDepartmentGrievanceTypeGetUserNamePosition - linkedColumn: _parent?reportName={reportName}&complainttype={name}&categoryid={categoryid} - - name: categoryid - label: reports.pgr.complaint.category - type: number - source: submission - showColumn: false - - name: registered - label: reports.pgr.status.registered - type: number - source: seva - - name: inprocess - label: reports.pgr.status.inprocess - type: number - source: completed - - name: completed - label: reports.pgr.status.completed - type: number - source: reopened - - name: rejected - label: reports.pgr.status.reopened - type: number - source: seva - - name: rejected - label: reports.pgr.status.rejected - type: number - source: seva - - name: withinsla - label: reports.pgr.status.withinsla - type: number - source: seva - - name: beyondsla - label: reports.pgr.status.beyondsla - type: number - source: seva - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: deptname - label: reports.pgr.dept.name - type: epoch - source: eg_department - isMandatory: true - query: SELECT ctype.name, (select id from egpgr_complainttype_category where id = ctype.category and tenantid = $tenantid) as categoryid, count(CASE WHEN cs.status::text = 'REGISTERED'::text - THEN 1 ELSE NULL::integer END) AS registered, count(CASE WHEN cs.status::text - = ANY (ARRAY['FORWARDED'::character varying::text, 'PROCESSING'::character varying::text, 'ONHOLD'::character varying::text, - 'NOTCOMPLETED'::character varying::text]) THEN 1 ELSE NULL::integer END) AS inprocess, - count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text, - 'WITHDRAWN'::character varying::text, 'CLOSED'::character varying::text]) THEN - 1 ELSE NULL::integer END) AS completed, count(CASE WHEN cs.status::text = 'REOPENED'::text - THEN 1 ELSE NULL::integer END) AS reopened, count(CASE WHEN cs.status::text = - 'REJECTED'::text THEN 1 ELSE NULL::integer END) AS rejected, sum(CASE WHEN (cs.status::text - = ANY (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (cs.lastmodifieddate - cs.createddate) - < ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 WHEN (cs.status::text - <> ALL (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (now() - cs.createddate::timestamp - with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN - 1 ELSE 0 END) AS withinsla, sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character - varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) - AND (cs.lastmodifieddate - cs.createddate) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 WHEN (cs.status::text <> ALL (ARRAY['COMPLETED'::character varying::text, - 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND - (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 ELSE 0 END) AS beyondsla FROM submission cs, - egpgr_complainttype ctype,eg_department dept ,servicetype_keyword sk WHERE - cs.servicecode = ctype.code and cs.department=dept.id and cs.createddate >= $fromDate and cs.createddate - <= $toDate and dept.name = $deptname and ctype.code = sk.servicecode and upper(sk.keyword) = upper('complaint') - and cs.tenantid = $tenantid - and ctype.tenantid = $tenantid - and dept.tenantid = $tenantid - and sk.tenantid = $tenantid - GROUP BY ctype.name, ctype.category; - -- reportName: DrillDownDepartmentGrievanceTypeGetUserNamePosition - summary: DrillDown Department Report Grievance Type Get UserName Position - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: userposition - label: reports.pgr.complaint.userposition - type: string - source: egpgr_ddDeptGrievanceTypeUserNamePosition - linkedReport: - reportName: DrillDownDepartmentGrievanceTypeGetUserNamePositionGetComplaints - linkedColumn: _parent?reportName={reportName}&username={userposition} - - name: user_uuid - label: reports.pgr.complaint.user_uuid - type: string - source: eg_user - showColumn: false - - name: registered - label: reports.pgr.status.registered - type: number - source: seva - - name: inprocess - label: reports.pgr.status.inprocess - type: number - source: completed - - name: completed - label: reports.pgr.status.completed - type: number - source: reopened - - name: rejected - label: reports.pgr.status.reopened - type: number - source: seva - - name: rejected - label: reports.pgr.status.rejected - type: number - source: seva - - name: withinsla - label: reports.pgr.status.withinsla - type: number - source: seva - - name: beyondsla - label: reports.pgr.status.beyondsla - type: number - source: seva - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: deptname - label: reports.pgr.deptname - type: string - source: seva - isMandatory: true - - name: complainttype - label: reports.pgr.complainttype - type: string - source: seva - isMandatory: true - - name: categoryid - label: reports.pgr.category.name - type: number - source: seva - isMandatory: true - query: SELECT us.uuid as user_uuid, us.username as userposition,count(CASE WHEN cs.status::text = 'REGISTERED'::text THEN 1 ELSE NULL::integer END) AS registered, - count(CASE WHEN cs.status::text = ANY (ARRAY['FORWARDED'::character varying::text, 'PROCESSING'::character varying::text, 'ONHOLD'::character varying::text]) THEN 1 ELSE NULL::integer END) AS inprocess, - count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text,'WITHDRAWN'::character varying::text]) THEN 1 ELSE NULL::integer END) AS completed, - count(CASE WHEN cs.status::text = 'REOPENED'::text THEN 1 ELSE NULL::integer END) AS reopened, - count(CASE WHEN cs.status::text ='REJECTED'::text THEN 1 ELSE NULL::integer END) AS rejected,sum(CASE WHEN (cs.status::text - = ANY (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (cs.lastmodifieddate - cs.createddate) - < ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 WHEN (cs.status::text - <> ALL (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (now() - cs.createddate::timestamp - with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN - 1 ELSE 0 END) AS withinsla, sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character - varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) - AND (cs.lastmodifieddate - cs.createddate) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 WHEN (cs.status::text <> ALL (ARRAY['COMPLETED'::character varying::text, - 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND - (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 ELSE 0 END) AS beyondsla FROM submission cs, - egpgr_complainttype ctype,eg_department dept,egeis_position pos,egeis_assignment ass,eg_user us WHERE - cs.positionid = ass.positionid and ass.employeeid=us.id and cs.servicecode = ctype.code and cs.department=dept.id and cs.positionid = pos.id - and cs.createddate >= ass.fromdate and cs.createddate <= ass.todate and isprimary=true and cs.createddate >= $fromDate and cs.createddate - <= $toDate and dept.name = $deptname and ctype.code = (select code from egpgr_complainttype where name=$complainttype and tenantid=$tenantid and category = $categoryid) - and cs.tenantid = $tenantid - and ctype.tenantid = $tenantid - and dept.tenantid = $tenantid - and us.tenantid = $tenantid - GROUP BY us.username,pos.name - - - -- reportName: DrillDownDepartmentGrievanceTypeGetUserNamePositionGetComplaints - summary: DrillDown Department Report GrievanceType Get UserName Position Get Complaints - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: crn - label: reports.pgr.complaint.crn - type: string - source: submission - linkedReport: - reportName: ComplaintDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - - name: createddate - label: reports.pgr.complaint.createddate - type: epoch - source: seva - - name: complainantname - label: reports.pgr.complaint.complainantname - type: string - source: submission - - name: address - label: reports.pgr.complaint.address - type: string - source: submission - - name: details - label: reports.pgr.complaint.details - type: string - source: submission - - name: status - label: reports.pgr.complaint.status - type: string - source: submission - - name: feedback - label: reports.pgr.complaint.feedback - type: string - source: seva - - name: withinsla - label: reports.pgr.complaint.issla - type: string - source: seva - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: deptname - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: complainttype - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: username - label: reports.pgr.username - type: string - source: seva - isMandatory: true - - name: categoryid - label: reports.pgr.category.name - type: number - source: seva - isMandatory: true - query: select cs.crn,cs.createddate,cs.name as complainantname,requesteraddress as address,cs.details,cs.status, (select code from submission_attribute sa where sa.key='feedback' and sa.crn=cs.crn) as feedback, CASE WHEN (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 'Yes'::text ELSE 'No'::text END AS withinsla from submission cs, egpgr_complainttype ctype,eg_department dept,egeis_position pos,egeis_assignment ass,eg_user us WHERE cs.positionid = ass.positionid and ass.employeeid=us.id and cs.servicecode = ctype.code and cs.department=dept.id and cs.positionid = pos.id and cs.createddate >= $fromDate and cs.createddate <= $toDate and dept.name = $deptname and ctype.code = (select code from egpgr_complainttype where name=$complainttype and tenantid=$tenantid and category = $categoryid) and us.username = $username - and cs.tenantid = $tenantid - and ctype.tenantid = $tenantid - and dept.tenantid = $tenantid - and us.tenantid = $tenantid - - -- reportName: DrillDownByBoundary - summary: Drill Down Report grouped by Boundary Name - based on a date period - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: name - label: reports.pgr.boundary.name - type: string - source: egpgr_complainttype - linkedReport: - reportName: DrillDownByBoundaryLocalityGetDepartment - linkedColumn: _parent?reportName={reportName}&parentboundary={name} - - name: registered - label: reports.pgr.status.registered - type: number - source: seva - - name: inprocess - label: reports.pgr.status.inprocess - type: number - source: completed - - name: completed - label: reports.pgr.status.completed - type: number - source: reopened - - name: reopened - label: reports.pgr.status.reopened - type: number - source: seva - - name: rejected - label: reports.pgr.status.rejected - type: number - source: seva - - name: withinsla - label: reports.pgr.status.withinsla - type: number - source: seva - - name: beyondsla - label: reports.pgr.status.beyondsla - type: number - source: seva - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - query: SELECT boundary.name, count(CASE WHEN cs.status::text = 'REGISTERED'::text THEN 1 ELSE NULL::integer END) AS registered, - count(CASE WHEN cs.status::text = ANY (ARRAY['FORWARDED'::character varying::text, 'PROCESSING'::character varying::text, 'ONHOLD'::character varying::text]) THEN 1 ELSE NULL::integer END) AS inprocess, - count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text,'WITHDRAWN'::character varying::text]) THEN 1 ELSE NULL::integer END) AS completed, - count(CASE WHEN cs.status::text = 'REOPENED'::text THEN 1 ELSE NULL::integer END) AS reopened, - count(CASE WHEN cs.status::text ='REJECTED'::text THEN 1 ELSE NULL::integer END) AS rejected, - sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND (cs.lastmodifieddate - cs.createddate) - < ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 WHEN (cs.status::text - <> ALL (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (now() - cs.createddate::timestamp - with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN - 1 ELSE 0 END) AS withinsla, sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character - varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) - AND (cs.lastmodifieddate - cs.createddate) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 WHEN (cs.status::text <> ALL (ARRAY['COMPLETED'::character varying::text, - 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND - (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 ELSE 0 END) AS beyondsla FROM submission cs,submission_attribute sa, - eg_boundary boundary, egpgr_complainttype ctype ,servicetype_keyword sk WHERE cs.crn = sa.crn and boundary.id = sa.code::integer - and cs.servicecode = ctype.code and cs.createddate >= $fromDate and cs.createddate - <= $toDate and sa.key = 'systemLocationId' and ctype.code = sk.servicecode and upper(sk.keyword) = upper('complaint') - and sk.tenantid = $tenantid - and ctype.tenantid = $tenantid - and boundary.tenantid = $tenantid - and sa.tenantid = $tenantid - and cs.tenantid = $tenantid - GROUP BY boundary.name; - -- reportName: DrillDownByBoundaryGetLocality - summary: DrillDown By Boundary Get Locality - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: name - label: reports.pgr.locality.name - type: string - source: egpgr_ddbGetLocality - - name: registered - linkedReport: - reportName: DrillDownByBoundaryLocalityGetDepartment - linkedColumn: _parent?reportName={reportName}&locality={name} - label: reports.pgr.status.registered - type: number - source: seva - - name: inprocess - label: reports.pgr.status.inprocess - type: number - source: completed - - name: completed - label: reports.pgr.status.completed - type: number - source: reopened - - name: rejected - label: reports.pgr.status.reopened - type: number - source: seva - - name: rejected - label: reports.pgr.status.rejected - type: number - source: seva - - name: withinsla - label: reports.pgr.status.withinsla - type: number - source: seva - - name: beyondsla - label: reports.pgr.status.beyondsla - type: number - source: seva - - name: issla - label: reports.pgr.status.issla - type: string - source: seva - showColumn: false - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: parentboundary - label: reports.pgr.parentboundaryid - type: epoch - source: seva - isMandatory: true - query: SELECT boundary.name, - count(CASE WHEN cs.status::text = 'REGISTERED'::text THEN 1 ELSE NULL::integer END) AS registered, - count(CASE WHEN cs.status::text = ANY (ARRAY['FORWARDED'::character varying::text, 'PROCESSING'::character varying::text, 'ONHOLD'::character varying::text]) THEN 1 ELSE NULL::integer END) AS inprocess, - count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text,'WITHDRAWN'::character varying::text]) THEN 1 ELSE NULL::integer END) AS completed, - count(CASE WHEN cs.status::text = 'REOPENED'::text THEN 1 ELSE NULL::integer END) AS reopened, - count(CASE WHEN cs.status::text ='REJECTED'::text THEN 1 ELSE NULL::integer END) AS rejected, - sum(CASE WHEN (cs.status::text - = ANY (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (cs.lastmodifieddate - cs.createddate) - < ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 WHEN (cs.status::text - <> ALL (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (now() - cs.createddate::timestamp - with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN - 1 ELSE 0 END) AS withinsla, sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character - varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) - AND (cs.lastmodifieddate - cs.createddate) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 WHEN (cs.status::text <> ALL (ARRAY['COMPLETED'::character varying::text, - 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND - (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 ELSE 0 END) AS beyondsla, CASE WHEN bool_or((cs.status::text - = ANY (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (cs.lastmodifieddate - cs.createddate) - < ('01:00:00'::interval * ctype.slahours::double precision)) THEN 'Yes'::text - WHEN bool_or((cs.status::text <> ALL (ARRAY['COMPLETED'::character varying::text, - 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND - (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double - precision)) THEN 'Yes'::text ELSE 'No'::text END AS issla FROM submission cs, - eg_boundary boundary, egpgr_complainttype ctype ,servicetype_keyword sk WHERE cs.latitude = boundary.latitude AND cs.longitude - = boundary.longitude and cs.servicecode = ctype.code and cs.createddate >= $fromDate and cs.createddate - <= $toDate and boundary.parent = (select id from eg_boundary where name = $parentboundary and tenantid=$tenantid) and ctype.code = sk.servicecode - and upper(sk.keyword) = upper('complaint') - and sk.tenantid = $tenantid - and ctype.tenantid = $tenantid - and boundary.tenantid = $tenantid - and dept.tenantid = $tenantid - and sa.tenantid = $tenantid - GROUP BY boundary.name; - - -- reportName: DrillDownByBoundaryLocalityGetDepartment - summary: Drill Down Report By Boundary Locality Get Department - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: name - label: reports.pgr.department.name - type: string - source: eg_department - linkedReport: - reportName: DrillDownByBoundaryLocalityDepartmentGetComplaintType - linkedColumn: _parent?reportName={reportName}&deptname={name} - - name: registered - label: reports.pgr.status.registered - type: number - source: seva - - name: inprocess - label: reports.pgr.status.inprocess - type: number - source: completed - - name: completed - label: reports.pgr.status.completed - type: number - source: reopened - - name: rejected - label: reports.pgr.status.reopened - type: number - source: seva - - name: rejected - label: reports.pgr.status.rejected - type: number - source: seva - - name: withinsla - label: reports.pgr.status.withinsla - type: number - source: seva - - name: beyondsla - label: reports.pgr.status.beyondsla - type: number - source: seva - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: parentboundary - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - query: SELECT dept.name, - count(CASE WHEN cs.status::text = 'REGISTERED'::text THEN 1 ELSE NULL::integer END) AS registered, - count(CASE WHEN cs.status::text = ANY (ARRAY['FORWARDED'::character varying::text, 'PROCESSING'::character varying::text, 'ONHOLD'::character varying::text]) THEN 1 ELSE NULL::integer END) AS inprocess, - count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text,'WITHDRAWN'::character varying::text]) THEN 1 ELSE NULL::integer END) AS completed, - count(CASE WHEN cs.status::text = 'REOPENED'::text THEN 1 ELSE NULL::integer END) AS reopened, - count(CASE WHEN cs.status::text ='REJECTED'::text THEN 1 ELSE NULL::integer END) AS rejected,sum(CASE WHEN (cs.status::text - = ANY (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (cs.lastmodifieddate - cs.createddate) - < ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 WHEN (cs.status::text - <> ALL (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (now() - cs.createddate::timestamp - with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN - 1 ELSE 0 END) AS withinsla, sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character - varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) - AND (cs.lastmodifieddate - cs.createddate) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 WHEN (cs.status::text <> ALL (ARRAY['COMPLETED'::character varying::text, - 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND - (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 ELSE 0 END) AS beyondsla FROM submission cs,submission_attribute sa, - eg_boundary boundary, egpgr_complainttype ctype,eg_department dept, servicetype_keyword sk WHERE - cs.crn = sa.crn and boundary.id = sa.code::integer - and cs.servicecode = ctype.code and cs.department=dept.id and cs.createddate >= $fromDate and cs.createddate - <= $toDate and sa.key = 'systemLocationId' and boundary.id = (select id from eg_boundary where name = $parentboundary and boundary.tenantid=$tenantid - and boundarytype = (select id from eg_boundary_type where hierarchytype =(select id from eg_hierarchy_type where code = 'ADMIN' and tenantid = $tenantid) - and name = 'Ward' and tenantid = $tenantid)) - and cs.tenantid=$tenantid and ctype.code = sk.servicecode and upper(sk.keyword) = upper('complaint') - and sk.tenantid = $tenantid - and ctype.tenantid = $tenantid - and boundary.tenantid = $tenantid - and dept.tenantid = $tenantid - and sa.tenantid = $tenantid - GROUP BY dept.name; - - -- reportName: DrillDownByBoundaryLocalityDepartmentGetComplaintType - summary: Drill Down Report By Boundary Locality Department Get Complaint Type - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: name - label: reports.pgr.complainttype.name - type: string - source: egpgr_complainttype - linkedReport: - reportName: DrillDownByBoundaryLocalityDepartmentGetUserNamePosition - linkedColumn: _parent?reportName={reportName}&complainttype={name}&categoryid={categoryid} - - name: categoryid - label: reports.pgr.complaint.category - type: number - source: submission - showColumn: false - - name: registered - label: reports.pgr.status.registered - type: number - source: seva - - name: inprocess - label: reports.pgr.status.inprocess - type: number - source: completed - - name: completed - label: reports.pgr.status.completed - type: number - source: reopened - - name: rejected - label: reports.pgr.status.reopened - type: number - source: seva - - name: rejected - label: reports.pgr.status.rejected - type: number - source: seva - - name: withinsla - label: reports.pgr.status.withinsla - type: number - source: seva - - name: beyondsla - label: reports.pgr.status.beyondsla - type: number - source: seva - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: parentboundary - label: reports.pgr.boundaryparentid - type: string - source: seva - isMandatory: true - - name: deptname - label: reports.pgr.department - type: string - source: seva - isMandatory: true - query: SELECT ctype.name, (select id from egpgr_complainttype_category where id = ctype.category and tenantid = $tenantid) as categoryid, - count(CASE WHEN cs.status::text = 'REGISTERED'::text THEN 1 ELSE NULL::integer END) AS registered, - count(CASE WHEN cs.status::text = ANY (ARRAY['FORWARDED'::character varying::text, 'PROCESSING'::character varying::text, 'ONHOLD'::character varying::text]) THEN 1 ELSE NULL::integer END) AS inprocess, - count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text,'WITHDRAWN'::character varying::text]) THEN 1 ELSE NULL::integer END) AS completed, - count(CASE WHEN cs.status::text = 'REOPENED'::text THEN 1 ELSE NULL::integer END) AS reopened, - count(CASE WHEN cs.status::text ='REJECTED'::text THEN 1 ELSE NULL::integer END) AS rejected, - sum(CASE WHEN (cs.status::text - = ANY (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (cs.lastmodifieddate - cs.createddate) - < ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 WHEN (cs.status::text - <> ALL (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (now() - cs.createddate::timestamp - with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN - 1 ELSE 0 END) AS withinsla, sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character - varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) - AND (cs.lastmodifieddate - cs.createddate) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 WHEN (cs.status::text <> ALL (ARRAY['COMPLETED'::character varying::text, - 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND - (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 ELSE 0 END) AS beyondsla FROM submission cs,submission_attribute sa, - eg_boundary boundary, egpgr_complainttype ctype,eg_department dept ,servicetype_keyword sk WHERE - cs.crn = sa.crn and boundary.id = sa.code::integer - and cs.servicecode = ctype.code and cs.department=dept.id and cs.createddate >= $fromDate and cs.createddate - <= $toDate and sa.key = 'systemLocationId' and boundary.id = (select id from eg_boundary where name = $parentboundary and cs.tenantid=$tenantid - and boundarytype = (select id from eg_boundary_type where hierarchytype =(select id from eg_hierarchy_type where code = 'ADMIN' and tenantid = $tenantid) - and name = 'Ward' and tenantid = $tenantid)) - and cs.tenantid=$tenantid and ctype.code = sk.servicecode and upper(sk.keyword) = upper('complaint') - and dept.name = $deptname - and sa.tenantid = $tenantid - and cs.tenantid = $tenantid - and ctype.tenantid = $tenantid - and boundary.tenantid = $tenantid - and sk.tenantid = $tenantid - GROUP BY ctype.name, ctype.category; - -- reportName: DrillDownByBoundaryLocalityDepartmentGetUserNamePosition - summary: Drill Down Report By Boundary Locality Department Get UserName Position - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: userposition - label: reports.pgr.complaint.userposition - type: string - source: submission - linkedReport: - reportName: DrillDownByBoundaryLocalityDepartmentUserNamePositionGetComplaints - linkedColumn: _parent?reportName={reportName}&username={userposition} - - name: user_uuid - label: report.pgr.complaint.user_uuid - type: string - source: eg_user - showColumn: false - - name: registered - label: reports.pgr.status.registered - type: number - source: seva - - name: inprocess - label: reports.pgr.status.inprocess - type: number - source: completed - - name: completed - label: reports.pgr.status.completed - type: number - source: reopened - - name: rejected - label: reports.pgr.status.reopened - type: number - source: seva - - name: rejected - label: reports.pgr.status.rejected - type: number - source: seva - - name: withinsla - label: reports.pgr.status.withinsla - type: number - source: seva - - name: beyondsla - label: reports.pgr.status.beyondsla - type: number - source: seva - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: parentboundary - label: reports.pgr.boundaryparentid - type: epoch - source: eg_boundary - isMandatory: true - - name: localityid - label: reports.pgr.locality - type: epoch - source: seva - isMandatory: true - - name: deptname - label: reports.pgr.deptname - type: string - source: eg_department - isMandatory: true - - name: complainttype - label: reports.pgr.complainttypecode - type: string - source: egpgr_complainttype - isMandatory: true - - name: categoryid - label: reports.pgr.category.name - type: number - source: seva - isMandatory: true - query : SELECT us.uuid as user_uuid us.username as userposition, - count(CASE WHEN cs.status::text = 'REGISTERED'::text THEN 1 ELSE NULL::integer END) AS registered, - count(CASE WHEN cs.status::text = ANY (ARRAY['FORWARDED'::character varying::text, 'PROCESSING'::character varying::text, 'ONHOLD'::character varying::text]) THEN 1 ELSE NULL::integer END) AS inprocess, - count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text,'WITHDRAWN'::character varying::text]) THEN 1 ELSE NULL::integer END) AS completed, - count(CASE WHEN cs.status::text = 'REOPENED'::text THEN 1 ELSE NULL::integer END) AS reopened, - count(CASE WHEN cs.status::text ='REJECTED'::text THEN 1 ELSE NULL::integer END) AS rejected, - sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (cs.lastmodifieddate - cs.createddate) - < ('01:00:00'::interval * ctype.slahours::double precision) THEN 1 WHEN (cs.status::text - <> ALL (ARRAY['COMPLETED'::character varying::text, 'REJECTED'::character varying::text, - 'WITHDRAWN'::character varying::text])) AND (now() - cs.createddate::timestamp - with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN - 1 ELSE 0 END) AS withinsla, sum(CASE WHEN (cs.status::text = ANY (ARRAY['COMPLETED'::character - varying::text, 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) - AND (cs.lastmodifieddate - cs.createddate) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 WHEN (cs.status::text <> ALL (ARRAY['COMPLETED'::character varying::text, - 'REJECTED'::character varying::text, 'WITHDRAWN'::character varying::text])) AND - (now() - cs.createddate::timestamp with time zone) > ('01:00:00'::interval * ctype.slahours::double - precision) THEN 1 ELSE 0 END) AS beyondsla FROM submission cs,submission_attribute sa, - eg_boundary boundary, egpgr_complainttype ctype,eg_department dept,egeis_position pos,egeis_assignment ass, eg_user us WHERE - cs.crn = sa.crn and boundary.id = sa.code::integer and - cs.servicecode = ctype.code and cs.department=dept.id and cs.positionid = pos.id and cs.createddate >= $fromDate and cs.createddate - <= $toDate and sa.key = 'systemLocationId' and boundary.id = (select id from eg_boundary where name = $parentboundary and cs.tenantid=$tenantid - and boundarytype = (select id from eg_boundary_type where hierarchytype =(select id from eg_hierarchy_type where code = 'ADMIN' and tenantid = $tenantid) - and name = 'Ward' and tenantid = $tenantid)) - and dept.name = $deptname - and cs.positionid = ass.positionid and ass.employeeid=us.id and cs.createddate >= ass.fromdate and cs.createddate <= ass.todate and isprimary=true - and ctype.code = (select code from egpgr_complainttype where name=$complainttype and tenantid=$tenantid and category = $categoryid) - and sa.tenantid = $tenantid and cs.tenantid = $tenantid and ctype.tenantid = $tenantid - and us.tenantid = $tenantid and pos.tenantid = $tenantid and boundary.tenantid = $tenantid GROUP BY us.username,pos.name; - -- reportName: DrillDownByBoundaryLocalityDepartmentUserNamePositionGetComplaints - summary: Drill Down By Boundary Locality Department UserName Position GetComplaints - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: crn - label: reports.pgr.complaint.crn - type: string - source: submission - linkedReport: - reportName: ComplaintDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - - name: createddate - label: reports.pgr.complaint.createddate - type: epoch - source: seva - - name: complainantname - label: reports.pgr.complaint.complainantname - type: string - source: submission - - name: address - label: reports.pgr.complaint.address - type: string - source: submission - - name: details - label: reports.pgr.complaint.details - type: string - source: submission - - name: status - label: reports.pgr.complaint.status - type: string - source: submission - - name: feedback - label: reports.pgr.complaint.feedback - type: string - source: seva - - name: issla - label: reports.pgr.complaint.issla - type: string - source: seva - - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: parentboundary - label: reports.pgr.boundaryparentid - type: number - source: seva - isMandatory: true - - name: deptname - label: reports.pgr.dept.name - type: string - source: seva - isMandatory: true - - name: complainttype - label: reports.pgr.complainttype - type: string - source: seva - isMandatory: true - - name: username - label: reports.pgr.username - type: string - source: seva - isMandatory: true - - name: categoryid - label: reports.pgr.category.name - type: number - source: seva - isMandatory: true - query: SELECT cs.crn as crn,cs.createddate,cs.name as complainantname,requesteraddress as address,cs.details,cs.status, (select code from submission_attribute sa where sa.key='feedback' and sa.crn=cs.crn) as feedback, CASE WHEN (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 'Yes'::text ELSE 'No'::text END AS issla - FROM submission cs,submission_attribute sa, - eg_boundary boundary, egpgr_complainttype ctype,eg_department dept,egeis_position pos,egeis_assignment ass, eg_user us WHERE - cs.crn = sa.crn and boundary.id = sa.code::integer and cs.positionid = pos.id and - cs.positionid = ass.positionid and ass.employeeid=us.id and cs.createddate >= ass.fromdate and cs.createddate <= ass.todate and isprimary=true - and cs.servicecode = ctype.code and cs.department=dept.id and cs.createddate >= $fromDate and cs.createddate - <= $toDate and sa.key = 'systemLocationId' and boundary.id = (select id from eg_boundary where name = $parentboundary and cs.tenantid=$tenantid - and boundarytype = (select id from eg_boundary_type where hierarchytype =(select id from eg_hierarchy_type where code = 'ADMIN' and tenantid = $tenantid) - and name = 'Ward' and tenantid = $tenantid)) - and cs.tenantid=$tenantid - and dept.name = $deptname and ctype.code = (select code from egpgr_complainttype where name=$complainttype and tenantid=$tenantid and category = $categoryid) - and ctype.tenantid=$tenantid - and cs.tenantid =$tenantid - and sa.tenantid =$tenantid - and dept.tenantid =$tenantid - and sa.tenantid =$tenantid - and pos.tenantid =$tenantid - and us.tenantid =$tenantid - and us.username = $username ; - -- reportName: AgeingByDepartment - summary: Ageing report by department - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: name - label: reports.pgr.department.name - type: string - source: eg_department - - name: greater30 - label: reports.pgr.ageing.greater.30days - type: number - source: submission - - name: btw10to30 - label: reports.pgr.ageing.between.10_30days - type: number - source: submission - - name: btw5to10 - label: reports.pgr.ageing.between.5_10days - type: number - source: submission - - name: btw2to5 - label: reports.pgr.ageing.between.2_5days - type: number - source: submission - - name: lsthn2 - label: reports.pgr.ageing.between.0_2days - type: number - source: submission - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: grievancestatustype - label: reports.pgr.grievancestatustype - type: singlevaluelist - pattern: 'list://COMPLETED''_''WITHDRAWN:COMPLETED,REGISTERED''_''FORWARDED''_''PROCESSING''_''REOPENED''_''ONHOLD:PENDING,REJECTED:REJECTED' - source: seva - isMandatory: true - query: SELECT dept.name, count(CASE WHEN (date_part('epoch'::text, cs.lastmodifieddate - - cs.createddate) / 86400::double precision) > 30::double precision THEN 1 ELSE - NULL::integer END) AS greater30, count(CASE WHEN (date_part('epoch'::text, cs.lastmodifieddate - - cs.createddate) / 86400::double precision) >= 10::double precision AND (date_part('epoch'::text, - cs.lastmodifieddate - cs.createddate) / 86400::double precision) <= 30::double - precision THEN 1 ELSE NULL::integer END) AS btw10to30, count(CASE WHEN (date_part('epoch'::text, - cs.lastmodifieddate - cs.createddate) / 86400::double precision) >= 5::double - precision AND (date_part('epoch'::text, cs.lastmodifieddate - cs.createddate) - / 86400::double precision) <= 10::double precision THEN 1 ELSE NULL::integer END) - AS btw5to10, count(CASE WHEN (date_part('epoch'::text, cs.lastmodifieddate - cs.createddate) - / 86400::double precision) >= 2::double precision AND (date_part('epoch'::text, - cs.lastmodifieddate - cs.createddate) / 86400::double precision) <= 5::double - precision THEN 1 ELSE NULL::integer END) AS btw2to5, count(CASE WHEN (date_part('epoch'::text, - cs.lastmodifieddate - cs.createddate) / 86400::double precision) >= 0::double - precision AND (date_part('epoch'::text, cs.lastmodifieddate - cs.createddate) - / 86400::double precision) <= 2::double precision THEN 1 ELSE NULL::integer END) - AS lsthn2 FROM egpgr_complainttype ctype, submission cs, eg_department dept,servicetype_keyword sk WHERE - dept.id = cs.department and cs.servicecode = ctype.code and cs.createddate >= - $fromDate and cs.createddate <= $toDate and cs.status IN ($grievancestatustype) - and cs.tenantid =$tenantid and ctype.code = sk.servicecode and upper(sk.keyword) = upper('complaint') - and ctype.tenantid = $tenantid - and sk.tenantid = $tenantid - and dept.tenantid = $tenantid - GROUP BY dept.name; - -- reportName: RouterEscalation - summary: Router Escalation Report - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: ctname - label: reports.pgr.complainttype.name - type: string - source: egpgr_complainttype - isMandatory: false - - name: routerposname - label: reports.pgr.position.name - type: number - source: egeis_position - - name: bndryname - label: reports.pgr.boundary.name - type: number - source: eg_boundary - - name: esclvl1posname - label: reports.pgr.position1.name - type: number - source: egpgr_router - - name: esclvl2posname - label: reports.pgr.position2.name - type: number - source: egpgr_router - - name: esclvl3posname - label: reports.pgr.position3.name - type: number - source: egpgr_router - - searchParams: - - name: complaintcategorytype - label: reports.pgr.complaintcategorytype - type: singlevaluelist - pattern: http://pgr-master:8080/pgr-master/serviceGroup/v1/_search?tenantId=$tenantid&keyword=complaint|$..id|$..name - source: seva - isMandatory: false - searchClause: and cc.id=$complaintcategorytype - - name: complainttype - label: reports.pgr.complainttype - type: url - pattern: /pgr-master/service/v1/_search?tenantId=$tenantid&categoryId={complaintcategorytype}&keywords=complaint|$..serviceCode|$..serviceName - source: seva - isMandatory: false - searchClause: and ct.code=$complainttype - - name: positiontype - label: reports.pgr.positiontype - type: multivaluelist - pattern: http://hr-masters:8080/hr-masters/positions/_search?tenantId=$tenantid&pageSize=500|$.Position[*].id|$.Position[*].name - source: seva - isMandatory: false - searchClause: and p.id IN ($positiontype) - - name: wardtype - label: reports.pgr.wardtype - type: singlevaluelist - pattern: http://egov-location:8080/egov-location/boundarys/boundariesByBndryTypeNameAndHierarchyTypeName?boundaryTypeName=Ward&hierarchyTypeName=Administration&tenantId=$tenantid|$..id|$..name - source: seva - isMandatory: false - searchClause: and b.id=$wardtype - - name: isactive - label: pgr.lbl.active - type: checkbox - pattern: false - source: seva - isMandatory: false - searchClause: and ct.isactive=$isactive - - query: SELECT COALESCE(ct.name, 'NA'::character varying) AS ctname, p.name AS routerposname, b.name AS bndryname, - COALESCE(( SELECT esclvl1pos.name FROM egeis_position esclvl1pos WHERE esclvl1pos.id = (( SELECT ph.toposition FROM egpgr_escalation_hierarchy ph WHERE ph.fromposition = r.position AND ph.servicecode::text = ct.code::text))), 'NA'::character varying) AS esclvl1posname, - COALESCE(( SELECT esclvl2pos.name FROM egeis_position esclvl2pos WHERE esclvl2pos.id = (( SELECT ph.toposition FROM egpgr_escalation_hierarchy ph WHERE ph.servicecode::text = ct.code::text AND ph.fromposition = (( SELECT ph_1.toposition FROM egpgr_escalation_hierarchy ph_1 WHERE ph_1.fromposition = r.position AND ph_1.servicecode::text = ct.code::text))))), 'NA'::character varying) AS esclvl2posname, - COALESCE(( SELECT escalvl3pos.name FROM egeis_position escalvl3pos WHERE escalvl3pos.id = (( SELECT ph.toposition FROM egpgr_escalation_hierarchy ph WHERE ph.servicecode::text = ct.code::text AND ph.fromposition = (( SELECT ph_1.toposition FROM egpgr_escalation_hierarchy ph_1 WHERE ph_1.servicecode::text = ct.code::text AND ph_1.fromposition = (( SELECT ph_2.toposition FROM egpgr_escalation_hierarchy ph_2 WHERE ph_2.fromposition = r.position AND ph_2.servicecode::text = ct.code::text ))))))), 'NA'::character varying) AS esclvl3posname - FROM egpgr_router r LEFT JOIN egpgr_complainttype ct ON r.complainttypeid = ct.id LEFT JOIN egpgr_complainttype_category cc ON ct.category = cc.id - LEFT JOIN eg_boundary b ON r.bndryid = b.id LEFT JOIN servicetype_keyword sk ON ct.code=sk.servicecode and upper(sk.keyword) = upper('complaint') - LEFT JOIN egeis_position p ON r.position = p.id where r.tenantid=$tenantid and upper(cc.keyword) = upper('complaint') - and ct.tenantid = sk.tenantid - and sk.tenantid = $tenantid - groupBy: ORDER BY r.complainttypeid; - -- reportName: AgeingByBoundary - summary: Ageing report by boundary - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: name - label: reports.pgr.boundary.name - type: string - source: eg_boundary - - name: greater30 - label: reports.pgr.ageing.greater.30days - type: number - source: submission - - name: btw10to30 - label: reports.pgr.ageing.between.10_30days - type: number - source: submission - - name: btw5to10 - label: reports.pgr.ageing.between.5_10days - type: number - source: submission - - name: btw2to5 - label: reports.pgr.ageing.between.2_5days - type: number - source: submission - - name: lsthn2 - label: reports.pgr.ageing.between.0_2days - type: number - source: submission - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: grievancestatustype - label: reports.pgr.grievancestatustype - type: singlevaluelist - pattern: 'list://COMPLETED''_''WITHDRAWN:COMPLETED,REGISTERED''_''FORWARDED''_''PROCESSING''_''REOPENED''_''ONHOLD:PENDING,REJECTED:REJECTED' - source: seva - isMandatory: true - query: SELECT boundary.name, count(CASE WHEN (date_part('epoch'::text, cs.lastmodifieddate - - cs.createddate) / 86400::double precision) > 30::double precision THEN 1 ELSE - NULL::integer END) AS greater30, count(CASE WHEN (date_part('epoch'::text, cs.lastmodifieddate - - cs.createddate) / 86400::double precision) >= 10::double precision AND (date_part('epoch'::text, - cs.lastmodifieddate - cs.createddate) / 86400::double precision) <= 30::double - precision THEN 1 ELSE NULL::integer END) AS btw10to30, count(CASE WHEN (date_part('epoch'::text, - cs.lastmodifieddate - cs.createddate) / 86400::double precision) >= 5::double - precision AND (date_part('epoch'::text, cs.lastmodifieddate - cs.createddate) - / 86400::double precision) <= 10::double precision THEN 1 ELSE NULL::integer END) - AS btw5to10, count(CASE WHEN (date_part('epoch'::text, cs.lastmodifieddate - cs.createddate) - / 86400::double precision) >= 2::double precision AND (date_part('epoch'::text, - cs.lastmodifieddate - cs.createddate) / 86400::double precision) <= 5::double - precision THEN 1 ELSE NULL::integer END) AS btw2to5, count(CASE WHEN (date_part('epoch'::text, - cs.lastmodifieddate - cs.createddate) / 86400::double precision) >= 0::double - precision AND (date_part('epoch'::text, cs.lastmodifieddate - cs.createddate) - / 86400::double precision) <= 2::double precision THEN 1 ELSE NULL::integer END) - AS lsthn2 FROM egpgr_complainttype ctype, submission cs,submission_attribute sa,eg_boundary - boundary ,servicetype_keyword sk where cs.servicecode = ctype.code and cs.crn = sa.crn and sa.key = 'systemLocationId' - and boundary.id = sa.code::integer and cs.createddate >= $fromDate and cs.createddate <= $toDate - and cs.tenantid = $tenantid AND cs.status IN ($grievancestatustype) and ctype.code = sk.servicecode and upper(sk.keyword) = upper('complaint') - and ctype.tenantid = $tenantid - and sk.tenantid = $tenantid - and boundary.tenantid = $tenantid - GROUP BY boundary.name ; - -- reportName: ComplaintSummaryRegister - summary: Report grouped by Grievance Type and ward - based on a date period - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: name - label: reports.pgr.ward - type: string - source: eg_boundary - - name: complainttype - label: reports.pgr.complainttype.name - type: string - source: egpgr_complainttype - linkedReport: - reportName: DrillDownComplaintSummaryRegister - linkedColumn: _parent?reportName={reportName}&complaintcode={complainttype}&wardname={name}&categoryname={categoryname} - - name: categoryname - label: reports.pgr.complaint.category - type: string - source: submission - showColumn: false - - name: totalcount - label: reports.pgr.totalcount - type: number - source: totalcount - - name: completed - label: reports.pgr.completed - type: number - source: completed - - name: inprocess - label: reports.pgr.inprocess - type: number - source: inprocess - - name: pending - label: reports.pgr.pending - type: number - source: pending - - name: onhold - label: reports.pgr.onhold - type: number - source: onhold - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: electionward - label: reports.pgr.ward - type: multivaluelist - source: seva - isMandatory: false - pattern: http://egov-location:8080/egov-location/boundarys/boundariesByBndryTypeNameAndHierarchyTypeName?boundaryTypeName=Ward&hierarchyTypeName=Administration&tenantId=$tenantid|$..id|$..name - searchClause: and sa.code::bigint in ($electionward) - query: SELECT boundary.name, (select name from egpgr_complainttype where code = ctype.code and tenantid = $tenantid) as complainttype, (select name from egpgr_complainttype_category where id = ctype.category and tenantid = $tenantid) as categoryname, count(*) as totalcount, count(CASE WHEN cs.status::text = ANY (ARRAY['COMPLETED'::character varying::text,'WITHDRAWN'::character varying::text,'REJECTED'::character varying::text]) THEN 1 ELSE NULL::integer END) AS completed,count(CASE WHEN cs.status::text ='PROCESSING'::text THEN 1 ELSE NULL::integer END) AS inprocess,count(CASE WHEN cs.status::text = ANY (ARRAY['FORWARDED'::character varying::text, 'REOPENED'::character varying::text, 'REGISTERED'::character varying::text]) THEN 1 ELSE NULL::integer END) AS pending,count(CASE WHEN cs.status::text ='ONHOLD'::text THEN 1 ELSE NULL::integer END) AS onhold FROM submission cs,submission_attribute sa, eg_boundary boundary, egpgr_complainttype ctype ,servicetype_keyword sk WHERE cs.crn = sa.crn and boundary.id = sa.code::integer and cs.createddate >= $fromDate and cs.createddate <= $toDate and cs.servicecode = ctype.code and sa.key = 'systemLocationId' and ctype.code = sk.servicecode and upper(sk.keyword) = upper('complaint') and sk.tenantid = $tenantid and ctype.tenantid = $tenantid and boundary.tenantid = $tenantid and sa.tenantid = $tenantid and cs.tenantid = $tenantid - groupBy: GROUP BY boundary.name, ctype.code, ctype.category ORDER By boundary.name; - -- reportName: DrillDownComplaintSummaryRegister - summary: Report To List Complaints for Grievance Type and ward - based on a date period - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: crn - label: reports.pgr.complaint.crn - type: string - source: submission - linkedReport: - reportName: ComplaintDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - - name: createddate - label: reports.pgr.complaint.createddate - type: epoch - source: seva - - name: complainantname - label: reports.pgr.complaint.complainantname - type: string - source: submission - - name: address - label: reports.pgr.complaint.address - type: string - source: submission - - name: details - label: reports.pgr.complaint.details - type: string - source: submission - - name: status - label: reports.pgr.complaint.status - type: string - source: submission - - name: feedback - label: reports.pgr.complaint.feedback - type: string - source: seva - - name: issla - label: reports.pgr.complaint.issla - type: string - source: seva - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: complaintcode - label: reports.pgr.complainttype - type: string - source: seva - isMandatory: true - - name: wardname - label: reports.pgr.boundary.name - type: string - source: seva - isMandatory: true - - name: categoryname - label: reports.pgr.category.name - type: string - source: seva - isMandatory: true - query: SELECT cs.crn, cs.createddate,cs.name as complainantname, requesteraddress as address, cs.details,cs.status, (select code from submission_attribute sa where sa.key='feedback' and sa.crn=cs.crn and sa.tenantid = $tenantid) as feedback, CASE WHEN (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 'Yes'::text ELSE 'No'::text END AS issla FROM submission cs,submission_attribute sa, eg_boundary boundary, egpgr_complainttype ctype ,servicetype_keyword sk WHERE cs.crn = sa.crn and boundary.id = sa.code::integer and cs.createddate >= $fromDate and cs.createddate <= $toDate and cs.servicecode = ctype.code and sa.key = 'systemLocationId' and ctype.code = sk.servicecode and upper(sk.keyword) = upper('complaint') and sk.tenantid = $tenantid and ctype.tenantid = $tenantid and boundary.tenantid = $tenantid and sa.tenantid = $tenantid and cs.tenantid = $tenantid - and ctype.code = (select code from egpgr_complainttype where name = $complaintcode and tenantid = $tenantid and category = (select id from egpgr_complainttype_category where name = $categoryname and tenantid = $tenantid)) and sa.code::bigint = (select id from eg_boundary where name = $wardname and tenantid = $tenantid and boundarytype = (select id from eg_boundary_type where name = 'Ward' and hierarchytype = (select id from eg_hierarchy_type where name = 'ADMINISTRATION' and tenantid = $tenantid) and tenantid = $tenantid)); - -- reportName: DrillDownComplaintSummaryRegisterStatus - summary: Report To List Complaints for Grievance Type and ward - based on a date period - version: 1.0.0 - moduleName: pgr - sourceColumns: - - name: crn - label: reports.pgr.complaint.crn - type: string - source: submission - linkedReport: - reportName: ComplaintDetail - linkedColumn: _url?/pgr/viewGrievance/:srn - - name: createddate - label: reports.pgr.complaint.createddate - type: epoch - source: seva - - name: complainantname - label: reports.pgr.complaint.complainantname - type: string - source: submission - - name: address - label: reports.pgr.complaint.address - type: string - source: submission - - name: details - label: reports.pgr.complaint.details - type: string - source: submission - - name: status - label: reports.pgr.complaint.status - type: string - source: submission - - name: feedback - label: reports.pgr.complaint.feedback - type: string - source: seva - - name: issla - label: reports.pgr.complaint.issla - type: string - source: seva - searchParams: - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: seva - isMandatory: true - - name: toDate - label: reports.pgr.dateto - type: epoch - source: seva - isMandatory: true - - name: complaintcode - label: reports.pgr.complainttype - type: string - source: seva - isMandatory: true - - name: wardname - label: reports.pgr.boundary.name - type: string - source: seva - isMandatory: true - - name: status - label: reports.pgr.status - type: string - source: seva - isMandatory: true - query: SELECT cs.crn, cs.createddate,cs.name as complainantname, requesteraddress as address, cs.details,cs.status, (select code from submission_attribute sa where sa.key='feedback' and sa.crn=cs.crn) as feedback, CASE WHEN (now() - cs.createddate::timestamp with time zone) < ('01:00:00'::interval * ctype.slahours::double precision) THEN 'Yes'::text ELSE 'No'::text END AS issla FROM submission cs,submission_attribute sa, eg_boundary boundary, egpgr_complainttype ctype ,servicetype_keyword sk WHERE cs.crn = sa.crn and boundary.id = sa.code::integer and cs.createddate >= $fromDate and cs.createddate <= $toDate and cs.servicecode = ctype.code and sa.key = 'systemLocationId' and ctype.code = sk.servicecode and upper(sk.keyword) = upper('complaint') and sk.tenantid = $tenantid and ctype.tenantid = $tenantid and boundary.tenantid = $tenantid and sa.tenantid = $tenantid and cs.tenantid = $tenantid - and ctype.code = (select code from egpgr_complainttype where name = $complaintcode and tenantid = $tenantid) and sa.code::bigint = (select id from eg_boundary where name = $wardname and tenantid = $tenantid) and cs.status IN ($status); - -- reportName: ULBReport - summary: Fetches complaint stats based on department types for a ULB - version: 1.0.0 - moduleName: pgr - externalService: - - entity: $.MdmsRes.RAINMAKER-PGR.ServiceDefs - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=RAINMAKER-PGR&masterName=ServiceDefs&tenantId=$tenantId - keyOrder: serviceCode,department,slaHours - tableName: tbl_dept - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_def_dept - sourceColumns: - - name: tenantid - label: reports.pgr.tenantid - type: string - source: eg_pgr_service - total: false - - name: received - label: reports.pgr.received - type: string - source: eg_pgr_service - total: true - - name: assigned - label: reports.pgr.assigned - type: string - source: eg_pgr_service - total: true - - name: resolvedwithinsla - label: reports.pgr.resolvedwithinsla - type: string - source: eg_pgr_service - total: true - - name: resolvedoutsidesla - label: reports.pgr.resolvedoutsidesla - type: string - source: eg_pgr_service - total: true - - name: opencomplaintswithinsla - label: reports.pgr.opencomplaintswithinsla - type: string - source: eg_pgr_service - total: true - - name: opencomplaintsoutsidesla - label: reports.pgr.opencomplaintsoutsidesla - type: string - source: eg_pgr_service - total: true - - name: rating - label: reports.pgr.rating - type: number - source: eg_pgr_service - total: true - searchParams: - - name: ulb - label: ULB - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: pt - wrapper: true - isMandatory: false - searchClause: AND pgr_data.tenantid = $ulb - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: eg_pgr_service - isMandatory: false - searchClause: AND pgr_data.createdtime >= $fromDate - - name: toDate - label: reports.pgr.dateto - type: epoch - source: eg_pgr_service - isMandatory: false - searchClause: AND pgr_data.createdtime <= $toDate - - name: status - label: reports.pgr.status - type: singlevaluelist - pattern: 'list://open:open,assigned:assigned,closed:closed,rejected:rejected,reassignrequested:reassignrequested' - source: seva - isMandatory: false - searchClause: AND pgr_data.status = $status - - name: deptname - label: reports.pgr.dept.name - type: singlevaluelist - source: eg_pgr_service - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$.MdmsRes.common-masters.Department[*].code|$.MdmsRes.common-masters.Department[*].name - isMandatory: false - searchClause: AND deptmap_def.code = $deptname - query: | - with pgr_data as (select - servicerequestid, - servicecode, - createdtime, - status, - tenantid, - rating, - (select max("when") from eg_pgr_action where action='resolve' and businesskey = servicerequestid) as resolvedtime, - (select min("when") from eg_pgr_action where action='open' and businesskey = servicerequestid) as opentime - from eg_pgr_service as ps - where - tenantid = $tenantid) - select - initcap(split_part(tenantid, '.', 2)) as tenantid, - deptmap_def.name as department, - SUM (CASE WHEN status in ('assigned', 'reassignrequested') THEN 1 ELSE 0 END) as assigned, - count(status) as received, - rating, - SUM (CASE WHEN status in ('closed', 'resolved') and (resolvedtime - opentime) < 14 * 86400 * 1000 THEN 1 ELSE 0 END) as resolvedwithinsla, - SUM (CASE WHEN status in ('closed', 'resolved') and (resolvedtime - opentime) >= 14 * 86400 * 1000 THEN 1 ELSE 0 END) as resolvedoutsidesla, - SUM (CASE WHEN status in ('open') and (extract(epoch from now()) * 1000 - opentime) < 14 * 86400 * 1000 THEN 1 ELSE 0 END) as opencomplaintswithinsla, - SUM (CASE WHEN status in ('open') and (extract(epoch from now()) * 1000 - opentime) >= 14 * 86400 * 1000 THEN 1 ELSE 0 END) as opencomplaintsoutsidesla - from pgr_data - INNER JOIN (VALUES tbl_dept) AS deptmap(serviceCode, department, slaHours) ON deptmap.serviceCode = pgr_data.servicecode - INNER JOIN (VALUES tbl_def_dept) AS deptmap_def(name,code) ON deptmap.department = deptmap_def.code - WHERE 1=1 - groupby: GROUP BY tenantid,deptmap_def.name,rating - orderby: ORDER BY tenantid,deptmap_def.name,rating - - -- reportName: LMEPerformanceReport - decryptionPathId: LMEPerformanceReport - summary: Fetches employee performance report - version: 1.0.0 - moduleName: pgr - externalService: - - entity: $.MdmsRes.RAINMAKER-PGR.ServiceDefs - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=RAINMAKER-PGR&masterName=ServiceDefs&tenantId=$tenantId - keyOrder: serviceCode,department,slaHours - tableName: tbl_dept - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_def_dept - - entity: $.MdmsRes.common-masters.Designation - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Designation&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_def_desig - sourceColumns: - - name: employee - label: reports.pgr.employee - type: string - source: pgr_data - total: false - - name: user_uuid - label: reports.pgr.user_uuid - type: string - source: eg_user - showColumn: false - - name: department - label: reports.pgr.department - type: string - source: pgr_data - total: false - - name: designation - label: reports.pgr.designation - type: string - source: pgr_data - total: false - - name: assigned - label: reports.pgr.assigned - type: string - source: pgr_data - total: true - - name: open - label: reports.pgr.open - type: string - source: pgr_data - total: true - - name: resolvedwithinsla - label: reports.pgr.resolvedwithinsla - type: string - source: pgr_data - total: true - - name: resolvedoutsidesla - label: reports.pgr.resolvedoutsidesla - type: string - source: pgr_data - total: true - - name: reopen - label: reports.pgr.reopen - type: string - source: pgr_data - total: true - - name: rating - label: reports.pgr.rating - type: number - source: eg_pgr_service - total: true - searchParams: - - name: ulb - label: ULB - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: pt - wrapper: true - isMandatory: false - searchClause: AND pgr_data.tenantid = $ulb - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: eg_pgr_service - isMandatory: false - searchClause: AND pgr_data.createdtime >= $fromDate - - name: toDate - label: reports.pgr.dateto - type: epoch - source: eg_pgr_service - isMandatory: false - searchClause: AND pgr_data.createdtime <= $toDate - - name: deptname - label: reports.pgr.dept.name - type: singlevaluelist - source: eg_pgr_service - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$.MdmsRes.common-masters.Department[*].code|$.MdmsRes.common-masters.Department[*].name - isMandatory: false - searchClause: AND deptmap_def.code = $deptname - query: | - with pgr_data as (select - (select assignee from eg_pgr_action as pa where - pa.businesskey = ps.servicerequestid - and pa."action" in ('assign', 'reassign') - order by "when" desc - fetch first 1 rows only - ) as assignee, - servicerequestid, - createdtime, - servicecode, - status, - rating, - tenantid, - (select max("when") from eg_pgr_action where action='resolve' and businesskey = servicerequestid) as resolvedtime, - (select min("when") from eg_pgr_action where action='open' and businesskey = servicerequestid) as opentime - from eg_pgr_service as ps - where - tenantid = $tenantid) - select - (select name from eg_user where id::varchar = assignee) as employee, - (select user_uuid from eg_user where id::varchar = assignee) as employeeuuid, - deptmap_def.name as department, - (SELECT desigmap_def.name FROM (VALUES tbl_def_desig) AS desigmap_def(name,code) where code in - (select designationid from hr_employee_v2_schema.egeis_assignment where isprimary=true and employeeid::varchar=assignee)) as designation, - SUM (CASE WHEN status in ('closed', 'resolved') and (resolvedtime - opentime) < 14 * 86400 * 1000 THEN 1 ELSE 0 END) as resolvedwithinsla, - SUM (CASE WHEN status in ('closed', 'resolved') and (resolvedtime - opentime) >= 14 * 86400 * 1000 THEN 1 ELSE 0 END) as resolvedoutsidesla, - SUM (CASE WHEN status in ('assigned', 'reassignrequested') THEN 1 ELSE 0 END) as assigned, - SUM (CASE WHEN status in ('open') THEN 1 ELSE 0 END) as open, - SUM (CASE WHEN status in ('reopen') THEN 1 ELSE 0 END) as reopen, - rating - from pgr_data - INNER JOIN (VALUES tbl_dept) AS deptmap(serviceCode, department, slaHours) ON deptmap.serviceCode = pgr_data.servicecode - INNER JOIN (VALUES tbl_def_dept) AS deptmap_def(name,code) ON deptmap.department = deptmap_def.code - WHERE 1=1 - orderby: ORDER BY assignee NULLS FIRST,deptmap_def.name,rating - groupby: GROUP BY assignee,deptmap_def.name,rating - -- reportName: GROPerformanceReport - decryptionPathId: GROPerformanceReport - summary: Fetches GRO performance report - version: 1.0.0 - moduleName: pgr - externalService: - - entity: $.MdmsRes.RAINMAKER-PGR.ServiceDefs - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=RAINMAKER-PGR&masterName=ServiceDefs&tenantId=$tenantId - keyOrder: serviceCode,department,slaHours - tableName: tbl_dept - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_def_dept - - entity: $.MdmsRes.common-masters.Designation - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Designation&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_def_desig - sourceColumns: - - name: employee - label: reports.pgr.employee - type: string - source: pgr_data - total: false - - name: department - label: reports.pgr.department - type: string - source: pgr_data - total: false - - name: designation - label: reports.pgr.designation - type: string - source: pgr_data - total: false - - name: assigned - label: reports.pgr.assigned - type: string - source: pgr_data - total: true - - name: reopen - label: reports.pgr.reopen - type: string - source: eg_pgr_service - total: true - searchParams: - - name: ulb - label: ULB - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: pt - wrapper: true - isMandatory: false - searchClause: AND pgr_data.tenantid = $ulb - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: eg_pgr_service - isMandatory: false - searchClause: AND pgr_data.createdtime >= $fromDate - - name: toDate - label: reports.pgr.dateto - type: epoch - source: eg_pgr_service - isMandatory: false - searchClause: AND pgr_data.createdtime <= $toDate - - name: deptname - label: reports.pgr.dept.name - type: singlevaluelist - source: eg_pgr_service - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$.MdmsRes.common-masters.Department[*].code|$.MdmsRes.common-masters.Department[*].name - isMandatory: false - searchClause: AND deptmap_def.code = $deptname - query: | - with pgr_data as (select - (select assignee from eg_pgr_action as pa where - pa.businesskey = ps.servicerequestid - and pa."action" in ('assign', 'reassign') - and pa.by like '%Grievance Routing Officer' - order by "when" desc - fetch first 1 rows only - ) as assignee, - servicerequestid, - createdtime, - servicecode, - status, - tenantid - from eg_pgr_service as ps - where - tenantid = $tenantid) - select - (select name from eg_user where id::varchar = assignee) as employee, - deptmap_def.name as department, - (SELECT desigmap_def.name FROM (VALUES tbl_def_desig) AS desigmap_def(name,code) where code in - (select designationid from hr_employee_v2_schema.egeis_assignment where isprimary=true and employeeid::varchar=assignee)) as designation, - SUM (CASE WHEN status in ('assigned', 'reassignrequested') THEN 1 ELSE 0 END) as assigned, - SUM (CASE WHEN status in ('reopen') THEN 1 ELSE 0 END) as reopen - from pgr_data - INNER JOIN (VALUES tbl_dept) AS deptmap(serviceCode, department, slaHours) ON deptmap.serviceCode = pgr_data.servicecode - INNER JOIN (VALUES tbl_def_dept) AS deptmap_def(name,code) ON deptmap.department = deptmap_def.code - WHERE 1=1 - orderby: ORDER BY assignee NULLS FIRST,deptmap_def.name - groupby: GROUP BY assignee,deptmap_def.name - -- reportName: DescriptionReport - decryptionPathId: DescriptionReport - summary: Fetches department wise reports based description of the complaint - version: 1.0.0 - moduleName: pgr - externalService: - - entity: $.MdmsRes.RAINMAKER-PGR.ServiceDefs - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=RAINMAKER-PGR&masterName=ServiceDefs&tenantId=$tenantId - keyOrder: serviceCode,department,slaHours - tableName: tbl_dept - - entity: $.MdmsRes.common-masters.Department - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_def_dept - - entity: $.TenantBoundary[0].boundary - apiURL: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality&tenantId=$tenantId - keyOrder: name,code - tableName: tbl_boundary - sourceColumns: - - name: complaintId - label: reports.pgr.complaintId - type: string - source: eg_pgr_service - total: false - - name: complainttype - label: reports.pgr.complainttype - type: string - source: eg_pgr_service - total: false - - name: dateofcomplaint - label: reports.pgr.dateofcomplaint - type: string - source: eg_pgr_service - total: false - - name: dateofassignment - label: reports.pgr.dateofassignment - type: string - source: eg_pgr_service - total: false - - name: status - label: reports.pgr.status - type: string - source: eg_pgr_service - total: false - - name: ward - label: reports.pgr.ward - type: string - source: eg_pgr_service - total: false - - name: name - label: reports.pgr.name - type: string - source: eg_pgr_service - total: false - - name: user_uuid - label: reports.pgr.user_uuid - type: string - source: user_uuid - showColumn: false - - name: phone - label: reports.pgr.phone - type: string - source: eg_pgr_service - total: false - - name: address - label: reports.pgr.address - type: string - source: eg_pgr_service - total: false - - name: landmark - label: reports.pgr.landmark - type: string - source: eg_pgr_service - total: false - - name: description - label: reports.pgr.description - type: string - source: eg_pgr_service - total: false - - name: slahours - label: reports.pgr.slahours - type: string - source: eg_pgr_service - total: false - searchParams: - - name: ulb - label: ULB - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: pt - wrapper: true - isMandatory: false - searchClause: AND eg_pgr_service.tenantid = $ulb - - name: fromDate - label: reports.pgr.datefrom - type: epoch - source: eg_pgr_service - isMandatory: false - searchClause: AND eg_pgr_service.createdtime >= $fromDate - - name: toDate - label: reports.pgr.dateto - type: epoch - source: eg_pgr_service - isMandatory: false - searchClause: AND eg_pgr_service.createdtime <= $toDate - - name: deptname - label: reports.pgr.dept.name - type: singlevaluelist - source: eg_pgr_service - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=common-masters&masterName=Department|$.MdmsRes.common-masters.Department[*].code|$.MdmsRes.common-masters.Department[*].name - isMandatory: false - searchClause: AND deptmap_def.code = $deptname - query: | - SELECT - DISTINCT ON (servicerequestid) - ua.name as lastassignedto, - servicerequestid AS complaintId, - regexp_replace(servicecode, '([a-z])([A-Z])', '\1 \2','g') AS complainttype, - to_char(to_timestamp(TRUNC(CAST(eg_pgr_service.createdtime AS bigint) / 1000)), 'DD/MM/YY') AS dateofcomplaint, - to_char(to_timestamp(TRUNC(CAST(epa.when AS bigint) / 1000)), 'DD/MM/YY') AS dateofassignment, - Initcap(eg_pgr_service.status) as status, - (SELECT boundary_def.name FROM (VALUES tbl_boundary) AS boundary_def(name,code) where code=eg_pgr_address.mohalla) as ward, - eg_user.name, - ua.uuid as user_uuid, - phone, - eg_pgr_address.landmark, - eg_pgr_address.housenoandstreetname as address, - description, - deptmap_def.name as department, - (SELECT (CASE WHEN (((SELECT deptmap.slaHours FROM (VALUES tbl_dept) AS deptmap(serviceCode, department, slaHours) WHERE deptmap.serviceCode = eg_pgr_service.servicecode)::integer / 24) - ((((select extract(epoch from now())) * 1000) - eg_pgr_service.createdtime)::bigint/86400000)) < 1 THEN CONCAT('Overdue by ', ((((select extract(epoch from now())) * 1000) - eg_pgr_service.createdtime)::bigint/86400000) - ((SELECT deptmap.slaHours FROM (VALUES tbl_dept) AS deptmap(serviceCode, department, slaHours) WHERE deptmap.serviceCode = eg_pgr_service.servicecode)::integer / 24), ' days') ELSE CONCAT(((SELECT deptmap.slaHours FROM (VALUES tbl_dept) AS deptmap(serviceCode, department, slaHours) WHERE deptmap.serviceCode = eg_pgr_service.servicecode)::integer / 24) - ((((select extract(epoch from now())) * 1000) - eg_pgr_service.createdtime)::bigint/86400000), ' days remaining') END) as slaHours) - FROM eg_pgr_service - left outer join eg_pgr_address on eg_pgr_address.uuid = eg_pgr_service.addressid - left outer join eg_user on eg_user.id = eg_pgr_service.accountid::bigint - left outer join eg_pgr_action as epa on epa.businesskey = eg_pgr_service.servicerequestid and epa.action in ('assign','reassign') - left outer join eg_user as ua on ua.id = epa.assignee::bigint - INNER JOIN (VALUES tbl_dept) AS departmap(serviceCode, department) USING (servicecode) - INNER JOIN (VALUES tbl_def_dept) AS deptmap_def(name,code) ON departmap.department = deptmap_def.code - WHERE - eg_pgr_address.uuid = eg_pgr_service.addressid - AND eg_pgr_service.status IN ('open','assigned','reassigrequested','rejected') - orderby: ORDER BY servicerequestid, epa."when" desc \ No newline at end of file diff --git a/reports/config/pt-reports.yml b/reports/config/pt-reports.yml deleted file mode 100644 index c14baeca..00000000 --- a/reports/config/pt-reports.yml +++ /dev/null @@ -1,217 +0,0 @@ -ReportDefinitions: -- reportName: PTReceiptRegister - decryptionPathId: PTReceiptRegister - summary: Report is used for audit, day-end, and year-end finance reconciliation activities - version: 1.0.0 - moduleName: pt-reports - sourceColumns: - - name: receiptnumber - label: reports.pt.receiptnumber - type: string - source: pt - total: false - - name: paymentdate - label: reports.pt.paymentdate - type: string - source: pt - total: false - - name: name - label: reports.pt.consumername - type: string - source: pt - total: false - - name: user_uuid - label: reports.pt.user_uuid - type: string - source: pt - showColumn: false - - name: amountCollected - label: reports.pt.amountCollected - type: string - source: pt - total: true - - name: payerName - label: reports.pt.payerName - type: string - source: pt - total: false - - name: transactionnumber - label: reports.pt.transactionnumber - type: string - source: pt - total: false - - name: chequeNo - label: reports.pt.chequeNo - type: string - source: pt - total: false - - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: true - searchClause: AND ed.receiptdate >= $fromDate - - name: toDate - label: reports.pt.toDate - type: epoch - source: pt - isMandatory: true - searchClause: AND ed.receiptdate <= $toDate - - name: receiptstatus - label: receiptstatus - type: singlevaluelist - pattern: 'list://NEW:New,DEPOSITED:Deposited,DISHONOURED:Dishonoured' - source: pt - isMandatory: false - searchClause: AND ep.paymentstatus = $receiptstatus - - name: collectorname - label: reports.pt.collectorname - type: singlevaluelist - pattern: http://egov-hrms:8080/egov-hrms/employees/_search?tenantId=$tenantid&roles=PT_CEMP|$.Employees[*].user.id|$.Employees[*].user.name - source: pt - wrapper: true - isMandatory: false - searchClause: AND ep.createdby= $collectorname - query: | - SELECT receiptnumber,payerName,To_char(To_timestamp(ed.receiptdate / 1000), 'DD/MM/YYYY') AS paymentdate,users.name as name,users.uuid as user_uuid, - transactionnumber,totalamountpaid AS amountCollected,ep.instrumentnumber as chequeNo,ROW_NUMBER() OVER(PARTITION BY receiptnumber) AS RowNum FROM egcl_payment AS ep - JOIN egcl_paymentdetail AS ed ON ep.id = ed.paymentid JOIN egcl_bill as bill on ed.billid=bill.id JOIN eg_pt_property as property on bill.consumercode=property.propertyid JOIN eg_pt_owner as owner on property.id=owner.propertyid JOIN eg_user as users on owner.userid=users.uuid where 1=1 and ed.businessservice='PT' and ep.paymentstatus !='CANCELLED' and ep.tenantid=$tenantid and owner.status='ACTIVE' and property.status='ACTIVE' - orderby: order by ed.receiptdate desc - -- reportName: PTCollectionReport - decryptionPathId: PTCollectionReport - summary: It helps administrators track the collection in the ULB and the employee collection performance. - version: 1.0.0 - moduleName: pt-reports - sourceColumns: - - name: locality - label: reports.pt.locality - type: string - source: pt - total: false - localisationPrefix: TENANTS_MOHALLA_ - isLocalisationRequired: true - - name: name - label: reports.pt.collectorname - type: string - source: pt - total: false - - name: user_uuid - label: reports.pt.user_uuid - type: string - source: pt - showColumn: false - - name: paymentinstrument - label: reports.pt.paymentinstrument - type: string - source: pt - total: false - - name: totaltransactions - label: reports.pt.totaltransactions - type: string - source: pt - total: false - - name: amountCollected - label: reports.pt.amountCollected - type: string - source: pt - total: true - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: true - searchClause: AND ed.receiptdate >= $fromDate - - name: toDate - label: reports.pt.toDate - type: epoch - source: pt - isMandatory: true - searchClause: AND ed.receiptdate <= $toDate - - name: locality - label: reports.pt.locality - type: singlevaluelist - pattern: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality&tenantId=$tenantid|$.TenantBoundary[0].boundary.*.code|$.TenantBoundary[0].boundary.*.code - source: pt - wrapper: true - isMandatory: false - localisationPrefix: TENANTS_MOHALLA_ - isLocalisationRequired: true - searchClause: AND ptd.locality = $locality - - name: paymentinstrument - label: paymentinstrument - type: singlevaluelist - pattern: 'list://CASH:CASH,CARD:CARD,DD:DD,CHEQUE:CHEQUE' - source: pt - isMandatory: false - searchClause: AND paymentmode = $paymentinstrument - query: | - SELECT ptd.locality AS locality, users.name as name,users.uuid as user_uuid, count(*) as totaltransactions,sum(totalamountpaid) AS amountCollected,paymentmode AS paymentinstrument FROM egcl_payment AS ep - JOIN egcl_paymentdetail AS ed ON ep.id = ed.paymentid JOIN egcl_bill as bill on ed.billid=bill.id JOIN eg_pt_property as property on bill.consumercode=property.propertyid JOIN eg_pt_address as ptd on property.id=ptd.propertyid JOIN eg_user as users on ep.createdby::int=users.id JOIN eg_userrole_v1 as userrole on users.id=userrole.user_id where 1=1 and ed.businessservice='PT' and ep.paymentstatus !='CANCELLED' and ep.tenantid=$tenantid and userrole.role_tenantid=$tenantid and ep.paymentmode!='ONLINE' and userrole.role_code='PT_CEMP' and property.status='ACTIVE' - groupby: group by locality,name,paymentinstrument - - -- reportName: DefaulterReport - decryptionPathId: DefaulterReport - summary: Report is usually generated weekly/monthly to send notice to the defaulters and used only in the demand-based systems. - version: 1.0.0 - moduleName: pt-reports - sourceColumns: - - name: propertyid - label: reports.pt.propertyid - type: string - source: pt - total: false - - name: name - label: reports.pt.consumername - type: string - source: pt - total: false - - name: locality - label: reports.pt.locality - type: string - source: pt - total: false - localisationPrefix: TENANTS_MOHALLA_ - isLocalisationRequired: true - - name: propertystatus - label: reports.pt.propertystatus - type: string - source: pt - total: false - - name: user_uuid - label: reports.pt.user_uuid - type: string - source: pt - showColumn: false - - name: dueamount - label: reports.pt.dueamount - type: string - source: pt - total: true - searchParams: - - name: locality - label: reports.pt.locality - type: singlevaluelist - pattern: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality&tenantId=$tenantid|$.TenantBoundary[0].boundary.*.code|$.TenantBoundary[0].boundary.*.code - source: pt - wrapper: true - isMandatory: false - localisationPrefix: TENANTS_MOHALLA_ - isLocalisationRequired: true - searchClause: AND locality = $locality - - name: usagetype - label: reports.pt.usagetype - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=PropertyTax&masterName=UsageCategory&filter=%24.%2A%5B%3F%28%40.code%20%3D~%20%2F%5BA-Z%5D%2A%5C.%5BA-Z%5D%2A%5C.%5BA-Z%5D%2A%5C.%5BA-z%5D%2A%2F%29%5D|$.MdmsRes.PropertyTax.UsageCategory.*.code|$.MdmsRes.PropertyTax.UsageCategory.*.name - source: pt - wrapper: true - isMandatory: false - localisationPrefix: PROPERTYTAX_BILLING_SLAB_ - isLocalisationRequired: false - searchClause: AND usagecategory = $usagetype - query: | - select distinct(propertyid),name,user_uuid,(select status from eg_pt_property where propertyid=propertyid order by createdtime asc limit 1)as propertystatus,locality,dueamount from (SELECT ep.propertyid,ep.usagecategory,(select name from eg_user where uuid=(select userid from eg_pt_owner where propertyid=propertyid order by createdtime limit 1)) as name, (select userid from eg_pt_owner where propertyid=propertyid order by createdtime limit 1) as user_uuid, ep.status AS propertystatus,ea.locality FROM eg_pt_property ep join eg_pt_address as ea on ep.id=ea.propertyid where ep.tenantid=$tenantid) property join (select consumercode, (sum(taxamount)-sum(collectionamount)) as dueamount from egbs_demand_v1 as demand join egbs_demanddetail_v1 as demanddetail on demand.id=demanddetail.demandid where (demanddetail.taxamount - demanddetail.collectionamount)>0 and demand.ispaymentcompleted is not true and demand.tenantid=$tenantid group by consumercode) demand on property.propertyid=demand.consumercode where 1=1 diff --git a/reports/config/rainmaker-common-reports.yml b/reports/config/rainmaker-common-reports.yml deleted file mode 100644 index e13742a1..00000000 --- a/reports/config/rainmaker-common-reports.yml +++ /dev/null @@ -1,127 +0,0 @@ -ReportDefinitions: - - reportName: CollectionRegister - summary: Collection Register - version: 1.0.0 - moduleName: rainmaker-common - externalService: - - entity: $.MdmsRes.BillingService.BusinessService[*] - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=pb&moduleName=BillingService&masterName=BusinessService&filter=[?(@.type=='Adhoc')] - keyOrder: code,businessService - tableName: tbl_businessserviceList - sourceColumns: - - name: service - label: reports.common.CollectionRegister.serviceResult - type: string - source: common - total: false - - name: channel - label: reports.common.CollectionRegister.channel - type: string - source: common - total: false - - name: cash_count - label: reports.common.CollectionRegister.transactions - type: number - source: common - total: true - - name: cash_sum - label: reports.common.CollectionRegister.cash - type: number - source: common - total: true - - name: cheque_count - label: reports.common.CollectionRegister.transactions - type: number - source: common - total: true - - name: cheque_sum - label: reports.common.CollectionRegister.cheque - type: number - source: common - total: true - - name: dd_count - label: reports.common.CollectionRegister.transactions - type: number - source: common - total: true - - name: dd_sum - label: reports.common.CollectionRegister.dd - type: number - source: common - total: true - - name: online_count - label: reports.common.CollectionRegister.transactions - type: number - source: common - total: true - - name: online_sum - label: reports.common.CollectionRegister.online - type: number - source: common - total: true - - name: card_count - label: reports.common.CollectionRegister.transactions - type: number - source: common - total: true - - name: card_sum - label: reports.common.CollectionRegister.card - type: number - source: common - total: true - - name: total - label: reports.common.CollectionRegister.total - type: number - source: common - total: true - - searchParams: - - name: ulb - label: reports.common.CollectionRegister.ulb - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: common - wrapper: true - isMandatory: true - searchClause: AND rt.tenantId = $ulb - - name: service - label: reports.common.CollectionRegister.service - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=BillingService&masterName=BusinessService&filter=[?(@.type=='Adhoc')]|$.MdmsRes.BillingService.BusinessService.*.code|$.MdmsRes.BillingService.BusinessService.*.businessService - source: common - wrapper: true - state: true - isMandatory: true - isLocalisationRequired: true - localisationPrefix: "BILLINGSERVICE_BUSINESSSERVICE_" - searchClause: AND REGEXP_REPLACE(rt.businessdetails,'\..*','') IN ($service) - - name: paymentMode - label: reports.common.CollectionRegister.mode - type: singlevaluelist - pattern: 'list://Cash:Cash,Online:Online,Card:Card,DD:DD,Cheque:Cheque' - source: common - isMandatory: false - searchClause: AND instrumenttype = $paymentMode - - name: channel - label: reports.common.CollectionRegister.channel - type: singlevaluelist - pattern: 'list://COUNTER:COUNTER,FIELD:FIELD' - source: common - isMandatory: false - searchClause: AND collectiontype = $channel - - name: fromDate - label: reports.common.CollectionRegister.fromdate - type: epoch - source: common - isMandatory: true - searchClause: AND receiptdate >= $fromDate - - name: toDate - label: reports.common.CollectionRegister.todate - type: epoch - source: common - isMandatory: true - searchClause: AND receiptdate <= $toDate - - query: select COALESCE(message,REGEXP_REPLACE(businessdetails,'\..*','')) service,collectiontype channel,sum(case when instrumenttype='Cash' then 1 else 0 end) as cash_count, sum(case when instrumenttype='Cash' then ins.amount else 0 end) as cash_sum, sum(case when instrumenttype='Cheque' then 1 else 0 end) as cheque_count, sum(case when instrumenttype='Cheque' then ins.amount else 0 end) as cheque_sum, sum(case when instrumenttype='DD' then 1 else 0 end) as dd_count, sum(case when instrumenttype='DD' then ins.amount else 0 end) as dd_sum, sum(case when instrumenttype='Online' then 1 else 0 end) as online_count, sum(case when instrumenttype='Online' then ins.amount else 0 end) as online_sum, sum(case when instrumenttype='Card' then 1 else 0 end) as card_count, sum(case when instrumenttype='Card' then amount else 0 end) as card_sum,sum(amount) total from egcl_receiptheader_v1 rt inner join egcl_receiptinstrument_v1 ihead on rt.id=receiptheader inner join egcl_instrumentheader_v1 ins on instrumentheader=ins.id left outer join message on LOWER(concat('BILLINGSERVICE_BUSINESSSERVICE_',REGEXP_REPLACE(businessdetails,'\..*','')))=LOWER(code) AND module='rainmaker-uc' where businessdetails IN (select code from (VALUES tbl_businessserviceList) AS serv_list(code,servicename)) - groupby: group by service,collectiontype - orderby: order by service,collectiontype \ No newline at end of file diff --git a/reports/config/rainmaker-noc-reports.yml b/reports/config/rainmaker-noc-reports.yml deleted file mode 100644 index 2fc2077f..00000000 --- a/reports/config/rainmaker-noc-reports.yml +++ /dev/null @@ -1,149 +0,0 @@ -ReportDefinitions: - - reportName: CollectionReport - summary: Collection Report - version: 1.0.0 - moduleName: rainmaker-noc - sourceColumns: - - name: localisedmessage - label: reports.noc.collectionreport.usagetype - type: string - source: rainmaker-noc - total: false - - name: transactionNumber - label: reports.noc.collectionreport.transactionNumber - type: number - source: rainmaker-noc - total: true - - name: fees_counter - label: reports.noc.collectionreport.fees_counter - type: number - source: rainmaker-noc - total: true - - name: fees_online - label: reports.noc.collectionreport.fees_online - type: number - source: rainmaker-noc - total: true - searchParams: - - name: fromDate - label: reports.noc.collectionreport.fromDate - type: epoch - source: pt - isMandatory: false - searchClause: AND receiptdate >= $fromDate - - name: toDate - label: reports.noc.collectionreport.toDate - type: epoch - source: pt - isMandatory: false - searchClause: AND receiptdate <= $toDate - - name: channel - label: reports.noc.collectionreport.channel - type: multivaluelist - pattern: 'list://COUNTER:ULB Counter,ONLINE:Online by Citizen' - source: common - isMandatory: false - searchClause: AND collectiontype IN ($channel) - - name: paymentMode - label: reports.noc.collectionreport.paymentMode - type: singlevaluelist - pattern: 'list://Cash:Cash,Online:Online,Card:Card,DD:DD,Cheque:Cheque' - source: common - isMandatory: false - searchClause: AND instrumenttype = $paymentMode - - name: ulb - label: reports.noc.collectionreport.ulb - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: noc - wrapper: true - isMandatory: false - searchClause: AND fnoc.tenantId IN ($ulb) - query: select COALESCE(message,usagetype) localisedmessage, COUNT(*) as transactionNumber, sum(case when collectiontype='COUNTER' then ins.amount else 0 end) fees_counter, sum(case when collectiontype='ONLINE' then ins.amount else 0 end) fees_online from eg_fn_firenoc fnoc inner join eg_fn_firenocdetail fdet on fdet.firenocuuid=fnoc.uuid inner join egcl_receiptheader_v1 rhead on rhead.consumercode=fdet.applicationnumber inner join eg_fn_buidlings build on build.firenocdetailsuuid=fdet.uuid inner join egcl_receiptinstrument_v1 recins on recins.receiptheader=rhead.id inner join egcl_instrumentheader_v1 ins on recins.instrumentheader=ins.id left outer join message on code=concat('FIRENOC_BUILDINGTYPE_',UPPER(REGEXP_REPLACE(usagetype,'\..*',''))) and module='rainmaker-noc' where 1=1 - groupby: GROUP BY localisedmessage - orderby: ORDER BY localisedmessage - - - reportName: ApplicationStatusReport - summary: Application Status Report - version: 1.0.0 - moduleName: rainmaker-noc - sourceColumns: - - name: application_status - label: reports.noc.applicationstatusreport.appStatus - type: string - source: rainmaker-noc - total: false - - name: number_of_application - label: reports.noc.applicationstatusreport.noofapplications - type: number - source: rainmaker-noc - total: true - searchParams: - - name: fromDate - label: reports.noc.applicationstatusreport.fromDate - type: epoch - source: noc - isMandatory: false - searchClause: AND applicationdate >= $fromDate - - name: toDate - label: reports.noc.applicationstatusreport.toDate - type: epoch - source: noc - isMandatory: false - searchClause: AND applicationdate <= $toDate - - name: ulb - label: reports.noc.applicationstatusreport.ulb - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: noc - wrapper: true - isMandatory: false - searchClause: AND fnoc.tenantId IN ($ulb) - query: select COALESCE(message,state) application_status,count(*) number_of_application from eg_fn_firenoc fnoc inner join eg_fn_firenocdetail fdet on fdet.firenocuuid=fnoc.uuid inner join (SELECT DISTINCT ON (businessid) * FROM eg_wf_processinstance_v2 ORDER BY businessid,createdtime desc) pinstance on pinstance.businessid=fdet.applicationnumber inner join eg_wf_state_v2 wfstate on pinstance.status=wfstate.uuid left outer join message on code=concat('WF_FIRENOC_',UPPER(state)) and module='rainmaker-noc' where 1=1 - groupby: GROUP BY application_status - orderby: ORDER BY application_status - - - reportName: ChannelsReport - summary: Channels Report - version: 1.0.0 - moduleName: rainmaker-noc - sourceColumns: - - name: channel - label: reports.noc.channelsreport.channel - type: string - source: rainmaker-noc - total: false - - name: number_of_applications - label: reports.noc.channelsreport.applicationNo - type: number - source: rainmaker-noc - total: true - - name: percentage - label: reports.noc.channelsreport.percentage - type: number - source: rainmaker-noc - total: false - searchParams: - - name: fromDate - label: reports.noc.channelsreport.fromDate - type: epoch - source: noc - isMandatory: false - searchClause: AND applicationdate >= $fromDate - - name: toDate - label: reports.noc.channelsreport.toDate - type: epoch - source: noc - isMandatory: false - searchClause: AND applicationdate <= $toDate - - name: ulb - label: reports.noc.channelsreport.ulb - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: noc - wrapper: true - isMandatory: false - searchClause: AND fnoc.tenantId IN ($ulb) - query: select channel, count (*) number_of_applications,round((count (*)::decimal/(select count(*) from eg_fn_firenoc fnoc inner join eg_fn_firenocdetail fdet on fdet.firenocuuid=fnoc.uuid))*100,2) percentage from eg_fn_firenoc fnoc inner join eg_fn_firenocdetail fdet on fdet.firenocuuid=fnoc.uuid - groupby: GROUP BY channel - orderby: ORDER BY channel \ No newline at end of file diff --git a/reports/config/rainmaker-obps-reports.yml b/reports/config/rainmaker-obps-reports.yml deleted file mode 100644 index 81815d6b..00000000 --- a/reports/config/rainmaker-obps-reports.yml +++ /dev/null @@ -1,224 +0,0 @@ ---- -ReportDefinitions: -- reportName: ObpsDailyCollectionReport - decryptionPathId: ObpsDailyCollectionReport - summary: OBPS Daily Collection Report - version: 1.0.0 - moduleName: rainmaker-obps - sourceColumns: - - name: receiptdate - label: report.obps.receiptdate - type: string - source: obps - total: false - - name: receiptnumber - label: report.obps.receiptnumber - type: string - source: obps - total: false - - name: applicationnumber - label: report.obps.applicationnumber - type: string - source: obps - total: false - - name: applicationtype - label: report.obps.applicationtype - type: string - source: obps - total: false - - name: name - label: report.obps.name - type: string - source: obps - total: false - - name: user_uuid - label: report.obps.user_uuid - type: string - source: opbs - showColumn: false - - name: instrumenttype - label: report.obps.instrumenttype - type: string - source: obps - total: false - - name: chequedate - label: report.obps.chequedate - type: string - source: obps - total: false - - name: chequeno - label: report.obps.chequeno - type: string - source: obps - total: false - - name: bankname - label: report.obps.bankname - type: string - source: obps - total: false - - name: transactionid - label: report.obps.transactionid - type: string - source: obps - total: false - - name: lastfourdigits - label: report.obps.lastfourdigits - type: string - source: obps - total: false - - name: totalamountpaid - label: report.obps.totalamountpaid - type: string - source: obps - total: true - - name: instrumentstatus - label: report.obps.instrumentstatus - type: string - source: obps - total: false - searchParams: - - name: fromDate - label: FromDate - type: epoch - source: obps - isMandatory: true - searchClause: AND bpa.createdtime >= $fromDate - - name: toDate - label: ToDate - type: epoch - source: obps - isMandatory: true - searchClause: AND bpa.createdtime <= $toDate - - name: instrumentType - label: reports.obps.instrumenttype - type: string - source: obps - isMandatory: false - searchClause: AND paymentmode = $instrumentType - - name: instrumentStatus - label: reports.obps.instrumentstatus - type: string - source: obps - isMandatory: false - searchClause: AND instrumentstatus = $instrumentStatus - - name: collectionOperator - label: CollectionOperator - type: string - source: obps - isMandatory: false - searchClause: AND egcl_payment.createdby = $collectionOperator - query: select to_char(To_timestamp(receiptdate / 1000), 'DD/MM/YYYY') as receiptdate, receiptnumber,bpa.applicationno as applicationnumber,bpa.additionaldetails->>'applicationType' as applicationtype, eg_user.name as name, paymentmode as instrumenttype, CASE WHEN paymentmode='CHEQUE' THEN to_char(To_timestamp(instrumentdate/ 1000), 'DD/MM/YYYY') ELSE null END as chequedate, CASE WHEN paymentmode='CHEQUE' THEN instrumentnumber ELSE null END as chequeno, egcl_payment.additionaldetails->'bankDetails'->'BANK' as bankname, CASE WHEN paymentmode='ONLINE' THEN transactionnumber ELSE null END as transactionid ,CASE WHEN paymentmode='CARD' THEN substring(instrumentnumber,1,4) ELSE null END as lastfourdigits, totalamountpaid, instrumentstatus from egcl_payment inner join egcl_paymentdetail on egcl_payment.id=egcl_paymentdetail.paymentid inner join egcl_bill on egcl_paymentdetail.billid=egcl_bill.id inner join eg_bpa_buildingplan bpa on consumercode=bpa.applicationno LEFT OUTER JOIN eg_land_unit land ON land.landinfoid = bpa.landid INNER JOIN eg_land_landinfo landinfo ON land.landinfoid = landinfo.id INNER JOIN eg_land_ownerinfo owner ON owner.landinfoid = landinfo.id LEFT OUTER JOIN eg_user ON eg_user.uuid =owner.uuid where egcl_paymentdetail.businessservice IN ('BPA.NC_OC_APP_FEE','BPA.NC_SAN_FEE','BPA.LOW_RISK_PERMIT_FEE','BPAREG','BPA.NC_OC_SAN_FEE','BPA.NC_APP_FEE') and bpa.tenantid= $tenantid - -- reportName: ObpsApplicationStatusReport - decryptionPathId: ObpsApplicationStatusReport - summary: Obps Application Status Report - version: 1.0.0 - moduleName: rainmaker-obps - sourceColumns: - - name: applicationno - label: reports.obps.applicationno - type: string - source: obps - total: false - - name: applicationdate - label: reports.obps.applicationdate - type: string - source: obps - total: false - - name: applicationchannel - label: reports.obps.applicationchannel - type: string - source: obps - total: false - - name: uuid - label: reports.obps.uuid - type: string - source: obps - showColumn: false - - name: name - label: reports.obps.name - type: string - source: obps - total: false - - name: applicationtype - label: reports.obps.applicationtype - type: string - source: obps - total: false - - name: servicetype - label: reports.obps.servicetype - type: string - source: obps - total: false - - name: occupancytype - label: reports.obps.occupancytype - type: string - source: obps - total: false - - name: status - label: reports.obps.status - type: string - source: obps - total: false - - name: currentowner - label: reports.obps.currentowner - type: string - source: obps - total: false - - name: permitno - label: reports.obps.permitno - type: string - source: obps - total: false - searchParams: - - name: fromDate - label: FromDate - type: epoch - source: obps - isMandatory: false - searchClause: AND applicationdate >= $fromDate - - name: toDate - label: ToDate - type: epoch - source: obps - isMandatory: false - searchClause: AND applicationdate <= $toDate - - name: applicationChannel - label: reports.obps.applicationchannel - type: multivaluelist - source: obps - isMandatory: false - searchClause: AND landinfo.channel in ( $applicationChannel ) - pattern: 'list://SYSTEM:SYSTEM' - isLocalisationRequired: true - localisationPrefix: REPORT_OBPS_ - - name: applicationType - label: reports.obps.applicationtype - type: multivaluelist - source: obps - isMandatory: false - pattern: 'list://BUILDING_OC_PLAN_SCRUTINY:BUILDING_OC_PLAN_SCRUTINY,BUILDING_PLAN_SCRUTINY:BUILDING_PLAN_SCRUTINY' - searchClause: AND bp.additionaldetails->>'applicationType' in ( $applicationType ) - isLocalisationRequired: true - localisationPrefix: REPORT_OBPS_ - - name: serviceType - label: reports.obps.servicetype - type: multivaluelist - source: obps - isMandatory: false - pattern: 'list://NEW_CONSTRUCTION:NEW_CONSTRUCTION' - searchClause: AND bp.additionaldetails->> 'serviceType' in ( $serviceType ) - isLocalisationRequired: true - localisationPrefix: REPORT_OBPS_ - - name: status - label: reports.obps.status - type: multivaluelist - source: obps - isMandatory: false - pattern: 'list://CITIZEN_ACTION_PENDING_AT_DOC_VERIF:CITIZEN_ACTION_PENDING_AT_DOC_VERIF,INPROGRESS:INPROGRESS,PENDING_APPL_FEE:PENDING_APPL_FEE,PENDING_SANC_FEE_PAYMENT:PENDING_SANC_FEE_PAYMENT,DOC_VERIFICATION_INPROGRESS:DOC_VERIFICATION_INPROGRESS,CITIZEN_ACTION_PENDING_AT_NOC_VERIF:CITIZEN_ACTION_PENDING_AT_NOC_VERIF,PERMIT REVOCATION:PERMIT REVOCATION,FIELDINSPECTION_INPROGRESS:FIELDINSPECTION_INPROGRESS,PENDING_FEE:PENDING_FEE,NOC_VERIFICATION_INPROGRESS:NOC_VERIFICATION_INPROGRESS,INITIATED:INITIATED,CITIZEN_APPROVAL_INPROCESS:CITIZEN_APPROVAL_INPROCESS,REJECTED:REJECTED,APPROVED:APPROVED,CITIZEN_ACTION_PENDING_AT_FI_VERIF:CITIZEN_ACTION_PENDING_AT_FI_VERIF,APPROVAL_INPROGRESS:APPROVAL_INPROGRESS' - searchClause: AND bp.status in ( $status ) - isLocalisationRequired: true - localisationPrefix: REPORT_OBPS_ - - query: select applicationno,to_char(To_timestamp(bp.applicationdate / 1000), 'DD/MM/YYYY') as applicationdate, landinfo.channel as applicationchannel, usr.name as name, usr.uuid as uuid, bp.additionaldetails->>'applicationType' as applicationtype, bp.additionaldetails->> 'serviceType' as servicetype, land.occupancytype, bp.status, case when isterminatestate=true then null else userassignee.name end as currentowner, bp.approvalno as permitno FROM eg_wf_state_v2 st inner join eg_wf_processinstance_v2 pi on pi.status=st.uuid inner join eg_bpa_buildingplan bp on pi.businessid=bp.applicationno inner join eg_user usr ON bp.createdby = usr.uuid inner join eg_land_unit land ON land.landinfoid = bp.landid inner join eg_land_landinfo landinfo ON land.landinfoid = landinfo.id inner join eg_land_address adr ON adr.landinfoid = landinfo.id inner join eg_user userassignee ON assigner = userassignee.uuid WHERE 1=1 - orderby: ORDER BY applicationdate asc diff --git a/reports/config/rainmaker-pt-reports.yml b/reports/config/rainmaker-pt-reports.yml deleted file mode 100644 index 22796616..00000000 --- a/reports/config/rainmaker-pt-reports.yml +++ /dev/null @@ -1,987 +0,0 @@ ---- -ReportDefinitions: -- reportName: ReceiptRegister - summary: Receipt Register - version: 1.0.0 - moduleName: rainmaker-pt - sourceColumns: - - name: receiptnumber - label: reports.pt.receiptNo - type: string - source: pt - total: false - - name: transactiondate - label: reports.pt.receiptDate - type: string - source: pt - total: false - - name: g8issuedate - label: reports.pt.g8issuedate - type: string - source: pt - total: false - - name: g8receiptno - label: reports.pt.g8receiptno - type: string - source: pt - total: false - - name: amount - label: reports.pt.amount - type: string - source: pt - total: true - - name: propertytax - label: reports.pt.propertyTax - type: string - source: pt - total: true - - name: firecess - label: reports.pt.fireCess - type: string - source: pt - total: true - - name: cancercess - label: reports.pt.cancerCess - type: string - source: pt - total: true - - name: rebate - label: reports.pt.rebate - type: string - source: pt - total: true - - name: adhocrebate - label: reports.pt.adhocrebate - type: string - source: pt - total: true - - name: penalty - label: reports.pt.penalty - type: string - source: pt - total: true - - name: adhocpenalty - label: reports.pt.adhocpenalty - type: string - source: pt - total: true - - name: interest - label: reports.pt.interest - type: string - source: pt - total: true - - name: exemption - label: reports.pt.exemption - type: string - source: pt - total: true - - name: adjusment - label: reports.pt.roundoff - type: string - source: pt - total: true - - name: pendingamount - label: reports.pt.pendingamount - type: string - source: pt - total: true - - name: propertyid - label: reports.pt.propertyId - type: string - source: pt - total: false - - name: usagetype - label: reports.pt.usagetype - type: string - source: pt - total: false - - name: assessmentnumber - label: reports.pt.assessmentNo - type: string - source: pt - total: false - - name: financialyear - label: reports.pt.financialYear - type: string - source: pt - total: false - - name: instrumenttype - label: reports.pt.paymentMode - type: string - source: pt - total: false - - name: transactionnumber - label: reports.pt.ddChequeTransactionNo - type: string - source: pt - total: false - - name: bankname - label: reports.pt.bankName - type: string - source: pt - total: false - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: false - searchClause: AND rh.receiptdate >= $fromDate - - name: toDate - label: reports.pt.toDate - type: epoch - source: pt - isMandatory: false - searchClause: AND rh.receiptdate <= $toDate - - name: paymentMode - label: Payment Mode - type: singlevaluelist - pattern: 'list://Cash:Cash,Online:Online,Card:Card,DD:DD,Cheque:Cheque' - source: pt - isMandatory: false - searchClause: AND instrumenttype = $paymentMode - - name: financialyear - label: Financial Year - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=egf-master&masterName=FinancialYear|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].code|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].name - source: pt - wrapper: true - isMandatory: false - searchClause: AND financialyear = $financialyear - - name: localityArray - label: reports.pt.zoneList - type: boundarylist - source: pt - isMandatory: false - searchClause: AND pt_addr.locality IN ($localityArray) - query: | - -- Use CTE to force query plan, compute & use CTE later - WITH receipt_breakup AS ( - SELECT - receiptheader, - SUM(CASE WHEN taxheadcode LIKE 'PT_ADHOC_PENALTY' THEN adjustedamount ELSE 0 END) as adhocpenalty, - SUM(CASE WHEN taxheadcode LIKE 'PT_ADHOC_PENALTY' THEN adjustedamount ELSE 0 END) as adhocrebate, - SUM(CASE WHEN taxheadcode LIKE 'PT_FIRE_CESS' THEN adjustedamount ELSE 0 END) as firecess, - SUM(CASE WHEN taxheadcode LIKE 'PT_CANCER_CESS' THEN adjustedamount ELSE 0 END) as cancercess, - SUM(CASE WHEN taxheadcode LIKE 'PT_TIME_INTEREST' THEN adjustedamount ELSE 0 END) as interest, - SUM(CASE WHEN taxheadcode LIKE 'PT_TIME_PENALTY' THEN adjustedamount ELSE 0 END) as penalty, - SUM(CASE WHEN taxheadcode LIKE 'PT_TIME_REBATE' THEN adjustedamount ELSE 0 END) as rebate, - (SUM(CASE WHEN taxheadcode LIKE 'PT_TAX' THEN adjustedamount ELSE 0 END) - + SUM(CASE WHEN taxheadcode LIKE 'PT_DECIMAL_CEILING_DEBIT' THEN adjustedamount ELSE 0 END)) - as propertytax, - SUM(CASE WHEN taxheadcode LIKE 'PT_UNIT_USAGE_EXEMPTION' THEN adjustedamount ELSE 0 END) as exemption, - (SUM(CASE WHEN taxheadcode LIKE 'PT_DECIMAL_CEILING_CREDIT' THEN adjustedamount ELSE 0 END) - + SUM(CASE WHEN taxheadcode LIKE 'PT_DECIMAL_CEILING_DEBIT' THEN adjustedamount ELSE 0 END)) as adjusment - FROM egcl_receiptdetails_v1 - WHERE tenantid LIKE $tenantid - GROUP BY receiptheader - ) - SELECT - rh.tenantid AS tenantid, - rh.id, - Substring(rh.consumercode, '(.*):') AS propertyid, - Substring(rh.consumercode, ':(.*)') AS assessmentnumber, - rh.consumercode, - rh.receiptdate, - To_char(To_timestamp(rh.receiptdate / 1000), 'DD/MM/YYYY') AS transactiondate, - bankid AS bankname, - receiptnumber, - amount, - instrumenttype, - transactionnumber, - receipt_breakup.*, - rh.totalamount - ih.amount AS pendingamount, - pt_detail.financialyear, - To_char(To_timestamp(rh.manualreceiptdate / 1000), 'DD/MM/YYYY') AS g8issuedate, - Initcap(COALESCE(pt_detail.usagecategoryminor, pt_detail.usagecategorymajor)) as usagetype, - manualreceiptnumber as g8receiptno - FROM egcl_receiptheader_v1 AS rh - JOIN egcl_receiptinstrument_v1 AS ri ON rh.id = ri.receiptheader - JOIN egcl_instrumentheader_v1 AS ih ON ih.id = ri.instrumentheader - JOIN receipt_breakup ON rh.id = receipt_breakup.receiptheader - JOIN eg_pt_propertydetail_v2 pt_detail ON CONCAT(pt_detail.property, ':', pt_detail.assessmentnumber) = rh.consumercode - JOIN eg_pt_address_v2 pt_addr ON pt_detail.property = pt_addr.property - WHERE rh.tenantid LIKE $tenantid and rh.status != 'Cancelled' - orderby: ORDER BY rh.receiptdate DESC - -- reportName: CancelledReceiptRegister - summary: Receipt Register for cancelled Receipts - version: 1.0.0 - moduleName: rainmaker-pt - sourceColumns: - - name: receiptnumber - label: reports.pt.receiptNo - type: string - source: pt - total: false - - name: status - label: reports.pt.status - type: string - source: pt - total: false - - name: transactiondate - label: reports.pt.receiptDate - type: string - source: pt - total: false - - name: g8issuedate - label: reports.pt.g8issuedate - type: string - source: pt - total: false - - name: g8receiptno - label: reports.pt.g8receiptno - type: string - source: pt - total: false - - name: amount - label: reports.pt.amount - type: string - source: pt - total: true - - name: propertytax - label: reports.pt.propertyTax - type: string - source: pt - total: true - - name: firecess - label: reports.pt.fireCess - type: string - source: pt - total: true - - name: cancercess - label: reports.pt.cancerCess - type: string - source: pt - total: true - - name: rebate - label: reports.pt.rebate - type: string - source: pt - total: true - - name: adhocrebate - label: reports.pt.adhocrebate - type: string - source: pt - total: true - - name: penalty - label: reports.pt.penalty - type: string - source: pt - total: true - - name: adhocpenalty - label: reports.pt.adhocpenalty - type: string - source: pt - total: true - - name: interest - label: reports.pt.interest - type: string - source: pt - total: true - - name: exemption - label: reports.pt.exemption - type: string - source: pt - total: true - - name: adjusment - label: reports.pt.roundoff - type: string - source: pt - total: true - - name: propertyid - label: reports.pt.propertyId - type: string - source: pt - total: false - - name: usagetype - label: reports.pt.usagetype - type: string - source: pt - total: false - - name: assessmentnumber - label: reports.pt.assessmentNo - type: string - source: pt - total: false - - name: financialyear - label: reports.pt.financialYear - type: string - source: pt - total: false - - name: instrumenttype - label: reports.pt.paymentMode - type: string - source: pt - total: false - - name: transactionnumber - label: reports.pt.ddChequeTransactionNo - type: string - source: pt - total: false - - name: bankname - label: reports.pt.bankName - type: string - source: pt - total: false - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: false - searchClause: AND rh.receiptdate >= $fromDate - - name: toDate - label: reports.pt.toDate - type: epoch - source: pt - isMandatory: false - searchClause: AND rh.receiptdate <= $toDate - - name: paymentMode - label: Payment Mode - type: singlevaluelist - pattern: 'list://Cash:Cash,Online:Online,Card:Card,DD:DD,Cheque:Cheque' - source: pt - isMandatory: false - searchClause: AND instrumenttype = $paymentMode - - name: financialyear - label: Financial Year - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=egf-master&masterName=FinancialYear|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].code|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].name - source: pt - wrapper: true - isMandatory: false - searchClause: AND financialyear = $financialyear - - name: localityArray - label: reports.pt.zoneList - type: boundarylist - source: pt - isMandatory: false - searchClause: AND pt_addr.locality IN ($localityArray) - query: | - -- Use CTE to force query plan, compute & use CTE later - WITH receipt_breakup AS ( - SELECT - receiptheader, - SUM(CASE WHEN taxheadcode LIKE 'PT_ADHOC_PENALTY' THEN adjustedamount ELSE 0 END) as adhocpenalty, - SUM(CASE WHEN taxheadcode LIKE 'PT_ADHOC_PENALTY' THEN adjustedamount ELSE 0 END) as adhocrebate, - SUM(CASE WHEN taxheadcode LIKE 'PT_FIRE_CESS' THEN adjustedamount ELSE 0 END) as firecess, - SUM(CASE WHEN taxheadcode LIKE 'PT_CANCER_CESS' THEN adjustedamount ELSE 0 END) as cancercess, - SUM(CASE WHEN taxheadcode LIKE 'PT_TIME_INTEREST' THEN adjustedamount ELSE 0 END) as interest, - SUM(CASE WHEN taxheadcode LIKE 'PT_TIME_PENALTY' THEN adjustedamount ELSE 0 END) as penalty, - SUM(CASE WHEN taxheadcode LIKE 'PT_TIME_REBATE' THEN adjustedamount ELSE 0 END) as rebate, - (SUM(CASE WHEN taxheadcode LIKE 'PT_TAX' THEN adjustedamount ELSE 0 END) - + SUM(CASE WHEN taxheadcode LIKE 'PT_DECIMAL_CEILING_DEBIT' THEN adjustedamount ELSE 0 END)) - as propertytax, - SUM(CASE WHEN taxheadcode LIKE 'PT_UNIT_USAGE_EXEMPTION' THEN adjustedamount ELSE 0 END) as exemption, - (SUM(CASE WHEN taxheadcode LIKE 'PT_DECIMAL_CEILING_CREDIT' THEN adjustedamount ELSE 0 END) - + SUM(CASE WHEN taxheadcode LIKE 'PT_DECIMAL_CEILING_DEBIT' THEN adjustedamount ELSE 0 END)) as adjusment - FROM egcl_receiptdetails_v1 - WHERE tenantid LIKE $tenantid - GROUP BY receiptheader - ) - SELECT - rh.tenantid AS tenantid, - rh.id, - Substring(rh.consumercode, '(.*):') AS propertyid, - Substring(rh.consumercode, ':(.*)') AS assessmentnumber, - rh.status, - rh.consumercode, - rh.receiptdate, - To_char(To_timestamp(rh.receiptdate / 1000), 'DD/MM/YYYY') AS transactiondate, - bankid AS bankname, - receiptnumber, - amount, - instrumenttype, - transactionnumber, - receipt_breakup.*, - rh.totalamount - ih.amount AS pendingamount, - pt_detail.financialyear, - To_char(To_timestamp(rh.manualreceiptdate / 1000), 'DD/MM/YYYY') AS g8issuedate, - Initcap(COALESCE(pt_detail.usagecategoryminor, pt_detail.usagecategorymajor)) as usagetype, - manualreceiptnumber as g8receiptno - FROM egcl_receiptheader_v1 AS rh - JOIN egcl_receiptinstrument_v1 AS ri ON rh.id = ri.receiptheader - JOIN egcl_instrumentheader_v1 AS ih ON ih.id = ri.instrumentheader - JOIN receipt_breakup ON rh.id = receipt_breakup.receiptheader - JOIN eg_pt_propertydetail_v2 pt_detail ON CONCAT(pt_detail.property, ':', pt_detail.assessmentnumber) = rh.consumercode - JOIN eg_pt_address_v2 pt_addr ON pt_detail.property = pt_addr.property - WHERE rh.tenantid LIKE $tenantid and rh.status = 'Cancelled' - orderby: ORDER BY rh.receiptdate DESC - -- reportName: OldUlbWisePtCollection - summary: ULB-wise PT Collection - version: 1.0.0 - moduleName: rainmaker-pt - sourceColumns: - - name: totalassessments - label: reports.pt.totalassessments - type: string - source: pt - total: true - - name: totalamountpaid - label: reports.pt.totalamountpaid - type: string - source: pt - total: true - - name: totalamountdue - label: reports.pt.totalamountdue - type: string - source: pt - total: true - searchParams: - - name: financialyear - label: Financial Year - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=egf-master&masterName=FinancialYear|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].code|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].name - source: pt - wrapper: true - isMandatory: false - searchClause: AND financialyear = $financialyear - - name: usage - label: Usage - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=PropertyTax&masterName=UsageCategoryMajor|$..code|$..name - source: pt - wrapper: true - isMandatory: false - searchClause: AND usagecategorymajor = $usage - query: | - SELECT - tenantid, - COUNT(*) AS totalassessments, - SUM(totalamount) AS totalamount, - SUM(amount) AS totalamountpaid, - (SUM(totalamount) - SUM(amount)) AS totalamountdue - FROM eg_pt_propertydetail_v2 AS pd - LEFT OUTER JOIN - (SELECT consumercode, totalamount, amount FROM egcl_receiptheader_v1 AS rh - LEFT OUTER JOIN egcl_receiptinstrument_v1 AS ri ON rh.id = ri.receiptheader - LEFT OUTER JOIN egcl_instrumentheader_v1 AS ih ON ri.instrumentheader = ih.id - and ih.instrumentstatus != 'CANCELLED' - where rh.status != 'Cancelled' - ) AS instrument_data ON CONCAT(pd.property, ':', pd.assessmentnumber) = instrument_data.consumercode - WHERE tenantid = $tenantid - groupby: GROUP BY tenantid - orderby: ORDER BY tenantid, totalamountpaid DESC NULLS LAST - -- reportName: StateCancelledReceiptRegister - summary: Receipt Register for cancelled Receipts State - version: 1.0.0 - moduleName: rainmaker-pt - sourceColumns: - - name: tenantid - label: reports.pt.ulbName - type: string - source: pt - total: false - - name: receiptnumber - label: reports.pt.receiptNo - type: string - source: pt - total: false - - name: status - label: reports.pt.status - type: string - source: pt - total: false - - name: transactiondate - label: reports.pt.receiptDate - type: string - source: pt - total: false - - name: g8issuedate - label: reports.pt.g8issuedate - type: string - source: pt - total: false - - name: g8receiptno - label: reports.pt.g8receiptno - type: string - source: pt - total: false - - name: amount - label: reports.pt.amount - type: string - source: pt - total: true - - name: propertytax - label: reports.pt.propertyTax - type: string - source: pt - total: true - - name: firecess - label: reports.pt.fireCess - type: string - source: pt - total: true - - name: cancercess - label: reports.pt.cancerCess - type: string - source: pt - total: true - - name: rebate - label: reports.pt.rebate - type: string - source: pt - total: true - - name: adhocrebate - label: reports.pt.adhocrebate - type: string - source: pt - total: true - - name: penalty - label: reports.pt.penalty - type: string - source: pt - total: true - - name: adhocpenalty - label: reports.pt.adhocpenalty - type: string - source: pt - total: true - - name: interest - label: reports.pt.interest - type: string - source: pt - total: true - - name: exemption - label: reports.pt.exemption - type: string - source: pt - total: true - - name: adjusment - label: reports.pt.roundoff - type: string - source: pt - total: true - - name: propertyid - label: reports.pt.propertyId - type: string - source: pt - total: false - - name: usagetype - label: reports.pt.usagetype - type: string - source: pt - total: false - - name: assessmentnumber - label: reports.pt.assessmentNo - type: string - source: pt - total: false - - name: financialyear - label: reports.pt.financialYear - type: string - source: pt - total: false - - name: instrumenttype - label: reports.pt.paymentMode - type: string - source: pt - total: false - - name: transactionnumber - label: reports.pt.ddChequeTransactionNo - type: string - source: pt - total: false - - name: bankname - label: reports.pt.bankName - type: string - source: pt - total: false - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: false - searchClause: AND rh.receiptdate >= $fromDate - - name: toDate - label: reports.pt.toDate - type: epoch - source: pt - isMandatory: false - searchClause: AND rh.receiptdate <= $toDate - - name: paymentMode - label: Payment Mode - type: singlevaluelist - pattern: 'list://Cash:Cash,Online:Online,Card:Card,DD:DD,Cheque:Cheque' - source: pt - isMandatory: false - searchClause: AND instrumenttype = $paymentMode - - name: financialyear - label: Financial Year - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=egf-master&masterName=FinancialYear|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].code|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].name - source: pt - wrapper: true - isMandatory: false - searchClause: AND financialyear = $financialyear - query: | - -- Use CTE to force query plan, compute & use CTE later - WITH receipt_breakup AS ( - SELECT - receiptheader, - SUM(CASE WHEN taxheadcode LIKE 'PT_ADHOC_PENALTY' THEN adjustedamount ELSE 0 END) as adhocpenalty, - SUM(CASE WHEN taxheadcode LIKE 'PT_ADHOC_PENALTY' THEN adjustedamount ELSE 0 END) as adhocrebate, - SUM(CASE WHEN taxheadcode LIKE 'PT_FIRE_CESS' THEN adjustedamount ELSE 0 END) as firecess, - SUM(CASE WHEN taxheadcode LIKE 'PT_FIRE_CESS' THEN adjustedamount ELSE 0 END) as firecess, - SUM(CASE WHEN taxheadcode LIKE 'PT_CANCER_CESS' THEN adjustedamount ELSE 0 END) as cancercess, SUM(CASE WHEN taxheadcode LIKE 'PT_TIME_INTEREST' THEN adjustedamount ELSE 0 END) as interest, SUM(CASE WHEN taxheadcode LIKE 'PT_TIME_PENALTY' THEN adjustedamount ELSE 0 END) as penalty, - SUM(CASE WHEN taxheadcode LIKE 'PT_TIME_REBATE' THEN adjustedamount ELSE 0 END) as rebate, - (SUM(CASE WHEN taxheadcode LIKE 'PT_TAX' THEN adjustedamount ELSE 0 END) - + SUM(CASE WHEN taxheadcode LIKE 'PT_DECIMAL_CEILING_DEBIT' THEN adjustedamount ELSE 0 END)) - as propertytax, - SUM(CASE WHEN taxheadcode LIKE 'PT_UNIT_USAGE_EXEMPTION' THEN adjustedamount ELSE 0 END) as exemption, - (SUM(CASE WHEN taxheadcode LIKE 'PT_DECIMAL_CEILING_CREDIT' THEN adjustedamount ELSE 0 END) - + SUM(CASE WHEN taxheadcode LIKE 'PT_DECIMAL_CEILING_DEBIT' THEN adjustedamount ELSE 0 END)) as adjusment - FROM egcl_receiptdetails_v1 - WHERE tenantid != 'pb.testing' - GROUP BY receiptheader - ) - SELECT - initcap(split_part(rh.tenantid, '.', 2)) as tenantid, - rh.id, - Substring(rh.consumercode, '(.*):') AS propertyid, - Substring(rh.consumercode, ':(.*)') AS assessmentnumber, - rh.status, - rh.consumercode, - rh.receiptdate, - To_char(To_timestamp(rh.receiptdate / 1000), 'DD/MM/YYYY') AS transactiondate, - bankid AS bankname, - receiptnumber, - amount, - instrumenttype, - transactionnumber, - receipt_breakup.*, - pt_detail.financialyear, - To_char(To_timestamp(rh.manualreceiptdate / 1000), 'DD/MM/YYYY') AS g8issuedate, - Initcap(COALESCE(pt_detail.usagecategoryminor, pt_detail.usagecategorymajor)) as usagetype, - manualreceiptnumber as g8receiptno - FROM egcl_receiptheader_v1 AS rh - JOIN egcl_receiptinstrument_v1 AS ri ON rh.id = ri.receiptheader - JOIN egcl_instrumentheader_v1 AS ih ON ih.id = ri.instrumentheader - JOIN receipt_breakup ON rh.id = receipt_breakup.receiptheader - JOIN eg_pt_propertydetail_v2 pt_detail ON CONCAT(pt_detail.property, ':', pt_detail.assessmentnumber) = rh.consumercode - JOIN eg_pt_address_v2 pt_addr ON pt_detail.property = pt_addr.property - WHERE rh.tenantid != 'pb.testing' and rh.status = 'Cancelled' - orderby: ORDER BY rh.receiptdate DESC - -- reportName: StateWidePtCollection - summary: State Wide PT Collection - version: 1.0.0 - moduleName: rainmaker-pt - sourceColumns: - - name: tenantid - label: reports.pt.ulbName - type: string - source: pt - total: false - - name: totalassessments - label: reports.pt.totalassessments - type: string - source: pt - total: true - - name: totalamountpaid - label: reports.pt.totalamountpaid - type: string - source: pt - total: true - - name: totaloffline - label: reports.pt.totaloffline - type: string - source: pt - total: true - - name: totalonline - label: reports.pt.totalonline - type: string - source: pt - total: true - - name: totalamountdue - label: reports.pt.totalamountdue - type: string - source: pt - total: true - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: false - searchClause: AND receiptdate >= $fromDate - - name: toDate - label: reports.pt.toDate - type: epoch - source: pt - isMandatory: false - searchClause: AND receiptdate <= $toDate - - name: ulb - label: ULB - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: pt - wrapper: true - isMandatory: false - searchClause: AND tenantid = $ulb - - name: financialyear - label: Financial Year - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=egf-master&masterName=FinancialYear|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].code|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].name - source: pt - wrapper: true - isMandatory: false - searchClause: AND financialyear = $financialyear - - name: usage - label: Usage - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=PropertyTax&masterName=UsageCategoryMajor|$..code|$..name - source: pt - wrapper: true - isMandatory: false - searchClause: AND usagecategorymajor = $usage - query: | - SELECT - initcap(split_part(tenantid, '.', 2)) as tenantid, - COUNT(*) AS totalassessments, - SUM(totalamount) AS totalamount, - SUM(amount) AS totalamountpaid, - SUM(CASE WHEN collectiontype LIKE 'ONLINE' THEN amount ELSE 0 END) AS totalonline, - SUM(CASE WHEN collectiontype LIKE 'COUNTER' THEN amount ELSE 0 END) AS totaloffline, - (SUM(totalamount) - SUM(amount)) AS totalamountdue - FROM eg_pt_propertydetail_v2 AS pd - LEFT OUTER JOIN (SELECT consumercode, totalamount, amount, collectiontype, receiptdate FROM egcl_receiptheader_v1 AS rh - LEFT OUTER JOIN egcl_receiptinstrument_v1 AS ri ON rh.id = ri.receiptheader - LEFT OUTER JOIN egcl_instrumentheader_v1 AS ih ON ri.instrumentheader = ih.id and ih.instrumentstatus != 'CANCELLED' - where rh.status != 'Cancelled' - ) AS tbl_amounts ON CONCAT(pd.property, ':', pd.assessmentnumber) = tbl_amounts.consumercode - WHERE tenantid LIKE CONCAT(SPLIT_PART($tenantid, '.', 1), '%') and tenantid != 'pb.testing' - groupby: GROUP BY tenantid - orderby: ORDER BY tenantid, totalamountpaid DESC NULLS LAST - -- reportName: UlbWisePtCollection - summary: State Wide PT Collection - version: 1.0.0 - moduleName: rainmaker-pt - sourceColumns: - - name: totalassessments - label: reports.pt.totalassessments - type: string - source: pt - total: true - - name: totalamountpaid - label: reports.pt.totalamountpaid - type: string - source: pt - total: true - - name: totaloffline - label: reports.pt.totaloffline - type: string - source: pt - total: true - - name: totalonline - label: reports.pt.totalonline - type: string - source: pt - total: true - - name: totalamountdue - label: reports.pt.totalamountdue - type: string - source: pt - total: true - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: false - searchClause: AND receiptdate >= $fromDate - - name: toDate - label: reports.pt.toDate - type: epoch - source: pt - isMandatory: false - searchClause: AND receiptdate <= $toDate - - name: financialyear - label: Financial Year - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=egf-master&masterName=FinancialYear|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].code|$.MdmsRes.egf-master.FinancialYear.[?(@.module=='PT')].name - source: pt - wrapper: true - isMandatory: false - searchClause: AND financialyear = $financialyear - - name: usage - label: Usage - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=PropertyTax&masterName=UsageCategoryMajor|$..code|$..name - source: pt - wrapper: true - isMandatory: false - searchClause: AND usagecategorymajor = $usage - query: | - SELECT - initcap(split_part(tenantid, '.', 2)) as tenantid, - COUNT(*) AS totalassessments, - SUM(totalamount) AS totalamount, - SUM(amount) AS totalamountpaid, - SUM(CASE WHEN collectiontype LIKE 'ONLINE' THEN amount ELSE 0 END) AS totalonline, - SUM(CASE WHEN collectiontype LIKE 'COUNTER' THEN amount ELSE 0 END) AS totaloffline, - (SUM(totalamount) - SUM(amount)) AS totalamountdue - FROM eg_pt_propertydetail_v2 AS pd - LEFT OUTER JOIN (SELECT consumercode, totalamount, amount, collectiontype, receiptdate FROM egcl_receiptheader_v1 AS rh - LEFT OUTER JOIN egcl_receiptinstrument_v1 AS ri ON rh.id = ri.receiptheader - LEFT OUTER JOIN egcl_instrumentheader_v1 AS ih ON ri.instrumentheader = ih.id and ih.instrumentstatus != 'CANCELLED' - where rh.status != 'Cancelled' - ) AS tbl_amounts ON CONCAT(pd.property, ':', pd.assessmentnumber) = tbl_amounts.consumercode - WHERE tenantid LIKE CONCAT(SPLIT_PART($tenantid, '.', 1), '%') and tenantid = $tenantid - groupby: GROUP BY tenantid - orderby: ORDER BY tenantid, totalamountpaid DESC NULLS LAST - - -- reportName: ULBPTDataDumpReport - summary: ULB level report - version: 1.0.0 - moduleName: rainmaker-pt - sourceColumns: - - name: ulb - label: reports.pt.ulb - type: string - source: pt - total: false - - name: propertytaxuniqueid - label: reports.pt.propertytaxuniqueid - type: string - source: pt - total: false - - name: transcationdate - label: reports.pt.transcationdate - type: string - source: pt - total: false - - name: receiptnumber - label: reports.pt.receiptnumber - type: string - source: pt - total: false - - name: existingpropertyid - label: reports.pt.existingpropertyid - type: string - source: pt - total: false - - name: ownername - label: reports.pt.ownername - type: string - source: pt - total: false - - name: guardianname - label: reports.pt.guardianname - type: string - source: pt - total: false - - name: totalarea - label: reports.pt.totalarea - type: string - source: pt - total: false - - name: builtarea - label: reports.pt.builtarea - type: string - source: pt - total: false - - name: floors - label: reports.pt.floors - type: string - source: pt - total: false - - name: occupancy - label: reports.pt.occupancy - type: string - source: pt - total: false - - name: propertytype - label: reports.pt.propertytype - type: string - source: pt - total: false - - name: mobileno - label: reports.pt.mobileno - type: string - source: pt - total: false - - name: transcationmode - label: reports.pt.transcationmode - type: string - source: pt - total: false - - name: paymentamount - label: reports.pt.paymentamount - type: string - source: pt - total: true - - name: paymentdate - label: reports.pt.paymentdate - type: string - source: pt - total: false - - name: emailid - label: reports.pt.emailid - type: string - source: pt - total: false - - name: address - label: reports.pt.address - type: string - source: pt - total: false - searchParams: - - name: fromDate - label: reports.pt.fromDate - type: epoch - source: pt - isMandatory: false - searchClause: AND rh.receiptdate >= $fromDate - - name: toDate - label: reports.pt.toDate - type: epoch - source: pt - isMandatory: false - searchClause: AND rh.receiptdate <= $toDate - query: | - --S.no Service Name ULB Property Tax Unique ID Date Of Transcation Receipt Number Existing Property ID Owner Name Guardian Name Total Area (SQ.YARD) Covered Area/Built Area (SQ.FEET) Floors Occupancy (Rented,Self /Unoccupied) Type Of Property Mobile Number Transcation Mode of Payment Payment Amount Payment Date Email Id Address - with eg_pt_unit_v2_ot as ( - select - propertydetail, - string_agg(distinct pu.occupancytype, ',') as occupancytype, - string_agg(distinct coalesce(usagecategoryminor, usagecategorymajor), ',') as propertytype - from eg_pt_unit_v2 as pu - where pu.tenantid = $tenantid - group by propertydetail - ) - select - distinct on (rh.receiptnumber) - initcap(split_part(rh.tenantid, '.', 2)) as "ulb", - split_part(consumercode, ':', 1) as "propertytaxuniqueid", - to_timestamp(receiptdate/1000) at time zone 'Asia/Kolkata' as "transcationdate", - receiptnumber as "receiptnumber", - pt.oldpropertyid as "existingpropertyid", - eu."name" as "ownername", - eu.guardian as "guardianname", - pd.landarea as "totalarea", - pd.builduparea * 9 as "builtarea", - pd.nooffloors as "floors", - pot.occupancytype as "occupancy", - pot.propertytype as "propertytype", - eu.mobilenumber as "mobileno", - instrumenttype as "transcationmode", - ih.amount as "paymentamount", - to_timestamp(ih.transactiondate/1000) at time zone 'Asia/Kolkata' as "paymentdate", - eu.emailid as "emailid" , - REGEXP_REPLACE(REGEXP_REPLACE(CONCAT(pta.doorno, ',', pta.addressline1, ',', pta.addressline2, ',', pta.buildingname, ',', pta.pincode), ',+', ','), '^,|,$', '') as "address" - from egcl_receiptheader_v1 as rh - inner join egcl_receiptinstrument_v1 as ri on ri.receiptheader = rh.id inner join egcl_instrumentheader_v1 as ih on ih.id = ri.instrumentheader - inner join eg_pt_property_v2 as pt on pt.propertyid = split_part(consumercode, ':', 1) - inner join eg_pt_propertydetail_v2 as pd on pd.assessmentnumber = split_part(consumercode, ':', 2) - inner join eg_pt_owner_v2 as po on po.propertydetail = pd.assessmentnumber - inner join eg_user as eu on eu.uuid = po.userid - inner join eg_pt_address_v2 as pta on pta.property = pt.propertyid - inner join eg_pt_unit_v2_ot as pot on pot.propertydetail = pd.assessmentnumber - where rh.tenantid = $tenantid \ No newline at end of file diff --git a/reports/config/rainmaker-tl-reports.yml b/reports/config/rainmaker-tl-reports.yml deleted file mode 100644 index 330fcf40..00000000 --- a/reports/config/rainmaker-tl-reports.yml +++ /dev/null @@ -1,1155 +0,0 @@ ---- -ReportDefinitions: -- reportName: TradeLicenseRegistryReport - decryptionPathId: TradeLicenseRegistryReport - summary: TL Receipt Register Report - version: 1.0.0 - moduleName: rainmaker-tl - sourceColumns: - - name: receiptnumber - label: report.tl.receiptnumber - type: string - source: tl - total: false - - name: receiptIssueDate - label: report.tl.receiptissuedate - type: string - source: tl - total: false - - name: g8issuedate - label: report.tl.g8issuedate - type: string - source: tl - total: false - - name: g8receiptno - label: report.tl.g8receiptno - type: string - source: tl - total: false - - name: licensenumber - label: report.tl.licensenumber - type: string - source: tl - total: false - - name: formattedIssuedDate - label: report.tl.issueddate - type: string - source: tl - total: false - - name: name - label: report.tl.user.name - type: stringarray - source: tl - total: false - - name: mobilenumber - label: report.tl.user.mobilenumber - type: stringarray - source: tl - total: false - - name: bankid - label: report.tl.bankid - type: string - source: tl - total: false - - name: branchname - label: report.tl.branchname - type: string - source: tl - total: false - - name: transactionumber - label: report.tl.transactionumber - type: string - source: tl - total: false - - name: instrumenttype - label: report.tl.instrumenttype - type: string - source: tl - total: false - - name: status - label: report.tl.status - type: string - source: tl - total: false - - name: tradeTypeName - label: report.tl.tradetype - type: string - source: tl - total: true - - name: acc - label: report.tl.accessorycategories - type: string - source: tl - total: false - - name: tradeName - label: report.tl.tradeName - type: string - source: tl - total: false - - name: totalamount - label: report.tl.receipt.totalamount - type: string - source: tl - total: true - searchParams: - - name: fromDate - label: reports.tl.fromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND receipt.createddate >= $fromDate - - name: toDate - label: reports.tl.toDate - type: epoch - source: tl - isMandatory: false - searchClause: AND receipt.createddate <= $toDate - query: | - SELECT - licensenumber, - to_char(To_timestamp(issueddate / 1000), 'DD/MM/YYYY') as formattedIssuedDate, - tl.tradeName, - initcap(tl.status) as status, - to_char(To_timestamp(receipt.receiptdate / 1000), 'DD/MM/YYYY') as receiptIssueDate , - receipt.receiptnumber, - tradeTypeName, - acc, - name, - mobilenumber, - ih.bankid, - ih.branchname, - ih.transactionnumber, - ih.instrumenttype, - amount as totalamount, - To_char(To_timestamp(receipt.manualreceiptdate / 1000), 'DD/MM/YYYY') AS g8issuedate, - receipt.manualreceiptnumber as g8receiptno - - FROM eg_tl_tradelicense tl - INNER JOIN eg_tl_tradelicensedetail tld ON tld.tradelicenseid = tl.id - INNER JOIN ( - SELECT tradelicensedetailid,array_to_string(array_agg(message.message),', ') as tradeTypeName FROM eg_tl_tradeunit - INNER JOIN message ON split_part(message.code,'_',2) = tradeType AND message.locale = 'en_IN' GROUP BY 1) tlunit ON tlunit.tradelicensedetailid = tld.id - INNER JOIN ( - SELECT tradelicensedetailid, array_to_string(array_agg(name),', ') as name, array_to_string(array_agg(mobilenumber),', ') as mobilenumber - FROM eg_tl_owner tlowner - INNER JOIN eg_user tluser ON tluser.uuid = tlowner.id - group by tradelicensedetailid - ) tlown ON tlown.tradelicensedetailid = tld.id - LEFT OUTER JOIN egcl_receiptheader_v1 receipt ON receipt.consumercode = tl.applicationnumber and receipt.status != 'Cancelled' - LEFT OUTER JOIN egcl_receiptinstrument_v1 as ri ON ri.receiptheader = receipt.id - LEFT OUTER JOIN egcl_instrumentheader_v1 as ih ON ih.id = ri.instrumentheader and ih.instrumentstatus != 'CANCELLED' - LEFT OUTER JOIN (SELECT tradelicensedetailid,array_to_string(array_agg(message.message),',') AS acc FROM eg_tl_accessory - LEFT OUTER JOIN message ON split_part(message.code,'_',2) = accessorycategory AND message.locale = 'en_IN' GROUP BY 1 ) tlacc ON tlacc.tradelicensedetailid = tld.id - WHERE tl.Status in ('APPROVED', 'PAID', 'CANCELLED') AND tl.tenantId LIKE $tenantid - -- reportName: StateTradeLicenseCancelledRegistryReport - summary: TL Cancelled Receipt Register Report - version: 1.0.0 - moduleName: rainmaker-tl - sourceColumns: - - name: tenantId - label: report.tl.tenantid - type: string - source: tl - total: false - - name: receiptnumber - label: report.tl.receiptnumber - type: string - source: tl - total: false - - name: receiptIssueDate - label: report.tl.receiptissuedate - type: string - source: tl - total: false - - name: g8issuedate - label: report.tl.g8issuedate - type: string - source: tl - total: false - - name: g8receiptno - label: report.tl.g8receiptno - type: string - source: tl - total: false - - name: licensenumber - label: report.tl.licensenumber - type: string - source: tl - total: false - - name: formattedIssuedDate - label: report.tl.issueddate - type: string - source: tl - total: false - - name: name - label: report.tl.user.name - type: string - source: tl - total: false - - name: mobilenumber - label: report.tl.user.mobilenumber - type: string - source: tl - total: false - - name: bankid - label: report.tl.bankid - type: string - source: tl - total: false - - name: branchname - label: report.tl.branchname - type: string - source: tl - total: false - - name: transactionumber - label: report.tl.transactionumber - type: string - source: tl - total: false - - name: instrumenttype - label: report.tl.instrumenttype - type: string - source: tl - total: false - - name: status - label: report.tl.status - type: string - source: tl - total: false - - name: tradeTypeName - label: report.tl.tradetype - type: string - source: tl - total: false - - name: acc - label: report.tl.accessorycategories - type: string - source: tl - total: false - - name: tradeName - label: report.tl.tradeName - type: string - source: tl - total: false - - name: totalamount - label: report.tl.receipt.totalamount - type: number - source: tl - total: true - searchParams: - - name: fromDate - label: reports.tl.fromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND receipt.createddate >= $fromDate - - name: toDate - label: reports.tl.toDate - type: epoch - source: tl - isMandatory: false - searchClause: AND receipt.createddate <= $toDate - query: | - SELECT - initcap(split_part(tl.tenantId, '.', 2)) as tenantId, - licensenumber, - to_char(To_timestamp(issueddate / 1000), 'DD/MM/YYYY') as formattedIssuedDate, - tl.tradeName, - initcap(tl.status) as status, - to_char(To_timestamp(receipt.receiptdate / 1000), 'DD/MM/YYYY') as receiptIssueDate , - receipt.receiptnumber, - tradeTypeName, - acc, - name, - mobilenumber, - ih.bankid, - ih.branchname, - ih.transactionnumber, - ih.instrumenttype, - amount as totalamount, - To_char(To_timestamp(receipt.manualreceiptdate / 1000), 'DD/MM/YYYY') AS g8issuedate, - receipt.manualreceiptnumber as g8receiptno - - FROM eg_tl_tradelicense tl - INNER JOIN eg_tl_tradelicensedetail tld ON tld.tradelicenseid = tl.id - INNER JOIN ( - SELECT tradelicensedetailid,array_to_string(array_agg(message.message),', ') as tradeTypeName FROM eg_tl_tradeunit - INNER JOIN message ON split_part(message.code,'_',2) = tradeType AND message.locale = 'en_IN' GROUP BY 1) tlunit ON tlunit.tradelicensedetailid = tld.id - INNER JOIN ( - SELECT tradelicensedetailid, array_to_string(array_agg(name),', ') as name, array_to_string(array_agg(mobilenumber),', ') as mobilenumber - FROM eg_tl_owner tlowner - INNER JOIN eg_user tluser ON tluser.uuid = tlowner.id - group by tradelicensedetailid - ) tlown ON tlown.tradelicensedetailid = tld.id - INNER JOIN egcl_receiptheader_v1 receipt ON receipt.consumercode = tl.applicationnumber and receipt.status = 'Cancelled' - INNER JOIN egcl_receiptinstrument_v1 as ri ON ri.receiptheader = receipt.id - INNER JOIN egcl_instrumentheader_v1 as ih ON ih.id = ri.instrumentheader - LEFT OUTER JOIN (SELECT tradelicensedetailid,array_to_string(array_agg(message.message),',') AS acc FROM eg_tl_accessory - LEFT OUTER JOIN message ON split_part(message.code,'_',2) = accessorycategory AND message.locale = 'en_IN' GROUP BY 1 ) tlacc ON tlacc.tradelicensedetailid = tld.id - WHERE tl.tenantId != 'pb.testing' - -- reportName: TradeLicenseCancelledRegistryReport - summary: TL Cancelled Receipt Register Report - version: 1.0.0 - moduleName: rainmaker-tl - sourceColumns: - - name: receiptnumber - label: report.tl.receiptnumber - type: string - source: tl - total: false - - name: receiptIssueDate - label: report.tl.receiptissuedate - type: string - source: tl - total: false - - name: g8issuedate - label: report.tl.g8issuedate - type: string - source: tl - total: false - - name: g8receiptno - label: report.tl.g8receiptno - type: string - source: tl - total: false - - name: licensenumber - label: report.tl.licensenumber - type: string - source: tl - total: false - - name: formattedIssuedDate - label: report.tl.issueddate - type: string - source: tl - total: false - - name: name - label: report.tl.user.name - type: string - source: tl - total: false - - name: mobilenumber - label: report.tl.user.mobilenumber - type: string - source: tl - total: false - - name: bankid - label: report.tl.bankid - type: string - source: tl - total: false - - name: branchname - label: report.tl.branchname - type: string - source: tl - total: false - - name: transactionumber - label: report.tl.transactionumber - type: string - source: tl - total: false - - name: instrumenttype - label: report.tl.instrumenttype - type: string - source: tl - total: false - - name: status - label: report.tl.status - type: string - source: tl - total: false - - name: tradeTypeName - label: report.tl.tradetype - type: string - source: tl - total: false - - name: acc - label: report.tl.accessorycategories - type: string - source: tl - total: false - - name: tradeName - label: report.tl.tradeName - type: string - source: tl - total: false - - name: totalamount - label: report.tl.receipt.totalamount - type: number - source: tl - total: true - searchParams: - - name: fromDate - label: reports.tl.fromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND receipt.createddate >= $fromDate - - name: toDate - label: reports.tl.toDate - type: epoch - source: tl - isMandatory: false - searchClause: AND receipt.createddate <= $toDate - query: | - SELECT - licensenumber, - to_char(To_timestamp(issueddate / 1000), 'DD/MM/YYYY') as formattedIssuedDate, - tl.tradeName, - initcap(tl.status) as status, - to_char(To_timestamp(receipt.receiptdate / 1000), 'DD/MM/YYYY') as receiptIssueDate , - receipt.receiptnumber, - tradeTypeName, - acc, - name, - mobilenumber, - ih.bankid, - ih.branchname, - ih.transactionnumber, - ih.instrumenttype, - amount as totalamount, - To_char(To_timestamp(receipt.manualreceiptdate / 1000), 'DD/MM/YYYY') AS g8issuedate, - receipt.manualreceiptnumber as g8receiptno - - FROM eg_tl_tradelicense tl - INNER JOIN eg_tl_tradelicensedetail tld ON tld.tradelicenseid = tl.id - INNER JOIN ( - SELECT tradelicensedetailid,array_to_string(array_agg(message.message),', ') as tradeTypeName FROM eg_tl_tradeunit - INNER JOIN message ON split_part(message.code,'_',2) = tradeType AND message.locale = 'en_IN' GROUP BY 1) tlunit ON tlunit.tradelicensedetailid = tld.id - INNER JOIN ( - SELECT tradelicensedetailid, array_to_string(array_agg(name),', ') as name, array_to_string(array_agg(mobilenumber),', ') as mobilenumber - FROM eg_tl_owner tlowner - INNER JOIN eg_user tluser ON tluser.uuid = tlowner.id - group by tradelicensedetailid - ) tlown ON tlown.tradelicensedetailid = tld.id - INNER JOIN egcl_receiptheader_v1 receipt ON receipt.consumercode = tl.applicationnumber and receipt.status = 'Cancelled' - INNER JOIN egcl_receiptinstrument_v1 as ri ON ri.receiptheader = receipt.id - INNER JOIN egcl_instrumentheader_v1 as ih ON ih.id = ri.instrumentheader - LEFT OUTER JOIN (SELECT tradelicensedetailid,array_to_string(array_agg(message.message),',') AS acc FROM eg_tl_accessory - LEFT OUTER JOIN message ON split_part(message.code,'_',2) = accessorycategory AND message.locale = 'en_IN' GROUP BY 1 ) tlacc ON tlacc.tradelicensedetailid = tld.id - WHERE tl.tenantId LIKE $tenantid - - -- reportName: TradeWiseCollectionReport - summary: Collection according to tradeTypes - version: 1.0.0 - moduleName: rainmaker-tl - sourceColumns: - - name: transactionNumber - label: report.tl.totalTransaction - type: string - source: tl - total: false - - name: online - label: report.tl.online.collection - type: number - source: tl - total: true - - name: offline - label: report.tl.offline.collection - type: number - source: tl - total: true - - name: total - label: report.tl.totalCollection - type: number - source: tl - total: true - searchParams: - - name: fromDate - label: reports.tl.fromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND rh.receiptdate >= $fromDate - - name: toDate - label: reports.tl.toDate - type: epoch - source: tl - isMandatory: false - searchClause: AND rh.receiptdate <= $toDate - query: | - select - sum(ih.amount) as total, - count(*) as transactionNumber, - sum(case collectiontype when 'COUNTER' then amount else 0 end) as offline, - sum(case collectiontype when 'ONLINE' then amount else 0 end) as online, - initcap(split_part(rh.tenantId, '.', 2)) as tenantId - from egcl_receiptheader_v1 as rh - inner join egcl_receiptinstrument_v1 as ri on ri.receiptheader = rh.id - inner join egcl_instrumentheader_v1 as ih on ih.id = ri.instrumentheader - where rh.businessdetails = 'TL' and rh.status !='Cancelled' and rh.tenantid !='pb.testing' - AND rh.tenantId LIKE $tenantid - groupby: GROUP BY rh.tenantId - -- reportName: TradeLicenseApplicationStatusReport - summary: Nummber of applications by there status - version: 1.0.0 - moduleName: rainmaker-tl - externalService: - - entity: $.messages[*] - apiURL: http://egov-localization:8080/localization/messages/v1/_search?locale=en_IN&tenantId=pb&module=rainmaker-tl - keyOrder: code,message - tableName: tbl_localization - sourceColumns: - - name: status - label: report.tl.status - type: string - source: tl - total: false - - name: total - label: report.tl.total - type: number - source: tl - total: true - searchParams: - - name: fromDate - label: reports.tl.fromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND tl.lastmodifiedtime >= $fromDate - - name: toDate - label: reports.tl.toDate - type: epoch - source: tl - isMandatory: false - searchClause: AND tl.lastmodifiedtime <= $toDate - query: SELECT COUNT(applicationnumber) as total,message.message as status from eg_tl_tradelicense tl LEFT OUTER JOIN message ON split_part(message.code,'_',2) = status AND message.locale = 'en_IN' WHERE tl.tenantid LIKE $tenantid - groupby: GROUP BY message.message - orderby: ORDER BY case message.message when 'Pending Application' then 1 when 'Pending Payment' then 2 when 'Pending Approval' then 3 when 'Approved' then 4 when 'Rejected' then 5 when 'Cancelled' then 6 else 7 end - -- reportName: TradeLicenseULBWiseApplicationStatusReport - summary: Nummber of applications by there status - version: 1.0.0 - moduleName: rainmaker-tl - sourceColumns: - - name: tenantId - label: report.tl.tenantid - type: string - source: tl - total: false - - name: initiated - label: TL_INITIATED - type: number - source: tl - total: true - - name: applied - label: TL_APPLIED - type: number - source: tl - total: true - - name: paid - label: TL_PAID - type: number - source: tl - total: true - - name: approved - label: TL_APPROVED - type: number - source: tl - total: true - - name: rejected - label: TL_REJECTED - type: number - source: tl - total: true - - name: cancelled - label: TL_CANCELLED - type: number - source: tl - total: true - searchParams: - - name: fromDate - label: reports.tl.fromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND tl.lastmodifiedtime >= $fromDate - - name: toDate - label: reports.tl.toDate - type: epoch - source: tl - isMandatory: false - searchClause: AND tl.lastmodifiedtime <= $toDate - query: | - SELECT - initcap(split_part(tenantId, '.', 2)) as tenantId, - SUM(CASE status when 'REJECTED' then 1 else 0 end) as rejected, - SUM(CASE status when 'INITIATED' then 1 else 0 end) as initiated, - SUM(CASE status when 'PAID' then 1 else 0 end) as paid, - SUM(CASE status when 'APPROVED' then 1 else 0 end) as approved, - SUM(CASE status when 'APPLIED' then 1 else 0 end) as applied, - SUM(CASE status when 'CANCELLED' then 1 else 0 end) as cancelled - FROM eg_tl_tradelicense as tl - WHERE tl.tenantid != 'pb.testing' - groupby: GROUP BY tenantid - orderby: ORDER BY tenantid - - -- reportName: StateLevelStatus - summary: Nummber of applications by there status state level - version: 1.0.0 - moduleName: rainmaker-tl - sourceColumns: - - name: status - label: report.tl.status - type: string - source: tl - total: false - - name: total - label: report.tl.total - type: number - source: tl - total: true - searchParams: - - name: fromDate - label: reports.tl.fromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND tl.lastmodifiedtime >= $fromDate - - name: toDate - label: reports.tl.toDate - type: epoch - source: tl - isMandatory: false - searchClause: AND tl.lastmodifiedtime <= $toDate - - name: ulb - label: ULB - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: tl - wrapper: true - isMandatory: false - searchClause: AND tl.tenantId = $ulb - query: SELECT COUNT(applicationnumber) as total,message.message as status from eg_tl_tradelicense tl LEFT OUTER JOIN (select distinct module,code,locale,tenantid,message from message where module='rainmaker-tl' ) as message ON split_part(message.code,'_',2) = status AND message.locale = 'en_IN' WHERE 1=1 - groupby: GROUP BY message.message - orderby: ORDER BY case message.message when 'Pending Application' then 1 when 'Pending Payment' then 2 when 'Pending Approval' then 3 when 'Approved' then 4 when 'Rejected' then 5 when 'Cancelled' then 6 else 7 end - - - -- reportName: StateLevelTradeWiseCollection - summary: Collection according to tradeTypes state level - version: 1.0.0 - moduleName: rainmaker-tl - sourceColumns: - - name: tenantId - label: report.tl.tenantid - type: string - source: tl - total: false - - name: transactionNumber - label: report.tl.totalTransaction - type: string - source: tl - total: true - - name: online - label: report.tl.online.collection - type: number - source: tl - total: true - - name: offline - label: report.tl.offline.collection - type: number - source: tl - total: true - - name: total - label: report.tl.totalCollection - type: number - source: tl - total: true - searchParams: - - name: fromDate - label: reports.tl.fromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND rh.receiptdate >= $fromDate - - name: toDate - label: reports.tl.toDate - type: epoch - source: tl - isMandatory: false - searchClause: AND rh.receiptdate <= $toDate - - name: ulb - label: ULB - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: tl - wrapper: true - isMandatory: false - searchClause: AND tl.tenantId = $ulb - query: | - select - sum(ih.amount) as total, - count(*) as transactionNumber, - sum(case collectiontype when 'COUNTER' then amount else 0 end) as offline, - sum(case collectiontype when 'ONLINE' then amount else 0 end) as online, - initcap(split_part(rh.tenantId, '.', 2)) as tenantId - from egcl_receiptheader_v1 as rh - inner join egcl_receiptinstrument_v1 as ri on ri.receiptheader = rh.id - inner join egcl_instrumentheader_v1 as ih on ih.id = ri.instrumentheader - where rh.businessdetails = 'TL' and rh.status !='Cancelled' and rh.tenantid !='pb.testing' - groupby: GROUP BY rh.tenantId - orderby: ORDER BY rh.tenantId asc - - -- reportName: StateLevelTradeLicenseRegistryReport - summary: TL Basic Report State Level - version: 1.0.0 - moduleName: rainmaker-tl - sourceColumns: - - name: tenantId - label: report.tl.tenantId - type: string - source: tl - total: false - - name: licensenumber - label: report.tl.licensenumber - type: string - source: tl - total: false - - name: formattedIssuedDate - label: report.tl.issueddate - type: string - source: tl - total: false - - name: g8issuedate - label: report.tl.g8issuedate - type: string - source: tl - total: false - - name: g8receiptno - label: report.tl.g8receiptno - type: string - source: tl - total: false - - name: name - label: report.tl.user.name - type: string - source: tl - total: false - - name: mobilenumber - label: report.tl.user.mobilenumber - type: string - source: tl - total: false - - name: tradeTypeName - label: report.tl.tradetype - type: string - source: tl - total: false - - name: acc - label: report.tl.accessorycategories - type: string - source: tl - total: false - - name: tradeName - label: report.tl.tradeName - type: string - source: tl - total: false - - name: totalamount - label: report.tl.receipt.totalamount - type: number - source: tl - total: true - searchParams: - - name: fromDate - label: reports.tl.fromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND issueddate >= $fromDate - - name: toDate - label: reports.tl.toDate - type: epoch - source: tl - isMandatory: false - searchClause: AND issueddate <= $toDate - - name: ulb - label: ULB - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: tl - wrapper: true - isMandatory: false - searchClause: AND tl.tenantId = $ulb - query: SELECT tl.tenantId as tenantId,licensenumber,to_char(To_timestamp(issueddate / 1000), 'DD/MM/YYYY') as formattedIssuedDate,tl.tradeName,tradeTypeName,acc, name,mobilenumber,amount as totalamount,To_char(To_timestamp(receipt.manualreceiptdate / 1000), 'DD/MM/YYYY') AS g8issuedate,receipt.manualreceiptnumber as g8receiptno FROM eg_tl_tradelicense tl INNER JOIN eg_tl_tradelicensedetail tld ON tld.tradelicenseid = tl.id INNER JOIN eg_tl_owner tlowner ON tlowner.tradelicensedetailid = tld.id INNER JOIN (SELECT tradelicensedetailid,message.message as tradeTypeName FROM eg_tl_tradeunit INNER JOIN message ON split_part(message.code,'_',2) = tradeType) tlunit ON tlunit.tradelicensedetailid = tld.id INNER JOIN eg_user tluser ON tluser.uuid = tlowner.id LEFT OUTER JOIN egcl_receiptheader_v1 receipt ON receipt.consumercode = tl.applicationnumber LEFT JOIN egcl_receiptinstrument_v1 as ri ON ri.receiptheader = receipt.id LEFT JOIN egcl_instrumentheader_v1 as ih ON ih.id = ri.instrumentheader LEFT OUTER JOIN (SELECT tradelicensedetailid,array_to_string(array_agg(message.message),',') AS acc FROM eg_tl_accessory LEFT OUTER JOIN message ON split_part(message.code,'_',2) = accessorycategory AND message.locale = 'en_IN' GROUP BY 1 ) tlacc ON tlacc.tradelicensedetailid = tld.id WHERE tl.Status = 'APPROVED' - orderby: ORDER BY tl.tenantId asc - -- reportName: TradeLicenseDailyCollectionReport - decryptionPathId: TradeLicenseDailyCollectionReport - summary: TL Daily Collection Report - version: 1.0.0 - moduleName: rainmaker-tl - sourceColumns: - - name: receiptdate - label: report.tl.receiptdate - type: string - source: tl - total: false - - name: receiptnumber - label: report.tl.receiptnumber - type: string - source: tl - total: false - - name: applicationnumber - label: report.tl.applicationnumber - type: string - source: tl - total: false - - name: licensenumber - label: report.tl.licensenumber - type: string - source: tl - total: false - - name: name - label: report.tl.name - type: string - source: tl - total: false - - name: instrumenttype - label: report.tl.instrumenttype - type: string - source: tl - total: false - - name: chequedate - label: report.tl.chequedate - type: string - source: tl - total: false - - name: chequeno - label: report.tl.chequeno - type: string - source: tl - total: false - - name: bankname - label: report.tl.bankname - type: string - source: tl - total: false - - name: transactionid - label: report.tl.transactionid - type: string - source: tl - total: false - - name: lastfourdigits - label: report.tl.lastfourdigits - type: string - source: tl - total: false - - name: totalamountpaid - label: report.tl.totalamountpaid - type: string - source: tl - total: true - - name: instrumentstatus - label: report.tl.instrumentstatus - type: string - source: tl - total: false - searchParams: - - name: fromDate - label: FromDate - type: epoch - source: tl - isMandatory: true - searchClause: AND tl.createdtime >= $fromDate - - name: toDate - label: ToDate - type: epoch - source: tl - isMandatory: true - searchClause: AND tl.createdtime <= $toDate - - name: instrumentType - label: reports.tl.instrumenttype - type: string - source: tl - isMandatory: false - searchClause: AND paymentmode = $instrumentType - - name: instrumentStatus - label: reports.tl.instrumentstatus - type: string - source: tl - isMandatory: false - searchClause: AND instrumentstatus = $instrumentStatus - - name: collectionOperator - label: CollectionOperator - type: string - source: tl - isMandatory: false - searchClause: AND egcl_payment.createdby = $collectionOperator - query: select to_char(To_timestamp(receiptdate / 1000), 'DD/MM/YYYY') as receiptdate, receiptnumber,applicationnumber,licensenumber, eg_user.name as name, paymentmode as instrumenttype, CASE WHEN paymentmode='CHEQUE' THEN to_char(To_timestamp(instrumentdate/ 1000), 'DD/MM/YYYY') ELSE null END as chequedate, CASE WHEN paymentmode='CHEQUE' THEN instrumentnumber ELSE null END as chequeno, egcl_payment.additionaldetails->'bankDetails'->'BANK' as bankname, CASE WHEN paymentmode='ONLINE' THEN transactionnumber ELSE null END as transactionid ,CASE WHEN paymentmode='CARD' THEN substring(instrumentnumber,1,4) ELSE null END as lastfourdigits, totalamountpaid, instrumentstatus from egcl_payment inner join egcl_paymentdetail on egcl_payment.id=egcl_paymentdetail.paymentid inner join egcl_bill on egcl_paymentdetail.billid=egcl_bill.id inner join eg_tl_tradelicense tl on consumercode=tl.applicationnumber inner join eg_tl_tradelicensedetail on tl.id = eg_tl_tradelicensedetail.tradelicenseid inner join eg_tl_owner on eg_tl_owner.tradelicensedetailid=eg_tl_tradelicensedetail.id inner join eg_user on eg_user.uuid=eg_tl_owner.id where egcl_paymentdetail.businessservice='TL' and tl.tenantid= $tenantid - -- reportName: TradeLicensApplicationStatusReport - decryptionPathId: TradeLicensApplicationStatusReport - summary: TL Application Status Report - version: 1.0.0 - moduleName: rainmaker-tl - externalService: - - entity: $.MdmsRes.TradeLicense.TradeType - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=TradeLicense&masterName=TradeType&tenantId=$tenantId - keyOrder: code,type - tableName: tbl_def_dept - sourceColumns: - - name: applicationnumber - label: report.tl.applicationnumber - type: string - source: tl - total: false - - name: applicationdate - label: report.tl.applicationdate - type: string - source: tl - total: false - - name: applicationchannel - label: report.tl.applicationchannel - type: string - source: tl - total: false - - name: applicationtype - label: report.tl.applicationtype - type: string - source: tl - total: false - - name: name - label: report.tl.name - type: string - source: tl - total: false - - name: tradetype - label: report.tl.tradetype - type: string - source: tl - total: false - - name: tradename - label: report.tl.tradename - type: string - source: tl - total: false - - name: status - label: report.tl.status - type: string - source: tl - total: false - - name: currentowner - label: report.tl.currentowner - type: string - source: tl - total: false - - name: licensenumber - label: report.tl.licensenumber - type: string - source: tl - total: false - searchParams: - - name: fromDate - label: FromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND applicationdate >= $fromDate - - name: toDate - label: ToDate - type: epoch - source: tl - isMandatory: false - searchClause: AND applicationdate <= $toDate - - name: applicationChannel - label: reports.tl.applicationchannel - type: string - source: tl - isMandatory: false - searchClause: AND tld.channel in $applicationChannel - - name: applicationType - label: reports.tl.applicationtype - type: string - source: tl - isMandatory: false - searchClause: AND applicationtype in $applicationType - - name: applicationStatus - label: reports.tl.applicationstatus - type: string - source: tl - isMandatory: false - searchClause: AND tl.status in $applicationStatus - query: select applicationnumber,to_char(To_timestamp(applicationdate / 1000), 'DD/MM/YYYY') as applicationdate , tld.channel as applicationchannel, applicationtype, eg_user.name as name, concat(split_part(tlunit.tradetype,'.',2),' / ',deptmap_def.type) as tradetype, tradename, tl.status as applicationstatus, case when isterminatestate=true then null else assigner end as currentowner,licensenumber from eg_wf_state_v2 st inner join eg_wf_processinstance_v2 pi on pi.status=st.uuid inner join eg_tl_tradelicense tl on pi.businessid=tl.applicationnumber inner join eg_tl_tradelicensedetail tld on tl.id=tld.tradelicenseid inner join eg_tl_owner on tld.id=eg_tl_owner.tradelicensedetailid inner join eg_user on eg_user.uuid=eg_tl_owner.id inner join eg_tl_tradeunit tlunit on tlunit.tradelicensedetailid=tld.id inner join (VALUES tbl_def_dept) AS deptmap_def(code,type) ON deptmap_def.code=tlunit.tradetype - orderby: ORDER BY applicationdate asc - -- reportName: TLRegistryReport - decryptionPathId: TLRegistryReport - summary: TL Registry Report - version: 1.0.0 - moduleName: rainmaker-tl - externalService: - - entity: $.MdmsRes.TradeLicense.TradeType - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=TradeLicense&masterName=TradeType&tenantId=$tenantId - keyOrder: code,type - tableName: tbl_def_dept - sourceColumns: - - name: licensenumber - label: report.tl.licensenumber - type: string - source: tl - total: false - - name: issueddate - label: report.tl.issueddate - type: string - source: tl - total: false - - name: financialyear - label: report.tl.financialyear - type: string - source: tl - total: false - - name: tradename - label: report.tl.tradename - type: string - source: tl - total: false - - name: commencementdate - label: report.tl.commencementdate - type: string - source: tl - total: false - - name: name - label: report.tl.name - type: string - source: tl - total: false - - name: tradetype - label: report.tl.tradetype - type: string - source: tl - total: false - - name: tradesubtype - label: report.tl.tradesubtype - type: string - source: tl - total: false - - name: structuretype - label: report.tl.structuretype - type: string - source: tl - total: false - - name: tradeaddress - label: report.tl.tradeaddress - type: string - source: tl - total: false - - name: locality - label: report.tl.locality - type: string - source: tl - total: false - - name: currentstatus - label: report.tl.currentstatus - type: string - source: tl - total: false - - name: licenseexpirydate - label: report.tl.licenseexpirydate - type: string - source: tl - total: false - searchParams: - - name: fromDate - label: FromDate - type: epoch - source: tl - isMandatory: true - searchClause: AND tl.issueddate >= $fromDate - - name: toDate - label: ToDate - type: epoch - source: tl - isMandatory: true - searchClause: AND tl.issueddate <= $toDate - - name: locality - label: reports.tl.locality - type: multivaluelist - source: tl - isMandatory: false - searchClause: AND locality in ( $locality ) - query: select licensenumber, to_char(To_timestamp(issueddate / 1000), 'DD/MM/YYYY') as issueddate , financialyear, tradename, to_char(To_timestamp(commencementdate / 1000), 'DD/MM/YYYY') as commencementdate , eg_user.name as name, split_part(unt.tradetype,'.',2) as tradetype, deptmap_def.type as tradesubtype, concat(split_part(tld.structuretype,'.',1),' / ',split_part(tld.structuretype,'.',2)) as structuretype, concat(buildingname,' ', street,' ', city,' ', pincode) as tradeaddress, locality, tl.status as currentstatus, to_char(To_timestamp(validto / 1000), 'DD/MM/YYYY') as licenseexpirydate from eg_tl_tradelicense tl inner join eg_tl_tradelicensedetail tld on tl.id= tld.tradelicenseid inner join eg_tl_owner on tld.id=eg_tl_owner.tradelicensedetailid inner join eg_user on eg_user.uuid=eg_tl_owner.id inner join eg_tl_tradeunit unt on unt.tradelicensedetailid=tld.id inner join eg_tl_address addr on addr.tradelicensedetailid=tld.id inner join (VALUES tbl_def_dept) AS deptmap_def(code,type) ON deptmap_def.code=unt.tradetype where tl.businessservice='TL' and financialyear=(select max(financialyear) from eg_tl_tradelicense where licensenumber=tl.licensenumber) and tl.tenantid= $tenantid - -- reportName: TLRenewalPendingReport - decryptionPathId: TLRenewalPendingReport - summary: TL Renewal Pending Report - version: 1.0.0 - moduleName: rainmaker-tl - externalService: - - entity: $.MdmsRes.TradeLicense.TradeType - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=TradeLicense&masterName=TradeType&tenantId=$tenantId - keyOrder: code,type - tableName: tbl_def_dept - sourceColumns: - - name: licensenumber - label: report.tl.licensenumber - type: string - source: tl - total: false - - name: issueddate - label: report.tl.issueddate - type: string - source: tl - total: false - - name: licenseexpirydate - label: report.tl.licenseexpirydate - type: string - source: tl - total: false - - name: tradename - label: report.tl.tradename - type: string - source: tl - total: false - - name: tradetype - label: report.tl.tradetype - type: string - source: tl - total: false - - name: name - label: report.tl.name - type: string - source: tl - total: false - - name: mobilenumber - label: report.tl.mobilenumber - type: string - source: tl - total: false - - name: elapsedtime - label: report.tl.elapsedtime - type: number - source: tl - total: false - - name: status - label: report.tl.status - type: string - source: tl - total: false - searchParams: - - name: fromDate - label: FromDate - type: epoch - source: tl - isMandatory: false - searchClause: AND tl.issueddate >= $fromDate - - name: toDate - label: ToDate - type: epoch - source: tl - isMandatory: false - searchClause: AND tl.issueddate <= $toDate - - name: financialYear - label: FinancialYear - type: string - source: tl - isMandatory: false - searchClause: AND tl.financialyear = $financialYear - query: select licensenumber, to_char(To_timestamp(issueddate / 1000), 'DD/MM/YYYY') as issueddate, to_char(To_timestamp(validto / 1000), 'DD/MM/YYYY') as licenseexpirydate, tradename,concat(split_part(tlunit.tradetype,'.',2),' / ',deptmap_def.type) as tradetype, eg_user.name as name, eg_user.mobilenumber as mobilenumber, CASE WHEN(round( date_part( 'epoch', now() ) )*1000 - validto)/86400000>=0 THEN floor((round( date_part( 'epoch', now() ) )*1000 - validto)/86400000) else null end as elapsedtime, tl.status as status from eg_tl_tradelicense tl inner join eg_tl_tradelicensedetail tld on tl.id = tld.tradelicenseid inner join eg_tl_owner on tld.id=eg_tl_owner.tradelicensedetailid inner join eg_user on eg_user.uuid=eg_tl_owner.id inner join eg_tl_tradeunit tlunit on tlunit.tradelicensedetailid=tld.id inner join (VALUES tbl_def_dept) AS deptmap_def(code,type) ON deptmap_def.code=tlunit.tradetype where tl.businessservice='TL' and licensenumber is not null and tl.tenantid = $tenantid - orderby: ORDER BY floor((round( date_part( 'epoch', now() ) )*1000 - validto)/86400000) desc \ No newline at end of file diff --git a/reports/config/rainmaker-wns-reports.yml b/reports/config/rainmaker-wns-reports.yml deleted file mode 100644 index 5db6762b..00000000 --- a/reports/config/rainmaker-wns-reports.yml +++ /dev/null @@ -1,260 +0,0 @@ ---- -ReportDefinitions: -- reportName: WnsReceiptRegisterReport - decryptionPathId: WnsReceiptRegisterReport - summary: WnS Receipt Register Report - version: 1.0.0 - moduleName: rainmaker-wns - sourceColumns: - - name: receiptnumber - label: report.wns.receiptnumber - type: string - source: wns - total: false - - name: receiptdate - label: report.wns.receiptdate - type: string - source: wns - total: false - - name: service - label: report.wns.service - type: string - source: wns - total: false - - name: name - label: report.wns.name - type: string - source: wns - total: false - - name: totalamountpaid - label: report.wns.totalamountpaid - type: number - source: wns - total: false - - name: payername - label: report.wns.payername - type: string - source: wns - total: false - - name: transactionnumber - label: report.wns.transactionnumber - type: string - source: wns - total: false - - name: chequeno - label: report.wns.chequeno - type: string - source: wns - total: false - - name: uuid - label: report.wns.uuid - type: string - source: wns - showColumn: false - searchParams: - - name: fromDate - label: FromDate - type: epoch - source: wns - isMandatory: true - searchClause: AND egcl_paymentdetail.receiptdate >= $fromDate - - name: toDate - label: ToDate - type: epoch - source: wns - isMandatory: true - searchClause: AND egcl_paymentdetail.receiptdate <= $toDate - - name: receiptStatus - label: reports.wns.receiptStatus - type: singlevaluelist - pattern: 'list://NEW:New,DEPOSITED:Deposited,DISHONOURED:Dishonoured' - source: wns - isMandatory: false - searchClause: AND egcl_bill.status = $receiptStatus - - name: serviceName - label: reports.wns.serviceName - type: singlevaluelist - source: wns - isMandatory: false - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=pb&moduleName=BillingService&masterName=BusinessService&filter=%5B?(@.type=='Adhoc')%5D|$.MdmsRes.BillingService.BusinessService.*.code|$.MdmsRes.BillingService.BusinessService.*.code - wrapper: true - isLocalisationRequired: true - localisationPrefix: BILLINGSERVICE_BUSINESSSERVICE_ - searchClause: AND egcl_bill.businessservice = $serviceName - - name: collectionOperator - label: CollectionOperator - type: singlevaluelist - pattern: http://egov-hrms:8080/egov-hrms/employees/_search?tenantId=$tenantid&roles=FSM_COLLECTOR|$.Employees[*].user.id|$.Employees[*].user.name|$.Employees[*].user.username - wrapper: true - source: wns - isMandatory: false - searchClause: AND egcl_payment.createdby = $collectionOperator - query: select receiptnumber, eg_user.uuid as uuid, to_char(To_timestamp(receiptdate / 1000), 'DD/MM/YYYY') as receiptdate, CASE WHEN egcl_bill.businessservice='SW' THEN 'Sewerage' ELSE NULL END as service,eg_user.name, totalamountpaid,payername, transactionnumber, CASE WHEN paymentmode='CHEQUE' THEN instrumentnumber ELSE null END as chequeno from egcl_payment inner join egcl_paymentdetail on egcl_payment.id=egcl_paymentdetail.paymentid inner join egcl_bill on egcl_paymentdetail.billid=egcl_bill.id inner join eg_sw_connection on egcl_bill.consumercode=connectionno inner join eg_sw_connectionholder on eg_sw_connection.id=eg_sw_connectionholder.connectionid inner join eg_user on eg_sw_connectionholder.userid=eg_user.uuid where eg_sw_connection.tenantid=$tenantid UNION ALL select receiptnumber, eg_user.uuid as uuid, to_char(To_timestamp(receiptdate / 1000), 'DD/MM/YYYY') as receiptdate, CASE WHEN egcl_bill.businessservice='WS' THEN 'Water' ELSE NULL END as service,eg_user.name, totalamountpaid, payername, transactionnumber , CASE WHEN paymentmode='CHEQUE' THEN instrumentnumber ELSE null END as chequeno from egcl_payment inner join egcl_paymentdetail on egcl_payment.id=egcl_paymentdetail.paymentid inner join egcl_bill on egcl_paymentdetail.billid=egcl_bill.id inner join eg_ws_connection on egcl_bill.consumercode=connectionno inner join eg_ws_connectionholder on eg_ws_connection.id=eg_ws_connectionholder.connectionid inner join eg_user on eg_ws_connectionholder.userid=eg_user.uuid where eg_ws_connection.tenantid=$tenantid - -- reportName: WnsCollectionRegisterReport - decryptionPathId: WnsCollectionRegisterReport - summary: WnS Collection Register Report - version: 1.0.0 - moduleName: rainmaker-wns - sourceColumns: - - name: locality - label: report.wns.locality - type: string - source: wns - total: false - - name: service - label: report.wns.service - type: string - source: wns - total: false - - name: name - label: report.wns.name - type: string - source: wns - total: false - - name: paymentmode - label: report.wns.paymentmode - type: string - source: wns - total: false - - name: totaltransactions - label: report.wns.totaltransactions - type: number - source: wns - total: false - - name: totalamountpaid - label: report.wns.totalamountpaid - type: number - source: wns - total: false - - name: uuid - label: report.wns.uuid - type: string - source: wns - showColumn: false - searchParams: - - name: fromDate - label: FromDate - type: epoch - source: wns - isMandatory: true - searchClause: AND egcl_paymentdetail.receiptdate >= $fromDate - - name: toDate - label: ToDate - type: epoch - source: wns - isMandatory: true - searchClause: AND egcl_paymentdetail.receiptdate <= $toDate - - name: locality - label: reports.wns.locality - type: singlevaluelist - source: wns - pattern: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality&tenantId=$tenantid|$.TenantBoundary[0].boundary.*.code|$.TenantBoundary[0].boundary.*.code - isMandatory: false - wrapper: true - localisationPrefix: TENANTS_MOHALLA_ - isLocalisationRequired: true - searchClause: AND locality = $locality - - name: serviceName - label: reports.wns.serviceName - type: singlevaluelist - source: wns - isMandatory: false - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=pb&moduleName=BillingService&masterName=BusinessService&filter=%5B?(@.type=='Adhoc')%5D|$.MdmsRes.BillingService.BusinessService.*.code|$.MdmsRes.BillingService.BusinessService.*.code - wrapper: true - isLocalisationRequired: true - localisationPrefix: BILLINGSERVICE_BUSINESSSERVICE_ - searchClause: AND egcl_bill.businessservice = $serviceName - - name: paymentInstrument - label: reports.wns.paymentmode - type: singlevaluelist - pattern: 'list://CASH:CASH,ONLINE:ONLINE,CARD:CARD,DD:DD,CHEQUE:CHEQUE' - isLocalisationRequired: true - localisationPrefix: COMMON_MASTERS_PAYMENTMODE_ - source: wns - isMandatory: false - searchClause: AND paymentmode = $paymentInstrument - query: select locality, eg_user.uuid, CASE WHEN egcl_bill.businessservice='WS' THEN 'Water' ELSE NULL END as service,eg_user.name, paymentmode, count(receiptnumber) as totaltransactions,sum(totalamountpaid) as totalamountpaid from egcl_payment inner join egcl_paymentdetail on egcl_payment.id=egcl_paymentdetail.paymentid inner join egcl_bill on egcl_paymentdetail.billid=egcl_bill.id inner join eg_ws_connection on egcl_bill.consumercode=connectionno inner join eg_user on CAST(egcl_payment.createdby AS INT) = eg_user.id where eg_ws_connection.tenantid=$tenantid UNION ALL select locality, eg_user.uuid, CASE WHEN egcl_bill.businessservice='SW' THEN 'Sewerage' ELSE NULL END as service,eg_user.name, paymentmode, count(receiptnumber) as totaltransactions, sum(totalamountpaid) as totalamountpaid from egcl_payment inner join egcl_paymentdetail on egcl_payment.id=egcl_paymentdetail.paymentid inner join egcl_bill on egcl_paymentdetail.billid=egcl_bill.id inner join eg_sw_connection on egcl_bill.consumercode=connectionno inner join eg_user on CAST(egcl_payment.createdby AS INT) = eg_user.id where eg_sw_connection.tenantid=$tenantid - groupby: GROUP BY locality, service, name,paymentmode, eg_user.uuid - -- reportName: WnsDefaulterReport - decryptionPathId: WnsDefaulterReport - summary: WnS Defaulter Report - version: 1.0.0 - moduleName: rainmaker-wns - sourceColumns: - - name: consumercode - label: report.wns.consumercode - type: string - source: wns - total: false - - name: name - label: report.wns.name - type: string - source: wns - total: false - - name: locality - label: report.wns.locality - type: string - source: wns - total: false - - name: service - label: report.wns.service - type: string - source: wns - total: false - - name: totaldue - label: report.wns.totaldue - type: number - source: wns - total: false - - name: uuid - label: report.wns.uuid - type: string - source: wns - showColumn: false - searchParams: - - name: locality - label: reports.wns.locality - type: singlevaluelist - source: wns - pattern: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality&tenantId=$tenantid|$.TenantBoundary[0].boundary.*.code|$.TenantBoundary[0].boundary.*.code - isMandatory: false - wrapper: true - localisationPrefix: TENANTS_MOHALLA_ - isLocalisationRequired: true - isMandatory: false - searchClause: AND locality = $locality - - name: serviceName - label: reports.wns.serviceName - type: singlevaluelist - source: wns - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=pb&moduleName=BillingService&masterName=BusinessService&filter=%5B?(@.type=='Adhoc')%5D|$.MdmsRes.BillingService.BusinessService.*.code|$.MdmsRes.BillingService.BusinessService.*.code - wrapper: true - isLocalisationRequired: true - localisationPrefix: BILLINGSERVICE_BUSINESSSERVICE_ - isMandatory: false - searchClause: AND egcl_bill.businessservice = $serviceName - - name: usageType - label: reports.wns.usageType - source: wns - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=ws-services-calculation&masterName=PropertyUsageType&filter=%24.%2A%5B%3F%28%40.code%20%3D~%20%2F%5BA-Z%5D%2A%5C.%5BA-Z%5D%2A%5C.%5BA-Z%5D%2A%5C.%5BA-z%5D%2A%2F%29%5D|$.MdmsRes.ws-services-calculation.PropertyUsageType.*|$.MdmsRes.ws-services-calculation.PropertyUsageType.*.name - wrapper: true - isMandatory: false - localisationPrefix: WATERSERVICE_USAGE_TYPE_ - isMandatory: false - searchClause: AND eg_pt_property.usagecategory = $usageType - - name: connectionType - label: reports.wns.connectionType - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=ws-services-masters&masterName=connectionType&filter=%24.%2A%5B%3F%28%40.code%20%3D~%20%2F%5BA-Z%5D%2A%5C.%5BA-Z%5D%2A%5C.%5BA-Z%5D%2A%5C.%5BA-z%5D%2A%2F%29%5D|$.MdmsRes.ws-services-masters.connectionType.*.code|$.MdmsRes.ws-services-masters.connectionType.*.name - wrapper: true - isMandatory: false - localisationPrefix: WATERSEREVICE_CONNECTION_TYPE_ - isLocalisationRequired: false - source: wns - isMandatory: false - searchClause: AND connectiontype = $connectionType - query: select consumercode, name, locality, eg_user.uuid, CASE WHEN egcl_bill.businessservice='WS' THEN 'Water' ELSE NULL END as service, sum(totaldue) as totaldue from egcl_payment inner join egcl_paymentdetail on egcl_payment.id=egcl_paymentdetail.paymentid inner join egcl_bill on egcl_paymentdetail.billid=egcl_bill.id inner join eg_ws_connection on egcl_bill.consumercode=connectionno inner join eg_ws_service on eg_ws_connection.id=eg_ws_service.connection_id inner join eg_ws_connectionholder on eg_ws_service.connection_id=eg_ws_connectionholder.connectionid inner join eg_user on eg_ws_connectionholder.userid=eg_user.uuid inner join eg_pt_property on eg_pt_property.propertyid = property_id where eg_ws_connection.tenantid=$tenantid UNION ALL select consumercode, name, locality, eg_user.uuid as uuid, CASE WHEN egcl_bill.businessservice='SW' THEN 'Sewerage' ELSE NULL END as service, sum(totaldue) as totaldue from egcl_payment inner join egcl_paymentdetail on egcl_payment.id=egcl_paymentdetail.paymentid inner join egcl_bill on egcl_paymentdetail.billid=egcl_bill.id inner join eg_sw_connection on egcl_bill.consumercode=connectionno inner join eg_sw_service on eg_sw_connection.id=eg_sw_service.connection_id inner join eg_sw_connectionholder on eg_sw_service.connection_id=eg_sw_connectionholder.connectionid inner join eg_user on eg_sw_connectionholder.userid=eg_user.uuid inner join eg_pt_property on eg_pt_property.propertyid = property_id where eg_sw_connection.tenantid=$tenantid - groupby: GROUP BY consumercode, name, locality, service, eg_user.uuid \ No newline at end of file diff --git a/reports/config/swm-reports.yml b/reports/config/swm-reports.yml deleted file mode 100644 index 48c97dfc..00000000 --- a/reports/config/swm-reports.yml +++ /dev/null @@ -1,135 +0,0 @@ -ReportDefinitions: -- reportName: DumpingGroundDetailReport - summary: Dumping Ground Details report - version: 1.0.0 - moduleName: swm - externalService: - - entity: $.MdmsRes.swm.DumpingGround - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=swm&masterName=DumpingGround&tenantId=$tenantid - keyOrder: code,name,tenantId,isProcessingSite - tableName: tbl_swmdumpingground - stateData: true - sourceColumns: - - name: dumpinggroundname - label: reports.swm.dumpingground - type: string - source: mdms - - name: date - label: reports.swm.date - type: string - source: egswm_sourcesegregation - - name: wetwastecollected - label: reports.swm.wetwaste - type: number - source: egswm_collectiondetails - - name: drywastecollected - label: reports.swm.drywaste - type: number - source: egswm_collectiondetails - - name: sortdate - label: reports.swm.date - type: string - source: egswm_sourcesegregation - showColumn: false - - searchParams: - - name: dumpinggroundcode - label: reports.swm.dumpingground - type: singlevaluelist - source: mdms - isMandatory: false - stateData: true - wrapper: true - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=swm&masterName=DumpingGround&tenantId=$tenantid|$.MdmsRes.swm.DumpingGround.*.code|$.MdmsRes.swm.DumpingGround.*.name - searchClause: and ssg.dumpingground = $dumpinggroundcode - - name: wasteprocess - label: reports.swm.wasteprocess - type: singlevaluelist - pattern: 'list://false:Dump,true:Process' - source: wastetypeprocess - isMandatory: false - searchClause: and dg.isProcessingSite = $wasteprocess - - name: wastetype - label: reports.swm.wastetype - type: singlevaluelist - pattern: 'list://Wet:Wet,Dry:Dry' - source: wastetype - isMandatory: false - - name: fromDate - label: reports.swm.datefrom - type: epoch - source: egswm_sourcesegregation - isMandatory: true - - name: toDate - label: reports.swm.dateto - type: epoch - source: egswm_sourcesegregation - isMandatory: true - query: select dg.name as dumpinggroundname, CASE WHEN $wastetype = 'Wet' THEN sum(cd.wetwastecollected) WHEN $wastetype = 'Dry' THEN 0 ELSE sum(cd.wetwastecollected) END as wetwastecollected, CASE WHEN $wastetype = 'Wet' THEN 0 WHEN $wastetype = 'Dry' THEN sum(cd.drywastecollected) ELSE sum(cd.drywastecollected) END as drywastecollected, to_char((to_timestamp(ssg.sourcesegregationdate/1000) AT TIME ZONE 'Asia/Kolkata')::date,'dd/mm/yyyy') as date, (to_timestamp(ssg.sourcesegregationdate/1000) AT TIME ZONE 'Asia/Kolkata')::date as sortdate from egswm_collectiondetails cd, egswm_sourcesegregation ssg, (VALUES tbl_swmdumpingground) as dg (code,name,tenantId,isProcessingSite) where cd.sourcesegregation = ssg.code and cd.tenantid = $tenantid and ssg.tenantid = $tenantid and ssg.dumpingground = dg.code and ssg.sourcesegregationdate >= $fromDate and ssg.sourcesegregationdate <= $toDate - groupBy: group by date, dumpinggroundname, sortdate order by dumpinggroundname, sortdate; - -- reportName: ExpenditureIncurredReport - summary: Expenditure incurred on Transportation report - version: 1.0.0 - moduleName: swm - externalService: - - entity: $.MdmsRes.swm.VehicleType - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=swm&masterName=VehicleType&tenantId=$tenantid - keyOrder: code,name,tenantId - tableName: tbl_swmvehicletype - stateData: true - sourceColumns: - - name: date - label: reports.swm.date - type: string - source: egswm_vehiclemaintenancedetails - - name: vehicletype - label: reports.swm.vehicletype - type: string - source: mdms - - name: registrationnumber - label: reports.swm.registrationnumber - type: string - source: egswm_vehicle - - name: fuellingcost - label: reports.swm.fuellingcost - type: number - source: egswm_vehiclefuellingdetails - - name: maintenancecost - label: reports.swm.maintenancecost - type: number - source: egswm_vehiclemaintenancedetails - - name: salary - label: reports.swm.salary - type: string - source: employee - - name: totalcost - label: reports.swm.totalcost - type: number - source: egswm_vehiclemaintenancedetails - searchParams: - - name: vehicle - label: reports.swm.vehicle - type: singlevaluelistac - source: egswm_vehicle - isMandatory: true - wrapper: true - pattern: http://swm-services:8080/swm-services/vehicles/_search?tenantId=$tenantid|$..regNumber|$..regNumber - - name: typeofvehicle - label: reports.swm.vehicletype - type: string - source: egswm_vehicle - isMandatory: false - wrapper: true - pattern: /swm-services/vehicles/_search?tenantId=$tenantid®Numbers={vehicle}|$..vehicleType.name|$..vehicleType.name - - name: fromDate - label: reports.swm.datefrom - type: epoch - source: egswm_vehiclemaintenancedetails - isMandatory: true - - name: toDate - label: reports.swm.dateto - type: epoch - source: egswm_vehiclemaintenancedetails - isMandatory: true - query: select to_char(result.date,'dd/mm/yyyy') as date,COALESCE(sum(result.fuellingcost),0) as fuellingcost,COALESCE(sum(result.maintenancecost),0) as maintenancecost,COALESCE(sum(result.totalcost),0) as totalcost, result.vehicletype as vehicletype, result.registrationnumber registrationnumber,'' as salary from ((select (to_timestamp(vmd.actualmaintenancedate/1000) AT TIME ZONE 'Asia/Kolkata')::date as date,0 as fuellingcost,COALESCE(sum(vmd.costincurred),0) as maintenancecost,COALESCE(sum(vmd.costincurred),0) as totalcost, vt.name as vehicletype,vehicle.regnumber as registrationnumber from egswm_vehicle vehicle, egswm_vehiclemaintenancedetails vmd, (VALUES tbl_swmvehicletype) as vt (code,name,tenantId) where vehicle.regnumber = $vehicle and vehicle.vehicletype = vt.code and vehicle.regnumber = vmd.vehicle and vehicle.tenantid = $tenantid and vmd.tenantid = $tenantid and vmd.actualmaintenancedate >= $fromDate and vmd.actualmaintenancedate <= $toDate group by date, vt.name, registrationnumber) UNION (select (to_timestamp(vfd.transactiondate/1000) AT TIME ZONE 'Asia/Kolkata')::date as date, COALESCE(sum(vfd.totalcostincurred),0) as fuellingcost, 0 as maintenancecost, COALESCE(sum(vfd.totalcostincurred),0) as totalcost, vt.name as vehicletype,vehicle.regnumber as registrationnumber from egswm_vehicle vehicle, egswm_vehiclefuellingdetails vfd, (VALUES tbl_swmvehicletype) as vt (code,name,tenantId) where vehicle.regnumber = $vehicle and vehicle.vehicletype = vt.code and vehicle.regnumber = vfd.vehicle and vehicle.tenantid = $tenantid and vfd.tenantid = $tenantid and vfd.transactiondate >= $fromDate and vfd.transactiondate <= $toDate group by date, vt.name, registrationnumber)) as result group by result.date, result.registrationnumber, result.vehicletype order by result.registrationnumber, result.date, result.vehicletype; diff --git a/reports/config/uc-reports.yml b/reports/config/uc-reports.yml deleted file mode 100644 index 37e658b8..00000000 --- a/reports/config/uc-reports.yml +++ /dev/null @@ -1,902 +0,0 @@ -ReportDefinitions: - - reportName: MiscReceipt - summary: Receipt Register Miscellaneous - version: 1.0.0 - moduleName: rainmaker-uc - sourceColumns: - - name: ulb - label: reports.uc.ulb - type: string - source: uc - total: false - - name: receiptnumber - label: reports.uc.receiptnumber - type: string - source: uc - total: false - - name: receiptdate - label: reports.uc.receiptdate - type: string - source: uc - total: false - - name: g8issuedate - label: reports.uc.g8issuedate - type: string - source: uc - total: false - - name: g8receiptno - label: reports.uc.g8receiptno - type: string - source: uc - total: false - - name: status - label: reports.uc.receiptstatus - type: string - source: uc - total: false - - name: servicecategory - label: reports.uc.businessdetails - type: string - source: uc - total: false - - name: cgst - label: reports.uc.cgst - type: string - source: uc - total: true - - name: tax - label: reports.uc.tax - type: string - source: uc - total: true - - name: fieldcollection - label: reports.uc.fieldcollection - type: string - source: uc - total: true - - name: sgst - label: reports.uc.sgst - type: string - source: uc - total: true - - name: ddorchequenumber - label: reports.uc.ddorchequenumber - type: string - source: uc - total: false - - name: collectiontype - label: reports.uc.collectiontype - type: string - source: uc - total: false - - name: collectorname - label: reports.uc.collectorname - type: string - source: uc - total: false - - name: totalamount - label: reports.uc.totalamount - type: string - source: uc - total: true - - name: paymentmode - label: reports.uc.paymentmode - type: string - source: uc - total: false - searchParams: - - name: fromDate - label: reports.uc.fromDate - type: epoch - source: uc - isMandatory: false - searchClause: AND rh.receiptdate >= $fromDate - - name: toDate - label: reports.uc.toDate - type: epoch - source: uc - isMandatory: false - searchClause: AND rh.receiptdate <= $toDate - - name: ulb - label: reports.uc.ulb - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: uc - wrapper: true - isMandatory: false - searchClause: AND rh.tenantid != 'pb.testing' AND rh.tenantid = $ulb - query: | - -- Use CTE to force query plan, compute & use CTE later - WITH receipt_breakup AS ( - SELECT - receiptheader, - SUM(CASE WHEN taxheadcode LIKE '%_CGST' THEN adjustedamount ELSE 0 END) as cgst, - SUM(CASE WHEN taxheadcode LIKE '%_TAX' THEN adjustedamount ELSE 0 END) as tax, - SUM(CASE WHEN taxheadcode LIKE '%_SGST' THEN adjustedamount ELSE 0 END) as sgst, - SUM(CASE WHEN taxheadcode LIKE '%_FIELD_FEE' THEN adjustedamount ELSE 0 END) as fieldcollection - FROM egcl_receiptdetails_v1 as rd - INNER JOIN egcl_receiptheader_v1 as rh on rh.id = rd.receiptheader - WHERE rh.status != 'Cancelled' AND rh.tenantid !='pb.testing' AND businessdetails not in ('PT','TL') - GROUP BY rd.receiptheader - ) - SELECT - rh.tenantid as ulb, - rh.receiptnumber as receiptnumber, - To_char((To_timestamp(rh.receiptdate / 1000) at time Zone 'Asia/Kolkata'), 'DD/MM/YYYY') as receiptdate, - To_char((To_timestamp(rh.manualreceiptdate / 1000) at time Zone 'Asia/Kolkata'), 'DD/MM/YYYY') as g8issuedate, - rh.manualreceiptnumber as g8receiptno, - rh.status as status, - businessdetails as servicecategory, - receipt_breakup.*, - amount as totalamount, - instrumenttype as paymentmode, - (case when instrumenttype like 'CASH' then '' else transactionnumber end) as ddorchequenumber, - 'System' as collectiontype, - eg_user.name as collectorname - FROM egcl_receiptheader_v1 AS rh - JOIN egcl_receiptinstrument_v1 AS ri ON rh.id = ri.receiptheader - JOIN egcl_instrumentheader_v1 AS ih ON ih.id = ri.instrumentheader - JOIN receipt_breakup ON rh.id = receipt_breakup.receiptheader - JOIN eg_user ON rh.createdby::INTEGER=eg_user.id - WHERE rh.status != 'Cancelled' AND rh.tenantid!='pb.testing' AND businessdetails not in ('PT','TL') - orderby: ORDER BY rh.receiptdate DESC - - - reportName: MiscReceiptRegister - summary: Receipt Register Miscellaneous - decryptionPathId: MiscReceiptRegister - version: 1.0.0 - moduleName: rainmaker-uc - additionalConfig: - print: - pdfPageSize: "A2" - sourceColumns: - - name: challanno - label: reports.uc.challanno - type: string - source: uc - total: false - - name: receiptnumber - label: reports.uc.receiptnumber - type: string - source: uc - total: false - - name: receiptdate - label: reports.uc.receiptdate - type: string - source: uc - total: false - - name: consumername - label: reports.uc.consumername - type: string - source: uc - - name: servicecategory - label: reports.uc.businessdetails - type: string - source: uc - total: false - - name: tax - label: reports.uc.tax - type: string - source: uc - total: true - - name: fieldcollection - label: reports.uc.fieldcollection - type: string - source: uc - total: true - - name: cgst - label: reports.uc.cgst - type: string - source: uc - total: true - - name: sgst - label: reports.uc.sgst - type: string - source: uc - total: true - - name: securitydeposit - label: reports.uc.securitydeposit - type: string - source: uc - total: true - - name: totalamount - label: reports.uc.totalamount - type: string - source: uc - total: true - - name: transactionorchequenumber - label: reports.uc.ddorchequenumber - type: string - source: uc - total: false - - name: banktxnNo - label: report.uc.banktxnNo - type: string - source: uc - total: false - - name: ddchequedate - label: reports.uc.ddorchequedate - type: string - source: uc - total: false - # - name: bankname - # label: reports.uc.bankname - # type: string - # source: uc - # total: false - # - name: branchname - # label: reports.uc.branchname - # type: string - # source: uc - # total: false - - name: name - label: reports.uc.collectorname - type: string - source: uc - total: false - - name: paymentmode - label: reports.uc.paymentmode - type: string - source: uc - total: false - - name: GLCode - label: reports.uc.GLCode - type: string - source: uc - total: false - - name: g8issuedate - label: reports.uc.g8issuedate - type: string - source: uc - total: false - - name: g8receiptno - label: reports.uc.g8receiptno - type: string - source: uc - total: false - - name: status - label: reports.uc.receiptstatus - type: string - source: uc - total: false - - name: comments - label: reports.uc.comment - type: string - source: uc - total: false - searchParams: - - name: fromDate - label: reports.uc.fromDate - type: epoch - source: uc - isMandatory: true - searchClause: AND pd.receiptdate >= $fromDate - - name: toDate - label: reports.uc.toDate - type: epoch - source: uc - isMandatory: true - searchClause: AND pd.receiptdate <= $toDate - - name: businessservice - label: reports.uc.businessservice - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=BillingService&masterName=BusinessService&tenantId=$tenantid&filter=%5B?(@.type=='Adhoc')%5D|$.MdmsRes.BillingService.BusinessService[*].code|$.MdmsRes.BillingService.BusinessService[*].businessService - source: uc - wrapper: true - isMandatory: false - searchClause: AND bill.businessservice = $businessservice - - name: name - label: reports.uc.collectorname - type: singlevaluelist - pattern: http://egov-hrms:8080/egov-hrms/employees/_search?tenantId=$tenantid&roles=UC_EMP|$.Employees[*].user.id|$.Employees[*].user.name - source: uc - wrapper: true - isMandatory: false - searchClause: AND eg_user.id = $name::INTEGER - query: | - WITH receipt_breakup AS ( - SELECT - billdetailid, - SUM(CASE WHEN taxheadcode LIKE '%_CGST' THEN adjustedamount ELSE 0 END) as cgst, - SUM(CASE WHEN taxheadcode LIKE '%_TAX' THEN adjustedamount ELSE 0 END) as tax, - SUM(CASE WHEN taxheadcode LIKE '%_SGST' THEN adjustedamount ELSE 0 END) as sgst, - SUM(CASE WHEN taxheadcode LIKE '%_FIELD_FEE' THEN adjustedamount ELSE 0 END) as fieldcollection, - SUM(CASE WHEN taxheadcode LIKE '%_SEC_DEP' THEN adjustedamount ELSE 0 END) as securitydeposit - FROM egcl_billaccountdetail as rd - INNER JOIN egcl_billdetial as rh on rh.id = rd.billdetailid - INNER JOIN egcl_bill as bill on bill.id = rh.billid - where status!='Cancelled' and businessservice not in ('PT','TL') and rd.tenantid=$tenantid - GROUP BY rd.billdetailid) - SELECT initcap(split_part(rh.tenantid,'.', 2)) as ulb,pd.receiptnumber as receiptnumber,To_char((To_timestamp(pd.receiptdate / 1000) at time Zone 'Asia/Kolkata'),'DD/MM/YYYY') as receiptdate,To_char((To_timestamp(pd.manualreceiptdate / 1000) at time Zone 'Asia/Kolkata'), 'DD/MM/YYYY') as g8issuedate,pd.manualreceiptnumber as g8receiptno,bill.status as status,servicecategory,receipt_breakup.*,challan.additionaldetail->>'GLcode' as GLCode,challan.description as comments,amount as totalamount,paymentmode,(case when pay.paymentmode ilike 'CASH' then '' else transactionnumber end) as transactionorchequenumber,(case when pay.paymentmode ilike 'CHEQUE' then To_char((To_timestamp(pay.instrumentdate / 1000) at time Zone 'Asia/Kolkata'), 'DD/MM/YYYY') else '' end) as ddchequedate,pgtxn.bank_transaction_no as banktxnNo,eg_user.name as name,consumername,challanno FROM egcl_billdetial AS rh INNER JOIN (SELECT DISTINCT bill.id,status,consumercode, businessservice,message.message as servicecategory from egcl_bill bill LEFT OUTER JOIN message ON CONCAT('BILLINGSERVICE_BUSINESSSERVICE_',replace(businessservice, '.', '_')) = message.code AND message.locale='en_IN' AND message.module='rainmaker-uc')as bill ON bill.id = rh.billid and status != 'Cancelled' and businessservice not in ('PT','TL')LEFT OUTER JOIN egcl_paymentdetail as pd ON pd.billid = bill.id LEFT OUTER JOIN (Select pay.id ,instrumentdate, paymentstatus,transactionnumber,message.message as paymentmode ,pay.createdby from egcl_payment pay LEFT OUTER JOIN message ON CONCAT('COMMON_MASTERS_PAYMENTMODE_',replace(paymentmode, '.', '_')) = message.code AND message.locale='en_IN') AS pay ON pay.id = pd.paymentid LEFT OUTER Join eg_pg_transactions as pgtxn ON pay.transactionnumber = pgtxn.txn_id JOIN (Select challanno as challanno,accountid,eg_user.name as consumername,description,additionaldetail from eg_echallan challan LEFT OUTER JOIN eg_user ON challan.accountid=eg_user.uuid) as challan on challan.challanno = bill.consumercode JOIN receipt_breakup ON rh.id = receipt_breakup.billdetailid JOIN eg_user ON pay.createdby::INTEGER=eg_user.id WHERE rh.tenantid=$tenantid - orderby: ORDER BY pd.receiptdate DESC - - - reportName: StateLevelMiscCollectReceiptRegister - summary: State Receipt Register Miscellaneous - version: 1.0.0 - moduleName: rainmaker-uc - sourceColumns: - - name: ulb - label: reports.uc.ulb - type: string - source: uc - total: false - - name: service - label: reports.uc.businessdetails - type: string - source: uc - total: false - - name: tax - label: reports.uc.tax - type: string - source: uc - total: true - - name: fieldcollection - label: reports.uc.fieldcollection - type: string - source: uc - total: true - - name: cgst - label: reports.uc.cgst - type: string - source: uc - total: true - - name: sgst - label: reports.uc.sgst - type: string - source: uc - total: true - - name: securitydeposit - label: reports.uc.securitydeposit - type: string - source: uc - total: true - - name: totalcollection - label: reports.uc.totalamount - type: string - source: uc - total: true - searchParams: - - name: fromDate - label: reports.uc.fromDate - type: epoch - source: uc - isMandatory: false - searchClause: AND bl.billdate >= $fromDate - - name: toDate - label: reports.uc.toDate - type: epoch - source: uc - isMandatory: false - searchClause: AND bl.billdate <= $toDate - - name: ulb - label: reports.uc.ulb - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: uc - wrapper: true - isMandatory: false - searchClause: AND rd.tenantid != 'pb.testing' AND rd.tenantid = $ulb - query: | - -- Use CTE to force query plan, compute & use CTE later - SELECT - initcap(split_part(rd.tenantid,'.', 2)) as ulb,bl.servicetype as service, - count(distinct rd.billdetailid) as totalreceipts, - SUM(CASE WHEN taxheadcode LIKE '%_CGST' THEN adjustedamount ELSE 0 END) as cgst, - SUM(CASE WHEN taxheadcode LIKE '%_TAX' THEN adjustedamount ELSE 0 END) as tax, - SUM(CASE WHEN taxheadcode LIKE '%_SGST' THEN adjustedamount ELSE 0 END) as sgst, - SUM(CASE WHEN taxheadcode LIKE '%_FIELD_FEE' THEN adjustedamount ELSE 0 END) as fieldcollection, - SUM(CASE WHEN taxheadcode LIKE '%_SEC_DEP' THEN adjustedamount ELSE 0 END) as securitydeposit, - SUM(rd.adjustedamount) as totalcollection - FROM egcl_billaccountdetail as rd - INNER JOIN egcl_billdetial as rh on rh.id = rd.billdetailid - INNER JOIN (SELECT distinct bill.id, status,billdate,businessservice,message.message as servicetype from egcl_bill bill INNER JOIN message ON CONCAT('BILLINGSERVICE_BUSINESSSERVICE_',replace(businessservice, '.', '_')) = message.code AND message.locale='en_IN' AND message.module='rainmaker-uc') as bl ON bl.id = rh.billid and status != 'Cancelled' and businessservice not in ('PT','TL') and rd.tenantid != 'pb.testing' - groupby: GROUP BY rd.tenantid,bl.servicetype - orderby: ORDER BY rd.tenantid - - - reportName: StateLevelMiscReceipt - summary: State Miscellaneous Receipt Register - version: 1.0.0 - moduleName: rainmaker-uc - sourceColumns: - - name: ulb - label: reports.uc.ulb - type: string - source: uc - total: false - - name: totalreceipts - label: reports.uc.noOfReceipts - type: string - source: uc - total: true - - name: tax - label: reports.uc.tax - type: string - source: uc - total: true - - name: cgst - label: reports.uc.cgst - type: string - source: uc - total: true - - name: sgst - label: reports.uc.sgst - type: string - source: uc - total: true - - name: fieldcollection - label: reports.uc.fieldCollection - type: string - source: uc - total: true - - name: securitydeposit - label: reports.uc.securitydeposit - type: string - source: uc - total: true - - name: totalcollection - label: reports.uc.totalamount - type: string - source: uc - total: true - searchParams: - - name: fromDate - label: reports.uc.fromDate - type: epoch - source: uc - isMandatory: false - searchClause: AND bl.billdate >= $fromDate - - name: toDate - label: reports.uc.toDate - type: epoch - source: uc - isMandatory: false - searchClause: AND bl.billdate <= $toDate - - name: ulb - label: reports.uc.ulb - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: uc - wrapper: true - isMandatory: false - searchClause: AND rd.tenantid = $ulb - query: | - -- Use CTE to force query plan, compute & use CTE later - SELECT - initcap(split_part(rd.tenantid,'.', 2)) as ulb, - count(distinct rd.billdetailid) as totalreceipts, - SUM(CASE WHEN taxheadcode LIKE '%_CGST' THEN adjustedamount ELSE 0 END) as cgst, - SUM(CASE WHEN taxheadcode LIKE '%_TAX' THEN adjustedamount ELSE 0 END) as tax, - SUM(CASE WHEN taxheadcode LIKE '%_SGST' THEN adjustedamount ELSE 0 END) as sgst, - SUM(CASE WHEN taxheadcode LIKE '%_FIELD_FEE' THEN adjustedamount ELSE 0 END) as fieldcollection, - SUM(CASE WHEN taxheadcode LIKE '%_SEC_DEP' THEN adjustedamount ELSE 0 END) as securitydeposit, - SUM(rd.adjustedamount) as totalcollection - FROM egcl_billaccountdetail as rd - INNER JOIN egcl_billdetial as rh on rh.id = rd.billdetailid - INNER JOIN (SELECT distinct bill.id, status,billdate,businessservice from egcl_bill bill ) as bl ON bl.id = rh.billid and status != 'Cancelled' and businessservice not in ('PT','TL') and rd.tenantid != 'pb.testing' - groupby: group by rd.tenantid - - - - - reportName: MiscCollectionState - summary: State Miscellaneous Collection Register - version: 1.0.0 - moduleName: rainmaker-uc - sourceColumns: - - name: ulb - label: reports.uc.ulb - type: string - source: uc - total: false - - name: offlinetransactions - label: reports.uc.noOfOfflineTransactions - type: string - source: uc - total: true - - name: onlinetransactions - label: reports.uc.noOfOnlineTransactions - type: string - source: uc - total: true - - name: totaltransactions - label: reports.uc.totalTransactions - type: string - source: uc - total: true - - name: offlinecollection - label: reports.uc.offlineCollection - type: string - source: uc - total: true - - name: onlinecollection - label: reports.uc.onlineCollection - type: string - source: uc - total: true - - name: totalcollection - label: reports.uc.totalCollection - type: string - source: uc - total: true - searchParams: - - name: fromDate - label: reports.uc.fromDate - type: epoch - source: uc - isMandatory: false - searchClause: AND rh.receiptdate >= $fromDate - - name: toDate - label: reports.uc.toDate - type: epoch - source: uc - isMandatory: false - searchClause: AND rh.receiptdate <= $toDate - - name: ulb - label: reports.uc.ulb - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?tenantId=$tenantid&moduleName=tenant&masterName=tenants|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - source: uc - wrapper: true - isMandatory: false - searchClause: rd.tenantid != 'pb.testing' AND rh.tenantid = $ulb - query: | - -- Use CTE to force query plan, compute & use CTE later - SELECT - initcap(split_part(rh.tenantId, '.', 2)) as ulb, - count(*) FILTER (where collectiontype='COUNTER') as offlinetransactions, - count(*) FILTER (where collectiontype='ONLINE') as onlinetransactions, - count(*) as totaltransactions, - sum(case collectiontype when 'COUNTER' then ih.amount else 0 end) as offlinecollection, - sum(case collectiontype when 'ONLINE' then ih.amount else 0 end) as onlinecollection, - sum(ih.amount) as totalcollection - from egcl_receiptheader_v1 as rh - inner join egcl_receiptinstrument_v1 as ri on ri.receiptheader = rh.id - inner join egcl_instrumentheader_v1 as ih on ih.id = ri.instrumentheader - where rh.businessdetails not in ('PT','TL') and rh.status !='Cancelled' and rh.tenantid !='pb.testing' - groupby: GROUP BY rh.tenantid - orderby: ORDER BY rh.tenantId asc - - - reportName: MiscBusinessServiceCollectionTenant - summary: Miscellaneous Business Service Collection - version: 1.0.0 - moduleName: rainmaker-uc - sourceColumns: - - name: service - label: reports.uc.serviceType - type: string - source: uc - total: false - - name: totalreceipts - label: reports.uc.totalReceipts - type: string - source: uc - total: true - - name: tax - label: reports.uc.tax - type: string - source: uc - total: true - - name: cgst - label: reports.uc.cgst - type: string - source: uc - total: true - - name: sgst - label: reports.uc.sgst - type: string - source: uc - total: true - - name: fieldcollection - label: reports.uc.fieldcollection - type: string - source: uc - total: true - - name: securitydeposit - label: reports.uc.securitydeposit - type: string - source: uc - total: true - - name: totalcollection - label: reports.uc.totalCollection - type: string - source: uc - total: true - searchParams: - - name: fromDate - label: reports.uc.fromDate - type: epoch - source: uc - isMandatory: false - searchClause: AND bl.billdate >= $fromDate - - name: toDate - label: reports.uc.toDate - type: epoch - source: uc - isMandatory: false - searchClause: AND bl.billdate <= $toDate - query: | - -- Use CTE to force query plan, compute & use CTE later - SELECT - bl.servicetype as service, - count(distinct rd.billdetailid) as totalreceipts, - SUM(CASE WHEN taxheadcode LIKE '%_CGST' THEN adjustedamount ELSE 0 END) as cgst, - SUM(CASE WHEN taxheadcode LIKE '%_TAX' THEN adjustedamount ELSE 0 END) as tax, - SUM(CASE WHEN taxheadcode LIKE '%_SGST' THEN adjustedamount ELSE 0 END) as sgst, - SUM(CASE WHEN taxheadcode LIKE '%_FIELD_FEE' THEN adjustedamount ELSE 0 END) as fieldcollection, - SUM(CASE WHEN taxheadcode LIKE '%_SEC_DEP' THEN adjustedamount ELSE 0 END) as securitydeposit, - SUM(rd.amount) as totalcollection - FROM egcl_billaccountdetail as rd - INNER JOIN egcl_billdetial as rh on rh.id = rd.billdetailid - INNER JOIN (SELECT distinct bill.id, status,billdate,businessservice,message.message as servicetype from egcl_bill bill INNER JOIN message ON CONCAT('BILLINGSERVICE_BUSINESSSERVICE_',replace(businessservice, '.', '_')) = message.code AND message.locale='en_IN' AND message.module='rainmaker-uc') as bl ON bl.id = rh.billid and status != 'Cancelled' and businessservice not in ('PT','TL') and rd.tenantid=$tenantid - groupby: GROUP BY bl.servicetype - orderby: ORDER BY bl.servicetype - - - reportName: MiscReceiptCBCancelled - summary: Cancelled Receipt Miscellaneous - decryptionPathId: MiscReceiptCBCancelled - version: 1.0.0 - moduleName: rainmaker-uc - additionalConfig: - print: - pdfPageSize: "A3" - sourceColumns: - - name: ulb - label: reports.uc.ulb - type: string - source: uc - total: false - - name: receiptnumber - label: reports.uc.receiptnumber - type: string - source: uc - total: false - - name: receiptdate - label: reports.uc.receiptdate - type: string - source: uc - total: false - - name: servicecategory - label: reports.uc.businessdetails - type: string - source: uc - total: false - - name: tax - label: reports.uc.tax - type: string - source: uc - total: true - - name: fieldcollection - label: reports.uc.fieldcollection - type: string - source: uc - total: true - - name: cgst - label: reports.uc.cgst - type: string - source: uc - total: true - - name: sgst - label: reports.uc.sgst - type: string - source: uc - total: true - - name: securitydeposit - label: reports.uc.securitydeposit - type: string - source: uc - total: true - - name: ddorchequenumber - label: reports.uc.ddorchequenumber - type: string - source: uc - total: false - - name: ddchequedate - label: reports.uc.ddorchequedate - type: string - source: uc - total: false - - name: collectiontype - label: reports.uc.collectiontype - type: string - source: uc - total: false - - name: name - label: reports.uc.collectorname - type: string - source: uc - total: false - - name: totalamount - label: reports.uc.totalamount - type: string - source: uc - total: true - - name: paymentmode - label: reports.uc.paymentmode - type: string - source: uc - total: false - searchParams: - - name: fromDate - label: reports.uc.fromDate - type: epoch - source: uc - isMandatory: false - searchClause: AND pd.receiptdate >= $fromDate - - name: toDate - label: reports.uc.toDate - type: epoch - source: uc - isMandatory: false - searchClause: AND pd.receiptdate <= $toDate - - name: name - label: reports.uc.collectorname - type: singlevaluelist - pattern: http://egov-hrms:8080/egov-hrms/employees/_search?tenantId=$tenantid&roles=UC_EMP|$.Employees[*].user.id|$.Employees[*].user.name - source: uc - wrapper: true - isMandatory: false - searchClause: AND eg_user.id = $name::INTEGER - query: | - WITH receipt_breakup AS ( - SELECT - billdetailid, - SUM(CASE WHEN taxheadcode LIKE '%_CGST' THEN adjustedamount ELSE 0 END) as cgst, - SUM(CASE WHEN taxheadcode LIKE '%_TAX' THEN adjustedamount ELSE 0 END) as tax, - SUM(CASE WHEN taxheadcode LIKE '%_SGST' THEN adjustedamount ELSE 0 END) as sgst, - SUM(CASE WHEN taxheadcode LIKE '%_FIELD_FEE' THEN adjustedamount ELSE 0 END) as fieldcollection, - SUM(CASE WHEN taxheadcode LIKE '%_SEC_DEP' THEN adjustedamount ELSE 0 END) as securitydeposit - FROM egcl_billaccountdetail as rd - INNER JOIN egcl_billdetial as rh on rh.id = rd.billdetailid - INNER JOIN egcl_bill as bill on bill.id = rh.billid - where status ='Cancelled' and businessservice not in ('PT','TL') and rd.tenantid=$tenantid and rd.tenantid != 'pb.testing' - GROUP BY rd.billdetailid) - SELECT initcap(split_part(rh.tenantid,'.', 2)) as ulb,pd.receiptnumber as receiptnumber,To_char((To_timestamp(pd.receiptdate / 1000) at time Zone 'Asia/Kolkata'), 'DD/MM/YYYY') as receiptdate,servicecategory,receipt_breakup.*, amount as totalamount,pay.paymentmode as paymentmode,(case when pay.paymentmode like 'CASH' then '' else transactionnumber end) as transactionorchequenumber,(case when pay.paymentmode like 'CHEQUE' then To_char((To_timestamp(pay.instrumentdate / 1000) at time Zone 'Asia/Kolkata'), 'DD/MM/YYYY') else '' end) as ddchequedate,eg_user.name as name FROM egcl_billdetial AS rh INNER JOIN (SELECT DISTINCT bill.id,status, businessservice,message.message as servicecategory from egcl_bill bill LEFT OUTER JOIN message ON CONCAT('BILLINGSERVICE_BUSINESSSERVICE_',replace(businessservice, '.', '_')) = message.code AND message.locale='en_IN' AND message.module='rainmaker-uc')as bill ON bill.id = rh.billid and status = 'Cancelled' and businessservice not in ('PT','TL')LEFT OUTER JOIN egcl_paymentdetail as pd ON pd.billid = bill.id LEFT OUTER JOIN egcl_payment AS pay ON pay.id = pd.paymentid JOIN eg_user ON pay.createdby::INTEGER=eg_user.id JOIN receipt_breakup ON rh.id = receipt_breakup.billdetailid WHERE rh.tenantid=$tenantid - orderby: ORDER BY pd.receiptdate DESC - - - reportName: MiscReceiptCB - summary: Receipt Register Miscellaneous - decryptionPathId: MiscReceiptCB - version: 1.0.0 - moduleName: rainmaker-uc - # additionalConfig: - # print: - # pdfPageSize: "A3" - sourceColumns: - - name: consumername - label: reports.uc.consumername - type: string - source: uc - total: false - - name: mobilenumber - label: reports.uc.mobilenumber - type: string - source: uc - total: false - - name: receiptdate - label: reports.uc.receiptdate - type: string - source: uc - total: false - - name: receiptnumber - label: reports.uc.receiptnumber - type: string - source: uc - total: false - - name: payername - label: reports.uc.payername - type: string - source: uc - total: false - - name: servicecategory - label: reports.uc.businessdetails - type: string - source: uc - total: false - - name: amount - label: reports.uc.totalamount - type: string - source: uc - total: true - # - name: remarks - # label: reports.uc.remarks - # type: string - # source: uc - # total: false - - name: name - label: reports.uc.collectorname - type: string - source: uc - total: false - searchParams: - - name: fromDate - label: reports.uc.fromDate - type: epoch - source: uc - isMandatory: false - searchClause: AND pd.receiptdate >= $fromDate - - name: toDate - label: reports.uc.toDate - type: epoch - source: uc - isMandatory: false - searchClause: AND pd.receiptdate <= $toDate - - name: name - label: reports.uc.collectorname - type: singlevaluelist - pattern: http://egov-hrms:8080/egov-hrms/employees/_search?tenantId=$tenantid&roles=UC_EMP|$.Employees[*].user.id|$.Employees[*].user.name - source: uc - wrapper: true - isMandatory: false - searchClause: AND eg_user.id = $name::INTEGER - query: | - -- Use CTE to force query plan, compute & use CTE later - SELECT pay.payername as payername,consumername,pay.mobilenumber as mobilenumber,To_char((To_timestamp(pd.receiptdate / 1000) at time Zone 'Asia/Kolkata'), 'DD/MM/YYYY') as receiptdate,bill.servicecategory,rh.amount as amount,eg_user.name as name,pd.receiptnumber as receiptnumber FROM egcl_billdetial AS rh INNER JOIN (SELECT DISTINCT bill.id,status,consumercode, businessservice,message.message as servicecategory from egcl_bill bill LEFT OUTER JOIN message ON CONCAT('BILLINGSERVICE_BUSINESSSERVICE_',replace(businessservice, '.', '_')) = message.code AND message.locale='en_IN' AND message.module='rainmaker-uc')as bill ON bill.id = rh.billid and status != 'Cancelled' and businessservice not in ('PT','TL') LEFT OUTER JOIN egcl_paymentdetail as pd ON pd.billid = bill.id LEFT OUTER JOIN egcl_payment AS pay ON pay.id = pd.paymentid JOIN (Select challanno as challanno,accountid,eg_user.name as consumername,additionaldetail from eg_echallan challan LEFT OUTER JOIN eg_user ON challan.accountid=eg_user.uuid) as challan on challan.challanno = bill.consumercode JOIN eg_user ON pay.createdby::INTEGER=eg_user.id WHERE rh.tenantid=$tenantid - orderby: ORDER BY pd.receiptdate DESC - - - reportName: ChallanStatusRegistry - summary: Challan Status Register - decryptionPathId: ChallanStatusRegistry - version: 1.0.0 - moduleName: rainmaker-uc - sourceColumns: - - name: challanno - label: reports.uc.challanno - type: string - source: uc - total: false - - name: consumername - label: reports.uc.consumername - type: string - source: uc - total: false - - name: servicecategory - label: reports.uc.businessdetails - type: string - source: uc - total: false - - name: amount - label: reports.uc.totalamount - type: string - source: uc - total: true - - name: applicationstatus - label: reports.uc.appstatus - type: string - source: uc - total: false - - name: challandate - label: reports.uc.billdate - type: string - source: uc - total: false - searchParams: - - name: fromDate - label: reports.uc.fromDate - type: epoch - source: uc - isMandatory: false - searchClause: AND challan.createdtime >= $fromDate - - name: toDate - label: reports.uc.toDate - type: epoch - source: uc - isMandatory: false - searchClause: AND challan.createdtime <= $toDate - - name: businessservice - label: reports.uc.businessservice - type: singlevaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=BillingService&masterName=BusinessService&tenantId=$tenantid&filter=%5B?(@.type=='Adhoc')%5D|$.MdmsRes.BillingService.BusinessService[*].code|$.MdmsRes.BillingService.BusinessService[*].businessService - source: uc - wrapper: true - isMandatory: false - searchClause: AND challan.businessservice = $businessservice - - name: status - label: reports.uc.appstatus - type: singlevaluelist - pattern: list://ACTIVE:Unpaid,PAID:Paid,CANCELLED:Cancelled - source: uc - wrapper: true - isMandatory: false - searchClause: AND applicationstatus = $status - query: | - -- Use CTE to force query plan, compute & use CTE later - Select DISTINCT challanno as challanno,accountid,eg_user.name as consumername,businessservice,message.message as servicecategory,applicationstatus,ddetail.amount as amount,To_char((To_timestamp(challan.createdtime / 1000) at time Zone 'Asia/Kolkata'), 'DD/MM/YYYY') as challandate from eg_echallan AS challan LEFT OUTER JOIN message ON CONCAT('BILLINGSERVICE_BUSINESSSERVICE_',replace(businessservice, '.', '_')) = message.code AND message.locale='en_IN' AND message.module='rainmaker-uc' INNER JOIN (Select id,consumercode from egbs_demand_v1 demand) as demand on demand.consumercode = challan.challanno INNER JOIN (Select DISTINCT demandid,SUM(taxamount)as amount from egbs_demanddetail_v1 ddetail group by demandid) as ddetail on ddetail.demandid = demand.id LEFT OUTER JOIN eg_user ON challan.accountid=eg_user.uuid WHERE challan.tenantid like $tenantid and challan.applicationstatus in ('ACTIVE','CANCELLED','PAID') \ No newline at end of file diff --git a/reports/config/works-reports.yml b/reports/config/works-reports.yml deleted file mode 100644 index 43aa78d0..00000000 --- a/reports/config/works-reports.yml +++ /dev/null @@ -1,565 +0,0 @@ ---- -ReportDefinitions: -- reportName: WorkOrderRegister - summary: Work Order Register - version: 1.0.0 - moduleName: works - viewPath: workOrderRegister - externalService: - - entity: $.MdmsRes.egf-master.FinancialYear - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=egf-master&masterName=FinancialYear&tenantId=$tenantid&filter=%5B%3F%28%40.active%3D%3Dtrue%29%5D - keyOrder: finYearRange,startingDate,endingDate,tenantId - tableName: tbl_financialyear - stateData: true - sourceColumns: - - name: workorderdate - label: reports.works.workorderdate - type: epoch - source: works - - name: nameofwork - label: reports.works.nameofwork - type: string - source: works - - name: workordernumber - label: reports.works.workordernumber - type: number - source: works - - name: referencenoofwip - label: reports.works.referencenoofwip - type: string - source: works - - name: estimateamount - label: reports.works.estimateamount - type: number - source: works - - name: tenderamount - label: reports.works.tenderamount - type: number - source: works - - name: contractorname - label: reports.works.contractorname - type: string - source: works - - name: approvedattherateof - label: reports.works.approvedattherateof - type: number - source: works - - name: totalvalueofthework - label: reports.works.totalvalueofthework - type: number - source: works - - name: emdamount - label: reports.works.emdamount - type: number - source: works - - name: sanctionedfinyear - label: reports.works.sanctionedfinyear - type: string - source: works - - name: securitydepositamount - label: reports.works.securitydepositamount - type: number - source: works - - name: expectedcompletiondate - label: reports.works.expectedcompletiondate - type: epoch - source: works - searchParams: - - name: fromDate - label: reports.works.wofromDate - type: date - source: works - searchClause : AND wo.workorderdate>=$fromDate - isMandatory: false - - name: toDate - label: reports.works.wotoDate - type: date - source: works - searchClause : AND wo.workorderdate<=$toDate - isMandatory: false - - name: contractorName - label: reports.works.contractorname - type: string - source: works - searchClause : AND contractor.name=$contractorName - isMandatory: false - - name: amountFrom - label: reports.works.woamountfrom - type: number - source: works - searchClause : AND loae.estimateloaamount>=$amountFrom - isMandatory: false - - name: amountUpto - label: reports.works.woamountupto - type: number - source: works - searchClause : AND loae.estimateloaamount<=$amountUpto - isMandatory: false - - query: select wo.workorderdate, de.nameofwork, wo.workordernumber, de.projectcode as referencenoofwip, de.estimatevalue as estimateamount, de.workvalue as tenderamount, contractor.name as contractorname, loa.tenderfinalizedpercentage as approvedattherateof, loa.loaamount as totalvalueofthework, loa.emdamountdeposited as emdamount, (select sum(amount) from egw_securitydeposit where letterofacceptance=loa.id) as securitydepositamount, (select finyear.finYearRange from (values tbl_financialyear) as finyear (finYearRange,startingDate,endingDate,tenantId) where wo.createdtime between startingDate::bigint and endingDate::bigint) as sanctionedfinyear, ((select coalesce(statusdate, innerwo.workorderdate) from egw_workorder innerwo left join egw_offlinestatus fs on fs.objecttype='WorkOrderOffline' and fs.status='WORK_COMMENCED' and fs.objectnumber=innerwo.workordernumber where innerwo.workordernumber=wo.workordernumber) + loa.contractperiod*24*12*60*1000) as expectedcompletiondate from egw_workorder wo, egw_letterofacceptance loa, egw_letterofacceptanceestimate loae, egw_detailedestimate de, egw_contractor contractor where wo.letterofacceptance=loa.id and wo.letterofacceptance=loae.letterofacceptance and loae.letterofacceptance=loa.id and loae.detailedestimate=de.estimatenumber and contractor.code=loa.contractor - -- reportName: WorkStatusReport - summary: Work Status Report - version: 1.0.0 - moduleName: works - viewPath: WorkStatusReport - sourceColumns: - - name: nameofwork - label: reports.works.nameofwork - type: epoch - source: works - - name: fund - label: reports.works.fund - type: string - source: works - - name: typeofwork - label: reports.works.typeofwork - type: string - source: works - - name: subtypeofwork - label: reports.works.subtypeofwork - type: string - source: works - - name: estimatevalue - label: reports.works.estimatevalue - type: number - source: works - - name: agencyfirmname - label: reports.works.agencyfirmname - type: string - source: works - - name: workorderamount - label: reports.works.workorderamount - type: number - source: works - - name: billsubmittedtilldate - label: reports.works.billsubmittedtilldate - type: number - source: works - - name: worksstatuspercentage - label: reports.works.worksstatuspercentage - type: number - source: works - - name: amountpaidtilldate - label: reports.works.amountpaidtilldate - type: number - source: works - searchParams: - - name: fund - label: reports.works.fund - isMandatory: false - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=egf-master&masterName=Fund&tenantId=$tenantid&filter=%5B%3F%28%40.active%3D%3Dtrue%29%5D - source: works - stateData: true - wrapper: true - searchClause : AND de.fund in ($fund) - - name: typeofwork - label: reports.works.typeofwork - isMandatory: false - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=TypeOfWork&tenantId=$tenantid&filter=%5B%3F%28%40.active%3D%3Dtrue%29%5D - source: works - stateData: true - wrapper: true - searchClause : AND de.workstype in ($typeofwork) - - name: subtypeofwork - label: reports.works.subtypeofwork - isMandatory: false - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=TypeOfWork&tenantId=$tenantid&filter%3D%5B%3F%28%20%40.parent%3D%3D%7Btypeofwork%7D%29%5D%7C%24.MdmsRes.works.TypeOfWork.%2A.code%7C%24.MdmsRes..works.TypeOfWork.%2A.name - source: works - stateData: true - wrapper: true - searchClause : AND de.workssubtype in ($subtypeofwork) - - name: department - label: reports.works.department - isMandatory: false - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=common-masters&masterName=Department&tenantId=$tenantid&filter=%5B%3F%28%40.active%3D%3Dtrue%29%5D - source: works - stateData: true - wrapper: true - searchClause : AND de.department in ($department) - - name: scheme - label: reports.works.scheme - isMandatory: false - type: multivaluelist - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=Works&masterName=Scheme&tenantId=$tenantid&filter=%5B%3F%28%40.active%3D%3Dtrue%29%5D - source: works - stateData: true - wrapper: true - searchClause : AND de.scheme in ($scheme) - - name: status - label: reports.works.status - isMandatory: false - type: multivaluelist - pattern: 'list://Documentation stage:Documentation stage,Tendering Stage:Tendering Stage,Work In Progress Stage:Work In Progress Stage,Completed:Completed' - source: works - stateData: true - wrapper: true - searchClause : AND de.status in ('Approved') - - query: select de.nameofwork AS nameofwork, de.fund as fund, de.workstype AS typeofwork, de.workssubtype AS subtypeofwork, de.estimatevalue As estimatevalue, contractor.name as firmname, loa.loaamount AS workorderamount, cb.contractorbillamount as billsubmittedtilldate, tm.totalpercentage AS workstatuspercentage, (select COALESCE(sum(br.billamount),0) from egf_billregister br where br.billnumber=cb.billnumber) as amountpaidtilldate from egw_detailedestimate de, egw_letterofacceptanceestimate loae,egw_contractor contractor, egw_milestone m, egw_trackmilestone tm, egw_letterofacceptance loa, egw_contractorbill cb where loa.id=loae.letterofacceptance and loae.detailedestimate=de.id and contractor.code = loa.contractor and m.letterofacceptanceestimate = loae.id and m.id=tm.milestone and loae.id=cb.letterofacceptanceestimate; - -- reportName: WorkInProgressRegister - summary: Work In Progress Register - version: 1.0.0 - moduleName: works - externalService: - - entity: $.MdmsRes.works.TypeOfWork - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=TypeOfWork&tenantId=$tenantid&filter=%5B%3F%28%40.parent%3D%3Dnull%20%26%26%20%40.active%3D%3D%27true%27%29%5D - keyOrder: name,code,description,tenantId - tableName: tbl_typeofwork - stateData: true - - entity: $.MdmsRes.works.TypeOfWork - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=TypeOfWork&tenantId=$tenantid&filter=%5B%3F%28%40.parent%21%3Dnull%20%26%26%20%40.active%3D%3D%27true%27%29%5D - keyOrder: name,code,description,tenantId - tableName: tbl_subtypeofwork - stateData: true - - entity: $.MdmsRes.works.WorksStatus - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=WorksStatus&tenantId=$tenantid&filter=%5B%3F%28%40.moduleType%3D%3D%27DetailedEstimate%27%29%5D - keyOrder: code,description,tenantId - tableName: tbl_workstatus - stateData: true - sourceColumns: - - name: wincode - label: reports.works.wincode - type: string - source: works - linkedReport: - reportName: WorkInProgressDetails - linkedColumn: _parent?reportName={reportName}&wcode={wincode} - - name: nameofwork - label: reports.works.nameofwork - type: string - source: works - - name: subtypeofwork - label: reports.works.subtypeofwork - type: string - source: works - - name: status - label: reports.works.status - type: string - source: works - searchParams: - - name: typeOfWork - label: reports.works.typeofwork - type: singlevaluelist - source: works - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=TypeOfWork&tenantId=$tenantid&filter=%5B%3F%28%40.parent%3D%3Dnull%20%26%26%20%40.active%3D%3D%27true%27%29%5D|$.MdmsRes.works.TypeOfWork.*.code|$.MdmsRes.works.TypeOfWork.*.name - wrapper: true - stateData: true - searchClause : AND de.workstype=$typeOfWork - isMandatory: false - - name: subTypeOfWork - label: reports.works.subtypeofwork - type: singlevaluelist - source: works - pattern: /egov-mdms-service/v1/_get?moduleName=works&masterName=TypeOfWork&tenantId=$tenantid&filter=%5B%3F(%40.parent%3D%3D%27{typeOfWork}%27%20%26%26%20%40.active%3D%3D%27true%27)%5D|$.MdmsRes.works.TypeOfWork.*.code|$.MdmsRes.works.TypeOfWork.*.name - wrapper: true - stateData: true - searchClause : AND de.workssubtype=$subTypeOfWork - isMandatory: false - - name: nameOfWork - label: reports.works.nameofwork - type: string - source: works - searchClause : AND de.nameofwork=$nameOfWork - isMandatory: false - - name: wincode - label: reports.works.wincode - type: string - source: works - searchClause : AND de.projectcode=$wincode - isMandatory: false - - name: status - label: reports.works.status - type: singlevaluelist - source: works - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=WorksStatus&tenantId=$tenantid&filter=%5B%3F%28%40.moduleType%3D%3D%27DetailedEstimate%27%29%5D|$..code|$..description - wrapper: true - stateData: true - searchClause : AND de.status=$status - isMandatory: false - - name: statusason - label: reports.works.statusason - type: string - source: works - searchClause : AND de.status=$statusason - isMandatory: false - - query: select de.projectcode as wincode, de.nameofwork, tw.name||'/'||stw.name as subtypeofwork, workstatus.description as status from egw_detailedestimate de, (values tbl_workstatus) as workstatus (code,description,tenantId), (values tbl_typeofwork) as tw (name,code,description,tenantId), (values tbl_subtypeofwork) as stw (name,code,description,tenantId) where de.status='CREATED' and workstatus.code=de.status and tw.code=de.workstype and stw.code=de.workssubtype - -- reportName: WorkInProgressDetails - summary: Work In Progress Details - version: 1.0.0 - moduleName: works - externalService: - - entity: $.MdmsRes.egf-master.FinancialYear - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=egf-master&masterName=FinancialYear&tenantId=$tenantid&filter=%5B%3F%28%40.active%3D%3Dtrue%29%5D - keyOrder: finYearRange,startingDate,endingDate,tenantId - tableName: tbl_financialyear - stateData: true - - entity: $.MdmsRes.works.Scheme - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=Scheme&tenantId=$tenantid&filter=%5B%3F%28%40.parent%21%3Dnull%29%5D - keyOrder: name,code - tableName: tbl_scheme - stateData: true - sourceColumns: - - name: nameofwork - label: reports.works.nameofwork - type: string - source: works - - name: distributedforfinyear - label: reports.works.distributedforfinyear - type: string - source: works - - name: accountcode - label: reports.works.accountcode - type: string - source: works - - name: estimatevalue - label: reports.works.estimatevalue - type: number - source: works - - name: location - label: reports.works.location - type: string - source: works - - name: expectedcompletiondate - label: reports.works.expectedcompletiondate - type: epoch - source: works - - name: schemename - label: reports.works.schemename - type: string - source: works - - name: actualcompletiondate - label: reports.works.actualcompletiondate - type: epoch - source: works - - name: resolutionnumberanddate - label: reports.works.resolutionnumberanddate - type: string - source: works - - name: capitalisationdate - label: reports.works.capitalisationdate - type: epoch - source: works - - name: workordernumber - label: reports.works.workordernumber - type: number - source: works - - name: wincode - label: reports.works.wincode - type: number - source: works - - name: approvedbudget - label: reports.works.approvedbudget - type: string - source: works - - name: assetidentificationnumber - label: reports.works.assetidentificationnumber - type: string - source: works - - name: securitydepositamount - label: reports.works.securitydepositamount - type: string - source: works - - name: totalexpensesincurredsofar - label: reports.works.totalexpensesincurredsofar - type: string - source: works - - name: paymentdate - label: reports.works.paymentdate - type: epoch - source: works - - name: amount - label: reports.works.amount - type: number - source: works - - name: deductionamount - label: reports.works.deductionamount - type: number - source: works - - name: netpayable - label: reports.works.netpayable - type: number - source: works - - name: vouchernumber - label: reports.works.vouchernumber - type: string - source: works - - name: securitydepositrefunddate - label: reports.works.securitydepositrefunddate - type: epoch - source: works - - name: securitydepositrefundamount - label: reports.works.securitydepositrefundamount - type: number - source: works - - name: outstandingsecuritydepositamount - label: reports.works.outstandingsecuritydepositamount - type: number - source: works - - name: remarks - label: reports.works.remarks - type: string - source: works - - name: headofdepartment - label: reports.works.headofdepartment - type: string - source: works - searchParams: - - name: wcode - label: reports.works.wincode - type: string - source: works - searchClause : AND de.projectcode=$wcode - isMandatory: false - - query: select de.nameofwork, (select finyear.finYearRange from (values tbl_financialyear) as finyear (finYearRange,startingDate,endingDate,tenantId) where de.estimatedate between startingDate::bigint and endingDate::bigint) as distributedforfinyear, de.budgetgroup as accountcode, de.estimatevalue, de.location, ((select coalesce(statusdate, innerwo.workorderdate) from egw_workorder innerwo left join egw_offlinestatus fs on fs.objecttype='WorkOrderOffline' and fs.status='WORK_COMMENCED' and fs.objectnumber=innerwo.workordernumber where innerwo.workordernumber=wo.workordernumber) + loa.contractperiod*24*12*60*1000) as expectedcompletiondate, (select scheme.name from (values tbl_scheme) as scheme (name, code) where scheme.code=de.scheme) as schemename, (select cb.workcompletiondate from egw_contractorbill cb, egf_billregister bg where bg.billnumber=cb.billnumber and bg.billtype='contractorbill' and bg.billsubtype='Final' and cb.letterofacceptanceestimate=loae.id) as actualcompletiondate, de.councilresolutionnumber||'/'||de.councilresolutiondate as resolutionnumberanddate, (select bg.billdate from egw_contractorbill cb, egf_billregister bg where bg.billnumber=cb.billnumber and bg.billtype='contractorbill' and bg.billsubtype='Final' and cb.letterofacceptanceestimate=loae.id) as capitalisationdate, wo.workordernumber, de.projectcode as wincode, de.estimatevalue as approvedbudget, '' as assetidentificationnumber, (select sum(amount) from egw_securitydeposit where letterofacceptance=loa.id) as securitydepositamount, (select sum(bg.billamount) from egw_contractorbill cb, egf_billregister bg where bg.billnumber=cb.billnumber and bg.billtype='contractorbill' and cb.deleted=false and cb.letterofacceptanceestimate=loae.id) as totalexpensesincurredsofar, br.billdate as paymentdate, br.billamount as amount, br.billnumber as vouchernumber from egw_detailedestimate de left join egw_letterofacceptanceestimate loae on loae.detailedestimate=de.estimatenumber left join egw_letterofacceptance loa on loae.letterofacceptance=loa.id left join egw_workorder wo on wo.letterofacceptance=loa.id left join egw_contractorbill cb on cb.letterofacceptanceestimate=loae.id left join egf_billregister br on cb.billnumber=br.billnumber and br.billtype='contractorbill'where wo.letterofacceptance=loa.id and loae.letterofacceptance= wo.letterofacceptance and loae.letterofacceptance=loa.id and loae.detailedestimate=de.estimatenumber - -- reportName: ProjectStatusReport - summary: Project Status Report - version: 1.0.0 - moduleName: works - externalService: - - entity: $.MdmsRes.tenant.tenants[*].city - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_search - keyOrder: name,districtName, regionName - tableName: tbl_tenant - postObject: $RequestInfo,"MdmsCriteria":{"tenantId":"default","moduleDetails":[{"moduleName":"tenant","masterDetails":[{"name":"tenants","filter":"[?(@.code=='$tenantid')]"}]}]} - stateData: true - - entity: $.MdmsRes.works.Scheme - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=Scheme&tenantId=$tenantid&filter=%5B%3F%28%40.parent%21%3Dnull%29%5D - keyOrder: name,code - tableName: tbl_scheme - stateData: true - - entity: $.MdmsRes.works.TypeOfWork - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=TypeOfWork&tenantId=$tenantid&filter=%5B%3F%28%40.parent%3D%3Dnull%20%26%26%20%40.active%3D%3D%27true%27%29%5D - keyOrder: name,code,description,tenantId - tableName: tbl_typeofwork - stateData: true - - entity: $.MdmsRes.works.TypeOfWork - apiURL: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=TypeOfWork&tenantId=$tenantid&filter=%5B%3F%28%40.parent%21%3Dnull%20%26%26%20%40.active%3D%3D%27true%27%29%5D - keyOrder: name,code,description,tenantId - tableName: tbl_subtypeofwork - stateData: true - sourceColumns: - - name: divisionname - label: reports.works.division - type: string - source: works - - name: districtname - label: reports.works.district - type: string - source: works - - name: ulbname - label: reports.works.ulbname - type: string - source: works - - name: typeofwork - label: reports.works.typeofwork - type: string - source: works - - name: subtypeofwork - label: reports.works.subtypeofwork - type: string - source: works - - name: schemename - label: reports.works.schemename - type: string - source: works - - name: estimatenumber - label: reports.works.estimatenumber - type: string - source: works - - name: nameofwork - label: reports.works.nameofwork - type: string - source: works - - name: estimateamount - label: reports.works.estimateamount - type: number - source: works - - name: sanctionedamount - label: reports.works.sanctionedamount - type: number - source: works - - name: workstatus - label: reports.works.status - type: string - source: works - - name: billsreceivedtill - label: reports.works.billsreceivedtill - type: string - source: works - - name: paymentdonetill - label: reports.works.paymentdonetill - type: number - source: works - searchParams: - - name: division - label: reports.works.division - type: singlevaluelist - source: works - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=tenant&masterName=tenants&tenantId=$tenantid|$.MdmsRes.tenant.tenants.*.city.regionName|$.MdmsRes.tenant.tenants.*.city.regionName - wrapper: true - stateData: true - searchClause : AND de.workstype=$typeOfWork - isMandatory: false - - name: district - label: reports.works.district - type: singlevaluelist - isMandatory: false - type: string - source: works - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=tenant&masterName=tenants&tenantId=$tenantid|$.MdmsRes.tenant.tenants.*.city.districtName|$.MdmsRes.tenant.tenants.*.city.districtName - wrapper: true - stateData: true - searchClause : AND de.workstype in ($typeofwork) - - name: ulb - label: reports.works.ulbname - isMandatory: false - type: multivaluelist - source: works - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=tenant&masterName=tenants&tenantId=$tenantid|$.MdmsRes.tenant.tenants.*.code|$.MdmsRes.tenant.tenants.*.name - wrapper: true - stateData: true - searchClause : AND de.workssubtype in ($subtypeofwork) - - name: status - label: reports.works.status - type: singlevaluelist - source: works - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=WorksStatus&tenantId=$tenantid&filter=%5B%3F%28%40.moduleType%3D%3D%27DetailedEstimate%27%29%5D|$..code|$..description - wrapper: true - stateData: true - searchClause : AND de.status=$status - isMandatory: false - - name: statusason - label: reports.works.statusason - type: string - source: works - searchClause : AND de.status=$statusason - isMandatory: false - - name: typeOfWork - label: reports.works.typeofwork - type: singlevaluelist - source: works - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=TypeOfWork&tenantId=$tenantid&filter=%5B%3F%28%40.parent%3D%3Dnull%20%26%26%20%40.active%3D%3D%27true%27%29%5D|$..code|$..name - wrapper: true - stateData: true - searchClause : AND de.workstype=$typeOfWork - isMandatory: false - - name: subTypeOfWork - label: reports.works.subtypeofwork - type: singlevaluelist - source: works - pattern: http://egov-mdms-service:8080/egov-mdms-service/v1/_get?moduleName=works&masterName=TypeOfWork&tenantId=$tenantid&filter=%5B%3F%28%40.parent%3D%3D%7BtypeOfWork%7D%20%26%26%20%40.active%3D%3D%27true%27%29%5D|$..code|$..name - wrapper: true - stateData: true - searchClause : AND de.workssubtype=$subTypeOfWork - isMandatory: false - query: select (select city.name from (values tbl_tenant) as city (name, districtName, regionName)) as divisionname, (select city.districtName from (values tbl_tenant) as city (name, districtName, regionName)) as districtname, (select name from (values tbl_tenant) as city (name, districtName, regionName)) as ulbname, (select tw.name from (values tbl_typeofwork) as tw (name,code,description,tenantId) where tw.code=de.workstype) as typeofwork, (select stw.name from (values tbl_subtypeofwork) as stw (name,code,description,tenantId) where stw.code=de.workssubtype) as subtypeofwork, (select scheme.name from (values tbl_scheme) as scheme (name, code) where scheme.code=de.scheme) as schemename, de.estimatenumber, de.nameofwork, de.estimatevalue as estimateamount, loa.loaamount as sanctionedamount, (select sum(bg.billamount) from egw_contractorbill cb, egf_billregister bg where bg.billnumber=cb.billnumber and bg.billtype='contractorbill' and cb.deleted=false and cb.letterofacceptanceestimate=loae.id) as billsreceivedtill from egw_letterofacceptance loa, egw_detailedestimate de, egw_letterofacceptanceestimate loae left join egw_contractorbill cb on cb.letterofacceptanceestimate=loae.id left join egf_billregister br on cb.billnumber=br.billnumber and br.billtype='contractorbill' where loae.letterofacceptance=loa.id and loae.detailedestimate=de.estimatenumber diff --git a/reports/reportFileLocationsv1.txt b/reports/reportFileLocationsv1.txt index c21432f4..987d77bf 100644 --- a/reports/reportFileLocationsv1.txt +++ b/reports/reportFileLocationsv1.txt @@ -1,25 +1,2 @@ pgr=file:///work-dir/configs/reports/config/pgr-reports.yml -citizen=file:///work-dir/configs/reports/config/citizen-reports.yml -asset=file:///work-dir/configs/reports/config/asset-reports.yml -lcms=file:///work-dir/configs/reports/config/lcms-reports.yml -inventory=file:///work-dir/configs/reports/config/inventoryReport.yml -common=file:///work-dir/configs/reports/config/common-reports.yml -swm=file:///work-dir/configs/reports/config/swm-reports.yml -works=file:///work-dir/configs/reports/config/works-reports.yml -rainmaker-pgr=file:///work-dir/configs/reports/config/rainmaker-pgr-reports.yml -rainmaker-pt=file:///work-dir/configs/reports/config/rainmaker-pt-reports.yml -finance=file:///work-dir/configs/reports/config/finance-reports.yml -rainmaker-tl=file:///work-dir/configs/reports/config/rainmaker-tl-reports.yml -rainmaker-noc=file:///work-dir/configs/reports/config/rainmaker-noc-reports.yml -rainmaker-common=file:///work-dir/configs/reports/config/rainmaker-common-reports.yml -epass=file:///work-dir/configs/reports/config/e-pass-reports.yml -rainmaker-nocsrv=file:///work-dir/configs/reports/config/noc-services-reports.yml -hrms=file:///work-dir/configs/reports/config/employee-report.yml -rainmaker-uc=file:///work-dir/configs/reports/config/uc-reports.yml -pt-reports=file:///work-dir/configs/reports/config/pt-reports.yml -mcollect=file:///work-dir/configs/reports/config/mcollect-reports.yml -fsm=file:///work-dir/configs/reports/config/fsm-reports.yml -rainmaker-bnd=file:///work-dir/configs/reports/config/birthcount-reports.yml -rainmaker-wns=file:///work-dir/configs/reports/config/rainmaker-wns-reports.yml -rainmaker-obps=file:///work-dir/configs/reports/config/rainmaker-obps-reports.yml privacy=file:///work-dir/configs/reports/config/privacy-audit-reports.yml \ No newline at end of file