Constructors

Methods

  • Parameters

    • resource: IExternalResource
    • tokenStorageStrategy: string
    • clickThrough: ((resource) => Promise<any>)
    • restricted: ((resource) => Promise<any>)
    • login: ((resource) => Promise<any>)
    • getAccessToken: ((resource, rejectOnError) => Promise<IAccessToken>)
    • storeAccessToken: ((resource, token, tokenStorageStrategy) => Promise<any>)
        • (resource, token, tokenStorageStrategy): Promise<any>
        • Parameters

          Returns Promise<any>

    • getStoredAccessToken: ((resource, tokenStorageStrategy) => Promise<IAccessToken>)

    Returns Promise<IExternalResource>

  • Parameters

    • response: any

    Returns any

  • Parameters

    • message: string

    Returns Error

  • Parameters

    • resource: IExternalResource
    • openContentProviderInteraction: ((service) => any)
        • (service): any
        • Parameters

          Returns any

    • openTokenService: ((resource, tokenService) => Promise<any>)
    • userInteractedWithContentProvider: ((contentProviderInteraction) => Promise<any>)
        • (contentProviderInteraction): Promise<any>
        • Parameters

          • contentProviderInteraction: any

          Returns Promise<any>

    • getContentProviderInteraction: ((resource, service) => Promise<any>)
    • handleMovedTemporarily: ((resource) => Promise<any>)
    • showOutOfOptionsMessages: ((resource, service) => void)

    Returns Promise<void | IExternalResource>

  • Parameters

    Returns void

  • Parameters

    • profile: ServiceProfile

    Returns string

  • Parameters

    • locale: string

    Returns string

  • Parameters

    • resource: any
    • locale: string

    Returns null | string

  • Parameters

    • type: string

    Returns MediaType

  • Parameters

    • resource: any
    • __namedParameters: {
          onlyService?: boolean;
          onlyServices?: boolean;
          skipParentResources?: boolean;
      } = {}
      • Optional onlyService?: boolean
      • Optional onlyServices?: boolean
      • Optional skipParentResources?: boolean

    Returns Service[]

  • Parameters

    • target: string

    Returns null | number[]

  • Parameters

    • profile: ServiceProfile

    Returns boolean

  • Parameters

    • type: null | string

    Returns boolean

  • Parameters

    • profile: ServiceProfile

    Returns boolean

  • Parameters

    • profile: ServiceProfile

    Returns boolean

  • Parameters

    • profile: ServiceProfile

    Returns boolean

  • Parameters

    • resource: IExternalResource
    • tokenStorageStrategy: string
    • clickThrough: ((resource) => Promise<any>)
    • restricted: ((resource) => Promise<any>)
    • login: ((resource) => Promise<any>)
    • getAccessToken: ((resource, rejectOnError) => Promise<IAccessToken>)
    • storeAccessToken: ((resource, token, tokenStorageStrategy) => Promise<any>)
        • (resource, token, tokenStorageStrategy): Promise<any>
        • Parameters

          Returns Promise<any>

    • getStoredAccessToken: ((resource, tokenStorageStrategy) => Promise<IAccessToken>)
    • handleResourceResponse: ((resource) => Promise<any>)
    • Optional options: IManifestoOptions

    Returns Promise<IExternalResource>

  • Parameters

    • resource: IExternalResource
    • openContentProviderInteraction: ((service) => any)
        • (service): any
        • Parameters

          Returns any

    • openTokenService: ((resource, tokenService) => Promise<void>)
    • getStoredAccessToken: ((resource) => Promise<null | IAccessToken>)
    • userInteractedWithContentProvider: ((contentProviderInteraction) => Promise<any>)
        • (contentProviderInteraction): Promise<any>
        • Parameters

          • contentProviderInteraction: any

          Returns Promise<any>

    • getContentProviderInteraction: ((resource, service) => Promise<any>)
    • handleMovedTemporarily: ((resource) => Promise<any>)
    • showOutOfOptionsMessages: ((resource, service) => void)

    Returns Promise<IExternalResource>

  • Parameters

    • resources: IExternalResource[]
    • tokenStorageStrategy: string
    • clickThrough: ((resource) => Promise<any>)
    • restricted: ((resource) => Promise<any>)
    • login: ((resource) => Promise<any>)
    • getAccessToken: ((resource, rejectOnError) => Promise<IAccessToken>)
    • storeAccessToken: ((resource, token, tokenStorageStrategy) => Promise<any>)
        • (resource, token, tokenStorageStrategy): Promise<any>
        • Parameters

          Returns Promise<any>

    • getStoredAccessToken: ((resource, tokenStorageStrategy) => Promise<IAccessToken>)
    • handleResourceResponse: ((resource) => Promise<any>)
    • Optional options: IManifestoOptions

    Returns Promise<IExternalResource[]>

  • Parameters

    • resources: IExternalResource[]
    • openContentProviderInteraction: ((service) => any)
        • (service): any
        • Parameters

          Returns any

    • openTokenService: ((resource, tokenService) => Promise<any>)
    • getStoredAccessToken: ((resource) => Promise<null | IAccessToken>)
    • userInteractedWithContentProvider: ((contentProviderInteraction) => Promise<any>)
        • (contentProviderInteraction): Promise<any>
        • Parameters

          • contentProviderInteraction: any

          Returns Promise<any>

    • getContentProviderInteraction: ((resource, service) => Promise<any>)
    • handleMovedTemporarily: ((resource) => Promise<any>)
    • showOutOfOptionsMessages: ((resource, service) => void)

    Returns Promise<IExternalResource[]>

  • Parameters

    • url: string

    Returns Promise<any>

  • Parameters

    • type: string

    Returns string

  • Parameters

    • url: string

    Returns string

  • Parameters

    • url1: string
    • url2: string

    Returns boolean

  • Parameters

    • resource: IExternalResource
    • tokenStorageStrategy: any
    • clickThrough: any
    • restricted: any
    • login: any
    • getAccessToken: any
    • storeAccessToken: any
    • resolve: any
    • reject: any

    Returns void

  • Does a depth first traversal of an Object, returning an Object that matches provided k and v arguments

    Parameters

    • object: any
    • k: string
    • v: string

    Returns undefined | object

    Example

    Utils.traverseAndFind({foo: 'bar'}, 'foo', 'bar')