@burdenoff/microfe-organization 2026.1101.2 → 2026.1101.3

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 (143) hide show
  1. package/dist/generated/global-operations.d.ts +1845 -0
  2. package/dist/generated/global-operations.d.ts.map +1 -0
  3. package/dist/generated/global-types.d.ts +22960 -0
  4. package/dist/generated/global-types.d.ts.map +1 -0
  5. package/dist/generated/wspace-operations.d.ts +2 -0
  6. package/dist/generated/wspace-operations.d.ts.map +1 -0
  7. package/dist/generated/wspace-types.d.ts +50042 -0
  8. package/dist/generated/wspace-types.d.ts.map +1 -0
  9. package/dist/index.d.ts +56 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/organization-management/AdminOrganizationRoot.d.ts +16 -0
  12. package/dist/organization-management/AdminOrganizationRoot.d.ts.map +1 -0
  13. package/dist/organization-management/AdminOrganizationRoutes.d.ts +16 -0
  14. package/dist/organization-management/AdminOrganizationRoutes.d.ts.map +1 -0
  15. package/dist/organization-management/UserOrganizationRoot.d.ts +24 -0
  16. package/dist/organization-management/UserOrganizationRoot.d.ts.map +1 -0
  17. package/dist/organization-management/UserOrganizationRoutes.d.ts +34 -0
  18. package/dist/organization-management/UserOrganizationRoutes.d.ts.map +1 -0
  19. package/dist/organization-management/constants/permissions.d.ts +30 -0
  20. package/dist/organization-management/constants/permissions.d.ts.map +1 -0
  21. package/dist/organization-management/hooks/useOrganizationEventEmitter.d.ts +19 -0
  22. package/dist/organization-management/hooks/useOrganizationEventEmitter.d.ts.map +1 -0
  23. package/dist/organization-management/hooks/useOrganizationPageView.d.ts +11 -0
  24. package/dist/organization-management/hooks/useOrganizationPageView.d.ts.map +1 -0
  25. package/dist/organization-management/modules/members/components/BulkInviteForm.d.ts +19 -0
  26. package/dist/organization-management/modules/members/components/BulkInviteForm.d.ts.map +1 -0
  27. package/dist/organization-management/modules/members/components/InviteMemberForm.d.ts +18 -0
  28. package/dist/organization-management/modules/members/components/InviteMemberForm.d.ts.map +1 -0
  29. package/dist/organization-management/modules/members/components/InviteStatusBadge.d.ts +6 -0
  30. package/dist/organization-management/modules/members/components/InviteStatusBadge.d.ts.map +1 -0
  31. package/dist/organization-management/modules/members/components/MemberRoleBadge.d.ts +11 -0
  32. package/dist/organization-management/modules/members/components/MemberRoleBadge.d.ts.map +1 -0
  33. package/dist/organization-management/modules/members/components/MyInviteCard.d.ts +22 -0
  34. package/dist/organization-management/modules/members/components/MyInviteCard.d.ts.map +1 -0
  35. package/dist/organization-management/modules/members/components/PendingInvitesList.d.ts +6 -0
  36. package/dist/organization-management/modules/members/components/PendingInvitesList.d.ts.map +1 -0
  37. package/dist/organization-management/modules/members/hooks/useInvites.d.ts +92 -0
  38. package/dist/organization-management/modules/members/hooks/useInvites.d.ts.map +1 -0
  39. package/dist/organization-management/modules/members/hooks/useMembers.d.ts +84 -0
  40. package/dist/organization-management/modules/members/hooks/useMembers.d.ts.map +1 -0
  41. package/dist/organization-management/modules/members/hooks/useWorkspaceInvites.d.ts +20 -0
  42. package/dist/organization-management/modules/members/hooks/useWorkspaceInvites.d.ts.map +1 -0
  43. package/dist/organization-management/modules/members/pages/InviteMemberPage.d.ts +6 -0
  44. package/dist/organization-management/modules/members/pages/InviteMemberPage.d.ts.map +1 -0
  45. package/dist/organization-management/modules/members/pages/InvitePeoplePage.d.ts +13 -0
  46. package/dist/organization-management/modules/members/pages/InvitePeoplePage.d.ts.map +1 -0
  47. package/dist/organization-management/modules/members/pages/MemberDetailPage.d.ts +6 -0
  48. package/dist/organization-management/modules/members/pages/MemberDetailPage.d.ts.map +1 -0
  49. package/dist/organization-management/modules/members/pages/MembersListPage.d.ts +2 -0
  50. package/dist/organization-management/modules/members/pages/MembersListPage.d.ts.map +1 -0
  51. package/dist/organization-management/modules/members/pages/MyInvitesPage.d.ts +11 -0
  52. package/dist/organization-management/modules/members/pages/MyInvitesPage.d.ts.map +1 -0
  53. package/dist/organization-management/modules/members/pages/OrganizationInviteAcceptancePage.d.ts +2 -0
  54. package/dist/organization-management/modules/members/pages/OrganizationInviteAcceptancePage.d.ts.map +1 -0
  55. package/dist/organization-management/modules/members/types/index.d.ts +35 -0
  56. package/dist/organization-management/modules/members/types/index.d.ts.map +1 -0
  57. package/dist/organization-management/modules/members/utils/bulkInviteCsv.d.ts +26 -0
  58. package/dist/organization-management/modules/members/utils/bulkInviteCsv.d.ts.map +1 -0
  59. package/dist/organization-management/modules/members/utils/workspaceInvitationDisplay.d.ts +13 -0
  60. package/dist/organization-management/modules/members/utils/workspaceInvitationDisplay.d.ts.map +1 -0
  61. package/dist/organization-management/modules/organizations/components/OrganizationForm.d.ts +20 -0
  62. package/dist/organization-management/modules/organizations/components/OrganizationForm.d.ts.map +1 -0
  63. package/dist/organization-management/modules/organizations/components/OrganizationStatusBadge.d.ts +13 -0
  64. package/dist/organization-management/modules/organizations/components/OrganizationStatusBadge.d.ts.map +1 -0
  65. package/dist/organization-management/modules/organizations/hooks/useOrganizations.d.ts +116 -0
  66. package/dist/organization-management/modules/organizations/hooks/useOrganizations.d.ts.map +1 -0
  67. package/dist/organization-management/modules/organizations/hooks/useOrgsWithPermission.d.ts +26 -0
  68. package/dist/organization-management/modules/organizations/hooks/useOrgsWithPermission.d.ts.map +1 -0
  69. package/dist/organization-management/modules/organizations/pages/OrganizationCreatePage.d.ts +6 -0
  70. package/dist/organization-management/modules/organizations/pages/OrganizationCreatePage.d.ts.map +1 -0
  71. package/dist/organization-management/modules/organizations/pages/OrganizationDetailPage.d.ts +2 -0
  72. package/dist/organization-management/modules/organizations/pages/OrganizationDetailPage.d.ts.map +1 -0
  73. package/dist/organization-management/modules/organizations/pages/OrganizationEditPage.d.ts +6 -0
  74. package/dist/organization-management/modules/organizations/pages/OrganizationEditPage.d.ts.map +1 -0
  75. package/dist/organization-management/modules/organizations/pages/OrganizationsListPage.d.ts +18 -0
  76. package/dist/organization-management/modules/organizations/pages/OrganizationsListPage.d.ts.map +1 -0
  77. package/dist/organization-management/modules/organizations/schemas/index.d.ts +24 -0
  78. package/dist/organization-management/modules/organizations/schemas/index.d.ts.map +1 -0
  79. package/dist/organization-management/modules/organizations/types/index.d.ts +34 -0
  80. package/dist/organization-management/modules/organizations/types/index.d.ts.map +1 -0
  81. package/dist/organization-management/modules/workspaces/components/AddWorkspaceMemberDialog.d.ts +13 -0
  82. package/dist/organization-management/modules/workspaces/components/AddWorkspaceMemberDialog.d.ts.map +1 -0
  83. package/dist/organization-management/modules/workspaces/components/WorkspaceCard.d.ts +16 -0
  84. package/dist/organization-management/modules/workspaces/components/WorkspaceCard.d.ts.map +1 -0
  85. package/dist/organization-management/modules/workspaces/components/WorkspaceForm.d.ts +16 -0
  86. package/dist/organization-management/modules/workspaces/components/WorkspaceForm.d.ts.map +1 -0
  87. package/dist/organization-management/modules/workspaces/components/WorkspaceStatusBadge.d.ts +13 -0
  88. package/dist/organization-management/modules/workspaces/components/WorkspaceStatusBadge.d.ts.map +1 -0
  89. package/dist/organization-management/modules/workspaces/hooks/useWorkspaceMembers.d.ts +35 -0
  90. package/dist/organization-management/modules/workspaces/hooks/useWorkspaceMembers.d.ts.map +1 -0
  91. package/dist/organization-management/modules/workspaces/hooks/useWorkspaces.d.ts +113 -0
  92. package/dist/organization-management/modules/workspaces/hooks/useWorkspaces.d.ts.map +1 -0
  93. package/dist/organization-management/modules/workspaces/pages/WorkspaceCreatePage.d.ts +2 -0
  94. package/dist/organization-management/modules/workspaces/pages/WorkspaceCreatePage.d.ts.map +1 -0
  95. package/dist/organization-management/modules/workspaces/pages/WorkspaceDetailPage.d.ts +2 -0
  96. package/dist/organization-management/modules/workspaces/pages/WorkspaceDetailPage.d.ts.map +1 -0
  97. package/dist/organization-management/modules/workspaces/pages/WorkspaceEditPage.d.ts +2 -0
  98. package/dist/organization-management/modules/workspaces/pages/WorkspaceEditPage.d.ts.map +1 -0
  99. package/dist/organization-management/modules/workspaces/pages/WorkspacesListPage.d.ts +11 -0
  100. package/dist/organization-management/modules/workspaces/pages/WorkspacesListPage.d.ts.map +1 -0
  101. package/dist/organization-management/modules/workspaces/schemas/index.d.ts +21 -0
  102. package/dist/organization-management/modules/workspaces/schemas/index.d.ts.map +1 -0
  103. package/dist/organization-management/modules/workspaces/types/index.d.ts +38 -0
  104. package/dist/organization-management/modules/workspaces/types/index.d.ts.map +1 -0
  105. package/dist/organization-management/modules/workspaces/types/workspace-member.d.ts +40 -0
  106. package/dist/organization-management/modules/workspaces/types/workspace-member.d.ts.map +1 -0
  107. package/dist/organization-management/providers/OrgConsoleProvider.d.ts +19 -0
  108. package/dist/organization-management/providers/OrgConsoleProvider.d.ts.map +1 -0
  109. package/dist/organization-management/providers/OrgScopedPermissions.d.ts +22 -0
  110. package/dist/organization-management/providers/OrgScopedPermissions.d.ts.map +1 -0
  111. package/dist/organization-management/shared/components/dialog/ConfirmDialog.d.ts +18 -0
  112. package/dist/organization-management/shared/components/dialog/ConfirmDialog.d.ts.map +1 -0
  113. package/dist/organization-management/shared/components/dialog/ConfirmDialogView.d.ts +13 -0
  114. package/dist/organization-management/shared/components/dialog/ConfirmDialogView.d.ts.map +1 -0
  115. package/dist/organization-management/shared/components/feedback/EmptyState.d.ts +14 -0
  116. package/dist/organization-management/shared/components/feedback/EmptyState.d.ts.map +1 -0
  117. package/dist/organization-management/shared/components/feedback/ErrorState.d.ts +11 -0
  118. package/dist/organization-management/shared/components/feedback/ErrorState.d.ts.map +1 -0
  119. package/dist/organization-management/shared/components/feedback/LoadingState.d.ts +6 -0
  120. package/dist/organization-management/shared/components/feedback/LoadingState.d.ts.map +1 -0
  121. package/dist/organization-management/shared/components/input/SearchInput.d.ts +15 -0
  122. package/dist/organization-management/shared/components/input/SearchInput.d.ts.map +1 -0
  123. package/dist/organization-management/shared/components/input/SelectionCheckbox.d.ts +10 -0
  124. package/dist/organization-management/shared/components/input/SelectionCheckbox.d.ts.map +1 -0
  125. package/dist/organization-management/shared/hooks/useDebouncedValue.d.ts +2 -0
  126. package/dist/organization-management/shared/hooks/useDebouncedValue.d.ts.map +1 -0
  127. package/dist/organization-management/shared/hooks/useTr.d.ts +18 -0
  128. package/dist/organization-management/shared/hooks/useTr.d.ts.map +1 -0
  129. package/dist/organization-management/shared/logger.d.ts +11 -0
  130. package/dist/organization-management/shared/logger.d.ts.map +1 -0
  131. package/dist/organization-management/shared/recaptcha.d.ts +2 -0
  132. package/dist/organization-management/shared/recaptcha.d.ts.map +1 -0
  133. package/dist/organization-management/shared/types/graphql.d.ts +111 -0
  134. package/dist/organization-management/shared/types/graphql.d.ts.map +1 -0
  135. package/dist/organization-management/shared/utils/cn.d.ts +8 -0
  136. package/dist/organization-management/shared/utils/cn.d.ts.map +1 -0
  137. package/dist/organization-management/types/index.d.ts +52 -0
  138. package/dist/organization-management/types/index.d.ts.map +1 -0
  139. package/dist/translations/en.d.ts +516 -0
  140. package/dist/translations/en.d.ts.map +1 -0
  141. package/dist/utils/nativeBridge.d.ts +3 -0
  142. package/dist/utils/nativeBridge.d.ts.map +1 -0
  143. package/package.json +2 -2
