@acorex/platform 20.7.8 → 20.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common/index.d.ts CHANGED
@@ -673,16 +673,16 @@ interface AXPFileStorageUpdateRequest {
673
673
  }
674
674
  interface AXPFileManyStorageInfo {
675
675
  /**
676
- * The unique identifier for the stored file.
677
- */
676
+ * The unique identifier for the stored file.
677
+ */
678
678
  id?: string;
679
679
  /**
680
680
  * The unique identifier for the stored file.
681
681
  */
682
682
  fileId: string;
683
683
  /**
684
- * The unique identifier of referenced entity.
685
- */
684
+ * The unique identifier of referenced entity.
685
+ */
686
686
  refId: string;
687
687
  /**
688
688
  * The type of the referenced entity.
@@ -696,6 +696,10 @@ interface AXPFileManyStorageInfo {
696
696
  * The name of the file.
697
697
  */
698
698
  name?: string;
699
+ /**
700
+ * The URL where the file can be accessed.
701
+ */
702
+ url?: string;
699
703
  }
700
704
  /**
701
705
  * Represents information about a file stored in the AXP file storage system.
@@ -2584,8 +2584,12 @@ class AXPSearchService {
2584
2584
  if (allProviders.length === 0) {
2585
2585
  throw new Error('No search providers available');
2586
2586
  }
2587
+ const providersWithSearch = allProviders.filter((provider) => provider != null && typeof provider.search === 'function');
2588
+ if (providersWithSearch.length === 0) {
2589
+ throw new Error('No search providers with a valid search method available');
2590
+ }
2587
2591
  const mergeData = [];
2588
- const promises = allProviders.map((provider) => provider.search(text));
2592
+ const promises = providersWithSearch.map((provider) => provider.search(text));
2589
2593
  const results = await Promise.all(promises);
2590
2594
  for (const resultArray of results) {
2591
2595
  for (const result of resultArray) {