github.com/readium/readium-lcp-server@v0.0.0-20240101192032-6e95190e99f1/frontend/manage/app/components/lsd-structs.ts (about)

     1  
     2  export class Updated {
     3      license: Date;
     4      status:  Date;
     5  }
     6  
     7  export class Link {
     8      rel: string;
     9      href: string;
    10      type: string;
    11      title: string;
    12      profile: string;
    13      templated: boolean;
    14  }
    15  
    16  export class PotentialRights {
    17      end: Date;
    18  }
    19  
    20  
    21  export class Event  {
    22      name: string; // device name
    23      timestamp: Date;
    24      type: string;
    25      id: string; // device ID
    26  }
    27  
    28  export class LicenseStatus {
    29      id:      string;
    30      status:          string;
    31      updated:         Updated;
    32      message:         string;
    33      links:           Link[];
    34      device_count:    number;
    35      potential_rights: PotentialRights;
    36      events:          Event[];
    37  }