@livetiles/reach-plugin-types 0.5.0-preview.1027 → 0.5.0-preview.1029

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +19 -6
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -436,10 +436,11 @@ declare module "libs/shared/util/common/src/avatarUtil" {
436
436
  export function getAvatarBackgroundColor(initials: string): string;
437
437
  }
438
438
  declare module "libs/shared/util/common/src/dateUtils" {
439
- export function getDateOrNow(value?: string): Date;
440
- export function ensureDate(value: string | Date): Date;
441
- export function isDateToday(value: string | Date): boolean;
442
- export function isSameOrAfter(date: Date, dateToCompare: Date): boolean;
439
+ export const getDateOrNow: (value?: string) => Date;
440
+ export const ensureDate: (value: string | Date) => Date;
441
+ export const isDateToday: (value: string | Date) => boolean;
442
+ export const isSameOrAfter: (date: Date, dateToCompare: Date) => boolean;
443
+ export const toTimezone: (date: Date) => Date;
443
444
  }
444
445
  declare module "libs/shared/util/common/src/debouncePromise" {
445
446
  type Awaited<T> = T extends PromiseLike<infer U> ? U : T;
@@ -3892,6 +3893,7 @@ declare module "libs/reach/util/common/src/notification/NotificationContext" {
3892
3893
  hideNotification?: () => unknown;
3893
3894
  showToast?: (content: string, values?: {}, actions?: ReactNode, toastOptions?: ToastOptions) => number;
3894
3895
  showToastWarning?: (messageId: string, values?: {}, onClose?: () => unknown) => number;
3896
+ showToastError?: (messageId: string, values?: {}, onClose?: () => unknown) => number;
3895
3897
  dismissToast?: (toastId?: number) => unknown;
3896
3898
  }
3897
3899
  export const NotificationContext: import("react").Context<NotificationContextType>;
@@ -4223,9 +4225,20 @@ declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogg
4223
4225
  }
4224
4226
  declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
4225
4227
  import { NestedGroup } from "libs/reach/util/common/src/user/index";
4226
- export function useNestedGroupsQuery(): {
4227
- loadRootGroups: () => Promise<NestedGroup[]>;
4228
+ export interface NestedGroupInput {
4229
+ description: string;
4230
+ id?: string;
4231
+ name: string;
4232
+ users: {
4233
+ userId: string;
4234
+ }[];
4235
+ }
4236
+ export const useNestedGroupsQuery: () => {
4237
+ createNestedGroup: (inputGroup: NestedGroupInput) => Promise<NestedGroup>;
4238
+ deleteNestedGroups: (groupIds: string[]) => Promise<string[]>;
4228
4239
  loadChildGroups: (parentId: string) => Promise<NestedGroup[]>;
4240
+ loadRootGroups: () => Promise<NestedGroup[]>;
4241
+ updateNestedGroup: (inputGroup: NestedGroupInput) => Promise<NestedGroup>;
4229
4242
  };
4230
4243
  }
4231
4244
  declare module "libs/reach/util/common/src/reach-2/index" {
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.1027",
7
+ "version": "0.5.0-preview.1029",
8
8
  "dependencies": {}
9
9
  }