Skip to content

Commit fb4598e

Browse files
authored
Add missing _dd fields to view_update schema (#396)
* Add missing _dd fields to view_update schema * Regenerate TypeScript types * Add profiling to _dd in view_update schema * Consolidate shared _dd fields into _view-properties-schema * Move document_version to shared _dd in _view-properties-schema * Restore readOnly on _dd stub in view-schema
1 parent 57edd9f commit fb4598e

5 files changed

Lines changed: 222 additions & 246 deletions

File tree

lib/cjs/generated/rum.d.ts

Lines changed: 66 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -854,70 +854,7 @@ export type RumViewEvent = CommonProperties & ViewContainerSchema & StreamSchema
854854
};
855855
[k: string]: unknown;
856856
};
857-
/**
858-
* Internal properties
859-
*/
860857
readonly _dd: {
861-
/**
862-
* Version of the update of the view event
863-
*/
864-
readonly document_version: number;
865-
/**
866-
* List of the page states during the view
867-
*/
868-
readonly page_states?: {
869-
/**
870-
* Page state name
871-
*/
872-
readonly state: 'active' | 'passive' | 'hidden' | 'frozen' | 'terminated';
873-
/**
874-
* Duration in ns between start of the view and start of the page state
875-
*/
876-
readonly start: number;
877-
[k: string]: unknown;
878-
}[];
879-
/**
880-
* Debug metadata for Replay Sessions
881-
*/
882-
replay_stats?: {
883-
/**
884-
* The number of records produced during this view lifetime
885-
*/
886-
records_count?: number;
887-
/**
888-
* The number of segments sent during this view lifetime
889-
*/
890-
segments_count?: number;
891-
/**
892-
* The total size in bytes of the segments sent during this view lifetime
893-
*/
894-
segments_total_raw_size?: number;
895-
[k: string]: unknown;
896-
};
897-
/**
898-
* Additional information of the reported Cumulative Layout Shift
899-
*/
900-
readonly cls?: {
901-
/**
902-
* Pixel ratio of the device where the layout shift was reported
903-
*/
904-
readonly device_pixel_ratio?: number;
905-
[k: string]: unknown;
906-
};
907-
/**
908-
* Subset of the SDK configuration options in use during its execution
909-
*/
910-
readonly configuration?: {
911-
/**
912-
* Whether session replay recording configured to start manually
913-
*/
914-
readonly start_session_replay_recording_manually?: boolean;
915-
[k: string]: unknown;
916-
};
917-
/**
918-
* Profiling context
919-
*/
920-
profiling?: ProfilingInternalContextSchema;
921858
[k: string]: unknown;
922859
};
923860
[k: string]: unknown;
@@ -930,16 +867,6 @@ export type RumViewUpdateEvent = ViewContainerSchema & StreamSchema & ViewProper
930867
* RUM event type
931868
*/
932869
readonly type: 'view_update';
933-
/**
934-
* Internal properties
935-
*/
936-
readonly _dd?: {
937-
/**
938-
* Version of the update of the view event
939-
*/
940-
readonly document_version: number;
941-
[k: string]: unknown;
942-
};
943870
[k: string]: unknown;
944871
};
945872
export type RumVitalEvent = RumVitalDurationEvent | RumVitalOperationStepEvent | RumVitalAppLaunchEvent;
@@ -1971,6 +1898,72 @@ export interface ViewProperties {
19711898
};
19721899
[k: string]: unknown;
19731900
};
1901+
/**
1902+
* Internal properties
1903+
*/
1904+
readonly _dd?: {
1905+
/**
1906+
* Version of the update of the view event
1907+
*/
1908+
readonly document_version: number;
1909+
/**
1910+
* List of the page states during the view
1911+
*/
1912+
readonly page_states?: {
1913+
/**
1914+
* Page state name
1915+
*/
1916+
readonly state: 'active' | 'passive' | 'hidden' | 'frozen' | 'terminated';
1917+
/**
1918+
* Duration in ns between start of the view and start of the page state
1919+
*/
1920+
readonly start: number;
1921+
[k: string]: unknown;
1922+
}[];
1923+
/**
1924+
* Debug metadata for Replay Sessions
1925+
*/
1926+
replay_stats?: {
1927+
/**
1928+
* The number of records produced during this view lifetime
1929+
*/
1930+
records_count?: number;
1931+
/**
1932+
* The number of segments sent during this view lifetime
1933+
*/
1934+
segments_count?: number;
1935+
/**
1936+
* The total size in bytes of the segments sent during this view lifetime
1937+
*/
1938+
segments_total_raw_size?: number;
1939+
[k: string]: unknown;
1940+
};
1941+
/**
1942+
* Additional information of the reported Cumulative Layout Shift
1943+
*/
1944+
readonly cls?: {
1945+
/**
1946+
* Pixel ratio of the device where the layout shift was reported
1947+
*/
1948+
readonly device_pixel_ratio?: number;
1949+
[k: string]: unknown;
1950+
};
1951+
/**
1952+
* Subset of the SDK configuration options in use during its execution
1953+
*/
1954+
readonly configuration?: {
1955+
/**
1956+
* Whether session replay recording configured to start manually
1957+
*/
1958+
readonly start_session_replay_recording_manually?: boolean;
1959+
[k: string]: unknown;
1960+
};
1961+
/**
1962+
* Profiling context
1963+
*/
1964+
profiling?: ProfilingInternalContextSchema;
1965+
[k: string]: unknown;
1966+
};
19741967
[k: string]: unknown;
19751968
}
19761969
/**

lib/esm/generated/rum.d.ts

Lines changed: 66 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -854,70 +854,7 @@ export type RumViewEvent = CommonProperties & ViewContainerSchema & StreamSchema
854854
};
855855
[k: string]: unknown;
856856
};
857-
/**
858-
* Internal properties
859-
*/
860857
readonly _dd: {
861-
/**
862-
* Version of the update of the view event
863-
*/
864-
readonly document_version: number;
865-
/**
866-
* List of the page states during the view
867-
*/
868-
readonly page_states?: {
869-
/**
870-
* Page state name
871-
*/
872-
readonly state: 'active' | 'passive' | 'hidden' | 'frozen' | 'terminated';
873-
/**
874-
* Duration in ns between start of the view and start of the page state
875-
*/
876-
readonly start: number;
877-
[k: string]: unknown;
878-
}[];
879-
/**
880-
* Debug metadata for Replay Sessions
881-
*/
882-
replay_stats?: {
883-
/**
884-
* The number of records produced during this view lifetime
885-
*/
886-
records_count?: number;
887-
/**
888-
* The number of segments sent during this view lifetime
889-
*/
890-
segments_count?: number;
891-
/**
892-
* The total size in bytes of the segments sent during this view lifetime
893-
*/
894-
segments_total_raw_size?: number;
895-
[k: string]: unknown;
896-
};
897-
/**
898-
* Additional information of the reported Cumulative Layout Shift
899-
*/
900-
readonly cls?: {
901-
/**
902-
* Pixel ratio of the device where the layout shift was reported
903-
*/
904-
readonly device_pixel_ratio?: number;
905-
[k: string]: unknown;
906-
};
907-
/**
908-
* Subset of the SDK configuration options in use during its execution
909-
*/
910-
readonly configuration?: {
911-
/**
912-
* Whether session replay recording configured to start manually
913-
*/
914-
readonly start_session_replay_recording_manually?: boolean;
915-
[k: string]: unknown;
916-
};
917-
/**
918-
* Profiling context
919-
*/
920-
profiling?: ProfilingInternalContextSchema;
921858
[k: string]: unknown;
922859
};
923860
[k: string]: unknown;
@@ -930,16 +867,6 @@ export type RumViewUpdateEvent = ViewContainerSchema & StreamSchema & ViewProper
930867
* RUM event type
931868
*/
932869
readonly type: 'view_update';
933-
/**
934-
* Internal properties
935-
*/
936-
readonly _dd?: {
937-
/**
938-
* Version of the update of the view event
939-
*/
940-
readonly document_version: number;
941-
[k: string]: unknown;
942-
};
943870
[k: string]: unknown;
944871
};
945872
export type RumVitalEvent = RumVitalDurationEvent | RumVitalOperationStepEvent | RumVitalAppLaunchEvent;
@@ -1971,6 +1898,72 @@ export interface ViewProperties {
19711898
};
19721899
[k: string]: unknown;
19731900
};
1901+
/**
1902+
* Internal properties
1903+
*/
1904+
readonly _dd?: {
1905+
/**
1906+
* Version of the update of the view event
1907+
*/
1908+
readonly document_version: number;
1909+
/**
1910+
* List of the page states during the view
1911+
*/
1912+
readonly page_states?: {
1913+
/**
1914+
* Page state name
1915+
*/
1916+
readonly state: 'active' | 'passive' | 'hidden' | 'frozen' | 'terminated';
1917+
/**
1918+
* Duration in ns between start of the view and start of the page state
1919+
*/
1920+
readonly start: number;
1921+
[k: string]: unknown;
1922+
}[];
1923+
/**
1924+
* Debug metadata for Replay Sessions
1925+
*/
1926+
replay_stats?: {
1927+
/**
1928+
* The number of records produced during this view lifetime
1929+
*/
1930+
records_count?: number;
1931+
/**
1932+
* The number of segments sent during this view lifetime
1933+
*/
1934+
segments_count?: number;
1935+
/**
1936+
* The total size in bytes of the segments sent during this view lifetime
1937+
*/
1938+
segments_total_raw_size?: number;
1939+
[k: string]: unknown;
1940+
};
1941+
/**
1942+
* Additional information of the reported Cumulative Layout Shift
1943+
*/
1944+
readonly cls?: {
1945+
/**
1946+
* Pixel ratio of the device where the layout shift was reported
1947+
*/
1948+
readonly device_pixel_ratio?: number;
1949+
[k: string]: unknown;
1950+
};
1951+
/**
1952+
* Subset of the SDK configuration options in use during its execution
1953+
*/
1954+
readonly configuration?: {
1955+
/**
1956+
* Whether session replay recording configured to start manually
1957+
*/
1958+
readonly start_session_replay_recording_manually?: boolean;
1959+
[k: string]: unknown;
1960+
};
1961+
/**
1962+
* Profiling context
1963+
*/
1964+
profiling?: ProfilingInternalContextSchema;
1965+
[k: string]: unknown;
1966+
};
19741967
[k: string]: unknown;
19751968
}
19761969
/**

0 commit comments

Comments
 (0)