Implements

Constructors

Properties

jsonParseReviver: undefined | ((key: string, value: any) => any) = undefined

Methods

    • Returns the attribute key value pairs associated with the authenticated user. Alternatively, return only the attribute key value pairs that are associated with the "Everyone" group.
    • Attribute keys can be used with subsequent calls to get specific attribute values.
    • Default page size: 100. Allowed OData query options: Select, Count, OrderBy, Skip, Top, SkipToken, Prefer. Optional query parameters: everyone (bool, default false). When true, this route does not return the attributes that are tied to the currently authenticated user, but rather the attributes assigned to the "Everyone" group. Note when this is true, the response does not include both the "Everyone" groups attribute and the currently authenticated user, but only the "Everyone" groups.

    Parameters

    • args: {
          count?: boolean;
          everyone?: boolean;
          orderby?: null | string;
          prefer?: null | string;
          repoId: string;
          select?: null | string;
          skip?: number;
          top?: number;
      }
      • Optionalcount?: boolean

        (optional) Indicates whether the total count of items within a collection are returned in the result.

      • Optionaleveryone?: boolean

        (optional) Boolean value that indicates whether to return attributes key value pairs associated with everyone or the currently authenticated user.

      • Optionalorderby?: null | string

        (optional) Specifies the order in which items are returned. The maximum number of expressions is 5.

      • Optionalprefer?: null | string

        (optional) An optional OData header. Can be used to set the maximum page size using odata.maxpagesize.

      • repoId: string

        The requested repository ID.

      • Optionalselect?: null | string

        (optional) Limits the properties returned in the result.

      • Optionalskip?: number

        (optional) Excludes the specified number of items of the queried collection from the result.

      • Optionaltop?: number

        (optional) Limits the number of items returned from a collection.

    Returns Promise<ODataValueContextOfListOfAttribute>

    Get trustee attribute key value pairs successfully.

  • It will continue to make the same call to get a list of attributes key value pairs of a fixed size (i.e. maxpagesize) until it reaches the last page (i.e. when next link is null/undefined) or whenever the callback function returns false.

    Parameters

    • args: {
          callback: ((response: ODataValueContextOfListOfAttribute) => Promise<boolean>);
          count?: boolean;
          everyone?: boolean;
          maxPageSize?: number;
          orderby?: string;
          repoId: string;
          select?: string;
          skip?: number;
          top?: number;
      }
      • callback: ((response: ODataValueContextOfListOfAttribute) => Promise<boolean>)

        async callback function that will accept the current page results and return a boolean value to either continue or stop paging.

      • Optionalcount?: boolean

        (optional) Indicates whether the total count of items within a collection are returned in the result.

      • Optionaleveryone?: boolean

        (optional) Boolean value that indicates whether to return attributes key value pairs associated with everyone or the currently authenticated user.

      • OptionalmaxPageSize?: number

        (optional) the maximum page size or number of attributes key value pairs allowed per API response schema

      • Optionalorderby?: string

        (optional) Specifies the order in which items are returned. The maximum number of expressions is 5.

      • repoId: string

        The requested repository ID.

      • Optionalselect?: string

        (optional) Limits the properties returned in the result.

      • Optionalskip?: number

        (optional) Excludes the specified number of items of the queried collection from the result.

      • Optionaltop?: number

        (optional) Limits the number of items returned from a collection.

    Returns Promise<void>

    • Returns the attribute associated with the key. Alternatively, return the attribute associated with the key within "Everyone" group.
    • Optional query parameters: everyone (bool, default false). When true, the server only searches for the attribute value with the given key upon the authenticated users attributes. If false, only the authenticated users attributes will be queried.

    Parameters

    • args: {
          attributeKey: string;
          everyone?: boolean;
          repoId: string;
      }
      • attributeKey: string

        The requested attribute key.

      • Optionaleveryone?: boolean

        (optional) Boolean value that indicates whether to return attributes associated with everyone or the currently authenticated user.

      • repoId: string

        The requested repository ID.

    Returns Promise<Attribute>

    Get trustee attribute value successfully.