@livetiles/reach-plugin-types 0.5.0-preview.729 → 0.5.0-preview.730

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 +7 -13
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -990,6 +990,7 @@ declare module "libs/reach/util/common/src/content/ItemResourceType" {
990
990
  Page = 2,
991
991
  Event = 3
992
992
  }
993
+ export type ItemTypeKeyType = keyof typeof ItemType;
993
994
  }
994
995
  declare module "libs/reach/util/common/src/user/Subscription" {
995
996
  import { Resources } from "libs/reach/util/context/src/index";
@@ -1114,7 +1115,7 @@ declare module "libs/reach/util/common/src/user/Subscription" {
1114
1115
  selfRegistration: SelfRegistrationOptions;
1115
1116
  customBrandingIdentifier?: string;
1116
1117
  customNotificationSettings?: {
1117
- [key in keyof typeof ItemType]: string;
1118
+ [key in ItemType]: string | null;
1118
1119
  };
1119
1120
  }
1120
1121
  export interface SelfRegistrationOptions {
@@ -11432,26 +11433,19 @@ declare module "apps/reach-app/src/app/admin/customization/Favicon" {
11432
11433
  }
11433
11434
  declare module "apps/reach-app/src/app/admin/customization/EmailNotificationItem" {
11434
11435
  import { FC } from 'react';
11436
+ import { ItemTypeKeyType } from "libs/reach/util/common/src/index";
11435
11437
  import { ItemType } from "libs/reach/util/common/src/index";
11436
- export type NotificationSetting = {
11437
- option: Option;
11438
- url?: string;
11439
- error?: Error;
11440
- };
11441
- export enum Option {
11442
- Reach = "reach",
11443
- Custom = "custom"
11444
- }
11445
11438
  export enum Error {
11446
11439
  Empty = "empty",
11447
11440
  Invalid = "invalid"
11448
11441
  }
11449
11442
  export const EmailNotificationItem: FC<{
11450
11443
  id: ItemType;
11451
- name: string;
11452
- notificationSetting?: NotificationSetting;
11444
+ name: ItemTypeKeyType;
11445
+ url: string | null;
11446
+ error?: Error;
11453
11447
  handleError: (itemType: ItemType, error: Error) => void;
11454
- onChange: (itemType: ItemType, option: Option, url?: string) => void;
11448
+ onChange: (itemType: ItemType, url: string | null) => void;
11455
11449
  }>;
11456
11450
  }
11457
11451
  declare module "libs/shared/util/authentication-services/src/LoginArguments" {
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.729",
7
+ "version": "0.5.0-preview.730",
8
8
  "dependencies": {}
9
9
  }