feat: implement Level and Order Type calculation and integrate with Notion writer

This commit is contained in:
0xcathiefish
2026-05-30 09:44:05 +00:00
parent 43c0f489a4
commit 8cc5a6ec84
4 changed files with 122 additions and 9 deletions
+26
View File
@@ -161,6 +161,32 @@ impl NotionWriter {
},
);
// 9. Level (Select column)
properties.insert(
"Level".to_string(),
PageProperty::Select {
id: None,
select: Some(SelectPropertyValue {
id: None,
name: Some(data.level),
color: None,
}),
},
);
// 10. Order Type (Select column)
properties.insert(
"Order Type".to_string(),
PageProperty::Select {
id: None,
select: Some(SelectPropertyValue {
id: None,
name: Some(data.order_type),
color: None,
}),
},
);
// Build CreateAPageRequest and create page
let request = CreateAPageRequestBuilder::default()
.parent(Parent::DatabaseId {