ARCH: связать phase18 capabilities с runtime contracts
This commit is contained in:
@@ -14,6 +14,8 @@ const COMPUTE_EXACT_INTENTS = new Set([
|
||||
"inventory_sale_trace_for_item",
|
||||
"inventory_purchase_to_sale_chain",
|
||||
"inventory_aging_by_purchase_date",
|
||||
"customer_revenue_and_payments",
|
||||
"supplier_payouts_profile",
|
||||
"open_contracts_confirmed_as_of_date",
|
||||
"payables_confirmed_as_of_date",
|
||||
"receivables_confirmed_as_of_date",
|
||||
@@ -128,6 +130,14 @@ function resolveCapabilityEnabled(intent) {
|
||||
: "vat_liability_confirmed_tax_period_route_disabled_by_flag"
|
||||
};
|
||||
}
|
||||
if (intent === "customer_revenue_and_payments" || intent === "supplier_payouts_profile") {
|
||||
return {
|
||||
enabled: config_1.FEATURE_ASSISTANT_ROUTE_ADDRESS_GENERIC_V1,
|
||||
reason: config_1.FEATURE_ASSISTANT_ROUTE_ADDRESS_GENERIC_V1
|
||||
? "counterparty_value_flow_route_enabled"
|
||||
: "counterparty_value_flow_route_disabled_by_flag"
|
||||
};
|
||||
}
|
||||
if (intent === "inventory_on_hand_as_of_date") {
|
||||
return {
|
||||
enabled: config_1.FEATURE_ASSISTANT_ROUTE_BALANCE_EXACT_V1,
|
||||
|
||||
@@ -324,6 +324,39 @@ exports.INVENTORY_CAPABILITY_CONTRACTS = [
|
||||
})
|
||||
];
|
||||
exports.ROOT_EXACT_CAPABILITY_CONTRACTS = [
|
||||
rootExactCapability({
|
||||
capability_id: "documents_drilldown",
|
||||
domainId: "counterparty_documents",
|
||||
intent_ids: ["list_documents_by_counterparty", "list_documents_by_contract"],
|
||||
transitions: ["T1", "T2", "T6", "T7"],
|
||||
requiredAnchors: [],
|
||||
optionalAnchors: ["organization", "date_scope", "counterparty", "contract", "document_type"],
|
||||
resultShape: "counterparty_or_contract_document_list",
|
||||
answerObjectShape: "documents_drilldown_list",
|
||||
scenarioFamilies: ["canonical", "colloquial", "short_counterparty_retarget", "followup_date_carryover"]
|
||||
}),
|
||||
rootExactCapability({
|
||||
capability_id: "address_customer_revenue_and_payments",
|
||||
domainId: "counterparty_revenue",
|
||||
intent_ids: ["customer_revenue_and_payments"],
|
||||
transitions: ["T1", "T2", "T6", "T7"],
|
||||
requiredAnchors: [],
|
||||
optionalAnchors: ["organization", "date_scope", "counterparty", "contract"],
|
||||
resultShape: "counterparty_revenue_payment_flow",
|
||||
answerObjectShape: "counterparty_revenue_summary",
|
||||
scenarioFamilies: ["canonical", "colloquial", "short_counterparty_retarget", "answer_top_block_matches_current_user_intent"]
|
||||
}),
|
||||
rootExactCapability({
|
||||
capability_id: "address_supplier_payouts_profile",
|
||||
domainId: "counterparty_payouts",
|
||||
intent_ids: ["supplier_payouts_profile"],
|
||||
transitions: ["T1", "T2", "T6", "T7"],
|
||||
requiredAnchors: [],
|
||||
optionalAnchors: ["organization", "date_scope", "counterparty", "contract"],
|
||||
resultShape: "supplier_payout_payment_flow",
|
||||
answerObjectShape: "supplier_payout_summary",
|
||||
scenarioFamilies: ["canonical", "colloquial", "short_counterparty_retarget"]
|
||||
}),
|
||||
rootExactCapability({
|
||||
capability_id: "confirmed_payables_as_of_date",
|
||||
domainId: "counterparty_debt",
|
||||
|
||||
Reference in New Issue
Block a user