Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/adp-api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform
12 changes: 12 additions & 0 deletions components/adp-api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[project]
name = "processor-web-ui"
version = "0.0.1.dev"
dependencies = [
"fastapi",
"uvicorn",
"fireo",
"google-api-core",
"google-cloud-storage",
"google-cloud-logging",
"google-cloud-bigquery",
]
660 changes: 660 additions & 0 deletions components/adp-api/requirements.txt

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions components/adp-api/src/common/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

94 changes: 94 additions & 0 deletions components/adp-api/src/common/autoapproval_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
"""
Copyright 2022 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

AUTO_APPROVAL_MAPPING = {
"driver_license": {
"Accept1": {
"Validation_Score": 0.4,
"Matching_Score": 0.8,
"Extraction_Score": 0.3
},
"Accept2": {
"Validation_Score": 0.6,
"Matching_Score": 0.5,
"Extraction_Score": 0.4
},
"Reject": {
"Validation_Score": 0.2,
"Matching_Score": 0.2,
"Extraction_Score": 0.2
}
},
"utility_bill": {
"Accept1": {
"Validation_Score": 0.2,
"Matching_Score": 0.4,
"Extraction_Score": 0.6
},
"Accept2": {
"Validation_Score": 0.5,
"Matching_Score": 0.5,
"Extraction_Score": 0.4
},
"Reject": {
"Validation_Score": 0.1,
"Matching_Score": 0.2,
"Extraction_Score": 0.3
}
},
"pay_stub": {
"Accept1": {
"Validation_Score": 0.3,
"Matching_Score": 0.5,
"Extraction_Score": 0.5
},
"Accept2": {
"Validation_Score": 0.5,
"Matching_Score": 0.4,
"Extraction_Score": 0.7
},
"Reject": {
"Validation_Score": 0.1,
"Matching_Score": 0.1,
"Extraction_Score": 0.1
}
},
"unemployment_form": {
"Accept1": {
"Extraction_Score": 0.8
},
"Reject": {
"Extraction_Score": 0.5
}
},
"claims_form": {
"Accept1": {
"Validation_Score": 0.4,
"Matching_Score": 0.8,
"Extraction_Score": 0.8
},
"Accept2": {
"Validation_Score": 0.6,
"Matching_Score": 0.5,
"Extraction_Score": 0.8
},
"Reject": {
"Validation_Score": 0.2,
"Matching_Score": 0.2,
"Extraction_Score": 0.2
}
}
}
Loading
Loading