• Build a Universally Unique Identifier (uuid) from possibly limited data. An attempt will be made to resolve omitted components, but an identifier and at least one of documentName, parent, and pack are required.

    Parameters

    • context: {
          documentName?: string;
          id: string;
          pack?: null | string;
          parent?: null | Document;
      }

      Data for building the uuid

      • OptionaldocumentName?: string

        The document name (or type)

      • id: string

        The identifier of the document

      • Optionalpack?: null | string

        The document's compendium pack, if applicable

      • Optionalparent?: null | Document

        The document's parent, if any

    Returns null | string

    A well-formed Document uuid unless one is unable to be created