Commit removed unnecessary fields

This commit is contained in:
Joaquin Ossa 2025-02-25 12:19:45 +01:00
parent 62316778fb
commit f036e626d7
2 changed files with 3 additions and 57 deletions

View file

@ -34,10 +34,6 @@ models:
data_type: text
description: "Name of the agent who is currently handling the incident."
- name: read_only_for_customers
data_type: boolean
description: "Flag to indicate if the incident is read only for customers."
- name: status_history_logs
data_type: text
description: "Log of the status history."
@ -46,10 +42,6 @@ models:
data_type: text
description: "Reported document resCentre, Api, manual form"
- name: task_execution_logs
data_type: text
description: ""
- name: created_at_utc
data_type: timestamp without time zone
description: "Timestamp when the incident was created."
@ -72,8 +64,7 @@ models:
- name: id_user_host
data_type: text
description: "Unique Id that identifies the host.
Can be from SH or can be external from the client."
description: "Unique Id that identifies the host."
data_tests:
- not_null
- relationships:
@ -198,10 +189,6 @@ models:
data_type: boolean
description: "If the host has contacted the guest about the damage caused"
- name: guest_contacted_evidence_files
data_type: text
description: ""
- name: guest_preventative_steps_details
data_type: text
description: "Description of any action to prevent the damage or further
@ -216,11 +203,6 @@ models:
to: ref('stg_core__accommodation')
field: id_accommodation
- name: accommodation_url
data_type: text
description: "Accommodation URL from any distribution channel,
preferable direct website."
- name: accommodation_name
data_type: text
description: "Accommodation name."
@ -235,7 +217,7 @@ models:
- name: comment_logs
data_type: text
description: ""
description: "Log of all comments submitted internally by the agents."
- name: has_underlying_insurance
data_type: boolean
@ -245,10 +227,6 @@ models:
data_type: boolean
description: "If an insurance claim has been submitted to an insurance company"
- name: insurance_evidence_files
data_type: text
description: ""
- name: check_in_at_utc
data_type: timestamp without time zone
description: "Timestamp of the check-in date in UTC of the booking."
@ -290,10 +268,6 @@ models:
data_type: text
description: "External unique ID"
- name: booking_details
data_type: text
description: ""
- name: number_of_guests
data_type: numeric
description: "Number of guests in the booking."
@ -310,21 +284,9 @@ models:
data_type: text
description: "The booking platform used"
- name: booking_platform_reference
data_type: text
description: ""
- name: agent_history
data_type: text
description: ""
- name: before_damage_evidence
data_type: text
description: ""
- name: original_invoice_evidence
data_type: text
description: ""
description: "List of all agents who have handled the incident."
- name: damage_incident_details
data_type: text

View file

@ -17,11 +17,8 @@ select
({{ adapter.quote("documents") }} ->> 'IsSubmissionComplete')::boolean
as is_submission_complete,
{{ adapter.quote("documents") }} ->> 'CurrentAgentName' as current_agent_name,
({{ adapter.quote("documents") }} ->> 'ReadOnlyForCustomers')::boolean
as read_only_for_customers,
{{ adapter.quote("documents") }} ->> 'StatusHistory' as status_history_logs,
{{ adapter.quote("documents") }} ->> 'DocumentVersion' as document_version,
{{ adapter.quote("documents") }} ->> 'TaskExecutionLogs' as task_execution_logs,
({{ adapter.quote("documents") }} ->> 'CreatedDate')::timestamp as created_at_utc,
({{ adapter.quote("documents") }} ->> 'CreatedDate')::date as created_date_utc,
({{ adapter.quote("documents") }} ->> 'UpdatedDate')::timestamp as updated_at_utc,
@ -135,7 +132,6 @@ select
-- Accommodation Details
(nullif({{ adapter.quote("documents") }} -> 'Listing' ->> 'Id', ''))::numeric
as id_accommodation,
{{ adapter.quote("documents") }} -> 'Listing' ->> 'Url' as accommodation_url,
{{ adapter.quote("documents") }} -> 'Listing' ->> 'Name' as accommodation_name,
{{ adapter.quote("documents") }}
-> 'Listing'
@ -170,9 +166,6 @@ select
{{ adapter.quote("documents") }}
-> 'Reservation'
->> 'ReservationId' as id_reservation,
{{ adapter.quote("documents") }}
-> 'Reservation'
->> 'BookingDetails' as booking_details,
({{ adapter.quote("documents") }} -> 'Reservation' ->> 'NumberOfGuests')::numeric
as number_of_guests,
{{ adapter.quote("documents") }}
@ -181,9 +174,6 @@ select
{{ adapter.quote("documents") }}
-> 'Reservation'
->> 'BookingPlatformUsed' as booking_platform_used,
{{ adapter.quote("documents") }}
-> 'Reservation'
->> 'BookingPlatformReference' as booking_platform_reference,
-- Agent History
{{ adapter.quote("documents") }}
@ -192,12 +182,6 @@ select
-- Damage Report
{{ adapter.quote("documents") }}
-> 'BeforeDamageEvidence'
->> 'BeforeDamageEvidence' as before_damage_evidence,
{{ adapter.quote("documents") }}
-> 'OriginalInvoiceEvidence'
->> 'OriginalInvoiceEvidence' as original_invoice_evidence,
{{ adapter.quote("documents") }}
-> 'DamageReport'
->> 'IncidentDetails' as damage_incident_details,
(