• When using an async request we need to poll the status url to know when the request has completed or failed.

    Parameters

    • result: any

      the result returned from the addToDefinition request. This will contain a status url or the standard sync result.

    • authentication: any

      Credentials to be used to generate token for URL

    Returns Promise<void>

    A promise that will resolve when the request has completed