| export interface IXosServiceModel { |
| id: number; |
| backend_status: string; |
| kind: string; |
| name: string; |
| service_specific_attributes: string; // this is json stringified |
| } |
| |
| export interface IXosTenantModel { |
| id: number; |
| backend_status: string; |
| kind: string; |
| |
| // source |
| provider_service_id: number; |
| |
| // destination |
| subscriber_service_id: number; |
| subscriber_tenant_id: number; |
| subscriber_user_id: number; |
| subscriber_root_id: number; |
| subscriber_network_id: number; |
| |
| // extra informations |
| service_specific_id: string; |
| service_specific_attribute: string; |
| connect_method: string; |
| |
| // reverse of subscriber tenants |
| subscribed_tenants_ids: number[]; |
| } |
| |
| export interface IXosServiceGraphNodeBadge { |
| type: 'info'|'success'|'warning'|'danger'; |
| text: string; |
| } |
| |
| export interface IXosServiceGraphNode { |
| id: number; |
| x: number; |
| y: number; |
| px: number; |
| py: number; |
| label: string; |
| badge: IXosServiceGraphNodeBadge; |
| } |
| |
| export interface IXosServiceGraphLink { |
| id: number; |
| source: number; |
| target: number; |
| } |
| |
| export interface IXosServiceGraph { |
| nodes: IXosServiceGraphNode[]; |
| links: IXosServiceGraphLink[]; |
| } |