@livetiles/reach-plugin-types 0.4.0-preview.230 → 0.4.0-preview.235
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/lib/index.d.ts +25 -11
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6400,7 +6400,7 @@ declare module "libs/reach/feature/content/src/filter/SourceFilterDefinition" {
|
|
|
6400
6400
|
declare module "libs/reach/feature/content/src/filter/KeywordsFilterDefinition" {
|
|
6401
6401
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
6402
6402
|
export interface KeywordsFilterDefinition extends IndexableFilterDefinition {
|
|
6403
|
-
keywords?: string;
|
|
6403
|
+
keywords?: string[];
|
|
6404
6404
|
}
|
|
6405
6405
|
}
|
|
6406
6406
|
declare module "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition" {
|
|
@@ -6447,12 +6447,19 @@ declare module "libs/reach/feature/content/src/filter/EventContactsFilterDefinit
|
|
|
6447
6447
|
contacts?: string[];
|
|
6448
6448
|
}
|
|
6449
6449
|
}
|
|
6450
|
+
declare module "libs/reach/feature/content/src/filter/ChannelsFilterDefinition" {
|
|
6451
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
6452
|
+
export interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
6453
|
+
channels?: string[];
|
|
6454
|
+
}
|
|
6455
|
+
}
|
|
6450
6456
|
declare module "libs/reach/feature/content/src/filter/EventFilterDefinition" {
|
|
6451
6457
|
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
6452
6458
|
import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
6453
6459
|
import { EventsStartDateFilterDefinition } from "libs/reach/feature/content/src/filter/EventsStartDateFilterDefinition";
|
|
6454
6460
|
import { EventContactsFilterDefinition } from "libs/reach/feature/content/src/filter/EventContactsFilterDefinition";
|
|
6455
|
-
|
|
6461
|
+
import { ChannelsFilterDefinition } from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
6462
|
+
export interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
6456
6463
|
excludePastEvents?: boolean;
|
|
6457
6464
|
pastEventsOnly?: boolean;
|
|
6458
6465
|
}
|
|
@@ -6463,6 +6470,18 @@ declare module "libs/reach/feature/content/src/filter/EventFilterDefinition" {
|
|
|
6463
6470
|
export const eventsPastViewSortDefinition: EventSortFieldsDefinitionBuilder;
|
|
6464
6471
|
export const eventsLatestViewSortDefinition: EventSortFieldsDefinitionBuilder;
|
|
6465
6472
|
}
|
|
6473
|
+
declare module "libs/reach/feature/content/src/filter/utils" {
|
|
6474
|
+
export function getCommaSeparatedChannelsString(channels: string[]): {
|
|
6475
|
+
channels?: undefined;
|
|
6476
|
+
} | {
|
|
6477
|
+
channels: string;
|
|
6478
|
+
};
|
|
6479
|
+
export function getCommaSeparatedKeywordsString(keywords: string[]): {
|
|
6480
|
+
keywords?: undefined;
|
|
6481
|
+
} | {
|
|
6482
|
+
keywords: string;
|
|
6483
|
+
};
|
|
6484
|
+
}
|
|
6466
6485
|
declare module "libs/reach/feature/content/src/events/useEventsApi" {
|
|
6467
6486
|
import { EventFilterDefinition, EventSortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/EventFilterDefinition";
|
|
6468
6487
|
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
@@ -6479,12 +6498,6 @@ declare module "libs/reach/feature/content/src/filter/AuthorFilterDefinition" {
|
|
|
6479
6498
|
author?: string;
|
|
6480
6499
|
}
|
|
6481
6500
|
}
|
|
6482
|
-
declare module "libs/reach/feature/content/src/filter/ChannelsFilterDefinition" {
|
|
6483
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
6484
|
-
export interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
6485
|
-
channels?: string;
|
|
6486
|
-
}
|
|
6487
|
-
}
|
|
6488
6501
|
declare module "libs/reach/feature/content/src/filter/StateFilterDefinition" {
|
|
6489
6502
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
6490
6503
|
import { WorkflowStatus } from "libs/reach/util/common/src/index";
|
|
@@ -8689,12 +8702,12 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
|
|
|
8689
8702
|
}
|
|
8690
8703
|
declare module "libs/reach/feature/content/src/pages/useLoadPublishedItemsByKeywords" {
|
|
8691
8704
|
import { PageType } from "libs/reach/util/common/src/index";
|
|
8692
|
-
export function useLoadPublishedItemsByKeywords(keywords: string, showPagesAndDocuments: boolean, pageType?: PageType): (pageSize: number, token: string) => Promise<import("@livetiles/reach/util/common").PaginatedList<import("@livetiles/reach/util/common").PageItem>>;
|
|
8705
|
+
export function useLoadPublishedItemsByKeywords(keywords: string[], showPagesAndDocuments: boolean, pageType?: PageType): (pageSize: number, token: string) => Promise<import("@livetiles/reach/util/common").PaginatedList<import("@livetiles/reach/util/common").PageItem>>;
|
|
8693
8706
|
}
|
|
8694
8707
|
declare module "libs/reach/feature/content/src/common/body/inline-page-list/InlinePageListByKeywords" {
|
|
8695
8708
|
import { FC } from 'react';
|
|
8696
8709
|
export const InlinePageListByKeywords: FC<{
|
|
8697
|
-
keywords: string;
|
|
8710
|
+
keywords: string[];
|
|
8698
8711
|
showDocuments?: boolean;
|
|
8699
8712
|
showPages?: boolean;
|
|
8700
8713
|
}>;
|
|
@@ -9100,6 +9113,7 @@ declare module "libs/reach/feature/content/src/filter/index" {
|
|
|
9100
9113
|
export * from "libs/reach/feature/content/src/filter/StateFilterDefinition";
|
|
9101
9114
|
export * from "libs/reach/feature/content/src/filter/ItemTypeFilterDefinition";
|
|
9102
9115
|
export * from "libs/reach/feature/content/src/filter/useFilter";
|
|
9116
|
+
export * from "libs/reach/feature/content/src/filter/utils";
|
|
9103
9117
|
}
|
|
9104
9118
|
declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPickerGroup" {
|
|
9105
9119
|
import { Keyword, KeywordGroup } from "libs/reach/util/common/src/index";
|
|
@@ -9688,7 +9702,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
|
9688
9702
|
refresh: () => Promise<void>;
|
|
9689
9703
|
};
|
|
9690
9704
|
export const getStreamQuery: () => DocumentNode;
|
|
9691
|
-
export const getSearchQuery: (filter?: StreamFilterDefinition,
|
|
9705
|
+
export const getSearchQuery: (filter?: StreamFilterDefinition, allChannels?: Channel[]) => DocumentNode;
|
|
9692
9706
|
export const CHANNELS_OR_CONDITION: (channels: string[]) => string;
|
|
9693
9707
|
export const KEYWORDS_OR_CONDITION: (keywords: string[]) => string;
|
|
9694
9708
|
export const NEWS_QUERY: (includeAllItems: boolean, whereConditions?: string) => DocumentNode;
|