feat: expose Checko section APIs and completion counters
This commit is contained in:
@@ -26,6 +26,9 @@ const variants = [
|
||||
['SroMembership', 'sro_membership', 'sro_membership_check', 'sro_membership', 'SroMembership'],
|
||||
];
|
||||
const extendedVariants = [
|
||||
['CheckoLeasing', 'leasing', 'checko_leasing', 'leasing_contract', 'CheckoLeasing'],
|
||||
['CheckoMessage', 'company_messages', 'checko_messages', 'company_message', 'CheckoMessage'],
|
||||
['CheckoLicense', 'company_licenses', 'checko_licenses', 'company_license', 'CheckoLicense'],
|
||||
['FsspEnforcementProceeding', 'enforcement_proceedings', 'fssp_enforcement_proceedings', 'enforcement_proceeding', 'FsspEnforcementProceeding'],
|
||||
['IntegratedStructure', 'integrated_structure_documents', 'integrated_structures', 'integrated_structure', 'IntegratedStructure'],
|
||||
['FedresursCompanyProfile', 'fedresurs_company_profile', 'fedresurs_company_profile', 'company_profile', 'FedresursCompanyProfile'],
|
||||
@@ -144,6 +147,9 @@ for (const [prefix, group, source, recordType, payloadPrefix] of extendedVariant
|
||||
schema.properties.status = { type: 'string' };
|
||||
schema.properties.payload = ref(payloadName);
|
||||
schema.properties.organization = ref('SroSourceRecordOrganization');
|
||||
if (['leasing', 'company_messages', 'company_licenses'].includes(group)) {
|
||||
schema.properties.organization = ref('FsspSourceRecordOrganization');
|
||||
}
|
||||
if (group === 'enforcement_proceedings') {
|
||||
schema.required = [...new Set([...schema.required, 'extension_uid', 'record_date', 'amount', 'url', 'legacy_model', 'legacy_pk', 'load_batch', 'financial_lines'])];
|
||||
schema.properties.status = { type: 'string', enum: ['unknown', 'ended', 'terminated'] };
|
||||
|
||||
Reference in New Issue
Block a user