@raystack/frontier 0.89.3-test4 → 0.91.1-test4
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 +156 -0
- package/admin/dist/index.js +21369 -0
- package/admin/dist/index.mjs +21642 -0
- package/package.json +23 -6
- package/react/dist/index.d.ts +8 -2
- package/react/dist/index.js +194 -179
- package/react/dist/index.mjs +195 -180
|
@@ -0,0 +1,156 @@
|
|
|
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 React from 'react';
|
|
5
|
+
import * as _bufbuild_protobuf from '@bufbuild/protobuf';
|
|
6
|
+
import { DataTableQuery } from '@raystack/apsara';
|
|
7
|
+
|
|
8
|
+
type RolesViewProps = {
|
|
9
|
+
selectedRoleId?: string;
|
|
10
|
+
onSelectRole?: (roleId: string) => void;
|
|
11
|
+
onCloseDetail?: () => void;
|
|
12
|
+
appName?: string;
|
|
13
|
+
};
|
|
14
|
+
declare function RolesView({ selectedRoleId: controlledRoleId, onSelectRole, onCloseDetail, appName, }?: RolesViewProps): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
type InvoicesViewProps = {
|
|
17
|
+
appName?: string;
|
|
18
|
+
};
|
|
19
|
+
declare function InvoicesView({ appName }?: InvoicesViewProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
type ProductsViewProps = {
|
|
22
|
+
selectedProductId?: string;
|
|
23
|
+
onSelectProduct?: (productId: string) => void;
|
|
24
|
+
onCloseDetail?: () => void;
|
|
25
|
+
onNavigateToPrices?: (productId: string) => void;
|
|
26
|
+
appName?: string;
|
|
27
|
+
};
|
|
28
|
+
declare function ProductsView({ selectedProductId, onSelectProduct, onCloseDetail, onNavigateToPrices, appName, }?: ProductsViewProps): react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
type ProductPricesViewProps = {
|
|
31
|
+
productId: string;
|
|
32
|
+
appName?: string;
|
|
33
|
+
onBreadcrumbClick?: (item: {
|
|
34
|
+
name: string;
|
|
35
|
+
href?: string;
|
|
36
|
+
}) => void;
|
|
37
|
+
};
|
|
38
|
+
declare function ProductPricesView({ productId, appName, onBreadcrumbClick, }: ProductPricesViewProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
type AuditLogsViewProps = {
|
|
41
|
+
appName?: string;
|
|
42
|
+
onExportCsv?: (query: RQLRequest) => Promise<void>;
|
|
43
|
+
onNavigate?: (path: string) => void;
|
|
44
|
+
};
|
|
45
|
+
declare function AuditLogsView({ appName, onExportCsv, onNavigate }?: AuditLogsViewProps): react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
type AdminsViewProps = {
|
|
48
|
+
onNavigateToOrg?: (orgId: string) => void;
|
|
49
|
+
};
|
|
50
|
+
declare function AdminsView({ onNavigateToOrg }?: AdminsViewProps): react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
52
|
+
type PlansViewProps = {
|
|
53
|
+
selectedPlanId?: string;
|
|
54
|
+
onCloseDetail?: () => void;
|
|
55
|
+
onSelectPlan?: (planId: string) => void;
|
|
56
|
+
appName?: string;
|
|
57
|
+
};
|
|
58
|
+
declare function PlansView({ selectedPlanId, onCloseDetail, onSelectPlan, appName, }?: PlansViewProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
60
|
+
type WebhooksViewProps = {
|
|
61
|
+
selectedWebhookId?: string;
|
|
62
|
+
createOpen?: boolean;
|
|
63
|
+
onCloseDetail?: () => void;
|
|
64
|
+
onSelectWebhook?: (id: string) => void;
|
|
65
|
+
onOpenCreate?: () => void;
|
|
66
|
+
enableDelete?: boolean;
|
|
67
|
+
};
|
|
68
|
+
declare function WebhooksView({ selectedWebhookId, createOpen, onCloseDetail, onSelectWebhook, onOpenCreate, enableDelete, }?: WebhooksViewProps): react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
type PreferencesViewProps = {
|
|
71
|
+
selectedPreferenceName?: string;
|
|
72
|
+
onCloseDetail?: () => void;
|
|
73
|
+
onSelectPreference?: (name: string) => void;
|
|
74
|
+
};
|
|
75
|
+
declare function PreferencesView({ selectedPreferenceName, onCloseDetail, onSelectPreference, }?: PreferencesViewProps): react_jsx_runtime.JSX.Element;
|
|
76
|
+
|
|
77
|
+
type UsersViewProps = {
|
|
78
|
+
selectedUserId?: string;
|
|
79
|
+
onCloseDetail?: () => void;
|
|
80
|
+
onExportUsers?: () => Promise<void>;
|
|
81
|
+
onNavigateToUser?: (userId: string) => void;
|
|
82
|
+
currentPath?: string;
|
|
83
|
+
onNavigate?: (path: string) => void;
|
|
84
|
+
};
|
|
85
|
+
declare function UsersView({ selectedUserId, onCloseDetail, onExportUsers, onNavigateToUser, currentPath, onNavigate, }?: UsersViewProps): react_jsx_runtime.JSX.Element;
|
|
86
|
+
|
|
87
|
+
type OrganizationListProps = {
|
|
88
|
+
appName?: string;
|
|
89
|
+
onNavigateToOrg?: (id: string) => void;
|
|
90
|
+
onExportCsv?: () => Promise<void>;
|
|
91
|
+
organizationTypes?: string[];
|
|
92
|
+
appUrl?: string;
|
|
93
|
+
countries?: string[];
|
|
94
|
+
};
|
|
95
|
+
declare const OrganizationList: ({ appName, onNavigateToOrg, onExportCsv, organizationTypes, appUrl, countries, }?: OrganizationListProps) => react_jsx_runtime.JSX.Element;
|
|
96
|
+
|
|
97
|
+
type OrganizationDetailsProps = {
|
|
98
|
+
organizationId: string | undefined;
|
|
99
|
+
onExportMembers?: () => Promise<void>;
|
|
100
|
+
onExportProjects?: () => Promise<void>;
|
|
101
|
+
onExportTokens?: () => Promise<void>;
|
|
102
|
+
appUrl?: string;
|
|
103
|
+
tokenProductId?: string;
|
|
104
|
+
countries?: string[];
|
|
105
|
+
organizationTypes?: string[];
|
|
106
|
+
currentPath: string;
|
|
107
|
+
onNavigate: (path: string) => void;
|
|
108
|
+
children?: React.ReactNode;
|
|
109
|
+
};
|
|
110
|
+
declare const OrganizationDetails: ({ organizationId, onExportMembers, onExportProjects, onExportTokens, appUrl, tokenProductId, countries, organizationTypes, currentPath, onNavigate, children, }: OrganizationDetailsProps) => react_jsx_runtime.JSX.Element;
|
|
111
|
+
|
|
112
|
+
declare const OrganizationSecurity: () => react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
114
|
+
declare function OrganizationMembersPage(): react_jsx_runtime.JSX.Element;
|
|
115
|
+
|
|
116
|
+
declare function OrganizationProjectssPage(): react_jsx_runtime.JSX.Element;
|
|
117
|
+
|
|
118
|
+
declare function OrganizationInvoicesPage(): react_jsx_runtime.JSX.Element;
|
|
119
|
+
|
|
120
|
+
declare function OrganizationTokensPage(): react_jsx_runtime.JSX.Element;
|
|
121
|
+
|
|
122
|
+
declare function OrganizationApisPage(): react_jsx_runtime.JSX.Element;
|
|
123
|
+
|
|
124
|
+
declare const DEFAULT_PAGE_SIZE = 50;
|
|
125
|
+
type ConnectRPCPaginatedResponse = {
|
|
126
|
+
pagination?: RQLQueryPaginationResponse;
|
|
127
|
+
group?: RQLQueryGroupResponse;
|
|
128
|
+
[key: string]: unknown;
|
|
129
|
+
};
|
|
130
|
+
declare function getConnectNextPageParam<T extends ConnectRPCPaginatedResponse>(lastPage: T, queryParams: {
|
|
131
|
+
query: RQLRequest;
|
|
132
|
+
}, itemsKey?: string): {
|
|
133
|
+
offset: number;
|
|
134
|
+
$typeName: "raystack.frontier.v1beta1.RQLRequest";
|
|
135
|
+
$unknown?: _bufbuild_protobuf.UnknownField[];
|
|
136
|
+
filters: _raystack_proton_frontier.RQLFilter[];
|
|
137
|
+
groupBy: string[];
|
|
138
|
+
limit: number;
|
|
139
|
+
search: string;
|
|
140
|
+
sort: _raystack_proton_frontier.RQLSort[];
|
|
141
|
+
} | undefined;
|
|
142
|
+
declare function getGroupCountMapFromFirstPage<T extends ConnectRPCPaginatedResponse>(infiniteData?: {
|
|
143
|
+
pages: T[];
|
|
144
|
+
}): Record<string, Record<string, number>>;
|
|
145
|
+
|
|
146
|
+
interface TransformOptions {
|
|
147
|
+
/**
|
|
148
|
+
* Default limit if not specified
|
|
149
|
+
* @default 50
|
|
150
|
+
*/
|
|
151
|
+
defaultLimit?: number;
|
|
152
|
+
fieldNameMapping?: Record<string, string>;
|
|
153
|
+
}
|
|
154
|
+
declare function transformDataTableQueryToRQLRequest(query: DataTableQuery, options?: TransformOptions): RQLRequest;
|
|
155
|
+
|
|
156
|
+
export { AdminsView, AuditLogsView, ConnectRPCPaginatedResponse, DEFAULT_PAGE_SIZE, InvoicesView, OrganizationApisPage, OrganizationDetails, OrganizationDetailsProps, OrganizationInvoicesPage, OrganizationList, OrganizationListProps, OrganizationMembersPage, OrganizationProjectssPage, OrganizationSecurity, OrganizationTokensPage, PlansView, PreferencesView, ProductPricesView, ProductsView, RolesView, TransformOptions, UsersView, WebhooksView, getConnectNextPageParam, getGroupCountMapFromFirstPage, transformDataTableQueryToRQLRequest };
|