intervention-pages
Version:
249 lines (248 loc) • 7.03 kB
TypeScript
export interface ExpectedResult {
id: number;
cp_output: number;
cp_output_name: string;
intervention: number;
ll_results: ResultLinkLowerResult[];
ram_indicators: number[];
ram_indicator_names: string[];
}
export interface ResultLinkLowerResult {
id: number;
name: string;
applied_indicators: Indicator[];
code?: string;
created?: string;
result_link?: number;
}
export declare class IndicatorIndicator {
id: number | null;
title: string;
display_type: string;
unit: string;
}
export declare class Indicator {
id: number | null;
is_active: boolean;
is_high_frequency: boolean;
indicator: IndicatorIndicator | null;
section: number | null;
baseline: {
v?: string | number;
d?: string | number;
};
target: {
v?: string | number;
d: string | number;
};
means_of_verification: string | null;
locations: number[];
disaggregation: string[];
cluster_name: string | null;
cluster_indicator_id: number | null;
cluster_indicator_title: string | null;
response_plan_name: string | null;
numerator_label: string;
denominator_label: string;
}
export interface CpOutput {
id: number;
name: string;
wbs: string;
country_programme: string;
}
export declare class PlannedBudget {
currency?: string;
unicef_cash_local?: string;
total?: string;
in_kind_amount_local?: string;
partner_contribution_local?: string;
}
export declare class InterventionAttachment {
id?: number;
active: boolean;
type?: number;
intervention?: number;
attachment_document?: string | number | File;
[key: string]: undefined | number | string | boolean | File;
}
export declare class FrsDetails {
currencies_match: boolean;
earliest_start_date: string | null;
frs: Fr[];
latest_end_date: string | null;
multi_curr_flag: boolean;
total_actual_amt: number;
total_frs_amt: string;
total_intervention_amt: number;
total_outstanding_amt: number;
}
export interface Fr {
id: number;
currency: string;
fr_number: string;
line_item_details: [];
end_date: string;
start_date: string;
actual_amt: string;
actual_amt_local: string;
outstanding_amt: string;
outstanding_amt_local: string;
total_amt: string;
total_amt_local: string;
vendor_code: string;
}
export declare class PlannedVisit {
id: number | null;
year: string | null;
programmatic_q1: string;
programmatic_q2: string;
programmatic_q3: string;
programmatic_q4: string;
programmatic: any;
}
export declare class InterventionSupplyItem {
id: number | null;
created?: string;
modified?: string;
title: string;
unit_number: number | undefined;
unit_price: number | undefined;
result: string;
total_price: number | undefined;
other_mentions: string;
intervention: string;
outputs: string[];
}
export declare class InterventionPermissionsFields {
id: boolean;
status: boolean;
agreement: boolean;
document_type: boolean;
number: boolean;
title: boolean;
offices: boolean;
unicef_focal_points: boolean;
partner_focal_points: boolean;
contingency_pd: boolean;
country_programme: boolean;
start: boolean;
end: boolean;
sections: boolean;
flat_locations: boolean;
reporting_requirements: boolean;
result_links: boolean;
planned_budget: boolean;
planned_budget_unicef_cash: boolean;
planned_visits: boolean;
technical_guidance: boolean;
capacity_development: boolean;
other_partners_involved: boolean;
other_info: boolean;
submission_date: boolean;
submission_date_prc: boolean;
review_date_prc: boolean;
prc_review_attachment: boolean;
partner_authorized_officer_signatory: boolean;
signed_by_partner_date: boolean;
unicef_signatory: boolean;
signed_by_unicef_date: boolean;
signed_pd_attachment: boolean;
amendments: boolean;
frs: boolean;
locations: boolean;
attachments: boolean;
}
export interface Permission<T> {
edit: T;
required: T;
}
export declare class Intervention {
id: number | null;
agreement?: number;
document_type?: string;
country_programme?: number;
number?: string;
reference_number_year?: string | null;
prc_review_attachment?: number | string;
signed_pd_attachment?: number | string;
title?: string;
status: string;
start: string;
end: string;
submitted_to_prc: boolean;
submission_date_prc?: string;
review_date_prc?: string;
submission_date?: string;
signed_by_unicef_date?: string;
signed_by_partner_date?: string;
unicef_signatory?: string;
unicef_focal_points: [];
partner?: string;
partner_focal_points: [];
partner_vendor: string;
partner_authorized_officer_signatory?: string;
offices: [];
sections: [];
frs: number[];
frs_details: FrsDetails;
contingency_pd?: boolean;
planned_budget: PlannedBudget;
flat_locations: [];
result_links: ExpectedResult[];
planned_visits: PlannedVisit[];
in_amendment: boolean;
amendments: InterventionAmendment[];
locations: [];
activation_letter_attachment: number | string | null;
technical_guidance: string;
capacity_development: string;
other_partners_involved: string;
other_info: string;
attachments: InterventionAttachment[];
permissions?: Permission<InterventionPermissionsFields>;
humanitarian_flag?: boolean;
}
export declare class InterventionAmendment {
id?: number;
intervention?: number;
created?: string;
amendment_number: string | null;
types: string[];
other_description: string | null;
signed_date: string | null;
signed_amendment_attachment: number | string | null;
internal_prc_review: number | string | null;
}
export declare type InterventionActivity = {
created: string;
modified: string;
activity_name: string;
context_details: string;
unicef_cash: number;
cso_cash: number;
unicef_suppies: number;
cso_supplies: number;
time_periods: InterventionActivityTimeframe[];
intervention: number;
items: InterventionActivityItem[];
};
export declare type InterventionActivityItem = {
created: string;
modified: string;
name: string;
other_details: string;
unicef_cash: number;
cso_cash: number;
unicef_suppies: number;
cso_supplies: number;
total: number;
intervention_activity: number;
};
export declare type InterventionActivityTimeframe = {
created: string;
modified: string;
start_date: string;
end_date: string;
intervention: number;
};