import { Account, PartnerLicenseInfo } from "../../../api/api";

export interface PartnerLicensesState {
  domain: Domain;
  apps: Apps;
}

export interface Domain {
  myAccountInfo: Account;
  total: number;
  ownPartnerLicense: PartnerLicenseInfo;
  childrenPartnerLicenses: PartnerLicenseInfo[];
  totalPage: number;
}

export interface Apps {
  limit: number;
  offset: number;
  currentPage: number;
  hierarchicalElements: HierarchicalElement[];
  isLoading: boolean;
  selectedRow?: PartnerLicenseInfo;
}

export interface HierarchicalElement {
  accountId: number;
  companyName: string;
}
