Commits
Rezart Vata authored f1135d8a966
471 471 | } |
472 472 | |
473 473 | /** |
474 474 | * Patch isn't supported on the relationship endpoint, so use put instead. |
475 475 | * |
476 476 | * @param typeId the relationship type id to apply as a filter to the returned relationships |
477 477 | * @param itemUuid The uuid of the item to be checked on the side defined by relationshipLabel |
478 478 | * @param relationshipLabel the name of the relation as defined from the side of the itemUuid |
479 479 | * @param arrayOfItemIds The uuid of the items to be found on the other side of returned relationships |
480 480 | */ |
481 - | searchByItemsAndType(typeId: string,itemUuid: string,relationshipLabel: string, arrayOfItemIds: string[] ): Observable<Relationship[]> { |
481 + | searchByItemsAndType(typeId: string,itemUuid: string,relationshipLabel: string, arrayOfItemIds: string[] ): Observable<PaginatedList<Relationship[]>> { |
482 482 | |
483 483 | const searchParams = [ |
484 484 | { |
485 485 | fieldName: 'typeId', |
486 486 | fieldValue: typeId |
487 487 | }, |
488 488 | { |
489 489 | fieldName: 'focusItem', |
490 490 | fieldValue: itemUuid |
491 491 | }, |
508 508 | ); |
509 509 | }); |
510 510 | |
511 511 | return this.searchBy( |
512 512 | 'byItemsAndType', |
513 513 | { |
514 514 | searchParams: searchParams |
515 515 | }).pipe( |
516 516 | getFirstSucceededRemoteData(), |
517 517 | getRemoteDataPayload(), |
518 - | ) as Observable<Relationship[]>; |
518 + | ) as Observable<PaginatedList<Relationship[]>>; |
519 519 | |
520 520 | } |
521 521 | } |