Function _createItemFromTemplateWhenReadyPrivate

  • Private

    Creates an item from a template once the item's dependencies have been created.

    Parameters

    • template: IItemTemplate

      Template of item to deploy

    • resourceFilePaths: IDeployFileCopyPath[]

      URL, folder, and filename for each item resource/metadata/thumbnail

    • storageAuthentication: UserSession
    • templateDictionary: any

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

    • destinationAuthentication: UserSession
    • itemProgressCallback: IItemProgressCallback

      Function for reporting progress updates from type-specific template handlers

    Returns Promise<common.ICreateItemFromTemplateResponse>

    A promise that will resolve with the id of the deployed item (which is simply returned if it's already in the templates list