@livetiles/reach-plugin-types 0.4.0-preview.269 → 0.4.0-preview.271
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 +43 -40
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6445,6 +6445,10 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6445
6445
|
export interface IndexableFilterDefinition {
|
|
6446
6446
|
[key: string]: any;
|
|
6447
6447
|
}
|
|
6448
|
+
export interface FilterWithLogicalOperator {
|
|
6449
|
+
items?: string[];
|
|
6450
|
+
operator?: LogicalOperator;
|
|
6451
|
+
}
|
|
6448
6452
|
export enum LogicalOperator {
|
|
6449
6453
|
Or = "or",
|
|
6450
6454
|
And = "and"
|
|
@@ -6471,6 +6475,29 @@ declare module "libs/reach/feature/content/src/filter/EventContactsFilterDefinit
|
|
|
6471
6475
|
contacts?: string[];
|
|
6472
6476
|
}
|
|
6473
6477
|
}
|
|
6478
|
+
declare module "libs/reach/feature/content/src/filter/ChannelsFilterDefinition" {
|
|
6479
|
+
import { FilterWithLogicalOperator, IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
6480
|
+
export interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
6481
|
+
channels?: FilterWithLogicalOperator;
|
|
6482
|
+
}
|
|
6483
|
+
}
|
|
6484
|
+
declare module "libs/reach/feature/content/src/filter/EventFilterDefinition" {
|
|
6485
|
+
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
6486
|
+
import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
6487
|
+
import { EventsStartDateFilterDefinition } from "libs/reach/feature/content/src/filter/EventsStartDateFilterDefinition";
|
|
6488
|
+
import { EventContactsFilterDefinition } from "libs/reach/feature/content/src/filter/EventContactsFilterDefinition";
|
|
6489
|
+
import { ChannelsFilterDefinition } from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
6490
|
+
export interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
6491
|
+
excludePastEvents?: boolean;
|
|
6492
|
+
pastEventsOnly?: boolean;
|
|
6493
|
+
}
|
|
6494
|
+
export type eventSortDefinitionFields = 'startDate' | 'publishingDate';
|
|
6495
|
+
export class EventSortFieldsDefinitionBuilder extends SortFieldsDefinitionBuilder<eventSortDefinitionFields> {
|
|
6496
|
+
static create(): EventSortFieldsDefinitionBuilder;
|
|
6497
|
+
}
|
|
6498
|
+
export const eventsPastViewSortDefinition: EventSortFieldsDefinitionBuilder;
|
|
6499
|
+
export const eventsLatestViewSortDefinition: EventSortFieldsDefinitionBuilder;
|
|
6500
|
+
}
|
|
6474
6501
|
declare module "libs/reach/feature/content/src/filter/AuthorFilterDefinition" {
|
|
6475
6502
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
6476
6503
|
export interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
@@ -6550,18 +6577,6 @@ declare module "libs/reach/feature/content/src/filter/useFilter" {
|
|
|
6550
6577
|
showFilterSidebar?: boolean;
|
|
6551
6578
|
}
|
|
6552
6579
|
}
|
|
6553
|
-
declare module "libs/reach/feature/content/src/filter/utils" {
|
|
6554
|
-
export function getCommaSeparatedChannelsString(channels: string[]): {
|
|
6555
|
-
channels?: undefined;
|
|
6556
|
-
} | {
|
|
6557
|
-
channels: string;
|
|
6558
|
-
};
|
|
6559
|
-
export function getCommaSeparatedKeywordsString(keywords: string[]): {
|
|
6560
|
-
keywords?: undefined;
|
|
6561
|
-
} | {
|
|
6562
|
-
keywords: string;
|
|
6563
|
-
};
|
|
6564
|
-
}
|
|
6565
6580
|
declare module "libs/reach/feature/content/src/filter/index" {
|
|
6566
6581
|
export * from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
6567
6582
|
export * from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
@@ -6581,32 +6596,20 @@ declare module "libs/reach/feature/content/src/filter/index" {
|
|
|
6581
6596
|
export * from "libs/reach/feature/content/src/filter/useFilter";
|
|
6582
6597
|
export * from "libs/reach/feature/content/src/filter/utils";
|
|
6583
6598
|
}
|
|
6584
|
-
declare module "libs/reach/feature/content/src/filter/
|
|
6585
|
-
import {
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
}
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
import { EventContactsFilterDefinition } from "libs/reach/feature/content/src/filter/EventContactsFilterDefinition";
|
|
6599
|
-
import { ChannelsFilterDefinition } from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
6600
|
-
export interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
6601
|
-
excludePastEvents?: boolean;
|
|
6602
|
-
pastEventsOnly?: boolean;
|
|
6603
|
-
}
|
|
6604
|
-
export type eventSortDefinitionFields = 'startDate' | 'publishingDate';
|
|
6605
|
-
export class EventSortFieldsDefinitionBuilder extends SortFieldsDefinitionBuilder<eventSortDefinitionFields> {
|
|
6606
|
-
static create(): EventSortFieldsDefinitionBuilder;
|
|
6607
|
-
}
|
|
6608
|
-
export const eventsPastViewSortDefinition: EventSortFieldsDefinitionBuilder;
|
|
6609
|
-
export const eventsLatestViewSortDefinition: EventSortFieldsDefinitionBuilder;
|
|
6599
|
+
declare module "libs/reach/feature/content/src/filter/utils" {
|
|
6600
|
+
import { FilterWithLogicalOperator } from "libs/reach/feature/content/src/filter/index";
|
|
6601
|
+
export function getCommaSeparatedChannelsString(channels: FilterWithLogicalOperator): {
|
|
6602
|
+
channels?: undefined;
|
|
6603
|
+
} | {
|
|
6604
|
+
channels: string;
|
|
6605
|
+
};
|
|
6606
|
+
export function getCommaSeparatedKeywordsString(keywords: string[]): {
|
|
6607
|
+
keywords?: undefined;
|
|
6608
|
+
} | {
|
|
6609
|
+
keywords: string;
|
|
6610
|
+
};
|
|
6611
|
+
export function converToChannelsFilterWithLogicalOperator(channels: string): FilterWithLogicalOperator;
|
|
6612
|
+
export function convertToKeywordsArray(keywords: string): string[];
|
|
6610
6613
|
}
|
|
6611
6614
|
declare module "libs/reach/feature/content/src/events/useEventsApi" {
|
|
6612
6615
|
import { EventFilterDefinition, EventSortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/EventFilterDefinition";
|
|
@@ -10767,7 +10770,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
|
10767
10770
|
import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
|
|
10768
10771
|
import { DocumentNode } from '@apollo/client';
|
|
10769
10772
|
import { Channel } from "libs/reach/util/common/src/index";
|
|
10770
|
-
import { BeforePublishingDateFilterDefinition, ChannelsFilterDefinition, ItemTypeFilterDefinition, KeywordsFilterDefinition, OwnerFilterDefinition,
|
|
10773
|
+
import { BeforePublishingDateFilterDefinition, ChannelsFilterDefinition, ItemTypeFilterDefinition, KeywordsFilterDefinition, OwnerFilterDefinition, FilterWithLogicalOperator } from "libs/reach/feature/content/src/filter/index";
|
|
10771
10774
|
export enum StreamEventResponse {
|
|
10772
10775
|
NotSet = "NOTSET",
|
|
10773
10776
|
Registered = "REGISTERED",
|
|
@@ -10788,7 +10791,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
|
10788
10791
|
};
|
|
10789
10792
|
export const getStreamQuery: () => DocumentNode;
|
|
10790
10793
|
export const getSearchQuery: (filter?: StreamFilterDefinition, allChannels?: Channel[]) => DocumentNode;
|
|
10791
|
-
export const CHANNELS_CONDITION: (channels:
|
|
10794
|
+
export const CHANNELS_CONDITION: (channels: FilterWithLogicalOperator, allChannels: Channel[]) => string;
|
|
10792
10795
|
export const KEYWORDS_OR_CONDITION: (keywords: string[]) => string;
|
|
10793
10796
|
export const OWNER_CONDITION: (owner: string) => string;
|
|
10794
10797
|
export const PUBLISHING_DATE_CONDITION: (beforeDate: string, afterDate: string) => string;
|