• Replace templatizations in an item's resources

    Parameters

    • sourceAuthentication: UserSession

      Credentials for the request to the source

    • sourceItemId: string

      Id of item supplying resource/metadata

    • itemTemplate: IItemTemplate

      Item being created

    • fileInfos: IAssociatedFileInfo[]

      Resources for the item; these resources are modified as needed by removing the templatization: the url property is replaced by the file property

    • destinationAuthentication: UserSession

      Credentials for the request to the storage

    • templateDictionary: any = {}

      Hash of facts: org URL, adlib replacements, deferreds for dependencies

    Returns Promise<void[]>

    A promise that resolves when all de-templatization has completed