feat(shipping-notice): 添加订单抽取功能,支持异步运行和管理,优化相关数据模型和处理逻辑
This commit is contained in:
1 parent
34d489a2d1
commit
ce26d6d0c4
144 files changed
+12241
-4233
No files matched your search
@@ -34,6 +34,15 @@ const expectSameKeys = (trees: LocaleTree[]) => {
|
||||
};
|
||||
|
||||
describe('shipping notice i18n parity', () => {
|
||||
it('keeps admin order schema keys aligned', () => {
|
||||
expectSameKeys([
|
||||
adminZhCn.shippingOrderSchema as LocaleTree,
|
||||
adminZhTw.shippingOrderSchema as LocaleTree,
|
||||
adminEn.shippingOrderSchema as LocaleTree,
|
||||
adminTh.shippingOrderSchema as LocaleTree,
|
||||
]);
|
||||
});
|
||||
|
||||
it('keeps admin inventory configuration keys aligned', () => {
|
||||
expectSameKeys([
|
||||
adminZhCn.shippingInventory as LocaleTree,
|
||||
|
||||
@@ -76,12 +76,9 @@ export interface ShippingIdentityDefinitionOption {
|
||||
description?: string | null;
|
||||
evidence_label: string;
|
||||
target_type: 'customer' | 'site';
|
||||
source_adapter_key: 'email_metadata' | 'document_template' | 'order_field';
|
||||
source_selector: Record<string, unknown>;
|
||||
attribute_key: string;
|
||||
normalizer_key: string;
|
||||
context_field_id: string;
|
||||
max_automation: 'none' | 'conditional';
|
||||
order_field?: { field_id: string; field_code: string; display_name?: string } | null;
|
||||
context_field?: { field_id: string; field_code: string; display_name?: string } | null;
|
||||
}
|
||||
|
||||
export interface ShippingIdentityEvidence {
|
||||
|
||||
Reference in new issue
Block a user