@raystack/frontier 0.89.3-test3 → 0.90.0
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 +77 -0
- package/admin/dist/index.js +3332 -0
- package/admin/dist/index.mjs +3302 -0
- package/package.json +14 -3
- package/react/dist/index.js +162 -162
- package/react/dist/index.mjs +162 -162
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _raystack_proton_frontier from '@raystack/proton/frontier';
|
|
3
|
+
import { RQLRequest, RQLQueryPaginationResponse, RQLQueryGroupResponse } from '@raystack/proton/frontier';
|
|
4
|
+
import * as _bufbuild_protobuf from '@bufbuild/protobuf';
|
|
5
|
+
import { DataTableQuery } from '@raystack/apsara';
|
|
6
|
+
|
|
7
|
+
type RolesViewProps = {
|
|
8
|
+
selectedRoleId?: string;
|
|
9
|
+
onSelectRole?: (roleId: string) => void;
|
|
10
|
+
onCloseDetail?: () => void;
|
|
11
|
+
appName?: string;
|
|
12
|
+
};
|
|
13
|
+
declare function RolesView({ selectedRoleId: controlledRoleId, onSelectRole, onCloseDetail, appName, }?: RolesViewProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
type InvoicesViewProps = {
|
|
16
|
+
appName?: string;
|
|
17
|
+
};
|
|
18
|
+
declare function InvoicesView({ appName }?: InvoicesViewProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
type ProductsViewProps = {
|
|
21
|
+
selectedProductId?: string;
|
|
22
|
+
onSelectProduct?: (productId: string) => void;
|
|
23
|
+
onCloseDetail?: () => void;
|
|
24
|
+
onNavigateToPrices?: (productId: string) => void;
|
|
25
|
+
appName?: string;
|
|
26
|
+
};
|
|
27
|
+
declare function ProductsView({ selectedProductId, onSelectProduct, onCloseDetail, onNavigateToPrices, appName, }?: ProductsViewProps): react_jsx_runtime.JSX.Element;
|
|
28
|
+
|
|
29
|
+
type ProductPricesViewProps = {
|
|
30
|
+
productId: string;
|
|
31
|
+
appName?: string;
|
|
32
|
+
onBreadcrumbClick?: (item: {
|
|
33
|
+
name: string;
|
|
34
|
+
href?: string;
|
|
35
|
+
}) => void;
|
|
36
|
+
};
|
|
37
|
+
declare function ProductPricesView({ productId, appName, onBreadcrumbClick, }: ProductPricesViewProps): react_jsx_runtime.JSX.Element;
|
|
38
|
+
|
|
39
|
+
type AuditLogsViewProps = {
|
|
40
|
+
appName?: string;
|
|
41
|
+
onExportCsv?: (query: RQLRequest) => Promise<void>;
|
|
42
|
+
};
|
|
43
|
+
declare function AuditLogsView({ appName, onExportCsv }?: AuditLogsViewProps): react_jsx_runtime.JSX.Element;
|
|
44
|
+
|
|
45
|
+
declare const DEFAULT_PAGE_SIZE = 50;
|
|
46
|
+
type ConnectRPCPaginatedResponse = {
|
|
47
|
+
pagination?: RQLQueryPaginationResponse;
|
|
48
|
+
group?: RQLQueryGroupResponse;
|
|
49
|
+
[key: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
declare function getConnectNextPageParam<T extends ConnectRPCPaginatedResponse>(lastPage: T, queryParams: {
|
|
52
|
+
query: RQLRequest;
|
|
53
|
+
}, itemsKey?: string): {
|
|
54
|
+
offset: number;
|
|
55
|
+
$typeName: "raystack.frontier.v1beta1.RQLRequest";
|
|
56
|
+
$unknown?: _bufbuild_protobuf.UnknownField[];
|
|
57
|
+
filters: _raystack_proton_frontier.RQLFilter[];
|
|
58
|
+
groupBy: string[];
|
|
59
|
+
limit: number;
|
|
60
|
+
search: string;
|
|
61
|
+
sort: _raystack_proton_frontier.RQLSort[];
|
|
62
|
+
} | undefined;
|
|
63
|
+
declare function getGroupCountMapFromFirstPage<T extends ConnectRPCPaginatedResponse>(infiniteData?: {
|
|
64
|
+
pages: T[];
|
|
65
|
+
}): Record<string, Record<string, number>>;
|
|
66
|
+
|
|
67
|
+
interface TransformOptions {
|
|
68
|
+
/**
|
|
69
|
+
* Default limit if not specified
|
|
70
|
+
* @default 50
|
|
71
|
+
*/
|
|
72
|
+
defaultLimit?: number;
|
|
73
|
+
fieldNameMapping?: Record<string, string>;
|
|
74
|
+
}
|
|
75
|
+
declare function transformDataTableQueryToRQLRequest(query: DataTableQuery, options?: TransformOptions): RQLRequest;
|
|
76
|
+
|
|
77
|
+
export { AuditLogsView, ConnectRPCPaginatedResponse, DEFAULT_PAGE_SIZE, InvoicesView, ProductPricesView, ProductsView, RolesView, TransformOptions, getConnectNextPageParam, getGroupCountMapFromFirstPage, transformDataTableQueryToRQLRequest };
|