@livetiles/reach-plugin-types 0.4.100 → 0.4.101

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 +56 -21
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -967,6 +967,22 @@ declare module "libs/reach/util/common/src/user/Channel" {
967
967
  };
968
968
  }
969
969
  }
970
+ declare module "libs/reach/util/common/src/content/ItemResourceType" {
971
+ export enum ItemResourceTypes {
972
+ News = "news",
973
+ Pages = "pages",
974
+ Posts = "posts",
975
+ Events = "events",
976
+ Comments = "comments"
977
+ }
978
+ export enum ItemType {
979
+ News = 0,
980
+ Post = 1,
981
+ Page = 2,
982
+ Event = 3
983
+ }
984
+ export type ItemTypeKeyType = keyof typeof ItemType;
985
+ }
970
986
  declare module "libs/reach/util/common/src/user/Subscription" {
971
987
  import { Resources } from "libs/reach/util/context/src/index";
972
988
  import { Account } from "libs/reach/util/common/src/user/Account";
@@ -976,6 +992,7 @@ declare module "libs/reach/util/common/src/user/Subscription" {
976
992
  import { Language, LanguageBase } from "libs/reach/util/common/src/content/Language";
977
993
  import { Keyword, KeywordGroup } from "libs/reach/util/common/src/content/KeywordGroup";
978
994
  import { Channel } from "libs/reach/util/common/src/user/Channel";
995
+ import { ItemType } from "libs/reach/util/common/src/content/ItemResourceType";
979
996
  export interface DirectoryConfiguration extends DirectoryConfigurationPatch {
980
997
  domains?: string[];
981
998
  tenantId: string;
@@ -1088,6 +1105,9 @@ declare module "libs/reach/util/common/src/user/Subscription" {
1088
1105
  directories: DirectoryConfiguration[];
1089
1106
  selfRegistration: SelfRegistrationOptions;
1090
1107
  customBrandingIdentifier?: string;
1108
+ customNotificationSettings?: {
1109
+ [key in ItemType]: string | null;
1110
+ };
1091
1111
  }
1092
1112
  export interface SelfRegistrationOptions {
1093
1113
  enabled?: boolean;
@@ -1997,15 +2017,6 @@ declare module "libs/reach/util/common/src/content/Comment" {
1997
2017
  Posts = 2
1998
2018
  }
1999
2019
  }
2000
- declare module "libs/reach/util/common/src/content/ItemResourceType" {
2001
- export enum ItemResourceTypes {
2002
- News = "news",
2003
- Pages = "pages",
2004
- Posts = "posts",
2005
- Events = "events",
2006
- Comments = "comments"
2007
- }
2008
- }
2009
2020
  declare module "libs/reach/util/common/src/content/EventItem" {
2010
2021
  import { Account } from "libs/reach/util/common/src/user/Account";
2011
2022
  import { PollResult } from "libs/reach/util/common/src/content/BaseItem";
@@ -5264,6 +5275,9 @@ declare module "apps/reach-app/src/app/admin/useSubscriptionAdminApi" {
5264
5275
  deleteSubscriptionOwners: (userIds: string[]) => Promise<unknown>;
5265
5276
  addSubscriptionOwners: (userIds: string[]) => Promise<unknown>;
5266
5277
  deleteDemoContent: () => Promise<any>;
5278
+ updateCustomNotificationSettings: (customNotificationSettings: {
5279
+ [key: number]: string;
5280
+ }) => Promise<unknown>;
5267
5281
  };
5268
5282
  interface HandleValidationResult {
5269
5283
  errorMessage?: string;
@@ -5369,19 +5383,21 @@ declare module "apps/reach-app/src/app/admin/customization/Favicon" {
5369
5383
  import { FC } from 'react';
5370
5384
  export const Favicon: FC;
5371
5385
  }
5372
- declare module "apps/reach-app/src/app/admin/customization/Customization" {
5373
- import { FC } from 'react';
5374
- export const Customization: FC;
5375
- }
5376
- declare module "apps/reach-app/src/app/admin/languages/LanguageDialog" {
5386
+ declare module "apps/reach-app/src/app/admin/customization/EmailNotificationItem" {
5377
5387
  import { FC } from 'react';
5378
- import { LocalizedLanguageSummary } from "libs/reach/util/common/src/index";
5379
- export const LanguageDialog: FC<{
5380
- languages: LocalizedLanguageSummary[];
5381
- onChange: (language: LocalizedLanguageSummary) => unknown;
5382
- onClose: () => unknown;
5383
- titleResource: string;
5384
- showDialog: boolean;
5388
+ import { ItemTypeKeyType } from "libs/reach/util/common/src/index";
5389
+ import { ItemType } from "libs/reach/util/common/src/index";
5390
+ export enum Error {
5391
+ Empty = "empty",
5392
+ Invalid = "invalid"
5393
+ }
5394
+ export const EmailNotificationItem: FC<{
5395
+ id: ItemType;
5396
+ name: ItemTypeKeyType;
5397
+ url: string | null;
5398
+ error?: Error;
5399
+ handleError: (itemType: ItemType, error: Error) => void;
5400
+ onChange: (itemType: ItemType, url: string | null) => void;
5385
5401
  }>;
5386
5402
  }
5387
5403
  declare module "libs/shared/util/authentication-services/src/LoginArguments" {
@@ -6058,6 +6074,25 @@ declare module "apps/reach-app/src/app/admin/AdminSubscriptionContext" {
6058
6074
  }>;
6059
6075
  export const AdminSubscriptionContextProvider: FC;
6060
6076
  }
6077
+ declare module "apps/reach-app/src/app/admin/customization/EmailNotifications" {
6078
+ import { FC } from 'react';
6079
+ export const EmailNotifications: FC;
6080
+ }
6081
+ declare module "apps/reach-app/src/app/admin/customization/Customization" {
6082
+ import { FC } from 'react';
6083
+ export const Customization: FC;
6084
+ }
6085
+ declare module "apps/reach-app/src/app/admin/languages/LanguageDialog" {
6086
+ import { FC } from 'react';
6087
+ import { LocalizedLanguageSummary } from "libs/reach/util/common/src/index";
6088
+ export const LanguageDialog: FC<{
6089
+ languages: LocalizedLanguageSummary[];
6090
+ onChange: (language: LocalizedLanguageSummary) => unknown;
6091
+ onClose: () => unknown;
6092
+ titleResource: string;
6093
+ showDialog: boolean;
6094
+ }>;
6095
+ }
6061
6096
  declare module "apps/reach-app/src/app/admin/languages/Languages" {
6062
6097
  import { FC } from 'react';
6063
6098
  export const Languages: FC;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.100",
7
+ "version": "0.4.101",
8
8
  "dependencies": {}
9
9
  }