Skip to content

Commit b356819

Browse files
committed
Add useOrganizationData type and update functions map
1 parent 13926ab commit b356819

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/ui/registry/units/common/functions-map.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ import type {OpenDialogOrganizationInviteUsers} from './types/functions/openDial
5959
import type {RenderDialogRelatedEntitiesAlertHint} from './types/functions/renderDialogRelatedEntitiesAlertHint';
6060
import type {ResolveUsersByIds} from './types/functions/resolveUsersByIds';
6161
import type {SetEntryKey} from './types/functions/setEntryKey';
62+
import type {UseOrganizationData} from './types/functions/useOrganizationData';
6263
import type {UseSubjectsListId} from './types/functions/useSubjectsListId';
6364

6465
export const commonFunctionsMap = {
6566
[EXAMPLE_FUNCTION]: makeFunctionTemplate<(arg: number) => string>(),
6667
useSubjectsListId: makeFunctionTemplate<() => UseSubjectsListId>(),
68+
useOrganizationData: makeFunctionTemplate<() => UseOrganizationData>(),
6769
openDialogOrganizationInvite: makeFunctionTemplate<() => OpenDialogOrganizationInvite>(),
6870
openDialogOrganizationInviteUsers:
6971
makeFunctionTemplate<() => OpenDialogOrganizationInviteUsers>(),
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export type UseOrganizationData = {
2+
id: string | undefined;
3+
title: string | undefined;
4+
};
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export type UseSubjectsListId = {
22
type: 'organizationId' | 'cloudId';
33
id: string | undefined;
4-
title: string | undefined;
54
};

0 commit comments

Comments
 (0)