@raystack/frontier 0.94.0 → 0.95.1
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/admin/dist/index.d.ts +63 -2
- package/admin/dist/index.js +2618 -2404
- package/admin/dist/index.mjs +2310 -2102
- package/package.json +8 -8
- package/react/dist/index.d.ts +30 -28
- package/react/dist/index.js +557 -559
- package/react/dist/index.mjs +666 -670
package/admin/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _raystack_proton_frontier from '@raystack/proton/frontier';
|
|
3
3
|
import { RQLRequest, RQLQueryPaginationResponse, RQLQueryGroupResponse } from '@raystack/proton/frontier';
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import React, { ReactNode } from 'react';
|
|
5
5
|
import * as _bufbuild_protobuf from '@bufbuild/protobuf';
|
|
6
6
|
import { DataTableQuery } from '@raystack/apsara';
|
|
7
7
|
|
|
@@ -169,6 +169,67 @@ declare function OrganizationTokensView(): react_jsx_runtime.JSX.Element;
|
|
|
169
169
|
|
|
170
170
|
declare function OrganizationApisView(): react_jsx_runtime.JSX.Element;
|
|
171
171
|
|
|
172
|
+
interface EntityTerminologies {
|
|
173
|
+
singular: string;
|
|
174
|
+
plural: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
interface AdminTerminologyConfig {
|
|
178
|
+
organization?: EntityTerminologies;
|
|
179
|
+
project?: EntityTerminologies;
|
|
180
|
+
team?: EntityTerminologies;
|
|
181
|
+
member?: EntityTerminologies;
|
|
182
|
+
user?: EntityTerminologies;
|
|
183
|
+
appName?: string;
|
|
184
|
+
}
|
|
185
|
+
interface Config {
|
|
186
|
+
title?: string;
|
|
187
|
+
app_url?: string;
|
|
188
|
+
token_product_id?: string;
|
|
189
|
+
organization_types?: string[];
|
|
190
|
+
terminology?: AdminTerminologyConfig;
|
|
191
|
+
}
|
|
192
|
+
declare const defaultTerminology: Required<AdminTerminologyConfig>;
|
|
193
|
+
declare const defaultConfig: Config;
|
|
194
|
+
|
|
195
|
+
interface AdminConfigProviderProps {
|
|
196
|
+
children: ReactNode;
|
|
197
|
+
config?: Config;
|
|
198
|
+
}
|
|
199
|
+
declare const AdminConfigProvider: React.FC<AdminConfigProviderProps>;
|
|
200
|
+
declare const useAdminConfig: () => Config;
|
|
201
|
+
|
|
202
|
+
interface TerminologyOptions {
|
|
203
|
+
plural?: boolean;
|
|
204
|
+
case?: "lower" | "upper" | "capital";
|
|
205
|
+
}
|
|
206
|
+
interface TerminologyEntity {
|
|
207
|
+
(options?: TerminologyOptions): string;
|
|
208
|
+
}
|
|
209
|
+
interface TerminologyMap {
|
|
210
|
+
organization: TerminologyEntity;
|
|
211
|
+
project: TerminologyEntity;
|
|
212
|
+
team: TerminologyEntity;
|
|
213
|
+
member: TerminologyEntity;
|
|
214
|
+
user: TerminologyEntity;
|
|
215
|
+
appName: TerminologyEntity;
|
|
216
|
+
}
|
|
217
|
+
declare const useTerminology: () => TerminologyMap;
|
|
218
|
+
|
|
219
|
+
interface AdminPaths {
|
|
220
|
+
/** URL slug for the organization entity, e.g. "organizations" or "workspaces" */
|
|
221
|
+
organizations: string;
|
|
222
|
+
/** URL slug for the user entity, e.g. "users" or "people" */
|
|
223
|
+
users: string;
|
|
224
|
+
/** URL slug for the project entity, e.g. "projects" or "repos" */
|
|
225
|
+
projects: string;
|
|
226
|
+
/** URL slug for the member entity, e.g. "members" or "participants" */
|
|
227
|
+
members: string;
|
|
228
|
+
/** URL slug for the team entity, e.g. "teams" or "groups" */
|
|
229
|
+
teams: string;
|
|
230
|
+
}
|
|
231
|
+
declare const useAdminPaths: () => AdminPaths;
|
|
232
|
+
|
|
172
233
|
/** Default page size used for paginated RQL queries. */
|
|
173
234
|
declare const DEFAULT_PAGE_SIZE = 50;
|
|
174
235
|
/** Shape of a Connect RPC response that includes pagination and group metadata. */
|
|
@@ -223,4 +284,4 @@ interface TransformOptions {
|
|
|
223
284
|
*/
|
|
224
285
|
declare function transformDataTableQueryToRQLRequest(query: DataTableQuery, options?: TransformOptions): RQLRequest;
|
|
225
286
|
|
|
226
|
-
export { AdminsView, AuditLogsView, ConnectRPCPaginatedResponse, DEFAULT_PAGE_SIZE, InvoicesView, OrganizationApisView, OrganizationDetailsView, OrganizationDetailsViewProps, OrganizationInvoicesView, OrganizationListView, OrganizationListViewProps, OrganizationMembersView, OrganizationProjectsView, OrganizationSecurity, OrganizationTokensView, PlansView, PreferencesView, ProductPricesView, ProductsView, RolesView, TransformOptions, UsersView, WebhooksView, getConnectNextPageParam, getGroupCountMapFromFirstPage, transformDataTableQueryToRQLRequest };
|
|
287
|
+
export { AdminConfigProvider, AdminConfigProviderProps, AdminPaths, AdminTerminologyConfig, AdminsView, AuditLogsView, Config, ConnectRPCPaginatedResponse, DEFAULT_PAGE_SIZE, InvoicesView, OrganizationApisView, OrganizationDetailsView, OrganizationDetailsViewProps, OrganizationInvoicesView, OrganizationListView, OrganizationListViewProps, OrganizationMembersView, OrganizationProjectsView, OrganizationSecurity, OrganizationTokensView, PlansView, PreferencesView, ProductPricesView, ProductsView, RolesView, TransformOptions, UsersView, WebhooksView, defaultConfig, defaultTerminology, getConnectNextPageParam, getGroupCountMapFromFirstPage, transformDataTableQueryToRQLRequest, useAdminConfig, useAdminPaths, useTerminology };
|