@@ -0,0 +1,113 @@
1
+ import { Workspace, WorkspaceFilterInput, CreateWorkspaceInput, UpdateWorkspaceInput } from '../types';
2
+
3
+ /**
4
+ * Scope of the workspace listing:
5
+ * - `'my'` — membership-scoped via `myWorkspaces` (@rbac scopeType: "self").
6
+ * The correct scope for user-facing app shells; a regular user only
7
+ * ever sees the workspaces they belong to. `myWorkspaces` takes no
8
+ * server-side filter arg, so callers filter client-side.
9
+ * - `'all'` — platform-wide via `allWorkspaces` (@rbac scopeType: "global",
10
+ * super-admin / platform-admin only). Reserved for the admin app.
11
+ */
12
+ export type WorkspacesScope = 'my' | 'all';
13
+ /**
14
+ * Hook to fetch workspaces with filtering and pagination.
15
+ * Uses offset-based pagination (limit/offset).
16
+ *
17
+ * `scope` selects the backing query so the user shells (`'my'`) never call the
18
+ * global-scoped `allWorkspaces`; the admin app keeps `'all'`. Both queries are
19
+ * declared (rules-of-hooks) and the inactive one is skipped.
20
+ */
21
+ export declare function useWorkspaces(filter?: WorkspaceFilterInput, limit?: number, offset?: number, scope?: WorkspacesScope): {
22
+ workspaces: Workspace[];
23
+ total: any;
24
+ limit: any;
25
+ offset: any;
26
+ hasMore: any;
27
+ loading: boolean;
28
+ error: import('@apollo/client').ApolloError | undefined;
29
+ refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetMyWorkspacesQuery>>;
30
+ fetchMore: <TFetchData = Types.GetMyWorkspacesQuery, TFetchVars extends import('@apollo/client').OperationVariables = Types.GetMyWorkspacesQueryVariables>(fetchMoreOptions: import('@apollo/client').FetchMoreQueryOptions<TFetchVars, TFetchData> & {
31
+ updateQuery?: ((previousQueryResult: any, options: {
32
+ fetchMoreResult: import('@apollo/client').Unmasked<TFetchData>;
33
+ variables: TFetchVars;
34
+ }) => any) | undefined;
35
+ }) => Promise<import('@apollo/client').ApolloQueryResult<TFetchData>>;
36
+ };
37
+ /**
38
+ * Hook to fetch a single workspace by ID
39
+ */
40
+ export declare function useWorkspace(id: string): {
41
+ workspace: Workspace | undefined;
42
+ loading: boolean;
43
+ error: import('@apollo/client').ApolloError | undefined;
44
+ refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetWorkspaceQuery>>;
45
+ };
46
+ /**
47
+ * Hook to fetch workspaces by organization ID
48
+ */
49
+ export declare function useWorkspacesByOrganization(organizationId: string, limit?: number, offset?: number): {
50
+ workspaces: Workspace[];
51
+ total: number;
52
+ hasMore: boolean;
53
+ loading: boolean;
54
+ error: import('@apollo/client').ApolloError | undefined;
55
+ refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetMyWorkspacesQuery>>;
56
+ fetchMore: <TFetchData = Types.GetMyWorkspacesQuery, TFetchVars extends import('@apollo/client').OperationVariables = Types.GetMyWorkspacesQueryVariables>(fetchMoreOptions: import('@apollo/client').FetchMoreQueryOptions<TFetchVars, TFetchData> & {
57
+ updateQuery?: ((previousQueryResult: any, options: {
58
+ fetchMoreResult: import('@apollo/client').Unmasked<TFetchData>;
59
+ variables: TFetchVars;
60
+ }) => any) | undefined;
61
+ }) => Promise<import('@apollo/client').ApolloQueryResult<TFetchData>>;
62
+ };
63
+ /**
64
+ * Hook to create a new workspace
65
+ */
66
+ export declare function useCreateWorkspace(): {
67
+ createWorkspace: (input: CreateWorkspaceInput) => Promise<import('@apollo/client').FetchResult<Types.CreateWorkspaceMutation>>;
68
+ data: any;
69
+ loading: boolean;
70
+ error: import('@apollo/client').ApolloError | undefined;
71
+ };
72
+ /**
73
+ * Hook to update a workspace
74
+ */
75
+ export declare function useUpdateWorkspace(): {
76
+ updateWorkspace: (id: string, input: UpdateWorkspaceInput) => Promise<import('@apollo/client').FetchResult<Types.UpdateWorkspaceMutation>>;
77
+ data: any;
78
+ loading: boolean;
79
+ error: import('@apollo/client').ApolloError | undefined;
80
+ };
81
+ /**
82
+ * Hook to delete (suspend) a workspace
83
+ * Note: Backend doesn't have deleteWorkspace, using suspendWorkspace instead
84
+ */
85
+ export declare function useDeleteWorkspace(): {
86
+ deleteWorkspace: (id: string) => Promise<import('@apollo/client').FetchResult<Types.SuspendWorkspaceMutation>>;
87
+ data: any;
88
+ loading: boolean;
89
+ error: import('@apollo/client').ApolloError | undefined;
90
+ };
91
+ /**
92
+ * Tenant type for the tenants query
93
+ */
94
+ interface Tenant {
95
+ id: string;
96
+ name: string;
97
+ slug: string;
98
+ status: string;
99
+ /** SHARED | DEDICATED — lets the UI prefer the shared tenant when auto-selecting. */
100
+ type?: string;
101
+ }
102
+ /**
103
+ * Hook to fetch tenants available to the current actor for workspace creation
104
+ */
105
+ export declare function useTenants(limit?: number, offset?: number, enabled?: boolean): {
106
+ tenants: Tenant[];
107
+ total: any;
108
+ loading: boolean;
109
+ error: import('@apollo/client').ApolloError | undefined;
110
+ refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetTenantsQuery>>;
111
+ };
112
+ export {};
113
+ //# sourceMappingURL=useWorkspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWorkspaces.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/modules/workspaces/hooks/useWorkspaces.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAElB;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,KAAK,CAAC;AAE3C;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,MAAM,CAAC,EAAE,oBAAoB,EAC7B,KAAK,GAAE,MAAW,EAClB,MAAM,GAAE,MAAU,EAClB,KAAK,GAAE,eAAuB;;;;;;;;;;;;;;;EA6B/B;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM;eASL,SAAS,GAAG,SAAS;;;;EAKtD;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,MAAW,EAClB,MAAM,GAAE,MAAU;;;;;;;;;;;;;EA2BnB;AAED;;GAEG;AACH,wBAAgB,kBAAkB;6BAML,oBAAoB;;;;EAKhD;AAED;;GAEG;AACH,wBAAgB,kBAAkB;0BAIR,MAAM,SAAS,oBAAoB;;;;EAM5D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB;0BAMR,MAAM;;;;EAK/B;AAED;;GAEG;AACH,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,GAAE,MAAY,EAAE,MAAM,GAAE,MAAU,EAAE,OAAO,GAAE,OAAc;;;;;;EAe1F"}
@@ -0,0 +1,2 @@
1
+ export declare function WorkspaceCreatePage(): import("react").JSX.Element;
2
+ //# sourceMappingURL=WorkspaceCreatePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceCreatePage.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/modules/workspaces/pages/WorkspaceCreatePage.tsx"],"names":[],"mappings":"AAaA,wBAAgB,mBAAmB,gCAoIlC"}
@@ -0,0 +1,2 @@
1
+ export declare function WorkspaceDetailPage(): import("react").JSX.Element;
2
+ //# sourceMappingURL=WorkspaceDetailPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceDetailPage.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/modules/workspaces/pages/WorkspaceDetailPage.tsx"],"names":[],"mappings":"AA8CA,wBAAgB,mBAAmB,gCAogBlC"}
@@ -0,0 +1,2 @@
1
+ export declare function WorkspaceEditPage(): import("react").JSX.Element;
2
+ //# sourceMappingURL=WorkspaceEditPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceEditPage.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/modules/workspaces/pages/WorkspaceEditPage.tsx"],"names":[],"mappings":"AAcA,wBAAgB,iBAAiB,gCAwHhC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * `mode` controls the scope of the listing:
3
+ * - `'my'` — membership-scoped (`myWorkspaces`); the default for user-facing
4
+ * app shells. A regular user only sees workspaces they belong to.
5
+ * - `'admin'` — platform-wide (`allWorkspaces`, super-admin only); the admin app.
6
+ */
7
+ export interface WorkspacesListPageProps {
8
+ mode?: 'my' | 'admin';
9
+ }
10
+ export declare function WorkspacesListPage({ mode }?: WorkspacesListPageProps): import("react").JSX.Element;
11
+ //# sourceMappingURL=WorkspacesListPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspacesListPage.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/modules/workspaces/pages/WorkspacesListPage.tsx"],"names":[],"mappings":"AA8BA;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC;CACvB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,IAAW,EAAE,GAAE,uBAA4B,+BAwmB/E"}
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ import { WorkspaceStatus } from '../types';
3
+ import { TranslationFn } from '../../../shared/hooks/useTr';
4
+
5
+ export declare function createWorkspaceSchema(tr: TranslationFn): z.ZodObject<{
6
+ status: z.ZodOptional<z.ZodEnum<typeof WorkspaceStatus>>;
7
+ name: z.ZodString;
8
+ slug: z.ZodString;
9
+ type: z.ZodOptional<z.ZodString>;
10
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
+ tenantId: z.ZodString;
12
+ organizationId: z.ZodString;
13
+ }, z.core.$strip>;
14
+ export declare function updateWorkspaceSchema(tr: TranslationFn): z.ZodObject<{
15
+ name: z.ZodOptional<z.ZodString>;
16
+ type: z.ZodOptional<z.ZodString>;
17
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
18
+ }, z.core.$strip>;
19
+ export type CreateWorkspaceFormData = z.infer<ReturnType<typeof createWorkspaceSchema>>;
20
+ export type UpdateWorkspaceFormData = z.infer<ReturnType<typeof updateWorkspaceSchema>>;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/modules/workspaces/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAuCjE,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,aAAa;;;;;;;;kBAatD;AAGD,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,aAAa;;;;kBAOtD;AAGD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;AACxF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { Workspace, WorkspaceStatus } from '../../../shared/types/graphql';
2
+
3
+ export type { Workspace };
4
+ export { WorkspaceStatus };
5
+ export type { WorkspaceMember, WorkspaceMembersConnection, AddWorkspaceMemberInput, UpdateWorkspaceMemberInput, UserRole, } from './workspace-member';
6
+ export interface WorkspacesConnection {
7
+ items: Workspace[];
8
+ total: number;
9
+ limit: number;
10
+ offset: number;
11
+ hasMore: boolean;
12
+ }
13
+ export interface WorkspaceFilterInput {
14
+ status?: WorkspaceStatus;
15
+ organizationId?: string;
16
+ tenantId?: string;
17
+ search?: string;
18
+ }
19
+ export interface WorkspaceStats {
20
+ totalMembers: number;
21
+ activeMembers: number;
22
+ storageUsed: number;
23
+ storageLimit: number;
24
+ }
25
+ export interface CreateWorkspaceInput {
26
+ name: string;
27
+ slug: string;
28
+ tenantId: string;
29
+ organizationId: string;
30
+ type?: string;
31
+ metadata?: Record<string, unknown>;
32
+ }
33
+ export interface UpdateWorkspaceInput {
34
+ name?: string;
35
+ type?: string;
36
+ metadata?: Record<string, unknown>;
37
+ }
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/modules/workspaces/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,YAAY,EAAE,SAAS,EAAE,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,CAAC;AAG3B,YAAY,EACV,eAAe,EACf,0BAA0B,EAC1B,uBAAuB,EACvB,0BAA0B,EAC1B,QAAQ,GACT,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAGD,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAGD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAGD,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Workspace Member Types
3
+ * Aligned with backend WorkspaceMember schema
4
+ */
5
+ export type UserRole = 'SUPER_ADMIN' | 'TENANT_ADMIN' | 'ORG_ADMIN' | 'WORKSPACE_ADMIN' | 'MEMBER' | 'GUEST';
6
+ /**
7
+ * Workspace Member type matching backend schema
8
+ */
9
+ export interface WorkspaceMember {
10
+ id: string;
11
+ userId: string;
12
+ role: UserRole;
13
+ invitedBy?: string | null;
14
+ joinedAt: string;
15
+ }
16
+ /**
17
+ * Workspace Member List response (paginated)
18
+ */
19
+ export interface WorkspaceMembersConnection {
20
+ items: WorkspaceMember[];
21
+ total: number;
22
+ limit: number;
23
+ offset: number;
24
+ hasMore: boolean;
25
+ }
26
+ /**
27
+ * Input for adding a workspace member
28
+ */
29
+ export interface AddWorkspaceMemberInput {
30
+ workspaceId: string;
31
+ userId: string;
32
+ role?: UserRole;
33
+ }
34
+ /**
35
+ * Input for updating a workspace member's role
36
+ */
37
+ export interface UpdateWorkspaceMemberInput {
38
+ role: UserRole;
39
+ }
40
+ //# sourceMappingURL=workspace-member.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-member.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/modules/workspaces/types/workspace-member.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,MAAM,QAAQ,GAClB,aAAa,GAAG,cAAc,GAAG,WAAW,GAAG,iBAAiB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,QAAQ,CAAC;CAChB"}
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ import { OrganizationRootProps } from '../types';
3
+
4
+ type OrgConsoleContextValue = OrganizationRootProps;
5
+ export interface OrgConsoleProviderProps extends OrganizationRootProps {
6
+ children: ReactNode;
7
+ }
8
+ /**
9
+ * OrgConsoleProvider
10
+ * Provides global console context to all child components
11
+ */
12
+ export declare function OrgConsoleProvider({ children, ...props }: OrgConsoleProviderProps): import("react").JSX.Element;
13
+ /**
14
+ * Hook to access global console context
15
+ * @throws Error if used outside OrgConsoleProvider
16
+ */
17
+ export declare function useOrgConsole(): OrgConsoleContextValue;
18
+ export {};
19
+ //# sourceMappingURL=OrgConsoleProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrgConsoleProvider.d.ts","sourceRoot":"","sources":["../../../src/organization-management/providers/OrgConsoleProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,KAAK,sBAAsB,GAAG,qBAAqB,CAAC;AAIpD,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAQjF;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
@@ -0,0 +1,22 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ /**
4
+ * Wrap a per-organization route's content with a `PermissionProvider`
5
+ * scoped to that organization's id.
6
+ *
7
+ * The outer `OrgConsoleProvider` mounts a tenant-scoped `PermissionProvider`,
8
+ * which is correct for tenant-wide pages (org list, create). On org-specific
9
+ * pages (detail, edit, members, workspaces) we need scope = the org's id so
10
+ * `hasPermission(...)` reflects the user's per-org role (Owner / Admin /
11
+ * Editor / Viewer) — assignments which live at the org's scope and would
12
+ * otherwise be invisible in a tenant-scoped query.
13
+ *
14
+ * Nested `PermissionProvider`s override the outer one for any consumer
15
+ * inside this subtree; global-scope roles (e.g. Authenticated User) still
16
+ * flow in via the rbac service's `[scopeId, 'global']` merge.
17
+ */
18
+ export declare function OrgScopedPermissions({ organizationId, children, }: {
19
+ organizationId: string;
20
+ children: ReactNode;
21
+ }): import("react").JSX.Element;
22
+ //# sourceMappingURL=OrgScopedPermissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrgScopedPermissions.d.ts","sourceRoot":"","sources":["../../../src/organization-management/providers/OrgScopedPermissions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,cAAc,EACd,QAAQ,GACT,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAMA"}
@@ -0,0 +1,18 @@
1
+ import { ConfirmDialogVariant } from './ConfirmDialogView';
2
+
3
+ interface ConfirmDialogState {
4
+ open: boolean;
5
+ title: string;
6
+ description: string;
7
+ confirmText?: string;
8
+ cancelText?: string;
9
+ variant?: ConfirmDialogVariant;
10
+ }
11
+ export declare function useConfirmDialog(): {
12
+ openConfirmDialog: (config: Omit<ConfirmDialogState, "open"> & {
13
+ onConfirm: () => void;
14
+ }) => void;
15
+ ConfirmDialog: import("react").JSX.Element;
16
+ };
17
+ export {};
18
+ //# sourceMappingURL=ConfirmDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/shared/components/dialog/ConfirmDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE/E,UAAU,kBAAkB;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC;AAED,wBAAgB,gBAAgB;gCASnB,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,GAAG;QAAE,SAAS,EAAE,MAAM,IAAI,CAAA;KAAE;;EAkCxE"}
@@ -0,0 +1,13 @@
1
+ export type ConfirmDialogVariant = 'default' | 'warning' | 'danger';
2
+ export interface ConfirmDialogProps {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ title: string;
6
+ description: string;
7
+ confirmText?: string;
8
+ cancelText?: string;
9
+ variant?: ConfirmDialogVariant;
10
+ onConfirm: () => void;
11
+ }
12
+ export declare function ConfirmDialog({ open, onOpenChange, title, description, confirmText, cancelText, variant, onConfirm, }: ConfirmDialogProps): import("react").JSX.Element;
13
+ //# sourceMappingURL=ConfirmDialogView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmDialogView.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/shared/components/dialog/ConfirmDialogView.tsx"],"names":[],"mappings":"AAcA,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEpE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAkCD,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,EACX,WAAW,EACX,UAAU,EACV,OAAmB,EACnB,SAAS,GACV,EAAE,kBAAkB,+BA8CpB"}
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ interface EmptyStateProps {
4
+ icon: ReactNode;
5
+ title: string;
6
+ description: string;
7
+ action?: {
8
+ label: string;
9
+ onClick: () => void;
10
+ };
11
+ }
12
+ export declare function EmptyState({ icon, title, description, action }: EmptyStateProps): import("react").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=EmptyState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/shared/components/feedback/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,eAAe;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,eAAe,+BA0B/E"}
@@ -0,0 +1,11 @@
1
+ interface ErrorStateProps {
2
+ title?: string;
3
+ message: string;
4
+ action?: {
5
+ label: string;
6
+ onClick: () => void;
7
+ };
8
+ }
9
+ export declare function ErrorState({ title, message, action }: ErrorStateProps): import("react").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=ErrorState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorState.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/shared/components/feedback/ErrorState.tsx"],"names":[],"mappings":"AAGA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,eAAe,+BAmCrE"}
@@ -0,0 +1,6 @@
1
+ interface LoadingStateProps {
2
+ message?: string;
3
+ }
4
+ export declare function LoadingState({ message }: LoadingStateProps): import("react").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=LoadingState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingState.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/shared/components/feedback/LoadingState.tsx"],"names":[],"mappings":"AAGA,UAAU,iBAAiB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,+BAa1D"}
@@ -0,0 +1,15 @@
1
+ interface SearchInputProps {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ placeholder?: string;
5
+ className?: string;
6
+ label?: string;
7
+ inputId?: string;
8
+ }
9
+ /**
10
+ * SearchInput
11
+ * Reusable search input component with clear button
12
+ */
13
+ export declare function SearchInput({ value, onChange, placeholder, className, label, inputId, }: SearchInputProps): import("react").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=SearchInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/shared/components/input/SearchInput.tsx"],"names":[],"mappings":"AAGA,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAc,EACd,KAAK,EACL,OAAO,GACR,EAAE,gBAAgB,+BAoDlB"}
@@ -0,0 +1,10 @@
1
+ interface SelectionCheckboxProps {
2
+ checked: boolean;
3
+ indeterminate?: boolean;
4
+ disabled?: boolean;
5
+ onChange: (checked: boolean) => void;
6
+ ariaLabel: string;
7
+ }
8
+ export declare function SelectionCheckbox({ checked, indeterminate, disabled, onChange, ariaLabel, }: SelectionCheckboxProps): import("react").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=SelectionCheckbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectionCheckbox.d.ts","sourceRoot":"","sources":["../../../../../src/organization-management/shared/components/input/SelectionCheckbox.tsx"],"names":[],"mappings":"AAEA,UAAU,sBAAsB;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,aAAqB,EACrB,QAAgB,EAChB,QAAQ,EACR,SAAS,GACV,EAAE,sBAAsB,+BAoBxB"}
@@ -0,0 +1,2 @@
1
+ export declare function useDebouncedValue<T>(value: T, delay?: number): T;
2
+ //# sourceMappingURL=useDebouncedValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebouncedValue.d.ts","sourceRoot":"","sources":["../../../../src/organization-management/shared/hooks/useDebouncedValue.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAc7D"}
@@ -0,0 +1,18 @@
1
+ export type TranslationFn = (key: string, fallback: string, params?: Record<string, string | number>) => string;
2
+ /**
3
+ * useTr — translation hook with fallback semantics.
4
+ *
5
+ * Wraps `useI18n().t()` so that when a key has no translation (i.e. the
6
+ * provider returns the key itself), the caller's English fallback is used
7
+ * instead. This keeps consumer call sites consistent and avoids leaking
8
+ * untranslated keys into the UI.
9
+ *
10
+ * Supports optional interpolation params using `{{key}}` placeholders.
11
+ *
12
+ * @example
13
+ * const tr = useTr();
14
+ * return <h1>{tr('organizations.title', 'Organizations')}</h1>;
15
+ * return <p>{tr('organizations.selectedCount', '{{count}} selected', { count: 5 })}</p>;
16
+ */
17
+ export declare function useTr(): TranslationFn;
18
+ //# sourceMappingURL=useTr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTr.d.ts","sourceRoot":"","sources":["../../../../src/organization-management/shared/hooks/useTr.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,aAAa,GAAG,CAC1B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAAM,CAAC;AAEZ;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,IAAI,aAAa,CAcrC"}
@@ -0,0 +1,11 @@
1
+ /** Redact a free-form ID by exposing only the first/last 4 characters. */
2
+ export declare function redactId(id: string | null | undefined): string | undefined;
3
+ type LogData = Record<string, unknown>;
4
+ interface OrganizationLogger {
5
+ info: (event: string, data?: LogData) => void;
6
+ warn: (event: string, data?: LogData) => void;
7
+ error: (event: string, data?: LogData, error?: unknown) => void;
8
+ }
9
+ export declare const logger: OrganizationLogger;
10
+ export {};
11
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/organization-management/shared/logger.ts"],"names":[],"mappings":"AAkBA,0EAA0E;AAC1E,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAI1E;AAED,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEvC,UAAU,kBAAkB;IAC1B,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACjE;AAQD,eAAO,MAAM,MAAM,EAAE,kBA4BpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function executeRecaptcha(action: string): Promise<string | undefined>;
2
+ //# sourceMappingURL=recaptcha.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recaptcha.d.ts","sourceRoot":"","sources":["../../../src/organization-management/shared/recaptcha.ts"],"names":[],"mappings":"AAmDA,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAiBlF"}
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Shared GraphQL types
3
+ * Generated types will be added via GraphQL Codegen
4
+ */
5
+ export interface PageInfo {
6
+ totalCount: number;
7
+ hasNextPage: boolean;
8
+ hasPreviousPage: boolean;
9
+ startCursor?: string;
10
+ endCursor?: string;
11
+ }
12
+ export interface PaginationInput {
13
+ first?: number;
14
+ after?: string;
15
+ last?: number;
16
+ before?: string;
17
+ }
18
+ export interface Connection<T> {
19
+ items: T[];
20
+ pageInfo: PageInfo;
21
+ }
22
+ declare enum TenantStatus {
23
+ ACTIVE = "ACTIVE",
24
+ INACTIVE = "INACTIVE",
25
+ SUSPENDED = "SUSPENDED"
26
+ }
27
+ export declare enum OrganizationStatus {
28
+ ACTIVE = "ACTIVE",
29
+ INACTIVE = "INACTIVE",
30
+ ARCHIVED = "ARCHIVED"
31
+ }
32
+ export declare enum WorkspaceStatus {
33
+ ACTIVE = "ACTIVE",
34
+ INACTIVE = "INACTIVE",
35
+ ARCHIVED = "ARCHIVED"
36
+ }
37
+ declare enum ProductStatus {
38
+ ACTIVE = "ACTIVE",
39
+ BETA = "BETA",
40
+ DEPRECATED = "DEPRECATED",
41
+ COMING_SOON = "COMING_SOON"
42
+ }
43
+ export interface Tenant {
44
+ id: string;
45
+ name: string;
46
+ slug: string;
47
+ status: TenantStatus;
48
+ subscriptionTier?: string;
49
+ billingAccountId?: string;
50
+ customDomain?: string;
51
+ logoUrl?: string;
52
+ metadata?: Record<string, unknown>;
53
+ createdAt: string;
54
+ updatedAt: string;
55
+ organizations?: Organization[];
56
+ products?: PlatformProduct[];
57
+ }
58
+ export interface Organization {
59
+ id: string;
60
+ tenantId: string;
61
+ name: string;
62
+ slug: string;
63
+ description?: string;
64
+ logo?: string;
65
+ website?: string;
66
+ status: OrganizationStatus;
67
+ metadata?: Record<string, unknown>;
68
+ createdAt: string;
69
+ updatedAt: string;
70
+ memberCount?: number;
71
+ workspaceCount?: number;
72
+ workspaces?: Workspace[];
73
+ }
74
+ export interface Workspace {
75
+ id: string;
76
+ organizationId: string;
77
+ tenantId: string;
78
+ name: string;
79
+ slug: string;
80
+ status: WorkspaceStatus;
81
+ type: string;
82
+ memberCount?: number;
83
+ endpoint?: string;
84
+ region?: string;
85
+ metadata?: Record<string, unknown>;
86
+ createdAt: string;
87
+ updatedAt: string;
88
+ }
89
+ export interface Member {
90
+ id: string;
91
+ userId: string;
92
+ organizationId: string;
93
+ role: string;
94
+ invitedBy?: string;
95
+ joinedAt?: string;
96
+ }
97
+ export interface PlatformProduct {
98
+ id: string;
99
+ name: string;
100
+ slug: string;
101
+ description?: string;
102
+ category?: string;
103
+ status: ProductStatus;
104
+ iconUrl?: string;
105
+ version?: string;
106
+ metadata?: Record<string, unknown>;
107
+ createdAt: string;
108
+ updatedAt: string;
109
+ }
110
+ export {};
111
+ //# sourceMappingURL=graphql.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../src/organization-management/shared/types/graphql.ts"],"names":[],"mappings":"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"}