• Calls addToDefinition for the service.

    Added retry due to some solutions failing to deploy in specific orgs/hives due to timeouts. On the first pass we will use the quicker sync request to add. If it fails we will use an async request that will avoid the timeout errors.

    Parameters

    • url: string

      URL to use as base

    • options: any

      the info to add to the services definition

    • skipRetry: boolean = false

      a boolean to control if retry logic will be used. Defaults to false.

    • useAsync: boolean = false

      a boolean to control if we will use an async request

    Returns Promise<void>

    A promise that will resolve when the request has completed