Margrete RPC

diff

funccapture_edit_snapshot(chart) -> EditSnapshot
paramchartChart

Returns

margrete_rpc.chart.diff.EditSnapshot
funcbuild_apply_edit_request(chart, *, snapshot_enabled, replace_all_notes, snapshot) -> messages_pb2.ApplyEditRequest | None
paramchartChart
paramsnapshot_enabledbool
paramreplace_all_notesbool
paramsnapshotEditSnapshot | None

Returns

margrete_rpc._proto.margrete.rpc.v1.messages_pb2.margrete_rpc._proto.margrete.rpc.v1.messages_pb2.ApplyEditRequest | None
func_note_to_raw(note) -> RawNote
paramnoteChartNote

Returns

margrete_rpc.chart.notes.RawNote
func_final_notes(chart) -> list[RawNote]
paramchartChart

Returns

list[margrete_rpc.chart.notes.RawNote]
func_strip_note_ids(note) -> RawNote
paramnoteRawNote

Returns

margrete_rpc.chart.notes.RawNote
func_final_notes_without_ids(chart) -> list[RawNote]
paramchartChart

Returns

list[margrete_rpc.chart.notes.RawNote]
func_notes_signature(notes) -> bytes
paramnoteslist[RawNote]

Returns

bytes
func_event_signature_from_events(events) -> bytes
parameventsChartEvents

Returns

bytes
func_has_existing_note_id(notes) -> bool
paramnoteslist[RawNote]

Returns

bool
func_clone_raw(note) -> RawNote
paramnoteRawNote

Returns

margrete_rpc.chart.notes.RawNote
func_clone_chart_events(events) -> ChartEvents
parameventsChartEvents

Returns

margrete_rpc.chart.chart.ChartEvents
func_note_tree_sig(note) -> bytes
paramnoteRawNote

Returns

bytes
func_id_structure(note) -> IdStructure
paramnoteRawNote

Returns

margrete_rpc.chart.diff.IdStructure
func_children_id_structure(note) -> tuple[IdStructure, ...]
paramnoteRawNote

Returns

tuple[margrete_rpc.chart.diff.IdStructure, ...]
func_append_scanned_note_diffs(request, orig_notes, final_notes) -> None
paramrequestmessages_pb2.ApplyEditRequest
paramorig_noteslist[RawNote]
paramfinal_noteslist[RawNote]

Returns

None
func_append_scanned_event_diffs(request, orig_events, final_events) -> None
paramrequestmessages_pb2.ApplyEditRequest
paramorig_eventsChartEvents
paramfinal_eventsChartEvents

Returns

None
func_append_all_event_upserts(request, events) -> None
paramrequestmessages_pb2.ApplyEditRequest
parameventsChartEvents

Returns

None