diff --git a/flows.json b/flows.json index b3e42d7..bc80370 100644 --- a/flows.json +++ b/flows.json @@ -9,6 +9,7 @@ "data": { "label": "Request", "request_schema": { + "$schema": "http://json-schema.org/draft-07/schema", "properties": { "user_age": { "type": [ @@ -731,6 +732,8 @@ "data": { "label": "+", "nodeConfig": { + "blockName": "etd-v1-processing", + "commitId": "8e1abcf93ed9c5595bf68de440b97c4ba529aa8c", "activityConfig": { "retryPolicy": { "maximumAttempts": 1, @@ -752,8 +755,6 @@ "heartbeatEnabled": false } }, - "blockName": "etd-v1-processing", - "commitId": "8c887e765b31fd7773e5761fd0862b6d2a62db0f", "repo_url": "http://centurion-version-control.default.svc.cluster.local:3000/Centurion/blocks-transformer.git", "schema": { "$schema": "http://json-schema.org/draft-07/schema#", @@ -1004,7 +1005,9 @@ "y": 300 }, "width": 260, - "height": 79 + "height": 79, + "selected": false, + "dragging": false }, { "id": "m57iv5lvqmrbug8f4aa", @@ -1069,9 +1072,7 @@ "y": 450 }, "width": 260, - "height": 79, - "selected": false, - "dragging": false + "height": 79 } ], "edges": [ diff --git a/request_schema.json b/request_schema.json index 0967ef4..6fa085e 100644 --- a/request_schema.json +++ b/request_schema.json @@ -1 +1,230 @@ -{} +{ + "$schema": "http://json-schema.org/draft-07/schema", + "properties": { + "user_age": { + "type": [ + "integer", + "null" + ], + "description": "Age of the user at the contract date, based on birthdate and contract date", + "required": [] + }, + "persona_entity_confidence_score": { + "type": [ + "number", + "null" + ], + "description": "Based on confidence reasons assign a score between 0 and 100", + "required": [] + }, + "persona_selfie_similarity_score_right": { + "type": [ + "number", + "null" + ], + "description": "Similarity score from the right side selfie", + "required": [] + }, + "persona_selfie_similarity_score_left": { + "type": [ + "number", + "null" + ], + "description": "Similarity score from the left side selfie", + "required": [] + }, + "persona_hesitation_percentage": { + "type": [ + "number", + "null" + ], + "description": "Percentage of time in the flow where the customer did not enter inputs", + "required": [] + }, + "persona_hesitation_count": { + "type": [ + "number", + "null" + ], + "description": "Persona hesitation count", + "required": [] + }, + "device_id_age_max": { + "type": [ + "integer", + "null" + ], + "description": "This calculates the maximum device age for a user and loan, similar to min and avg logic but for the max value.", + "required": [] + }, + "selfie_consistency_score_avg": { + "type": [ + "number", + "null" + ], + "description": "Average selfie consistency score for the user's persona activity", + "required": [] + }, + "device_consistency": { + "type": [ + "integer", + "null" + ], + "description": "Number of distinct devices associated with a user and loan", + "required": [] + }, + "selfie_consistency_score": { + "type": [ + "number", + "null" + ], + "description": "Average similarity score between left and right selfie", + "required": [] + }, + "global_fs_ls": { + "type": [ + "integer", + "null" + ], + "description": "Days between the first and last global appearance of the device", + "required": [] + }, + "inquiry_frequency": { + "type": [ + "integer", + "null" + ], + "description": "Number of inquiries made by the user regarding the loan", + "required": [] + }, + "confidence_score_min": { + "type": [ + "number", + "null" + ], + "description": "The minimum recorded confidence score for the user and loan during the timeframe.", + "required": [] + }, + "contract_date_fs_sub": { + "type": [ + "integer", + "null" + ], + "description": "Days between the first subscription appearance and contract date", + "required": [] + }, + "browser_os": { + "type": [ + "string", + "null" + ], + "description": "Browser OS", + "required": [] + }, + "user_city_ip_match": { + "type": [ + "integer", + "null" + ], + "description": "Checks if the user's city matches the IP city", + "required": [] + }, + "device_id_age_avg": { + "type": [ + "number", + "null" + ], + "description": "This calculates the rolling average of device_id_age for a user and loan. If no previous rows, the current value is returned.", + "required": [] + }, + "persona_distraction_events": { + "type": [ + "number", + "null" + ], + "description": "Persona distraction events", + "required": [] + }, + "sub_fs_ls": { + "type": [ + "integer", + "null" + ], + "description": "Days between the first and last subscription activity", + "required": [] + }, + "device_id_age_min": { + "type": [ + "integer", + "null" + ], + "description": "This calculates the minimum device age for a user and loan, falling back to the current device age if no prior values exist.", + "required": [] + }, + "confidence_score_max": { + "type": [ + "number", + "null" + ], + "description": "The maximum confidence score recorded for the user and loan combination.", + "required": [] + }, + "persona_phone_risk_score": { + "type": [ + "number", + "null" + ], + "description": "Risk associated with the phone number. The risk score ranges from 0 to 100. The higher the risk score, the higher the risk level.", + "required": [] + }, + "ip_address_risk_level": { + "type": [ + "string", + "null" + ], + "description": "Checks if the IP country code matches the persona country code", + "required": [] + }, + "login_frequency": { + "type": [ + "number", + "null" + ], + "description": "This counts the number of times the user logs in based on the inquiry_updated_at timestamp, providing insights into the user's login behavior throughout the loan process.", + "required": [] + }, + "suspect_score": { + "type": [ + "integer", + "null" + ], + "description": "Suspect score", + "required": [] + }, + "confidence_score": { + "type": [ + "number", + "null" + ], + "description": "Confidence score", + "required": [] + }, + "name_consistency": { + "type": [ + "integer", + "null" + ], + "description": "Checks if the first name in the persona matches the user-provided first name", + "required": [] + }, + "ip_location_consistency": { + "type": [ + "integer", + "null" + ], + "description": "Number of distinct IP locations for a user and loan", + "required": [] + } + }, + "required": [] +} \ No newline at end of file