@livetiles/reach-plugin-types 0.4.7 → 0.4.8
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 +71 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1438,6 +1438,7 @@ declare module "libs/reach/util/common/src/user/User" {
|
|
|
1438
1438
|
subscriptionId: string;
|
|
1439
1439
|
tenantId: string;
|
|
1440
1440
|
expires?: string;
|
|
1441
|
+
hasPrivateEmail?: boolean;
|
|
1441
1442
|
}
|
|
1442
1443
|
export interface HashUser {
|
|
1443
1444
|
id: string;
|
|
@@ -1483,6 +1484,8 @@ declare module "libs/reach/util/common/src/user/User" {
|
|
|
1483
1484
|
export interface SubscriptionJoinResult {
|
|
1484
1485
|
user: UserSummary;
|
|
1485
1486
|
type: SubscriptionJoinResultType;
|
|
1487
|
+
message?: string;
|
|
1488
|
+
isSuccess?: boolean;
|
|
1486
1489
|
}
|
|
1487
1490
|
export interface UserActivationResult {
|
|
1488
1491
|
type: UserActivationResultType;
|
|
@@ -2501,6 +2504,7 @@ declare module "libs/reach/util/common/src/user/useUserAdminApi" {
|
|
|
2501
2504
|
updateUserProfilePropertiesByUPN: (upn: string, newProperties: UpdatableUserProperties) => Promise<unknown>;
|
|
2502
2505
|
updateUserAvatarByUPN: (upn: string, subscriptionId: string, file?: File) => Promise<unknown>;
|
|
2503
2506
|
deleteUserAvatarByUPN: (upn: string) => Promise<unknown>;
|
|
2507
|
+
importUsers: (file: File) => Promise<SubscriptionJoinResult[]>;
|
|
2504
2508
|
};
|
|
2505
2509
|
}
|
|
2506
2510
|
declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
|
|
@@ -3355,7 +3359,7 @@ declare module "libs/reach/ui/common/src/Tooltip" {
|
|
|
3355
3359
|
import { FC } from 'react';
|
|
3356
3360
|
import { ITooltipHostProps } from 'office-ui-fabric-react';
|
|
3357
3361
|
export interface TooltipProps extends ITooltipHostProps {
|
|
3358
|
-
text?: string;
|
|
3362
|
+
text?: string | JSX.Element;
|
|
3359
3363
|
resourceKey?: string;
|
|
3360
3364
|
values?: {
|
|
3361
3365
|
[key: string]: string | number | boolean | Date;
|
|
@@ -6350,6 +6354,72 @@ declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyButton" {
|
|
|
6350
6354
|
onApiKeyAdded: () => void;
|
|
6351
6355
|
}>;
|
|
6352
6356
|
}
|
|
6357
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview" {
|
|
6358
|
+
import { FC } from 'react';
|
|
6359
|
+
import { SubscriptionJoinResultType } from "libs/reach/util/common/src/index";
|
|
6360
|
+
export enum GenericErrorType {
|
|
6361
|
+
Error = -1
|
|
6362
|
+
}
|
|
6363
|
+
export interface UserImport {
|
|
6364
|
+
displayName?: string;
|
|
6365
|
+
email?: string;
|
|
6366
|
+
hasPrivateEmail?: boolean;
|
|
6367
|
+
importResult?: SubscriptionJoinResultType | GenericErrorType;
|
|
6368
|
+
errorMessage?: string;
|
|
6369
|
+
}
|
|
6370
|
+
export const ImportUsersPreview: FC<{
|
|
6371
|
+
previewUsers: UserImport[];
|
|
6372
|
+
}>;
|
|
6373
|
+
}
|
|
6374
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter" {
|
|
6375
|
+
import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
|
|
6376
|
+
export enum ValidationStatus {
|
|
6377
|
+
Valid = 0,
|
|
6378
|
+
WithErrors = 1,
|
|
6379
|
+
WithUserErrors = 2
|
|
6380
|
+
}
|
|
6381
|
+
export type CsvValidation = {
|
|
6382
|
+
Status?: ValidationStatus;
|
|
6383
|
+
Message?: string;
|
|
6384
|
+
InvalidItems?: string[];
|
|
6385
|
+
};
|
|
6386
|
+
export function useUserCsvInviter(): {
|
|
6387
|
+
invitedUsers: UserImport[];
|
|
6388
|
+
isValidating: boolean;
|
|
6389
|
+
isCsvValid: boolean;
|
|
6390
|
+
parseCsvFile: (csvFile: File) => void;
|
|
6391
|
+
csvValidation: CsvValidation;
|
|
6392
|
+
setCsvValidation: (status: ValidationStatus, message: string, invalidItems?: string[]) => void;
|
|
6393
|
+
inviteUsers: (onSuccess?: () => void) => Promise<void>;
|
|
6394
|
+
isParserReady: boolean;
|
|
6395
|
+
isInviting: boolean;
|
|
6396
|
+
canInvite: boolean;
|
|
6397
|
+
csvFile: File;
|
|
6398
|
+
};
|
|
6399
|
+
}
|
|
6400
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/csvUtils" {
|
|
6401
|
+
export function createCsvUrl(header: string, content: string): string;
|
|
6402
|
+
}
|
|
6403
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/CsvFileValidationResult" {
|
|
6404
|
+
import { FC } from 'react';
|
|
6405
|
+
import { CsvValidation } from "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter";
|
|
6406
|
+
import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
|
|
6407
|
+
export const CsvFileValidationResult: FC<{
|
|
6408
|
+
csvValidation: CsvValidation;
|
|
6409
|
+
invitedUsers: UserImport[];
|
|
6410
|
+
}>;
|
|
6411
|
+
}
|
|
6412
|
+
declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUserButton" {
|
|
6413
|
+
import { FC } from 'react';
|
|
6414
|
+
export const ImportUserButton: FC<{
|
|
6415
|
+
onSuccessfulImport?: () => void;
|
|
6416
|
+
className?: string;
|
|
6417
|
+
}>;
|
|
6418
|
+
export const ImportUserDialog: FC<{
|
|
6419
|
+
onDismiss: () => void;
|
|
6420
|
+
onSuccessfulImport?: () => void;
|
|
6421
|
+
}>;
|
|
6422
|
+
}
|
|
6353
6423
|
declare module "apps/reach-app/src/app/admin/users/UsersPage" {
|
|
6354
6424
|
import { FC } from 'react';
|
|
6355
6425
|
export const UsersPage: FC;
|