Function getItems

  • Lists items that the user has access to.

    Parameters

    • query: {
          collectionId?: string;
          createdByUserId?: string;
          id?: string;
          limit?: number;
          name?: string;
          next?: string;
          noActions?: boolean;
          notCreatedByUserId?: string;
          notOwnerId?: string;
          ownerId?: string;
          prev?: string;
          query?: string;
          resourceId?: string;
          resourceIds?: string;
          resourceLink?: string;
          resourceSubType?: string;
          resourceType?: ItemResourceTypeEnum;
          shared?: boolean;
          sort?:
              | "-name"
              | "+name"
              | "+createdAt"
              | "-createdAt"
              | "+updatedAt"
              | "-updatedAt"
              | "+recentlyUsed"
              | "-recentlyUsed";
          spaceId?: string;
          spaceType?: SpaceTypeEnum;
      }

      an object with query parameters

      • OptionalcollectionId?: string

        The collection's unique identifier. Used to filter for items with a specific tag (collection type public), or collection.

      • OptionalcreatedByUserId?: string
      • Optionalid?: string
      • Optionallimit?: number
      • Optionalname?: string
      • Optionalnext?: string
      • OptionalnoActions?: boolean
      • OptionalnotCreatedByUserId?: string
      • OptionalnotOwnerId?: string
      • OptionalownerId?: string
      • Optionalprev?: string
      • Optionalquery?: string
      • OptionalresourceId?: string
      • OptionalresourceIds?: string
      • OptionalresourceLink?: string
      • OptionalresourceSubType?: string
      • OptionalresourceType?: ItemResourceTypeEnum
      • Optionalshared?: boolean

        Whether or not to return items in a shared space.

      • Optionalsort?:
            | "-name"
            | "+name"
            | "+createdAt"
            | "-createdAt"
            | "+updatedAt"
            | "-updatedAt"
            | "+recentlyUsed"
            | "-recentlyUsed"
      • OptionalspaceId?: string
      • OptionalspaceType?: SpaceTypeEnum
    • Optionaloptions: ApiCallOptions

    Returns Promise<GetItemsHttpResponse>

    GetItemsHttpError