async Collection({collectionType}) {
    const validCollectionTypes = [
      "accessGroups",
      "contentObjects",
      "contentTypes",
      "contracts",
      "libraries"
    ];

    if(!validCollectionTypes.includes(collectionType)) {
      throw new Error("Invalid collection type: " + collectionType);
    }

    const walletAddress = this.signer ? await this.userProfileClient.WalletAddress() : undefined;
    if(!walletAddress) {
      throw new Error("Unable to get collection: User wallet doesn't exist");
    }

    return await this.ethClient.MakeProviderCall({
      methodName: "send",
      args: [
        "elv_getWalletCollection",
        [
          this.contentSpaceId,
          `iusr${this.utils.AddressToHash(this.signer.address)}`,
          collectionType
        ]
      ]
    });
  }
/**
   * Get a list of unique addresses of all of the specified type the current user has access
   * to through both their user wallet and through access groups
   *
   * @methodGroup Collections
   * @namedParams
   * @param {string} collectionType - Type of collection to retrieve
   * - accessGroups
   * - contentObjects
   * - contentTypes
   * - contracts
   * - libraries
   *
   * @return {Promise<Array<string>>} - List of addresses of available items
   */
Get a list of unique addresses of all of the specified type the current user has access
to through both their user wallet and through access groups



@return {Promise>} - List of addresses of available items
Get a list of unique addresses of all of the specified type the current user has access to through both their user wallet and through access groups @return { Promise > } - List of addresses of available items
async Collection({collectionType}) {
    const validCollectionTypes = [
      "accessGroups",
      "contentObjects",
      "contentTypes",
      "contracts",
      "libraries"
    ];
    if(!validCollectionTypes.includes(collectionType)) {
      throw new Error("Invalid collection type: " + collectionType);
    }
    const walletAddress = this.signer ? await this.userProfileClient.WalletAddress() : undefined;
    if(!walletAddress) {
      throw new Error("Unable to get collection: User wallet doesn't exist");
    }
    return await this.ethClient.MakeProviderCall({
      methodName: "send",
      args: [
        "elv_getWalletCollection",
        [
          this.contentSpaceId,
          `iusr${this.utils.AddressToHash(this.signer.address)}`,
          collectionType
        ]
      ]
    });
  }
async Collection ( { collectionType } ) { const validCollectionTypes = [ "accessGroups" , "contentObjects" , "contentTypes" , "contracts" , "libraries" ] ; if ( ! validCollectionTypes . includes ( collectionType ) ) { throw new Error ( "Invalid collection type: " + collectionType ) ; } const walletAddress = this . signer ? await this . userProfileClient . WalletAddress ( ) : undefined ; if ( ! walletAddress ) { throw new Error ( "Unable to get collection: User wallet doesn't exist" ) ; } return await this . ethClient . MakeProviderCall ( { methodName : "send" , args : [ "elv_getWalletCollection" , [ this . contentSpaceId , ` ${ this . utils . AddressToHash ( this . signer . address ) } ` , collectionType ] ] } ) ; }
Get a list of unique addresses of all of the specified type the current user has access
 to through both their user wallet and through access groups
Get a list of unique addresses of all of the specified type the current user has access to through both their user wallet and through access groups