@raystack/frontier 0.109.0 → 0.111.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 +11 -7
- package/admin/dist/index.js +594 -657
- package/admin/dist/index.mjs +445 -508
- package/client/dist/index.js +130 -130
- package/client/dist/index.mjs +130 -130
- package/package.json +1 -1
package/admin/dist/index.mjs
CHANGED
|
@@ -47,8 +47,8 @@ function convertBillingAddressToString(address) {
|
|
|
47
47
|
// admin/views/roles/columns.tsx
|
|
48
48
|
import { Flex } from "@raystack/apsara";
|
|
49
49
|
|
|
50
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
51
|
-
var digest = "
|
|
50
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-0jkN1H7glA7m/sdk/admin/views/roles/roles.module.css.js
|
|
51
|
+
var digest = "953272b0f5cabcd600309ec26aeb247085240505093659125bac8762494d54e0";
|
|
52
52
|
var css = `._tableRoot_1d549_1 {
|
|
53
53
|
width: 100%;
|
|
54
54
|
}
|
|
@@ -107,19 +107,22 @@ var getColumns = () => {
|
|
|
107
107
|
cell: roles_module_css_default["first-column"],
|
|
108
108
|
header: roles_module_css_default["first-column"]
|
|
109
109
|
},
|
|
110
|
-
|
|
110
|
+
filterType: "string",
|
|
111
|
+
enableColumnFilter: true,
|
|
111
112
|
cell: ({ getValue }) => getValue()
|
|
112
113
|
},
|
|
113
114
|
{
|
|
114
115
|
header: "Title",
|
|
115
116
|
accessorKey: "title",
|
|
116
|
-
|
|
117
|
+
filterType: "string",
|
|
118
|
+
enableColumnFilter: true,
|
|
117
119
|
cell: (info) => info.getValue()
|
|
118
120
|
},
|
|
119
121
|
{
|
|
120
122
|
header: "Name",
|
|
121
123
|
accessorKey: "name",
|
|
122
|
-
|
|
124
|
+
filterType: "string",
|
|
125
|
+
enableColumnFilter: true,
|
|
123
126
|
cell: (info) => info.getValue()
|
|
124
127
|
},
|
|
125
128
|
{
|
|
@@ -548,8 +551,8 @@ var UploadIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
|
548
551
|
// admin/components/PageHeader.tsx
|
|
549
552
|
import { Flex as Flex2, Text } from "@raystack/apsara";
|
|
550
553
|
|
|
551
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
552
|
-
var digest2 = "
|
|
554
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-OnEWke7zQGFw/sdk/admin/components/page-header.module.css.js
|
|
555
|
+
var digest2 = "c6165ea852688d26326475567b26a33217c31e995f22d60a5c8ea0b78404f74d";
|
|
553
556
|
var css2 = `._breadcrumb_1kaun_1 {
|
|
554
557
|
list-style: none;
|
|
555
558
|
padding: 0;
|
|
@@ -671,8 +674,8 @@ function PageTitle({ title, appName }) {
|
|
|
671
674
|
return null;
|
|
672
675
|
}
|
|
673
676
|
|
|
674
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
675
|
-
var digest3 = "
|
|
677
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-wEx3d4pJ2SSH/sdk/admin/views/roles/roles.module.css.js
|
|
678
|
+
var digest3 = "2780cc58fac2e8239674412578519715761451a00ca2358603a39d80d4a3e456";
|
|
676
679
|
var css3 = `._tableRoot_1d549_1 {
|
|
677
680
|
width: 100%;
|
|
678
681
|
}
|
|
@@ -868,8 +871,8 @@ import { useState as useState3 } from "react";
|
|
|
868
871
|
// admin/views/invoices/navbar.tsx
|
|
869
872
|
import { DataTable as DataTable2, Flex as Flex6, IconButton, Text as Text4 } from "@raystack/apsara";
|
|
870
873
|
|
|
871
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
872
|
-
var digest4 = "
|
|
874
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-7vlR6VkMVkU6/sdk/admin/views/invoices/invoices.module.css.js
|
|
875
|
+
var digest4 = "f9cde4ffe9f3f90d564b791042eb49011391543599e5158cc11abcfe994493c1";
|
|
873
876
|
var css4 = `._navbar_1o5oc_1 {
|
|
874
877
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
875
878
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -987,8 +990,8 @@ var InvoicesNavabar = ({ searchQuery }) => {
|
|
|
987
990
|
] });
|
|
988
991
|
};
|
|
989
992
|
|
|
990
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
991
|
-
var digest5 = "
|
|
993
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-N5i4zfkWGHxo/sdk/admin/views/invoices/invoices.module.css.js
|
|
994
|
+
var digest5 = "9351d8037fe2c47b861fc025ffc2d41b15078f7f8e406309957df1ed70c9de3b";
|
|
992
995
|
var css5 = `._navbar_1o5oc_1 {
|
|
993
996
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
994
997
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -1042,7 +1045,6 @@ var invoices_module_css_default2 = { "navbar": "_navbar_1o5oc_1", "table": "_tab
|
|
|
1042
1045
|
|
|
1043
1046
|
// admin/views/invoices/columns.tsx
|
|
1044
1047
|
import { Amount, Link, Text as Text5 } from "@raystack/apsara";
|
|
1045
|
-
import dayjs2 from "dayjs";
|
|
1046
1048
|
|
|
1047
1049
|
// admin/utils/connect-timestamp.ts
|
|
1048
1050
|
import { timestampDate } from "@bufbuild/protobuf/wkt";
|
|
@@ -1061,9 +1063,16 @@ function isNullTimestamp(timestamp) {
|
|
|
1061
1063
|
return true;
|
|
1062
1064
|
return Number(timestamp.seconds) <= 0;
|
|
1063
1065
|
}
|
|
1066
|
+
var DATE_FORMAT = "DD MMM YYYY";
|
|
1067
|
+
function formatTimestamp(timestamp, format = DATE_FORMAT) {
|
|
1068
|
+
if (isNullTimestamp(timestamp))
|
|
1069
|
+
return "-";
|
|
1070
|
+
const date = timestampToDayjs(timestamp);
|
|
1071
|
+
return date ? date.format(format) : "-";
|
|
1072
|
+
}
|
|
1064
1073
|
|
|
1065
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1066
|
-
var digest6 = "
|
|
1074
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-Nnjju6p1JASJ/sdk/admin/views/invoices/invoices.module.css.js
|
|
1075
|
+
var digest6 = "ab810a4722900e14e50f48c475735fd40ec9108f85940c81379e805e89eee172";
|
|
1067
1076
|
var css6 = `._navbar_1o5oc_1 {
|
|
1068
1077
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
1069
1078
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -1128,11 +1137,7 @@ var getColumns2 = ({ t }) => {
|
|
|
1128
1137
|
},
|
|
1129
1138
|
filterType: "date",
|
|
1130
1139
|
enableColumnFilter: true,
|
|
1131
|
-
cell: ({ getValue }) => {
|
|
1132
|
-
const value = getValue();
|
|
1133
|
-
const date = isNullTimestamp(value) ? "-" : dayjs2(timestampToDate(value)).format("YYYY-MM-DD");
|
|
1134
|
-
return /* @__PURE__ */ jsx8(Text5, { children: date });
|
|
1135
|
-
},
|
|
1140
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx8(Text5, { children: formatTimestamp(getValue()) }),
|
|
1136
1141
|
enableHiding: true,
|
|
1137
1142
|
enableSorting: true
|
|
1138
1143
|
},
|
|
@@ -1224,7 +1229,7 @@ import {
|
|
|
1224
1229
|
RQLSortSchema
|
|
1225
1230
|
} from "@raystack/proton/frontier";
|
|
1226
1231
|
import { create } from "@bufbuild/protobuf";
|
|
1227
|
-
import
|
|
1232
|
+
import dayjs2 from "dayjs";
|
|
1228
1233
|
function convertFilterValue(value) {
|
|
1229
1234
|
switch (typeof value) {
|
|
1230
1235
|
case "boolean":
|
|
@@ -1238,7 +1243,7 @@ function convertFilterValue(value) {
|
|
|
1238
1243
|
}
|
|
1239
1244
|
}
|
|
1240
1245
|
function transformDateFilter(filter, fieldName) {
|
|
1241
|
-
const startOfDay =
|
|
1246
|
+
const startOfDay = dayjs2(filter.value).startOf("day");
|
|
1242
1247
|
if (filter.operator === "eq") {
|
|
1243
1248
|
return [
|
|
1244
1249
|
create(RQLFilterSchema, {
|
|
@@ -1521,8 +1526,8 @@ import { FrontierServiceQueries as FrontierServiceQueries2 } from "@raystack/pro
|
|
|
1521
1526
|
// admin/views/products/columns.tsx
|
|
1522
1527
|
import { Flex as Flex8, Image, Amount as Amount2 } from "@raystack/apsara";
|
|
1523
1528
|
|
|
1524
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1525
|
-
var digest7 = "
|
|
1529
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-3ArWOO0TJkyg/sdk/admin/views/products/products.module.css.js
|
|
1530
|
+
var digest7 = "60e5a56064ffd86d43b2fb84b0cda54dd0ea0b46e6bbbd9ae712603026aec712";
|
|
1526
1531
|
var css7 = `._tableRoot_3ccjp_1 {
|
|
1527
1532
|
width: 100%;
|
|
1528
1533
|
}
|
|
@@ -1653,46 +1658,29 @@ var getColumns3 = (onNavigateToPrices) => {
|
|
|
1653
1658
|
{
|
|
1654
1659
|
header: "Product Id",
|
|
1655
1660
|
accessorKey: "id",
|
|
1656
|
-
|
|
1661
|
+
filterType: "string",
|
|
1662
|
+
enableColumnFilter: true,
|
|
1657
1663
|
cell: (info) => info.getValue()
|
|
1658
1664
|
},
|
|
1659
1665
|
{
|
|
1660
1666
|
header: "Created on",
|
|
1661
1667
|
accessorKey: "createdAt",
|
|
1662
|
-
cell: ({ getValue }) =>
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
if (!date)
|
|
1666
|
-
return "-";
|
|
1667
|
-
return date.toLocaleString("en", {
|
|
1668
|
-
month: "long",
|
|
1669
|
-
day: "numeric",
|
|
1670
|
-
year: "numeric"
|
|
1671
|
-
});
|
|
1672
|
-
},
|
|
1673
|
-
filterVariant: "date"
|
|
1668
|
+
cell: ({ getValue }) => formatTimestamp(getValue()),
|
|
1669
|
+
filterType: "date",
|
|
1670
|
+
enableColumnFilter: true
|
|
1674
1671
|
},
|
|
1675
1672
|
{
|
|
1676
1673
|
header: "Updated on",
|
|
1677
1674
|
accessorKey: "updatedAt",
|
|
1678
|
-
cell: ({ getValue }) =>
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
if (!date)
|
|
1682
|
-
return "-";
|
|
1683
|
-
return date.toLocaleString("en", {
|
|
1684
|
-
month: "long",
|
|
1685
|
-
day: "numeric",
|
|
1686
|
-
year: "numeric"
|
|
1687
|
-
});
|
|
1688
|
-
},
|
|
1689
|
-
filterVariant: "date"
|
|
1675
|
+
cell: ({ getValue }) => formatTimestamp(getValue()),
|
|
1676
|
+
filterType: "date",
|
|
1677
|
+
enableColumnFilter: true
|
|
1690
1678
|
}
|
|
1691
1679
|
];
|
|
1692
1680
|
};
|
|
1693
1681
|
|
|
1694
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1695
|
-
var digest8 = "
|
|
1682
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-XhwxhBVluz1P/sdk/admin/views/products/products.module.css.js
|
|
1683
|
+
var digest8 = "c24b3c8d8efac7fbddd8ba28cb09d10d7feb8ef0a6d1b698352e8048c2f6808e";
|
|
1696
1684
|
var css8 = `._tableRoot_3ccjp_1 {
|
|
1697
1685
|
width: 100%;
|
|
1698
1686
|
}
|
|
@@ -1749,8 +1737,8 @@ var products_module_css_default2 = { "tableRoot": "_tableRoot_3ccjp_1", "tableWr
|
|
|
1749
1737
|
// admin/views/products/details.tsx
|
|
1750
1738
|
import { Flex as Flex9, Text as Text6, Grid as Grid2, Drawer as Drawer2 } from "@raystack/apsara";
|
|
1751
1739
|
|
|
1752
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1753
|
-
var digest9 = "
|
|
1740
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-6P7Q7jAc7kAp/sdk/admin/views/products/products.module.css.js
|
|
1741
|
+
var digest9 = "dbb43ca95469d58a0d8d8519216d3bcf319b2830a75462c5bac87c936eddad59";
|
|
1754
1742
|
var css9 = `._tableRoot_3ccjp_1 {
|
|
1755
1743
|
width: 100%;
|
|
1756
1744
|
}
|
|
@@ -1952,8 +1940,8 @@ import { FrontierServiceQueries as FrontierServiceQueries3 } from "@raystack/pro
|
|
|
1952
1940
|
// admin/views/products/prices/columns.tsx
|
|
1953
1941
|
import { Amount as Amount3 } from "@raystack/apsara";
|
|
1954
1942
|
|
|
1955
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1956
|
-
var digest10 = "
|
|
1943
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-SMUgw0cNmSLn/sdk/admin/views/products/prices/prices.module.css.js
|
|
1944
|
+
var digest10 = "a2668768083a4dbe52db75fdcf247071cbd82d7cc25392b0a88e20a9a86f8e3d";
|
|
1957
1945
|
var css10 = `._first-column_6e56r_1 {
|
|
1958
1946
|
padding-left: var(--rs-space-7);
|
|
1959
1947
|
}
|
|
@@ -1983,31 +1971,36 @@ var getColumns4 = (prices) => {
|
|
|
1983
1971
|
header: prices_module_css_default["first-column"]
|
|
1984
1972
|
},
|
|
1985
1973
|
cell: (info) => info.getValue(),
|
|
1986
|
-
|
|
1974
|
+
filterType: "string",
|
|
1975
|
+
enableColumnFilter: true
|
|
1987
1976
|
},
|
|
1988
1977
|
{
|
|
1989
1978
|
header: "name",
|
|
1990
1979
|
accessorKey: "name",
|
|
1991
1980
|
cell: (info) => info.getValue(),
|
|
1992
|
-
|
|
1981
|
+
filterType: "string",
|
|
1982
|
+
enableColumnFilter: true
|
|
1993
1983
|
},
|
|
1994
1984
|
{
|
|
1995
1985
|
header: "interval",
|
|
1996
1986
|
accessorKey: "interval",
|
|
1997
1987
|
cell: (info) => info.getValue(),
|
|
1998
|
-
|
|
1988
|
+
filterType: "string",
|
|
1989
|
+
enableColumnFilter: true
|
|
1999
1990
|
},
|
|
2000
1991
|
{
|
|
2001
1992
|
header: "Usage Type",
|
|
2002
1993
|
accessorKey: "usageType",
|
|
2003
1994
|
cell: (info) => info.getValue(),
|
|
2004
|
-
|
|
1995
|
+
filterType: "string",
|
|
1996
|
+
enableColumnFilter: true
|
|
2005
1997
|
},
|
|
2006
1998
|
{
|
|
2007
1999
|
header: "billing_scheme",
|
|
2008
2000
|
accessorKey: "billingScheme",
|
|
2009
2001
|
cell: (info) => info.getValue(),
|
|
2010
|
-
|
|
2002
|
+
filterType: "string",
|
|
2003
|
+
enableColumnFilter: true
|
|
2011
2004
|
},
|
|
2012
2005
|
{
|
|
2013
2006
|
header: "Amount",
|
|
@@ -2019,44 +2012,28 @@ var getColumns4 = (prices) => {
|
|
|
2019
2012
|
currency: row.original.currency
|
|
2020
2013
|
}
|
|
2021
2014
|
),
|
|
2022
|
-
|
|
2015
|
+
filterType: "string",
|
|
2016
|
+
enableColumnFilter: true
|
|
2023
2017
|
},
|
|
2024
2018
|
{
|
|
2025
2019
|
header: "creation date",
|
|
2026
2020
|
accessorKey: "createdAt",
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
if (!date)
|
|
2031
|
-
return "-";
|
|
2032
|
-
return date.toLocaleString("en", {
|
|
2033
|
-
month: "long",
|
|
2034
|
-
day: "numeric",
|
|
2035
|
-
year: "numeric"
|
|
2036
|
-
});
|
|
2037
|
-
}
|
|
2021
|
+
filterType: "date",
|
|
2022
|
+
enableColumnFilter: true,
|
|
2023
|
+
cell: ({ getValue }) => formatTimestamp(getValue())
|
|
2038
2024
|
},
|
|
2039
2025
|
{
|
|
2040
2026
|
header: "Updated date",
|
|
2041
2027
|
accessorKey: "updatedAt",
|
|
2028
|
+
filterType: "date",
|
|
2042
2029
|
enableColumnFilter: false,
|
|
2043
|
-
cell: ({ getValue }) =>
|
|
2044
|
-
const timestamp = getValue();
|
|
2045
|
-
const date = timestampToDate(timestamp);
|
|
2046
|
-
if (!date)
|
|
2047
|
-
return "-";
|
|
2048
|
-
return date.toLocaleString("en", {
|
|
2049
|
-
month: "long",
|
|
2050
|
-
day: "numeric",
|
|
2051
|
-
year: "numeric"
|
|
2052
|
-
});
|
|
2053
|
-
}
|
|
2030
|
+
cell: ({ getValue }) => formatTimestamp(getValue())
|
|
2054
2031
|
}
|
|
2055
2032
|
];
|
|
2056
2033
|
};
|
|
2057
2034
|
|
|
2058
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2059
|
-
var digest11 = "
|
|
2035
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-mksW3NJo7di2/sdk/admin/views/products/products.module.css.js
|
|
2036
|
+
var digest11 = "af69f765fb93761c741296e0eb76ce04f0f8ffc832387cdc654ce5ad1f99260f";
|
|
2060
2037
|
var css11 = `._tableRoot_3ccjp_1 {
|
|
2061
2038
|
width: 100%;
|
|
2062
2039
|
}
|
|
@@ -2218,8 +2195,8 @@ function CpuChipIcon(props) {
|
|
|
2218
2195
|
);
|
|
2219
2196
|
}
|
|
2220
2197
|
|
|
2221
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2222
|
-
var digest12 = "
|
|
2198
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-3Ec9NILIyPtD/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2199
|
+
var digest12 = "bb3353e0d085e5b74a8566982ee161391096a10c577c65c8e882c18d23871af3";
|
|
2223
2200
|
var css12 = `._navbar_lxzqi_1 {
|
|
2224
2201
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2225
2202
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2441,8 +2418,8 @@ var Navbar = ({ searchQuery, onExportCsv }) => {
|
|
|
2441
2418
|
};
|
|
2442
2419
|
var navbar_default = Navbar;
|
|
2443
2420
|
|
|
2444
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2445
|
-
var digest13 = "
|
|
2421
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-bhz6yFzt30fH/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2422
|
+
var digest13 = "3f6c50f8cec01f8850bf675f0eca58c4e8cdd7bc847a39697ec8ba9780587fe6";
|
|
2446
2423
|
var css13 = `._navbar_lxzqi_1 {
|
|
2447
2424
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2448
2425
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2554,10 +2531,9 @@ var audit_logs_module_css_default2 = { "navbar": "_navbar_lxzqi_1", "table": "_t
|
|
|
2554
2531
|
|
|
2555
2532
|
// admin/views/audit-logs/columns.tsx
|
|
2556
2533
|
import { Badge, Flex as Flex14, Text as Text9 } from "@raystack/apsara";
|
|
2557
|
-
import dayjs4 from "dayjs";
|
|
2558
2534
|
|
|
2559
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2560
|
-
var digest14 = "
|
|
2535
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-kkW3e4fAT6y1/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2536
|
+
var digest14 = "9e5e10f34e2756ace39dd8ff376787cd2387d4367b9ee2d69cbd8acc7355af73";
|
|
2561
2537
|
var css14 = `._navbar_lxzqi_1 {
|
|
2562
2538
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2563
2539
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2804,10 +2780,9 @@ var getColumns5 = ({
|
|
|
2804
2780
|
if (isNullTimestamp(value)) {
|
|
2805
2781
|
return /* @__PURE__ */ jsx20(Text9, { children: "-" });
|
|
2806
2782
|
}
|
|
2807
|
-
const date = dayjs4(timestampToDate(value));
|
|
2808
2783
|
return /* @__PURE__ */ jsxs13(Flex14, { gap: 1, direction: "column", children: [
|
|
2809
|
-
/* @__PURE__ */ jsx20(Text9, { size: "small", weight: "medium", children:
|
|
2810
|
-
/* @__PURE__ */ jsx20(Text9, { size: "small", variant: "secondary", children:
|
|
2784
|
+
/* @__PURE__ */ jsx20(Text9, { size: "small", weight: "medium", children: formatTimestamp(value) }),
|
|
2785
|
+
/* @__PURE__ */ jsx20(Text9, { size: "small", variant: "secondary", children: formatTimestamp(value, "hh:mm A") })
|
|
2811
2786
|
] });
|
|
2812
2787
|
},
|
|
2813
2788
|
enableHiding: true,
|
|
@@ -2826,8 +2801,8 @@ import {
|
|
|
2826
2801
|
import { Flex as Flex16, IconButton as IconButton4, SidePanel } from "@raystack/apsara";
|
|
2827
2802
|
import { List as List3 } from "@raystack/apsara";
|
|
2828
2803
|
|
|
2829
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2830
|
-
var digest15 = "
|
|
2804
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-4rtiiNNvkPuQ/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2805
|
+
var digest15 = "a50bcd2389b5b8e8a8fbb2cdf9406828eb49b0f411a2885637b8fb35ebd233eb";
|
|
2831
2806
|
var css15 = `._navbar_lxzqi_1 {
|
|
2832
2807
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2833
2808
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2937,9 +2912,6 @@ var css15 = `._navbar_lxzqi_1 {
|
|
|
2937
2912
|
})();
|
|
2938
2913
|
var audit_logs_module_css_default4 = { "navbar": "_navbar_lxzqi_1", "table": "_table_lxzqi_11", "table-empty": "_table-empty_lxzqi_15", "tableEmpty": "_table-empty_lxzqi_15", "empty-state": "_empty-state_lxzqi_19", "emptyState": "_empty-state_lxzqi_19", "empty-state-subheading": "_empty-state-subheading_lxzqi_23", "emptyStateSubheading": "_empty-state-subheading_lxzqi_23", "name-column": "_name-column_lxzqi_28", "nameColumn": "_name-column_lxzqi_28", "org-column": "_org-column_lxzqi_32", "orgColumn": "_org-column_lxzqi_32", "table-wrapper": "_table-wrapper_lxzqi_36", "tableWrapper": "_table-wrapper_lxzqi_36", "table-header": "_table-header_lxzqi_41", "tableHeader": "_table-header_lxzqi_41", "side-panel": "_side-panel_lxzqi_45", "sidePanel": "_side-panel_lxzqi_45", "capitalize": "_capitalize_lxzqi_50", "table-content-container": "_table-content-container_lxzqi_54", "tableContentContainer": "_table-content-container_lxzqi_54", "text-overflow": "_text-overflow_lxzqi_62", "textOverflow": "_text-overflow_lxzqi_62", "code-block-container": "_code-block-container_lxzqi_70", "codeBlockContainer": "_code-block-container_lxzqi_70", "code-block": "_code-block_lxzqi_70", "codeBlock": "_code-block_lxzqi_70", "sidepanel-link-trigger": "_sidepanel-link-trigger_lxzqi_77", "sidepanelLinkTrigger": "_sidepanel-link-trigger_lxzqi_77", "sidepanel-list-link": "_sidepanel-list-link_lxzqi_85", "sidepanelListLink": "_sidepanel-list-link_lxzqi_85", "sidepanel-list": "_sidepanel-list_lxzqi_85", "sidepanelList": "_sidepanel-list_lxzqi_85" };
|
|
2939
2914
|
|
|
2940
|
-
// admin/views/audit-logs/sidepanel-details.tsx
|
|
2941
|
-
import dayjs5 from "dayjs";
|
|
2942
|
-
|
|
2943
2915
|
// admin/assets/icons/MapIcon.tsx
|
|
2944
2916
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2945
2917
|
function MapIcon(props) {
|
|
@@ -2968,8 +2940,8 @@ function MapIcon(props) {
|
|
|
2968
2940
|
// admin/views/audit-logs/sidepanel-log-dialog.tsx
|
|
2969
2941
|
import { Dialog, IconButton as IconButton3, CodeBlock } from "@raystack/apsara";
|
|
2970
2942
|
|
|
2971
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2972
|
-
var digest16 = "
|
|
2943
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-f73153KGyl6V/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2944
|
+
var digest16 = "1a28844a218749997af37f50f4fc5618a52d332f61130fa3e67917804098f1ec";
|
|
2973
2945
|
var css16 = `._navbar_lxzqi_1 {
|
|
2974
2946
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2975
2947
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3177,8 +3149,8 @@ function SidePanelLogDialog(props) {
|
|
|
3177
3149
|
// admin/views/audit-logs/sidepanel-list-link.tsx
|
|
3178
3150
|
import { Button, List } from "@raystack/apsara";
|
|
3179
3151
|
|
|
3180
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3181
|
-
var digest17 = "
|
|
3152
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-GRTjZBwTF2ME/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
3153
|
+
var digest17 = "df50b0bbdcdcb65e03dbc2eaeb84f9f261eb99a4e8b67e6f828eece6960a6f57";
|
|
3182
3154
|
var css17 = `._navbar_lxzqi_1 {
|
|
3183
3155
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
3184
3156
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3296,6 +3268,7 @@ function SidepanelListItemLink({
|
|
|
3296
3268
|
href,
|
|
3297
3269
|
label,
|
|
3298
3270
|
onNavigate,
|
|
3271
|
+
state,
|
|
3299
3272
|
"data-test-id": dataTestId
|
|
3300
3273
|
}) {
|
|
3301
3274
|
if (isLink && onNavigate) {
|
|
@@ -3308,7 +3281,7 @@ function SidepanelListItemLink({
|
|
|
3308
3281
|
color: "neutral",
|
|
3309
3282
|
"data-test-id": dataTestId,
|
|
3310
3283
|
className: audit_logs_module_css_default6["sidepanel-link-trigger"],
|
|
3311
|
-
onClick: () => onNavigate(href),
|
|
3284
|
+
onClick: () => onNavigate(href, state),
|
|
3312
3285
|
children
|
|
3313
3286
|
}
|
|
3314
3287
|
) })
|
|
@@ -3323,8 +3296,8 @@ function SidepanelListItemLink({
|
|
|
3323
3296
|
// admin/views/audit-logs/sidepanel-list-id.tsx
|
|
3324
3297
|
import { CopyButton, Flex as Flex15, List as List2, Text as Text10, Tooltip } from "@raystack/apsara";
|
|
3325
3298
|
|
|
3326
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3327
|
-
var digest18 = "
|
|
3299
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-2LSNMq63Hcjn/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
3300
|
+
var digest18 = "79539c0f7dc49d1587997dcc194e22c091b750e2ab7a2110a1e23a849c278c2a";
|
|
3328
3301
|
var css18 = `._navbar_lxzqi_1 {
|
|
3329
3302
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
3330
3303
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3469,7 +3442,6 @@ var DEFAULT_ROLES = {
|
|
|
3469
3442
|
ORG_VIEWER: "app_organization_viewer",
|
|
3470
3443
|
PROJECT_VIEWER: "app_project_viewer"
|
|
3471
3444
|
};
|
|
3472
|
-
var NULL_DATE = "0001-01-01T00:00:00Z";
|
|
3473
3445
|
var defaultTerminology = {
|
|
3474
3446
|
organization: { singular: "Organization", plural: "Organizations" },
|
|
3475
3447
|
project: { singular: "Project", plural: "Projects" },
|
|
@@ -3535,6 +3507,19 @@ var useAdminPaths = () => {
|
|
|
3535
3507
|
};
|
|
3536
3508
|
};
|
|
3537
3509
|
|
|
3510
|
+
// admin/hooks/useOrganizationLookup.ts
|
|
3511
|
+
import { useQuery as useQuery4 } from "@connectrpc/connect-query";
|
|
3512
|
+
import { FrontierServiceQueries as FrontierServiceQueries4 } from "@raystack/proton/frontier";
|
|
3513
|
+
var useOrganizationLookup = (orgId) => useQuery4(
|
|
3514
|
+
FrontierServiceQueries4.getOrganization,
|
|
3515
|
+
{ id: orgId || "" },
|
|
3516
|
+
{
|
|
3517
|
+
enabled: !!orgId,
|
|
3518
|
+
staleTime: 5 * 60 * 1e3,
|
|
3519
|
+
select: (data) => data?.organization
|
|
3520
|
+
}
|
|
3521
|
+
);
|
|
3522
|
+
|
|
3538
3523
|
// admin/views/audit-logs/sidepanel-details.tsx
|
|
3539
3524
|
import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3540
3525
|
function SidePanelDetails({
|
|
@@ -3545,9 +3530,10 @@ function SidePanelDetails({
|
|
|
3545
3530
|
const t = useTerminology();
|
|
3546
3531
|
const paths = useAdminPaths();
|
|
3547
3532
|
const { actor, event, resource, occurredAt, id, orgId, orgName, target } = rest;
|
|
3548
|
-
const date = dayjs5(timestampToDate(occurredAt));
|
|
3549
3533
|
const session = actor?.metadata?.context;
|
|
3550
3534
|
const location = session && `${session.Location.City}, ${session.Location.Country}` || "-";
|
|
3535
|
+
const isOrgLink = !!orgId && !isZeroUUID(orgId);
|
|
3536
|
+
const { data: org } = useOrganizationLookup(isOrgLink ? orgId : void 0);
|
|
3551
3537
|
return /* @__PURE__ */ jsxs18(
|
|
3552
3538
|
SidePanel,
|
|
3553
3539
|
{
|
|
@@ -3589,8 +3575,9 @@ function SidePanelDetails({
|
|
|
3589
3575
|
/* @__PURE__ */ jsx27(
|
|
3590
3576
|
SidepanelListItemLink,
|
|
3591
3577
|
{
|
|
3592
|
-
isLink:
|
|
3593
|
-
href: `/${paths.organizations}/${orgId}`,
|
|
3578
|
+
isLink: isOrgLink && !!org,
|
|
3579
|
+
href: `/${paths.organizations}/${org?.name || orgId}`,
|
|
3580
|
+
state: orgId ? { orgId } : void 0,
|
|
3594
3581
|
label: t.organization({ case: "capital" }),
|
|
3595
3582
|
onNavigate,
|
|
3596
3583
|
"data-test-id": "actor-link",
|
|
@@ -3611,11 +3598,11 @@ function SidePanelDetails({
|
|
|
3611
3598
|
] }),
|
|
3612
3599
|
/* @__PURE__ */ jsxs18(List3.Item, { children: [
|
|
3613
3600
|
/* @__PURE__ */ jsx27(List3.Label, { className: audit_logs_module_css_default4["sidepanel-list"], children: "Date" }),
|
|
3614
|
-
/* @__PURE__ */ jsx27(List3.Value, { children:
|
|
3601
|
+
/* @__PURE__ */ jsx27(List3.Value, { children: formatTimestamp(occurredAt) })
|
|
3615
3602
|
] }),
|
|
3616
3603
|
/* @__PURE__ */ jsxs18(List3.Item, { children: [
|
|
3617
3604
|
/* @__PURE__ */ jsx27(List3.Label, { className: audit_logs_module_css_default4["sidepanel-list"], children: "Time" }),
|
|
3618
|
-
/* @__PURE__ */ jsx27(List3.Value, { children:
|
|
3605
|
+
/* @__PURE__ */ jsx27(List3.Value, { children: formatTimestamp(occurredAt, "hh:mm A") })
|
|
3619
3606
|
] }),
|
|
3620
3607
|
/* @__PURE__ */ jsxs18(List3.Item, { children: [
|
|
3621
3608
|
/* @__PURE__ */ jsx27(List3.Label, { className: audit_logs_module_css_default4["sidepanel-list"], children: "ID" }),
|
|
@@ -3855,8 +3842,8 @@ import { DataTable as DataTable8, EmptyState as EmptyState6, Flex as Flex18 } fr
|
|
|
3855
3842
|
// admin/views/admins/columns.tsx
|
|
3856
3843
|
import { Button as Button2 } from "@raystack/apsara";
|
|
3857
3844
|
|
|
3858
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3859
|
-
var digest19 = "
|
|
3845
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-4k4p60v11bTG/sdk/admin/views/admins/admins.module.css.js
|
|
3846
|
+
var digest19 = "d921cd8a8746759039f43f112ac7c4c81cbc592e4a40364f7ea5b999749053cb";
|
|
3860
3847
|
var css19 = `._tableRoot_1tmha_1 {
|
|
3861
3848
|
width: 100%;
|
|
3862
3849
|
}
|
|
@@ -3889,6 +3876,22 @@ var admins_module_css_default = { "tableRoot": "_tableRoot_1tmha_1", "tableWrapp
|
|
|
3889
3876
|
|
|
3890
3877
|
// admin/views/admins/columns.tsx
|
|
3891
3878
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3879
|
+
var OrgCell = ({
|
|
3880
|
+
orgId,
|
|
3881
|
+
onNavigateToOrg
|
|
3882
|
+
}) => {
|
|
3883
|
+
const { data: org } = useOrganizationLookup(orgId);
|
|
3884
|
+
return /* @__PURE__ */ jsx29(
|
|
3885
|
+
Button2,
|
|
3886
|
+
{
|
|
3887
|
+
variant: "text",
|
|
3888
|
+
disabled: !org,
|
|
3889
|
+
onClick: () => org && onNavigateToOrg?.(org.name || orgId, orgId),
|
|
3890
|
+
"data-test-id": "frontier-admin-navigate-to-org-btn",
|
|
3891
|
+
children: org?.title || org?.name || orgId
|
|
3892
|
+
}
|
|
3893
|
+
);
|
|
3894
|
+
};
|
|
3892
3895
|
var getColumns6 = ({ onNavigateToOrg, t } = {}) => {
|
|
3893
3896
|
return [
|
|
3894
3897
|
{
|
|
@@ -3898,13 +3901,15 @@ var getColumns6 = ({ onNavigateToOrg, t } = {}) => {
|
|
|
3898
3901
|
cell: admins_module_css_default["first-column"],
|
|
3899
3902
|
header: admins_module_css_default["first-column"]
|
|
3900
3903
|
},
|
|
3901
|
-
|
|
3904
|
+
filterType: "string",
|
|
3905
|
+
enableColumnFilter: true,
|
|
3902
3906
|
cell: (info) => info.getValue() || "-"
|
|
3903
3907
|
},
|
|
3904
3908
|
{
|
|
3905
3909
|
header: "Email",
|
|
3906
3910
|
accessorKey: "email",
|
|
3907
|
-
|
|
3911
|
+
filterType: "string",
|
|
3912
|
+
enableColumnFilter: true,
|
|
3908
3913
|
cell: (info) => info.getValue() || "-"
|
|
3909
3914
|
},
|
|
3910
3915
|
{
|
|
@@ -3927,22 +3932,14 @@ var getColumns6 = ({ onNavigateToOrg, t } = {}) => {
|
|
|
3927
3932
|
accessorKey: "orgId",
|
|
3928
3933
|
cell: (info) => {
|
|
3929
3934
|
const org_id = info.getValue();
|
|
3930
|
-
return org_id ? /* @__PURE__ */ jsx29(
|
|
3931
|
-
Button2,
|
|
3932
|
-
{
|
|
3933
|
-
variant: "text",
|
|
3934
|
-
onClick: () => onNavigateToOrg?.(org_id),
|
|
3935
|
-
"data-test-id": "frontier-admin-navigate-to-org-btn",
|
|
3936
|
-
children: org_id
|
|
3937
|
-
}
|
|
3938
|
-
) : "-";
|
|
3935
|
+
return org_id ? /* @__PURE__ */ jsx29(OrgCell, { orgId: org_id, onNavigateToOrg }) : "-";
|
|
3939
3936
|
}
|
|
3940
3937
|
}
|
|
3941
3938
|
];
|
|
3942
3939
|
};
|
|
3943
3940
|
|
|
3944
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3945
|
-
var digest20 = "
|
|
3941
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-bmKQHIolG0kT/sdk/admin/views/admins/admins.module.css.js
|
|
3942
|
+
var digest20 = "c58c4554bfcac7c974030b7d2f8db12169b23e3b01917e77c5bdcc628df69239";
|
|
3946
3943
|
var css20 = `._tableRoot_1tmha_1 {
|
|
3947
3944
|
width: 100%;
|
|
3948
3945
|
}
|
|
@@ -3974,7 +3971,7 @@ var css20 = `._tableRoot_1tmha_1 {
|
|
|
3974
3971
|
var admins_module_css_default2 = { "tableRoot": "_tableRoot_1tmha_1", "tableWrapper": "_tableWrapper_1tmha_5", "header": "_header_1tmha_9", "first-column": "_first-column_1tmha_14", "firstColumn": "_first-column_1tmha_14" };
|
|
3975
3972
|
|
|
3976
3973
|
// admin/views/admins/index.tsx
|
|
3977
|
-
import { useQuery as
|
|
3974
|
+
import { useQuery as useQuery5 } from "@connectrpc/connect-query";
|
|
3978
3975
|
import { AdminServiceQueries as AdminServiceQueries3 } from "@raystack/proton/frontier";
|
|
3979
3976
|
import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3980
3977
|
var pageHeader = {
|
|
@@ -3998,7 +3995,7 @@ function AdminsView({ onNavigateToOrg, icon } = {}) {
|
|
|
3998
3995
|
isLoading,
|
|
3999
3996
|
error,
|
|
4000
3997
|
isError
|
|
4001
|
-
} =
|
|
3998
|
+
} = useQuery5(AdminServiceQueries3.listPlatformUsers, {}, {
|
|
4002
3999
|
staleTime: Infinity
|
|
4003
4000
|
});
|
|
4004
4001
|
const columns = getColumns6({ onNavigateToOrg, t });
|
|
@@ -4053,8 +4050,8 @@ import { EmptyState as EmptyState7, Flex as Flex20, DataTable as DataTable9, Dra
|
|
|
4053
4050
|
// admin/views/plans/columns.tsx
|
|
4054
4051
|
import { Text as Text11 } from "@raystack/apsara";
|
|
4055
4052
|
|
|
4056
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4057
|
-
var digest21 = "
|
|
4053
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-30sdz5fTH6Rg/sdk/admin/views/plans/plans.module.css.js
|
|
4054
|
+
var digest21 = "d745ca507d1c19d19b07e34a3b0f1b18a9e089ed8a8d70c0523567796d5bdf06";
|
|
4058
4055
|
var css21 = `._tableRoot_1akba_1 {
|
|
4059
4056
|
width: 100%;
|
|
4060
4057
|
}
|
|
@@ -4108,7 +4105,8 @@ var getColumns7 = ({ onSelectPlan } = {}) => {
|
|
|
4108
4105
|
cell: plans_module_css_default["first-column"],
|
|
4109
4106
|
header: plans_module_css_default["first-column"]
|
|
4110
4107
|
},
|
|
4111
|
-
|
|
4108
|
+
filterType: "string",
|
|
4109
|
+
enableColumnFilter: true,
|
|
4112
4110
|
cell: ({ getValue }) => {
|
|
4113
4111
|
const id = getValue();
|
|
4114
4112
|
return /* @__PURE__ */ jsx31(
|
|
@@ -4125,35 +4123,27 @@ var getColumns7 = ({ onSelectPlan } = {}) => {
|
|
|
4125
4123
|
{
|
|
4126
4124
|
header: "Title",
|
|
4127
4125
|
accessorKey: "title",
|
|
4128
|
-
|
|
4126
|
+
filterType: "string",
|
|
4127
|
+
enableColumnFilter: true,
|
|
4129
4128
|
cell: (info) => info.getValue()
|
|
4130
4129
|
},
|
|
4131
4130
|
{
|
|
4132
4131
|
header: "Interval",
|
|
4133
4132
|
accessorKey: "interval",
|
|
4134
|
-
|
|
4133
|
+
filterType: "string",
|
|
4134
|
+
enableColumnFilter: true,
|
|
4135
4135
|
cell: (info) => info.getValue()
|
|
4136
4136
|
},
|
|
4137
4137
|
{
|
|
4138
4138
|
header: "Created At",
|
|
4139
4139
|
accessorKey: "createdAt",
|
|
4140
|
-
cell: ({ getValue }) =>
|
|
4141
|
-
const timestamp = getValue();
|
|
4142
|
-
const date = timestampToDate(timestamp);
|
|
4143
|
-
if (!date)
|
|
4144
|
-
return "-";
|
|
4145
|
-
return date.toLocaleString("en", {
|
|
4146
|
-
month: "long",
|
|
4147
|
-
day: "numeric",
|
|
4148
|
-
year: "numeric"
|
|
4149
|
-
});
|
|
4150
|
-
}
|
|
4140
|
+
cell: ({ getValue }) => formatTimestamp(getValue())
|
|
4151
4141
|
}
|
|
4152
4142
|
];
|
|
4153
4143
|
};
|
|
4154
4144
|
|
|
4155
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4156
|
-
var digest22 = "
|
|
4145
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-JGU7HS5bz0Qb/sdk/admin/views/plans/plans.module.css.js
|
|
4146
|
+
var digest22 = "8e8b6a1e36567afd373314c06ac69ec350534799b163bdfc07a3efe0140282e1";
|
|
4157
4147
|
var css22 = `._tableRoot_1akba_1 {
|
|
4158
4148
|
width: 100%;
|
|
4159
4149
|
}
|
|
@@ -4197,8 +4187,8 @@ var css22 = `._tableRoot_1akba_1 {
|
|
|
4197
4187
|
var plans_module_css_default2 = { "tableRoot": "_tableRoot_1akba_1", "tableWrapper": "_tableWrapper_1akba_4", "table": "_table_1akba_1", "header": "_header_1akba_12", "first-column": "_first-column_1akba_17", "firstColumn": "_first-column_1akba_17", "sheetContent": "_sheetContent_1akba_21", "sheetContentBody": "_sheetContentBody_1akba_26" };
|
|
4198
4188
|
|
|
4199
4189
|
// admin/views/plans/index.tsx
|
|
4200
|
-
import { useQuery as
|
|
4201
|
-
import { FrontierServiceQueries as
|
|
4190
|
+
import { useQuery as useQuery6 } from "@connectrpc/connect-query";
|
|
4191
|
+
import { FrontierServiceQueries as FrontierServiceQueries5 } from "@raystack/proton/frontier";
|
|
4202
4192
|
|
|
4203
4193
|
// admin/views/plans/details.tsx
|
|
4204
4194
|
import { Flex as Flex19, Text as Text12, Grid as Grid3 } from "@raystack/apsara";
|
|
@@ -4217,14 +4207,7 @@ function PlanDetails({ plan }) {
|
|
|
4217
4207
|
] }),
|
|
4218
4208
|
/* @__PURE__ */ jsxs21(Grid3, { columns: 2, gap: 3, children: [
|
|
4219
4209
|
/* @__PURE__ */ jsx32(Text12, { size: "mini", children: "Created At" }),
|
|
4220
|
-
/* @__PURE__ */ jsx32(Text12, { size: "mini", children: (
|
|
4221
|
-
const date = timestampToDate(plan?.createdAt);
|
|
4222
|
-
return date ? date.toLocaleString("en", {
|
|
4223
|
-
month: "long",
|
|
4224
|
-
day: "numeric",
|
|
4225
|
-
year: "numeric"
|
|
4226
|
-
}) : "-";
|
|
4227
|
-
})() })
|
|
4210
|
+
/* @__PURE__ */ jsx32(Text12, { size: "mini", children: formatTimestamp(plan?.createdAt) })
|
|
4228
4211
|
] })
|
|
4229
4212
|
] })
|
|
4230
4213
|
] });
|
|
@@ -4244,7 +4227,7 @@ function PlansView({
|
|
|
4244
4227
|
isLoading: isPlansLoading,
|
|
4245
4228
|
error,
|
|
4246
4229
|
isError
|
|
4247
|
-
} =
|
|
4230
|
+
} = useQuery6(FrontierServiceQueries5.listPlans, {}, {
|
|
4248
4231
|
staleTime: Infinity
|
|
4249
4232
|
});
|
|
4250
4233
|
const plans = plansResponse?.plans || [];
|
|
@@ -4312,8 +4295,8 @@ import { Flex as Flex21, DataTable as DataTable10, EmptyState as EmptyState8 } f
|
|
|
4312
4295
|
// admin/views/webhooks/webhooks/columns.tsx
|
|
4313
4296
|
import { Text as Text13 } from "@raystack/apsara";
|
|
4314
4297
|
|
|
4315
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4316
|
-
var digest23 = "
|
|
4298
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-I6MB7XyUXjW2/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
|
|
4299
|
+
var digest23 = "7f8d2a44eaa10cf4e5d66d6d95b5ef98b3386d3e5dddf07f7e95bd26c26fd663";
|
|
4317
4300
|
var css23 = `._tableRoot_iq3pc_1 {
|
|
4318
4301
|
width: 100%;
|
|
4319
4302
|
}
|
|
@@ -4358,7 +4341,6 @@ var css23 = `._tableRoot_iq3pc_1 {
|
|
|
4358
4341
|
var webhooks_module_css_default = { "tableRoot": "_tableRoot_iq3pc_1", "tableWrapper": "_tableWrapper_iq3pc_5", "table": "_table_iq3pc_1", "first-column": "_first-column_iq3pc_13", "firstColumn": "_first-column_iq3pc_13", "stateColumn": "_stateColumn_iq3pc_17", "dateColumn": "_dateColumn_iq3pc_21", "header": "_header_iq3pc_25" };
|
|
4359
4342
|
|
|
4360
4343
|
// admin/views/webhooks/webhooks/columns.tsx
|
|
4361
|
-
import dayjs6 from "dayjs";
|
|
4362
4344
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
4363
4345
|
var getColumns8 = () => {
|
|
4364
4346
|
return [
|
|
@@ -4369,13 +4351,15 @@ var getColumns8 = () => {
|
|
|
4369
4351
|
cell: webhooks_module_css_default["first-column"],
|
|
4370
4352
|
header: webhooks_module_css_default["first-column"]
|
|
4371
4353
|
},
|
|
4372
|
-
|
|
4354
|
+
filterType: "string",
|
|
4355
|
+
enableColumnFilter: true,
|
|
4373
4356
|
cell: (info) => info.getValue() || "-"
|
|
4374
4357
|
},
|
|
4375
4358
|
{
|
|
4376
4359
|
header: "State",
|
|
4377
4360
|
accessorKey: "state",
|
|
4378
|
-
|
|
4361
|
+
filterType: "string",
|
|
4362
|
+
enableColumnFilter: true,
|
|
4379
4363
|
classNames: { cell: webhooks_module_css_default.stateColumn, header: webhooks_module_css_default.stateColumn },
|
|
4380
4364
|
cell: (info) => info.getValue() || "-"
|
|
4381
4365
|
},
|
|
@@ -4388,17 +4372,13 @@ var getColumns8 = () => {
|
|
|
4388
4372
|
header: "Created at",
|
|
4389
4373
|
accessorKey: "createdAt",
|
|
4390
4374
|
classNames: { cell: webhooks_module_css_default.dateColumn, header: webhooks_module_css_default.dateColumn },
|
|
4391
|
-
cell: ({ getValue }) => {
|
|
4392
|
-
const value = getValue();
|
|
4393
|
-
const date = isNullTimestamp(value) ? "-" : dayjs6(timestampToDate(value)).format("YYYY-MM-DD");
|
|
4394
|
-
return /* @__PURE__ */ jsx34(Text13, { children: date });
|
|
4395
|
-
}
|
|
4375
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx34(Text13, { children: formatTimestamp(getValue()) })
|
|
4396
4376
|
}
|
|
4397
4377
|
];
|
|
4398
4378
|
};
|
|
4399
4379
|
|
|
4400
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4401
|
-
var digest24 = "
|
|
4380
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-NghWLb2qcTQW/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
|
|
4381
|
+
var digest24 = "87d9c958a196639cf2455952d027bbc3de8658137b4bf57488d6e1022f6cb75c";
|
|
4402
4382
|
var css24 = `._tableRoot_iq3pc_1 {
|
|
4403
4383
|
width: 100%;
|
|
4404
4384
|
}
|
|
@@ -4443,10 +4423,10 @@ var css24 = `._tableRoot_iq3pc_1 {
|
|
|
4443
4423
|
var webhooks_module_css_default2 = { "tableRoot": "_tableRoot_iq3pc_1", "tableWrapper": "_tableWrapper_iq3pc_5", "table": "_table_iq3pc_1", "first-column": "_first-column_iq3pc_13", "firstColumn": "_first-column_iq3pc_13", "stateColumn": "_stateColumn_iq3pc_17", "dateColumn": "_dateColumn_iq3pc_21", "header": "_header_iq3pc_25" };
|
|
4444
4424
|
|
|
4445
4425
|
// admin/views/webhooks/webhooks/hooks/useWebhookQueries.ts
|
|
4446
|
-
import { useQuery as
|
|
4426
|
+
import { useQuery as useQuery7 } from "@connectrpc/connect-query";
|
|
4447
4427
|
import { AdminServiceQueries as AdminServiceQueries4 } from "@raystack/proton/frontier";
|
|
4448
4428
|
function useWebhookQueries() {
|
|
4449
|
-
const listWebhooks =
|
|
4429
|
+
const listWebhooks = useQuery7(
|
|
4450
4430
|
AdminServiceQueries4.listWebhooks,
|
|
4451
4431
|
{},
|
|
4452
4432
|
{
|
|
@@ -4513,7 +4493,7 @@ import { Flex as Flex24, EmptyState as EmptyState10 } from "@raystack/apsara";
|
|
|
4513
4493
|
import { createQueryOptions, useTransport as useTransport2 } from "@connectrpc/connect-query";
|
|
4514
4494
|
import {
|
|
4515
4495
|
AdminServiceQueries as AdminServiceQueries6,
|
|
4516
|
-
FrontierServiceQueries as
|
|
4496
|
+
FrontierServiceQueries as FrontierServiceQueries6
|
|
4517
4497
|
} from "@raystack/proton/frontier";
|
|
4518
4498
|
import { useQueries } from "@tanstack/react-query";
|
|
4519
4499
|
|
|
@@ -4523,8 +4503,8 @@ import { EmptyState as EmptyState9, DataTable as DataTable11, Flex as Flex22 } f
|
|
|
4523
4503
|
// admin/views/preferences/columns.tsx
|
|
4524
4504
|
import { Text as Text14 } from "@raystack/apsara";
|
|
4525
4505
|
|
|
4526
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4527
|
-
var digest25 = "
|
|
4506
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-TVoiokzYkzx2/sdk/admin/views/preferences/preferences.module.css.js
|
|
4507
|
+
var digest25 = "6baffd60cdf1daf9f142c3bb263cbb8d3be9c497f81859fb374701afd3d4cab7";
|
|
4528
4508
|
var css25 = `._tableRoot_hre5m_1 {
|
|
4529
4509
|
width: 100%;
|
|
4530
4510
|
}
|
|
@@ -4575,7 +4555,8 @@ var getColumns9 = ({
|
|
|
4575
4555
|
cell: preferences_module_css_default["first-column"],
|
|
4576
4556
|
header: preferences_module_css_default["first-column"]
|
|
4577
4557
|
},
|
|
4578
|
-
|
|
4558
|
+
filterType: "string",
|
|
4559
|
+
enableColumnFilter: true,
|
|
4579
4560
|
cell: (info) => info.getValue(),
|
|
4580
4561
|
footer: (props) => props.column.id
|
|
4581
4562
|
},
|
|
@@ -4614,8 +4595,8 @@ var getColumns9 = ({
|
|
|
4614
4595
|
];
|
|
4615
4596
|
};
|
|
4616
4597
|
|
|
4617
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4618
|
-
var digest26 = "
|
|
4598
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-r7wwUAnS2Bxx/sdk/admin/views/preferences/preferences.module.css.js
|
|
4599
|
+
var digest26 = "daaf50b54363b660bfa4b36d1fac936348dd01654a6c1ffc1c4e542d2a9262e1";
|
|
4619
4600
|
var css26 = `._tableRoot_hre5m_1 {
|
|
4620
4601
|
width: 100%;
|
|
4621
4602
|
}
|
|
@@ -4796,7 +4777,6 @@ function Skeleton({ count = 1, wrapper: Wrapper, className: customClassName, con
|
|
|
4796
4777
|
}
|
|
4797
4778
|
|
|
4798
4779
|
// admin/views/preferences/details.tsx
|
|
4799
|
-
import dayjs7 from "dayjs";
|
|
4800
4780
|
import { useMutation, createConnectQueryKey, useTransport } from "@connectrpc/connect-query";
|
|
4801
4781
|
|
|
4802
4782
|
// utils/error.ts
|
|
@@ -4831,7 +4811,6 @@ function handleConnectError(error, handlers) {
|
|
|
4831
4811
|
// admin/views/preferences/details.tsx
|
|
4832
4812
|
import { AdminServiceQueries as AdminServiceQueries5, CreatePreferencesRequestSchema } from "@raystack/proton/frontier";
|
|
4833
4813
|
import { PreferenceTrait_InputType } from "@raystack/proton/frontier";
|
|
4834
|
-
import { timestampDate as timestampDate2 } from "@bufbuild/protobuf/wkt";
|
|
4835
4814
|
import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
|
|
4836
4815
|
import { create as create2 } from "@bufbuild/protobuf";
|
|
4837
4816
|
import { jsx as jsx38, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
@@ -4948,7 +4927,7 @@ function PreferenceDetails({
|
|
|
4948
4927
|
},
|
|
4949
4928
|
{
|
|
4950
4929
|
key: "Last updated",
|
|
4951
|
-
value: preference?.updatedAt
|
|
4930
|
+
value: formatTimestamp(preference?.updatedAt, `${DATE_FORMAT} hh:mm:ss A`)
|
|
4952
4931
|
}
|
|
4953
4932
|
];
|
|
4954
4933
|
const onSave = useCallback4(async () => {
|
|
@@ -5047,7 +5026,7 @@ function PreferencesView({
|
|
|
5047
5026
|
staleTime: Infinity
|
|
5048
5027
|
},
|
|
5049
5028
|
{
|
|
5050
|
-
...createQueryOptions(
|
|
5029
|
+
...createQueryOptions(FrontierServiceQueries6.describePreferences, {}, { transport }),
|
|
5051
5030
|
staleTime: Infinity
|
|
5052
5031
|
}
|
|
5053
5032
|
]
|
|
@@ -5105,8 +5084,8 @@ import {
|
|
|
5105
5084
|
Spinner as Spinner2
|
|
5106
5085
|
} from "@raystack/apsara";
|
|
5107
5086
|
|
|
5108
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5109
|
-
var digest27 = "
|
|
5087
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-t7AW5xowegYr/sdk/admin/views/users/list/list.module.css.js
|
|
5088
|
+
var digest27 = "4778196e9fb1a5ce28cf61c746db39b7a356435846b4fec2fdfcb39ff9f37b8d";
|
|
5110
5089
|
var css27 = `._navbar_vt0az_1 {
|
|
5111
5090
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
5112
5091
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -9253,8 +9232,8 @@ var NEVER = INVALID;
|
|
|
9253
9232
|
import { Controller, useForm } from "react-hook-form";
|
|
9254
9233
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
9255
9234
|
|
|
9256
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9257
|
-
var digest28 = "
|
|
9235
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-plf725U05sax/sdk/admin/views/users/list/invite-users.module.css.js
|
|
9236
|
+
var digest28 = "9c35a233bed6c152f4c82de636cb3994f67277bbf9b5699a01383a066f94c082";
|
|
9258
9237
|
var css28 = `._invite-users-dialog-body_daxb4_1 {
|
|
9259
9238
|
display: flex;
|
|
9260
9239
|
flex-direction: column;
|
|
@@ -9281,11 +9260,11 @@ var css28 = `._invite-users-dialog-body_daxb4_1 {
|
|
|
9281
9260
|
var invite_users_module_css_default = { "invite-users-dialog-body": "_invite-users-dialog-body_daxb4_1", "inviteUsersDialogBody": "_invite-users-dialog-body_daxb4_1", "invite-users-emails-textarea": "_invite-users-emails-textarea_daxb4_8", "inviteUsersEmailsTextarea": "_invite-users-emails-textarea_daxb4_8" };
|
|
9282
9261
|
|
|
9283
9262
|
// admin/views/users/list/invite-users.tsx
|
|
9284
|
-
import { useMutation as useMutation2, useQuery as
|
|
9263
|
+
import { useMutation as useMutation2, useQuery as useQuery8 } from "@connectrpc/connect-query";
|
|
9285
9264
|
import {
|
|
9286
9265
|
AdminServiceQueries as AdminServiceQueries7,
|
|
9287
9266
|
SearchOrganizationsRequestSchema,
|
|
9288
|
-
FrontierServiceQueries as
|
|
9267
|
+
FrontierServiceQueries as FrontierServiceQueries7,
|
|
9289
9268
|
ListRolesRequestSchema
|
|
9290
9269
|
} from "@raystack/proton/frontier";
|
|
9291
9270
|
import { create as create3 } from "@bufbuild/protobuf";
|
|
@@ -9308,7 +9287,7 @@ var InviteUser = () => {
|
|
|
9308
9287
|
data: organizations,
|
|
9309
9288
|
isLoading: isOrganizationsLoading,
|
|
9310
9289
|
error: organizationsError
|
|
9311
|
-
} =
|
|
9290
|
+
} = useQuery8(
|
|
9312
9291
|
AdminServiceQueries7.searchOrganizations,
|
|
9313
9292
|
create3(SearchOrganizationsRequestSchema, { query: {} }),
|
|
9314
9293
|
{
|
|
@@ -9319,8 +9298,8 @@ var InviteUser = () => {
|
|
|
9319
9298
|
data: roles,
|
|
9320
9299
|
isLoading: isRolesLoading,
|
|
9321
9300
|
error: rolesError
|
|
9322
|
-
} =
|
|
9323
|
-
|
|
9301
|
+
} = useQuery8(
|
|
9302
|
+
FrontierServiceQueries7.listRoles,
|
|
9324
9303
|
create3(ListRolesRequestSchema, { scopes: [SCOPES.ORG] }),
|
|
9325
9304
|
{
|
|
9326
9305
|
select: (data) => data?.roles || []
|
|
@@ -9354,7 +9333,7 @@ var InviteUser = () => {
|
|
|
9354
9333
|
}
|
|
9355
9334
|
});
|
|
9356
9335
|
const { mutateAsync: inviteUser } = useMutation2(
|
|
9357
|
-
|
|
9336
|
+
FrontierServiceQueries7.createOrganizationInvitation,
|
|
9358
9337
|
{
|
|
9359
9338
|
onSuccess: (data) => {
|
|
9360
9339
|
const invitedCount = data?.invitations?.length ?? 0;
|
|
@@ -9586,8 +9565,8 @@ var Navbar2 = ({ searchQuery, onExportUsers }) => {
|
|
|
9586
9565
|
};
|
|
9587
9566
|
var navbar_default2 = Navbar2;
|
|
9588
9567
|
|
|
9589
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9590
|
-
var digest29 = "
|
|
9568
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-9L1CCT0mx345/sdk/admin/views/users/list/list.module.css.js
|
|
9569
|
+
var digest29 = "fe5013cad83044fd49040e4e026287c38c151bb7151a0655822b0abace323486";
|
|
9591
9570
|
var css29 = `._navbar_vt0az_1 {
|
|
9592
9571
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
9593
9572
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -9656,10 +9635,9 @@ import {
|
|
|
9656
9635
|
getAvatarColor as getAvatarColor2,
|
|
9657
9636
|
Text as Text17
|
|
9658
9637
|
} from "@raystack/apsara";
|
|
9659
|
-
import dayjs8 from "dayjs";
|
|
9660
9638
|
|
|
9661
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9662
|
-
var digest30 = "
|
|
9639
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-Dgnin5hkuCBq/sdk/admin/views/users/list/list.module.css.js
|
|
9640
|
+
var digest30 = "3f8b8894d7398dda6c704b4d94d380a5cb973e19cdf30771623fb17881a96510";
|
|
9663
9641
|
var css30 = `._navbar_vt0az_1 {
|
|
9664
9642
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
9665
9643
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -9781,10 +9759,9 @@ var getColumns10 = ({
|
|
|
9781
9759
|
accessorKey: "createdAt",
|
|
9782
9760
|
header: "Joined on",
|
|
9783
9761
|
filterType: "date",
|
|
9762
|
+
enableColumnFilter: true,
|
|
9784
9763
|
cell: ({ getValue }) => {
|
|
9785
|
-
|
|
9786
|
-
const date = isNullTimestamp(value) ? "-" : dayjs8(timestampToDate(value)).format("YYYY-MM-DD");
|
|
9787
|
-
return /* @__PURE__ */ jsx43(Text17, { children: date });
|
|
9764
|
+
return /* @__PURE__ */ jsx43(Text17, { children: formatTimestamp(getValue()) });
|
|
9788
9765
|
},
|
|
9789
9766
|
enableHiding: true,
|
|
9790
9767
|
enableSorting: true
|
|
@@ -9952,8 +9929,8 @@ import { Avatar as Avatar4, getAvatarColor as getAvatarColor3, SidePanel as Side
|
|
|
9952
9929
|
// admin/views/users/details/layout/side-panel-details.tsx
|
|
9953
9930
|
import { Flex as Flex29, List as List4, Text as Text18, CopyButton as CopyButton2, Tooltip as Tooltip2 } from "@raystack/apsara";
|
|
9954
9931
|
|
|
9955
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9956
|
-
var digest31 = "
|
|
9932
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-VtyEeZEiHHAn/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
9933
|
+
var digest31 = "f3d7ae460a1c930e52fec180d03020f4cbafdff8d107c7ab6d9105ef4dcb5601";
|
|
9957
9934
|
var css31 = `._side-panel_t3ekz_1 {
|
|
9958
9935
|
transform: all 0.3s ease-in-out;
|
|
9959
9936
|
padding-bottom: var(--rs-space-15);
|
|
@@ -10056,7 +10033,7 @@ var SidePanelDetails2 = () => {
|
|
|
10056
10033
|
/* @__PURE__ */ jsx45(List4.Label, { className: side_panel_module_css_default.listLabel, children: "Created on" }),
|
|
10057
10034
|
/* @__PURE__ */ jsx45(List4.Value, { children: /* @__PURE__ */ jsxs30(Flex29, { gap: 3, children: [
|
|
10058
10035
|
/* @__PURE__ */ jsx45(CalendarIcon, {}),
|
|
10059
|
-
/* @__PURE__ */ jsx45(Text18, { children:
|
|
10036
|
+
/* @__PURE__ */ jsx45(Text18, { children: formatTimestamp(user?.createdAt) })
|
|
10060
10037
|
] }) })
|
|
10061
10038
|
] }),
|
|
10062
10039
|
/* @__PURE__ */ jsxs30(List4.Item, { children: [
|
|
@@ -10068,10 +10045,9 @@ var SidePanelDetails2 = () => {
|
|
|
10068
10045
|
|
|
10069
10046
|
// admin/views/users/details/layout/side-panel-membership.tsx
|
|
10070
10047
|
import { Flex as Flex31, List as List5, Text as Text21, Avatar as Avatar3 } from "@raystack/apsara";
|
|
10071
|
-
import dayjs9 from "dayjs";
|
|
10072
10048
|
|
|
10073
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10074
|
-
var digest32 = "
|
|
10049
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-CkEr0E5Up3Er/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
10050
|
+
var digest32 = "463476b749e4349f085c095e5dcfd94f8b2b5299bea6abfff2df77e36e2dd50c";
|
|
10075
10051
|
var css32 = `._side-panel_t3ekz_1 {
|
|
10076
10052
|
transform: all 0.3s ease-in-out;
|
|
10077
10053
|
padding-bottom: var(--rs-space-15);
|
|
@@ -10136,8 +10112,8 @@ var side_panel_module_css_default2 = { "side-panel": "_side-panel_t3ekz_1", "sid
|
|
|
10136
10112
|
// admin/views/users/details/layout/membership-dropdown.tsx
|
|
10137
10113
|
import { Text as Text20, Menu, Skeleton as Skeleton3 } from "@raystack/apsara";
|
|
10138
10114
|
|
|
10139
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10140
|
-
var digest33 = "
|
|
10115
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-5eQAFsQBs4X8/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
10116
|
+
var digest33 = "87736351e9f404df2a2de91a4c7028835012a6508c521e93f2eda6ca61c21e50";
|
|
10141
10117
|
var css33 = `._side-panel_t3ekz_1 {
|
|
10142
10118
|
transform: all 0.3s ease-in-out;
|
|
10143
10119
|
padding-bottom: var(--rs-space-15);
|
|
@@ -10203,12 +10179,12 @@ var side_panel_module_css_default3 = { "side-panel": "_side-panel_t3ekz_1", "sid
|
|
|
10203
10179
|
import { useMemo as useMemo4, useState as useState10 } from "react";
|
|
10204
10180
|
import {
|
|
10205
10181
|
SearchOrganizationUsersResponse_OrganizationUserSchema,
|
|
10206
|
-
FrontierServiceQueries as
|
|
10182
|
+
FrontierServiceQueries as FrontierServiceQueries9,
|
|
10207
10183
|
ListRolesRequestSchema as ListRolesRequestSchema2,
|
|
10208
10184
|
ListOrganizationRolesRequestSchema
|
|
10209
10185
|
} from "@raystack/proton/frontier";
|
|
10210
10186
|
import { create as create5 } from "@bufbuild/protobuf";
|
|
10211
|
-
import { useQuery as
|
|
10187
|
+
import { useQuery as useQuery9 } from "@connectrpc/connect-query";
|
|
10212
10188
|
|
|
10213
10189
|
// admin/components/AssignRole.tsx
|
|
10214
10190
|
import {
|
|
@@ -10221,7 +10197,7 @@ import {
|
|
|
10221
10197
|
toastManager as toastManager3
|
|
10222
10198
|
} from "@raystack/apsara";
|
|
10223
10199
|
import {
|
|
10224
|
-
FrontierServiceQueries as
|
|
10200
|
+
FrontierServiceQueries as FrontierServiceQueries8,
|
|
10225
10201
|
SetOrganizationMemberRoleRequestSchema
|
|
10226
10202
|
} from "@raystack/proton/frontier";
|
|
10227
10203
|
import { create as create4 } from "@bufbuild/protobuf";
|
|
@@ -10253,7 +10229,7 @@ var AssignRole = ({
|
|
|
10253
10229
|
resolver: zodResolver2(formSchema)
|
|
10254
10230
|
});
|
|
10255
10231
|
const { mutateAsync: setMemberRole } = useMutation3(
|
|
10256
|
-
|
|
10232
|
+
FrontierServiceQueries8.setOrganizationMemberRole
|
|
10257
10233
|
);
|
|
10258
10234
|
const selectedRoleId = watch("roleId");
|
|
10259
10235
|
const onSubmit = async (data) => {
|
|
@@ -10420,15 +10396,15 @@ var MembershipDropdown = ({
|
|
|
10420
10396
|
const [isAssignRoleDialogOpen, setIsAssignRoleDialogOpen] = useState10(false);
|
|
10421
10397
|
const [isSuspendDialogOpen, setIsSuspendDialogOpen] = useState10(false);
|
|
10422
10398
|
const { user } = useUser();
|
|
10423
|
-
const { data: defaultRoles = [], isLoading: isDefaultRolesLoading, error: defaultRolesError } =
|
|
10424
|
-
|
|
10399
|
+
const { data: defaultRoles = [], isLoading: isDefaultRolesLoading, error: defaultRolesError } = useQuery9(
|
|
10400
|
+
FrontierServiceQueries9.listRoles,
|
|
10425
10401
|
create5(ListRolesRequestSchema2, { scopes: [SCOPES.ORG] }),
|
|
10426
10402
|
{
|
|
10427
10403
|
select: (data2) => data2?.roles || []
|
|
10428
10404
|
}
|
|
10429
10405
|
);
|
|
10430
|
-
const { data: organizationRoles = [], isLoading: isOrgRolesLoading, error: orgRolesError } =
|
|
10431
|
-
|
|
10406
|
+
const { data: organizationRoles = [], isLoading: isOrgRolesLoading, error: orgRolesError } = useQuery9(
|
|
10407
|
+
FrontierServiceQueries9.listOrganizationRoles,
|
|
10432
10408
|
create5(ListOrganizationRolesRequestSchema, {
|
|
10433
10409
|
orgId: data?.orgId || "",
|
|
10434
10410
|
scopes: [SCOPES.ORG]
|
|
@@ -10552,7 +10528,7 @@ var SidePanelMembership = ({
|
|
|
10552
10528
|
/* @__PURE__ */ jsx49(List5.Label, { className: side_panel_module_css_default2.listLabel, children: "Joined on" }),
|
|
10553
10529
|
/* @__PURE__ */ jsx49(List5.Value, { children: /* @__PURE__ */ jsxs34(Flex31, { gap: 3, children: [
|
|
10554
10530
|
/* @__PURE__ */ jsx49(CalendarIcon, {}),
|
|
10555
|
-
/* @__PURE__ */ jsx49(Text21, { children: data?.orgJoinedOn
|
|
10531
|
+
/* @__PURE__ */ jsx49(Text21, { children: formatTimestamp(data?.orgJoinedOn) })
|
|
10556
10532
|
] }) })
|
|
10557
10533
|
] }),
|
|
10558
10534
|
/* @__PURE__ */ jsxs34(List5.Item, { children: [
|
|
@@ -10562,8 +10538,8 @@ var SidePanelMembership = ({
|
|
|
10562
10538
|
] });
|
|
10563
10539
|
};
|
|
10564
10540
|
|
|
10565
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10566
|
-
var digest34 = "
|
|
10541
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-M234OeeoGokX/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
10542
|
+
var digest34 = "63b326eb9208b7cdbf97b63038d495479e480224d92c4f71bcb61c90de0fba89";
|
|
10567
10543
|
var css34 = `._side-panel_t3ekz_1 {
|
|
10568
10544
|
transform: all 0.3s ease-in-out;
|
|
10569
10545
|
padding-bottom: var(--rs-space-15);
|
|
@@ -10627,7 +10603,7 @@ var side_panel_module_css_default4 = { "side-panel": "_side-panel_t3ekz_1", "sid
|
|
|
10627
10603
|
|
|
10628
10604
|
// admin/views/users/details/layout/side-panel.tsx
|
|
10629
10605
|
import { AdminServiceQueries as AdminServiceQueries9 } from "@raystack/proton/frontier";
|
|
10630
|
-
import { useQuery as
|
|
10606
|
+
import { useQuery as useQuery10 } from "@connectrpc/connect-query";
|
|
10631
10607
|
import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
10632
10608
|
var UserDetailsSidePanel = () => {
|
|
10633
10609
|
const { user } = useUser();
|
|
@@ -10636,7 +10612,7 @@ var UserDetailsSidePanel = () => {
|
|
|
10636
10612
|
isLoading,
|
|
10637
10613
|
refetch: onReset,
|
|
10638
10614
|
error
|
|
10639
|
-
} =
|
|
10615
|
+
} = useQuery10(
|
|
10640
10616
|
AdminServiceQueries9.searchUserOrganizations,
|
|
10641
10617
|
{
|
|
10642
10618
|
id: user?.id || "",
|
|
@@ -10683,8 +10659,8 @@ var UserDetailsSidePanel = () => {
|
|
|
10683
10659
|
);
|
|
10684
10660
|
};
|
|
10685
10661
|
|
|
10686
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10687
|
-
var digest35 = "
|
|
10662
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-fjaZDVHRqWo4/sdk/admin/views/users/details/layout/layout.module.css.js
|
|
10663
|
+
var digest35 = "7dd334ea9abb51f57007146a0ff152947587a2b6571e71888fad08ddff827fee";
|
|
10688
10664
|
var css35 = `._page_190wz_1 {
|
|
10689
10665
|
height: 100vh;
|
|
10690
10666
|
width: 100%;
|
|
@@ -10725,8 +10701,8 @@ import {
|
|
|
10725
10701
|
} from "@raystack/apsara";
|
|
10726
10702
|
import { SidebarIcon } from "@raystack/apsara/icons";
|
|
10727
10703
|
|
|
10728
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10729
|
-
var digest36 = "
|
|
10704
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-FOEhEAnUXDef/sdk/admin/views/users/details/layout/navbar.module.css.js
|
|
10705
|
+
var digest36 = "4e20004a122ccd592dc3aa36e1456c944abd9e7a1ad44f5b4df1abd8fd1a8122";
|
|
10730
10706
|
var css36 = `._navbar_1ahsl_1 {
|
|
10731
10707
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
10732
10708
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -10846,8 +10822,8 @@ var UserDetailsLayout = ({ children, currentPath, onNavigate }) => {
|
|
|
10846
10822
|
};
|
|
10847
10823
|
|
|
10848
10824
|
// admin/views/users/details/user-details.tsx
|
|
10849
|
-
import { useQuery as
|
|
10850
|
-
import { FrontierServiceQueries as
|
|
10825
|
+
import { useQuery as useQuery12 } from "@connectrpc/connect-query";
|
|
10826
|
+
import { FrontierServiceQueries as FrontierServiceQueries11 } from "@raystack/proton/frontier";
|
|
10851
10827
|
|
|
10852
10828
|
// admin/views/users/details/security/security.tsx
|
|
10853
10829
|
import { Flex as Flex36, Separator as Separator3, Text as Text24 } from "@raystack/apsara";
|
|
@@ -10860,7 +10836,7 @@ import {
|
|
|
10860
10836
|
useMutation as useMutation4,
|
|
10861
10837
|
useTransport as useTransport3
|
|
10862
10838
|
} from "@connectrpc/connect-query";
|
|
10863
|
-
import { FrontierServiceQueries as
|
|
10839
|
+
import { FrontierServiceQueries as FrontierServiceQueries10 } from "@raystack/proton/frontier";
|
|
10864
10840
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
10865
10841
|
import { jsx as jsx53, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
10866
10842
|
var BlockUserDialog = () => {
|
|
@@ -10875,7 +10851,7 @@ var BlockUserDialog = () => {
|
|
|
10875
10851
|
(state) => {
|
|
10876
10852
|
queryClient.setQueryData(
|
|
10877
10853
|
createConnectQueryKey2({
|
|
10878
|
-
schema:
|
|
10854
|
+
schema: FrontierServiceQueries10.getUser,
|
|
10879
10855
|
transport,
|
|
10880
10856
|
input: { id: user?.id || "" },
|
|
10881
10857
|
cardinality: "finite"
|
|
@@ -10893,7 +10869,7 @@ var BlockUserDialog = () => {
|
|
|
10893
10869
|
[queryClient, transport, user?.id]
|
|
10894
10870
|
);
|
|
10895
10871
|
const { mutateAsync: blockUser, isPending: isBlockingUser } = useMutation4(
|
|
10896
|
-
|
|
10872
|
+
FrontierServiceQueries10.disableUser,
|
|
10897
10873
|
{
|
|
10898
10874
|
onSuccess: () => {
|
|
10899
10875
|
toastManager5.add({ title: `${t.user({ case: "capital" })} blocked successfully`, type: "success" });
|
|
@@ -10904,7 +10880,7 @@ var BlockUserDialog = () => {
|
|
|
10904
10880
|
}
|
|
10905
10881
|
);
|
|
10906
10882
|
const { mutateAsync: unblockUser, isPending: isUnblockingUser } = useMutation4(
|
|
10907
|
-
|
|
10883
|
+
FrontierServiceQueries10.enableUser,
|
|
10908
10884
|
{
|
|
10909
10885
|
onSuccess: () => {
|
|
10910
10886
|
toastManager5.add({ title: `${t.user({ case: "capital" })} unblocked successfully`, type: "success" });
|
|
@@ -11082,8 +11058,8 @@ var RevokeSessionFinalConfirm = ({
|
|
|
11082
11058
|
] }) });
|
|
11083
11059
|
};
|
|
11084
11060
|
|
|
11085
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11086
|
-
var digest37 = "
|
|
11061
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-C0C5AXjZvcoP/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
11062
|
+
var digest37 = "e84091459d67b205b82cac7531c4eb6b1fe197261e5aabac626f3d949f589e0f";
|
|
11087
11063
|
var css37 = `._sessionsContainer_jptao_1 {
|
|
11088
11064
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
11089
11065
|
border-radius: var(--rs-radius-2);
|
|
@@ -11220,8 +11196,8 @@ var RevokeSessionConfirm = ({ isOpen, onOpenChange, sessionInfo, onRevokeConfirm
|
|
|
11220
11196
|
// admin/views/users/details/security/sessions/session-skeleton.tsx
|
|
11221
11197
|
import { Flex as Flex34, Skeleton as Skeleton4 } from "@raystack/apsara";
|
|
11222
11198
|
|
|
11223
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11224
|
-
var digest38 = "
|
|
11199
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-MyrzNKVy7bZ0/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
11200
|
+
var digest38 = "3ce7720f0be47dd5f3638af9ff298d70db10fc612be681c39639b88cf87664e4";
|
|
11225
11201
|
var css38 = `._sessionsContainer_jptao_1 {
|
|
11226
11202
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
11227
11203
|
border-radius: var(--rs-radius-2);
|
|
@@ -11294,14 +11270,14 @@ var SessionSkeleton = ({ count = 3 }) => {
|
|
|
11294
11270
|
};
|
|
11295
11271
|
|
|
11296
11272
|
// admin/views/users/details/security/sessions/index.tsx
|
|
11297
|
-
import { useQuery as
|
|
11273
|
+
import { useQuery as useQuery11, useMutation as useMutation5, createConnectQueryKey as createConnectQueryKey3, useTransport as useTransport4 } from "@connectrpc/connect-query";
|
|
11298
11274
|
import { useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
11299
11275
|
import { AdminServiceQueries as AdminServiceQueries10 } from "@raystack/proton/frontier";
|
|
11300
|
-
import
|
|
11276
|
+
import dayjs3 from "dayjs";
|
|
11301
11277
|
import relativeTime from "dayjs/plugin/relativeTime";
|
|
11302
11278
|
|
|
11303
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11304
|
-
var digest39 = "
|
|
11279
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-e6M2jnPMACBL/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
11280
|
+
var digest39 = "1c9841ccb56c85b5599ca353163db4552f5d877643b5c76c42e62cce41238251";
|
|
11305
11281
|
var css39 = `._sessionsContainer_jptao_1 {
|
|
11306
11282
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
11307
11283
|
border-radius: var(--rs-radius-2);
|
|
@@ -11379,7 +11355,7 @@ var formatLocation = (location) => {
|
|
|
11379
11355
|
}
|
|
11380
11356
|
return "Unknown location";
|
|
11381
11357
|
};
|
|
11382
|
-
|
|
11358
|
+
dayjs3.extend(relativeTime);
|
|
11383
11359
|
var getErrorMessage = (error) => {
|
|
11384
11360
|
if (error?.status === 500) {
|
|
11385
11361
|
return "Something went wrong";
|
|
@@ -11401,7 +11377,7 @@ var UserSessions = () => {
|
|
|
11401
11377
|
data: sessionsData,
|
|
11402
11378
|
isLoading,
|
|
11403
11379
|
error
|
|
11404
|
-
} =
|
|
11380
|
+
} = useQuery11(
|
|
11405
11381
|
AdminServiceQueries10.listUserSessions,
|
|
11406
11382
|
{ userId: user?.id || "" },
|
|
11407
11383
|
{
|
|
@@ -11453,7 +11429,7 @@ var UserSessions = () => {
|
|
|
11453
11429
|
const date = timestampToDate(updatedAt);
|
|
11454
11430
|
if (!date)
|
|
11455
11431
|
return "Unknown";
|
|
11456
|
-
return
|
|
11432
|
+
return dayjs3(date).fromNow();
|
|
11457
11433
|
};
|
|
11458
11434
|
const renderSessionsHeader = () => /* @__PURE__ */ jsxs42(Flex35, { direction: "column", gap: 3, children: [
|
|
11459
11435
|
/* @__PURE__ */ jsx57(Text23, { size: "large", weight: "medium", children: "Sessions" }),
|
|
@@ -11510,8 +11486,8 @@ var UserSessions = () => {
|
|
|
11510
11486
|
] });
|
|
11511
11487
|
};
|
|
11512
11488
|
|
|
11513
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11514
|
-
var digest40 = "
|
|
11489
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-hT8bRf8D60rR/sdk/admin/views/users/details/security/security.module.css.js
|
|
11490
|
+
var digest40 = "2f77f3e78d83c72fd6edb3037581561ef2b9347fcdd9204fef9485b2a10ff65f";
|
|
11515
11491
|
var css40 = `._container_4259p_1 {
|
|
11516
11492
|
width: 100%;
|
|
11517
11493
|
}
|
|
@@ -11567,8 +11543,8 @@ var UserDetailContent = ({ user, refetch, currentPath, onNavigate }) => {
|
|
|
11567
11543
|
};
|
|
11568
11544
|
var UserDetailsByUserId = ({ userId, currentPath, onNavigate }) => {
|
|
11569
11545
|
const t = useTerminology();
|
|
11570
|
-
const { data, isLoading, refetch } =
|
|
11571
|
-
|
|
11546
|
+
const { data, isLoading, refetch } = useQuery12(
|
|
11547
|
+
FrontierServiceQueries11.getUser,
|
|
11572
11548
|
{ id: userId },
|
|
11573
11549
|
{
|
|
11574
11550
|
enabled: !!userId,
|
|
@@ -11645,8 +11621,8 @@ import {
|
|
|
11645
11621
|
} from "@raystack/apsara";
|
|
11646
11622
|
import { OrganizationIcon } from "@raystack/apsara/icons";
|
|
11647
11623
|
|
|
11648
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11649
|
-
var digest41 = "
|
|
11624
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-BQyxfOGnLt4Y/sdk/admin/views/organizations/list/list.module.css.js
|
|
11625
|
+
var digest41 = "e74d58fdec4521d3c55fb0b516bbaef98150c40881b15739e9c0a7c7a45dd985";
|
|
11650
11626
|
var css41 = `._navbar_1laab_1 {
|
|
11651
11627
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
11652
11628
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -11833,8 +11809,8 @@ var OrganizationsNavabar = ({
|
|
|
11833
11809
|
] });
|
|
11834
11810
|
};
|
|
11835
11811
|
|
|
11836
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11837
|
-
var digest42 = "
|
|
11812
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-oM0YiSIA50ZN/sdk/admin/views/organizations/list/list.module.css.js
|
|
11813
|
+
var digest42 = "0266b85cf028cb10475d41db35f9595e2945b02120be1511c6918e8f45198bae";
|
|
11838
11814
|
var css42 = `._navbar_1laab_1 {
|
|
11839
11815
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
11840
11816
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -11943,10 +11919,9 @@ import {
|
|
|
11943
11919
|
getAvatarColor as getAvatarColor5,
|
|
11944
11920
|
Text as Text26
|
|
11945
11921
|
} from "@raystack/apsara";
|
|
11946
|
-
import dayjs11 from "dayjs";
|
|
11947
11922
|
|
|
11948
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11949
|
-
var digest43 = "
|
|
11923
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-h56c49te7AkH/sdk/admin/views/organizations/list/list.module.css.js
|
|
11924
|
+
var digest43 = "d43c98e7c9de653f0354294a13cb18673be08fd868d573e28a215b8019513d3b";
|
|
11950
11925
|
var css43 = `._navbar_1laab_1 {
|
|
11951
11926
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
11952
11927
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -12138,11 +12113,7 @@ var getColumns11 = ({
|
|
|
12138
12113
|
accessorKey: "subscriptionCycleEndAt",
|
|
12139
12114
|
header: "Cycle ends on",
|
|
12140
12115
|
filterType: "date",
|
|
12141
|
-
cell: ({ getValue }) => {
|
|
12142
|
-
const value = getValue();
|
|
12143
|
-
const date = isNullTimestamp(value) ? "-" : dayjs11(timestampToDate(value)).format("YYYY-MM-DD");
|
|
12144
|
-
return /* @__PURE__ */ jsx62(Text26, { children: date });
|
|
12145
|
-
},
|
|
12116
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx62(Text26, { children: formatTimestamp(getValue()) }),
|
|
12146
12117
|
enableColumnFilter: true,
|
|
12147
12118
|
// enableSorting: true,
|
|
12148
12119
|
enableHiding: true
|
|
@@ -12189,11 +12160,8 @@ var getColumns11 = ({
|
|
|
12189
12160
|
accessorKey: "createdAt",
|
|
12190
12161
|
header: "Created On",
|
|
12191
12162
|
filterType: "date",
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
const date = isNullTimestamp(value) ? "-" : dayjs11(timestampToDate(value)).format("YYYY-MM-DD");
|
|
12195
|
-
return /* @__PURE__ */ jsx62(Text26, { children: date });
|
|
12196
|
-
},
|
|
12163
|
+
enableColumnFilter: true,
|
|
12164
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx62(Text26, { children: formatTimestamp(getValue()) }),
|
|
12197
12165
|
enableHiding: true,
|
|
12198
12166
|
defaultHidden: true,
|
|
12199
12167
|
enableSorting: true
|
|
@@ -12202,10 +12170,10 @@ var getColumns11 = ({
|
|
|
12202
12170
|
};
|
|
12203
12171
|
|
|
12204
12172
|
// admin/views/organizations/list/index.tsx
|
|
12205
|
-
import { useInfiniteQuery as useInfiniteQuery4, useQuery as
|
|
12173
|
+
import { useInfiniteQuery as useInfiniteQuery4, useQuery as useQuery13 } from "@connectrpc/connect-query";
|
|
12206
12174
|
import {
|
|
12207
12175
|
AdminServiceQueries as AdminServiceQueries12,
|
|
12208
|
-
FrontierServiceQueries as
|
|
12176
|
+
FrontierServiceQueries as FrontierServiceQueries12,
|
|
12209
12177
|
ListPlansRequestSchema
|
|
12210
12178
|
} from "@raystack/proton/frontier";
|
|
12211
12179
|
import { create as create6 } from "@bufbuild/protobuf";
|
|
@@ -12213,8 +12181,8 @@ import { create as create6 } from "@bufbuild/protobuf";
|
|
|
12213
12181
|
// admin/views/organizations/list/create.tsx
|
|
12214
12182
|
import { useCallback as useCallback6, useEffect as useEffect5, useMemo as useMemo5, useState as useState17 } from "react";
|
|
12215
12183
|
|
|
12216
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12217
|
-
var digest44 = "
|
|
12184
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-o4qegbwbZwIK/sdk/admin/views/organizations/list/list.module.css.js
|
|
12185
|
+
var digest44 = "446d0e1ef01b26a8606b4638a550cd4521d3675681b291937fe93b87482534e7";
|
|
12218
12186
|
var css44 = `._navbar_1laab_1 {
|
|
12219
12187
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
12220
12188
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -12344,8 +12312,8 @@ import {
|
|
|
12344
12312
|
} from "@raystack/apsara";
|
|
12345
12313
|
import "react-image-crop/dist/ReactCrop.css";
|
|
12346
12314
|
|
|
12347
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12348
|
-
var digest45 = "
|
|
12315
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-v3eXg4oHJmB1/sdk/client/components/image-upload/image-upload.module.css.js
|
|
12316
|
+
var digest45 = "243f3027b1f0edaebe7572af05080bb662cf3db6d68743e882794f14ac88f782";
|
|
12349
12317
|
var css45 = `._iconButton_1ifr2_1 {
|
|
12350
12318
|
position: relative;
|
|
12351
12319
|
width: var(--rs-space-14);
|
|
@@ -12738,7 +12706,7 @@ function CreateOrganizationPanel({
|
|
|
12738
12706
|
const orgResp = await createOrganization({ body: payload });
|
|
12739
12707
|
const organization = orgResp.organization;
|
|
12740
12708
|
if (organization?.id) {
|
|
12741
|
-
onSuccess?.(organization.id);
|
|
12709
|
+
onSuccess?.(organization.name || organization.id, organization.id);
|
|
12742
12710
|
}
|
|
12743
12711
|
} catch (err) {
|
|
12744
12712
|
console.error("Unable to create new org:", err);
|
|
@@ -12967,8 +12935,8 @@ var OrganizationListView = ({
|
|
|
12967
12935
|
retryDelay: 1e3
|
|
12968
12936
|
}
|
|
12969
12937
|
);
|
|
12970
|
-
const { data: plans = [], isLoading: isPlansLoading, error: plansError } =
|
|
12971
|
-
|
|
12938
|
+
const { data: plans = [], isLoading: isPlansLoading, error: plansError } = useQuery13(
|
|
12939
|
+
FrontierServiceQueries12.listPlans,
|
|
12972
12940
|
create6(ListPlansRequestSchema, {}),
|
|
12973
12941
|
{
|
|
12974
12942
|
select: (data2) => data2?.plans || []
|
|
@@ -13019,7 +12987,7 @@ var OrganizationListView = ({
|
|
|
13019
12987
|
const tableClassName = data.length || loading ? list_module_css_default5["table"] : list_module_css_default5["table-empty"];
|
|
13020
12988
|
function onRowClick(row) {
|
|
13021
12989
|
if (row.id && onNavigateToOrg)
|
|
13022
|
-
onNavigateToOrg(row.id);
|
|
12990
|
+
onNavigateToOrg(row.name || row.id, row.id);
|
|
13023
12991
|
}
|
|
13024
12992
|
return /* @__PURE__ */ jsxs49(Fragment10, { children: [
|
|
13025
12993
|
/* @__PURE__ */ jsx65(
|
|
@@ -13030,9 +12998,9 @@ var OrganizationListView = ({
|
|
|
13030
12998
|
organizationTypes,
|
|
13031
12999
|
appUrl,
|
|
13032
13000
|
countries,
|
|
13033
|
-
onSuccess: (
|
|
13001
|
+
onSuccess: (slug, orgId) => {
|
|
13034
13002
|
closeCreateOrgPanel();
|
|
13035
|
-
onNavigateToOrg?.(
|
|
13003
|
+
onNavigateToOrg?.(slug, orgId);
|
|
13036
13004
|
}
|
|
13037
13005
|
}
|
|
13038
13006
|
),
|
|
@@ -13081,7 +13049,7 @@ var OrganizationListView = ({
|
|
|
13081
13049
|
// admin/views/organizations/details/index.tsx
|
|
13082
13050
|
import { useEffect as useEffect11, useMemo as useMemo8, useState as useState22 } from "react";
|
|
13083
13051
|
import {
|
|
13084
|
-
useQuery as
|
|
13052
|
+
useQuery as useQuery17,
|
|
13085
13053
|
createConnectQueryKey as createConnectQueryKey8,
|
|
13086
13054
|
useTransport as useTransport9
|
|
13087
13055
|
} from "@connectrpc/connect-query";
|
|
@@ -13104,8 +13072,8 @@ import {
|
|
|
13104
13072
|
Search
|
|
13105
13073
|
} from "@raystack/apsara";
|
|
13106
13074
|
|
|
13107
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13108
|
-
var digest46 = "
|
|
13075
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-H6q1JYUMEuTA/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
13076
|
+
var digest46 = "264beaf2cf90d3600049c8553f2e0736c95f5fa8bc9f37e13dbeab9d3605bf7a";
|
|
13109
13077
|
var css46 = `._page_1jsqa_1 {
|
|
13110
13078
|
width: 100%;
|
|
13111
13079
|
height: 100vh;
|
|
@@ -13210,8 +13178,8 @@ import {
|
|
|
13210
13178
|
} from "@raystack/apsara";
|
|
13211
13179
|
import { useContext as useContext4, useMemo as useMemo6 } from "react";
|
|
13212
13180
|
|
|
13213
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13214
|
-
var digest47 = "
|
|
13181
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-FAwJ9vQMscUH/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
13182
|
+
var digest47 = "e9b11adbe77128e1559fd860dc1b93acc276bb7fe58744d85947fc94a8505a78";
|
|
13215
13183
|
var css47 = `._page_1jsqa_1 {
|
|
13216
13184
|
width: 100%;
|
|
13217
13185
|
height: 100vh;
|
|
@@ -13364,7 +13332,7 @@ import {
|
|
|
13364
13332
|
} from "@connectrpc/connect-query";
|
|
13365
13333
|
import { useQueryClient as useQueryClient6 } from "@tanstack/react-query";
|
|
13366
13334
|
import {
|
|
13367
|
-
FrontierServiceQueries as
|
|
13335
|
+
FrontierServiceQueries as FrontierServiceQueries13,
|
|
13368
13336
|
CreateOrganizationInvitationRequestSchema
|
|
13369
13337
|
} from "@raystack/proton/frontier";
|
|
13370
13338
|
import { create as create8 } from "@bufbuild/protobuf";
|
|
@@ -13394,12 +13362,12 @@ var InviteUsersDialog = ({ onOpenChange }) => {
|
|
|
13394
13362
|
}
|
|
13395
13363
|
});
|
|
13396
13364
|
const { mutateAsync: createInvitation } = useMutation7(
|
|
13397
|
-
|
|
13365
|
+
FrontierServiceQueries13.createOrganizationInvitation,
|
|
13398
13366
|
{
|
|
13399
13367
|
onSuccess: (data) => {
|
|
13400
13368
|
queryClient.invalidateQueries({
|
|
13401
13369
|
queryKey: createConnectQueryKey4({
|
|
13402
|
-
schema:
|
|
13370
|
+
schema: FrontierServiceQueries13.listOrganizationInvitations,
|
|
13403
13371
|
transport,
|
|
13404
13372
|
input: { orgId: organizationId },
|
|
13405
13373
|
cardinality: "finite"
|
|
@@ -13522,8 +13490,8 @@ import {
|
|
|
13522
13490
|
import { useContext as useContext5 } from "react";
|
|
13523
13491
|
import { Controller as Controller4, FormProvider as FormProvider2, useForm as useForm5 } from "react-hook-form";
|
|
13524
13492
|
|
|
13525
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13526
|
-
var digest48 = "
|
|
13493
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-hNXrZ26DvwPq/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
13494
|
+
var digest48 = "768ee5c2287df90916d015268e34d166fae4905eeb9d7824c178e281fe9eff4e";
|
|
13527
13495
|
var css48 = `._page_1jsqa_1 {
|
|
13528
13496
|
width: 100%;
|
|
13529
13497
|
height: 100vh;
|
|
@@ -13620,7 +13588,7 @@ var layout_module_css_default4 = { "page": "_page_1jsqa_1", "main_content": "_ma
|
|
|
13620
13588
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
|
13621
13589
|
import { useMutation as useMutation8, createConnectQueryKey as createConnectQueryKey5, useTransport as useTransport6 } from "@connectrpc/connect-query";
|
|
13622
13590
|
import { useQueryClient as useQueryClient7 } from "@tanstack/react-query";
|
|
13623
|
-
import { AdminServiceQueries as AdminServiceQueries13, CheckoutProductBodySchema, DelegatedCheckoutRequestSchema, FrontierServiceQueries as
|
|
13591
|
+
import { AdminServiceQueries as AdminServiceQueries13, CheckoutProductBodySchema, DelegatedCheckoutRequestSchema, FrontierServiceQueries as FrontierServiceQueries14 } from "@raystack/proton/frontier";
|
|
13624
13592
|
import { create as create9 } from "@bufbuild/protobuf";
|
|
13625
13593
|
import { jsx as jsx67, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
13626
13594
|
var addTokensSchema = objectType({
|
|
@@ -13649,7 +13617,7 @@ var AddTokensDialog = ({ onOpenChange }) => {
|
|
|
13649
13617
|
onSuccess: () => {
|
|
13650
13618
|
queryClient.invalidateQueries({
|
|
13651
13619
|
queryKey: createConnectQueryKey5({
|
|
13652
|
-
schema:
|
|
13620
|
+
schema: FrontierServiceQueries14.searchOrganizationTokens,
|
|
13653
13621
|
transport,
|
|
13654
13622
|
input: { id: organisationId },
|
|
13655
13623
|
cardinality: "infinite"
|
|
@@ -13904,7 +13872,10 @@ var NavLinks = ({
|
|
|
13904
13872
|
}) => {
|
|
13905
13873
|
const t = useTerminology();
|
|
13906
13874
|
const paths = useAdminPaths();
|
|
13907
|
-
const
|
|
13875
|
+
const orgPrefix = `/${paths.organizations}/`;
|
|
13876
|
+
const path = currentPath.split(/[?#]/)[0];
|
|
13877
|
+
const orgSegment = path.startsWith(orgPrefix) ? path.slice(orgPrefix.length).split("/")[0] : organizationId;
|
|
13878
|
+
const basePath = `/${paths.organizations}/${orgSegment}`;
|
|
13908
13879
|
const links = [
|
|
13909
13880
|
{ name: t.member({ plural: true, case: "capital" }), path: `${basePath}/${paths.members}` },
|
|
13910
13881
|
{ name: t.project({ plural: true, case: "capital" }), path: `${basePath}/${paths.projects}` },
|
|
@@ -13914,8 +13885,8 @@ var NavLinks = ({
|
|
|
13914
13885
|
{ name: "PAT", path: `${basePath}/pat` },
|
|
13915
13886
|
{ name: "Security", path: `${basePath}/security` }
|
|
13916
13887
|
];
|
|
13917
|
-
function checkActive(
|
|
13918
|
-
return currentPath.startsWith(
|
|
13888
|
+
function checkActive(path2) {
|
|
13889
|
+
return currentPath.startsWith(path2);
|
|
13919
13890
|
}
|
|
13920
13891
|
return /* @__PURE__ */ jsx68(Flex45, { gap: 3, children: links.map((link, i) => {
|
|
13921
13892
|
const isActive = checkActive(link.path);
|
|
@@ -13959,6 +13930,10 @@ var OrganizationsDetailsNavabar = ({
|
|
|
13959
13930
|
Breadcrumb2.Item,
|
|
13960
13931
|
{
|
|
13961
13932
|
href: `/${adminPaths.organizations}`,
|
|
13933
|
+
onClick: (e) => {
|
|
13934
|
+
e.preventDefault();
|
|
13935
|
+
onNavigate(`/${adminPaths.organizations}`);
|
|
13936
|
+
},
|
|
13962
13937
|
leadingIcon: /* @__PURE__ */ jsx68(OrganizationIcon3, {}),
|
|
13963
13938
|
children: t.organization({ plural: true, case: "capital" })
|
|
13964
13939
|
}
|
|
@@ -13967,7 +13942,14 @@ var OrganizationsDetailsNavabar = ({
|
|
|
13967
13942
|
/* @__PURE__ */ jsx68(
|
|
13968
13943
|
Breadcrumb2.Item,
|
|
13969
13944
|
{
|
|
13970
|
-
href: `/${adminPaths.organizations}/${organization
|
|
13945
|
+
href: `/${adminPaths.organizations}/${organization.name || organization.id}`,
|
|
13946
|
+
onClick: (e) => {
|
|
13947
|
+
e.preventDefault();
|
|
13948
|
+
onNavigate(
|
|
13949
|
+
`/${adminPaths.organizations}/${organization.name || organization.id}`,
|
|
13950
|
+
{ orgId: organization.id }
|
|
13951
|
+
);
|
|
13952
|
+
},
|
|
13971
13953
|
leadingIcon: /* @__PURE__ */ jsx68(
|
|
13972
13954
|
Avatar8,
|
|
13973
13955
|
{
|
|
@@ -14029,8 +14011,8 @@ var OrganizationsDetailsNavabar = ({
|
|
|
14029
14011
|
] });
|
|
14030
14012
|
};
|
|
14031
14013
|
|
|
14032
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14033
|
-
var digest49 = "
|
|
14014
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-WIQSE1Sc5ItF/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
14015
|
+
var digest49 = "a695055714052a0ff92ef74bdc0c074d2a8c880363af4d500c9bcd6d211b68a7";
|
|
14034
14016
|
var css49 = `._page_1jsqa_1 {
|
|
14035
14017
|
width: 100%;
|
|
14036
14018
|
height: 100vh;
|
|
@@ -14132,8 +14114,8 @@ import { Avatar as Avatar9, getAvatarColor as getAvatarColor7, SidePanel as Side
|
|
|
14132
14114
|
// admin/views/organizations/details/side-panel/org-details-section.tsx
|
|
14133
14115
|
import { Flex as Flex46, List as List7, Text as Text31, CopyButton as CopyButton3, Tooltip as Tooltip3 } from "@raystack/apsara";
|
|
14134
14116
|
|
|
14135
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14136
|
-
var digest50 = "
|
|
14117
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-vqvBQ9Cl8PZg/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
14118
|
+
var digest50 = "b7f152eff3803e5ec4ce999116ff3bf5e9decfa5f87d74b1191c9c975a4257af";
|
|
14137
14119
|
var css50 = `._side-panel-section-item-label_slrfc_1 {
|
|
14138
14120
|
width: 120px;
|
|
14139
14121
|
}
|
|
@@ -14197,7 +14179,6 @@ var css50 = `._side-panel-section-item-label_slrfc_1 {
|
|
|
14197
14179
|
var side_panel_module_css_default5 = { "side-panel-section-item-label": "_side-panel-section-item-label_slrfc_1", "sidePanelSectionItemLabel": "_side-panel-section-item-label_slrfc_1", "org-details-section-org-id": "_org-details-section-org-id_slrfc_5", "orgDetailsSectionOrgId": "_org-details-section-org-id_slrfc_5", "kyc_link": "_kyc_link_slrfc_6", "kycLink": "_kyc_link_slrfc_6", "kyc-status-icon": "_kyc-status-icon_slrfc_13", "kycStatusIcon": "_kyc-status-icon_slrfc_13", "billing-header": "_billing-header_slrfc_18", "billingHeader": "_billing-header_slrfc_18", "billing-edit": "_billing-edit_slrfc_25", "billingEdit": "_billing-edit_slrfc_25", "billing-section": "_billing-section_slrfc_30", "billingSection": "_billing-section_slrfc_30", "billing-edit-disabled": "_billing-edit-disabled_slrfc_38", "billingEditDisabled": "_billing-edit-disabled_slrfc_38" };
|
|
14198
14180
|
|
|
14199
14181
|
// admin/views/organizations/details/side-panel/org-details-section.tsx
|
|
14200
|
-
import dayjs12 from "dayjs";
|
|
14201
14182
|
import { useContext as useContext7 } from "react";
|
|
14202
14183
|
import { jsx as jsx69, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
14203
14184
|
var OrganizationDetailsSection = ({
|
|
@@ -14235,9 +14216,7 @@ var OrganizationDetailsSection = ({
|
|
|
14235
14216
|
/* @__PURE__ */ jsx69(List7.Label, { className: side_panel_module_css_default5["side-panel-section-item-label"], children: "Created on" }),
|
|
14236
14217
|
/* @__PURE__ */ jsx69(List7.Value, { children: /* @__PURE__ */ jsxs53(Flex46, { gap: 3, children: [
|
|
14237
14218
|
/* @__PURE__ */ jsx69(CalendarIcon, {}),
|
|
14238
|
-
/* @__PURE__ */ jsx69(Text31, { children:
|
|
14239
|
-
"DD MMM YYYY"
|
|
14240
|
-
) })
|
|
14219
|
+
/* @__PURE__ */ jsx69(Text31, { children: formatTimestamp(organization.createdAt) })
|
|
14241
14220
|
] }) })
|
|
14242
14221
|
] }),
|
|
14243
14222
|
/* @__PURE__ */ jsxs53(List7.Item, { children: [
|
|
@@ -14263,8 +14242,8 @@ var OrganizationDetailsSection = ({
|
|
|
14263
14242
|
import { Flex as Flex47, List as List8, Text as Text32, Link as Link2, Tooltip as Tooltip4 } from "@raystack/apsara";
|
|
14264
14243
|
import { useContext as useContext8 } from "react";
|
|
14265
14244
|
|
|
14266
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14267
|
-
var digest51 = "
|
|
14245
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-nO9eGAPHoz6h/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
14246
|
+
var digest51 = "75b41ee97b99349e4916aa15e8fbaa5124be7fde0006c33a50c93ef7dcf93c8c";
|
|
14268
14247
|
var css51 = `._side-panel-section-item-label_slrfc_1 {
|
|
14269
14248
|
width: 120px;
|
|
14270
14249
|
}
|
|
@@ -14390,8 +14369,8 @@ var KYCDetailsSection = () => {
|
|
|
14390
14369
|
import { useContext as useContext9 } from "react";
|
|
14391
14370
|
import { List as List9, Text as Text33, Flex as Flex48 } from "@raystack/apsara";
|
|
14392
14371
|
|
|
14393
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14394
|
-
var digest52 = "
|
|
14372
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-BCU5BTqahzRM/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
14373
|
+
var digest52 = "5477060b080a1d51ce7063aa7828ed787cc2ceb7e6c2063b64f7a2f8cbed3442";
|
|
14395
14374
|
var css52 = `._side-panel-section-item-label_slrfc_1 {
|
|
14396
14375
|
width: 120px;
|
|
14397
14376
|
}
|
|
@@ -14455,16 +14434,16 @@ var css52 = `._side-panel-section-item-label_slrfc_1 {
|
|
|
14455
14434
|
var side_panel_module_css_default7 = { "side-panel-section-item-label": "_side-panel-section-item-label_slrfc_1", "sidePanelSectionItemLabel": "_side-panel-section-item-label_slrfc_1", "org-details-section-org-id": "_org-details-section-org-id_slrfc_5", "orgDetailsSectionOrgId": "_org-details-section-org-id_slrfc_5", "kyc_link": "_kyc_link_slrfc_6", "kycLink": "_kyc_link_slrfc_6", "kyc-status-icon": "_kyc-status-icon_slrfc_13", "kycStatusIcon": "_kyc-status-icon_slrfc_13", "billing-header": "_billing-header_slrfc_18", "billingHeader": "_billing-header_slrfc_18", "billing-edit": "_billing-edit_slrfc_25", "billingEdit": "_billing-edit_slrfc_25", "billing-section": "_billing-section_slrfc_30", "billingSection": "_billing-section_slrfc_30", "billing-edit-disabled": "_billing-edit-disabled_slrfc_38", "billingEditDisabled": "_billing-edit-disabled_slrfc_38" };
|
|
14456
14435
|
|
|
14457
14436
|
// admin/views/organizations/details/side-panel/plan-details-section.tsx
|
|
14458
|
-
import { useQuery as
|
|
14459
|
-
import { FrontierServiceQueries as
|
|
14437
|
+
import { useQuery as useQuery14 } from "@connectrpc/connect-query";
|
|
14438
|
+
import { FrontierServiceQueries as FrontierServiceQueries15, ListSubscriptionsRequestSchema, GetPlanRequestSchema } from "@raystack/proton/frontier";
|
|
14460
14439
|
import { create as create10 } from "@bufbuild/protobuf";
|
|
14461
14440
|
import { jsx as jsx71, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
14462
14441
|
var PlanDetailsSection = () => {
|
|
14463
14442
|
const { billingAccount, organization } = useContext9(OrganizationContext);
|
|
14464
14443
|
const billingAccountId = billingAccount?.id || "";
|
|
14465
14444
|
const organizationId = organization?.id || "";
|
|
14466
|
-
const { data: activeSubscription, isLoading: isSubscriptionLoading, error: subscriptionsError } =
|
|
14467
|
-
|
|
14445
|
+
const { data: activeSubscription, isLoading: isSubscriptionLoading, error: subscriptionsError } = useQuery14(
|
|
14446
|
+
FrontierServiceQueries15.listSubscriptions,
|
|
14468
14447
|
create10(ListSubscriptionsRequestSchema, {
|
|
14469
14448
|
orgId: organizationId
|
|
14470
14449
|
}),
|
|
@@ -14481,8 +14460,8 @@ var PlanDetailsSection = () => {
|
|
|
14481
14460
|
if (subscriptionsError) {
|
|
14482
14461
|
console.error("Error fetching subscriptions:", subscriptionsError);
|
|
14483
14462
|
}
|
|
14484
|
-
const { data: planData, isLoading: isPlanLoading, error: planError } =
|
|
14485
|
-
|
|
14463
|
+
const { data: planData, isLoading: isPlanLoading, error: planError } = useQuery14(
|
|
14464
|
+
FrontierServiceQueries15.getPlan,
|
|
14486
14465
|
create10(GetPlanRequestSchema, {
|
|
14487
14466
|
id: activeSubscription?.planId ?? ""
|
|
14488
14467
|
}),
|
|
@@ -14502,20 +14481,16 @@ var PlanDetailsSection = () => {
|
|
|
14502
14481
|
] }),
|
|
14503
14482
|
/* @__PURE__ */ jsxs55(List9.Item, { children: [
|
|
14504
14483
|
/* @__PURE__ */ jsx71(List9.Label, { className: side_panel_module_css_default7["side-panel-section-item-label"], children: "Started from" }),
|
|
14505
|
-
/* @__PURE__ */ jsx71(List9.Value, { children: isLoading ? /* @__PURE__ */ jsx71(Skeleton, {}) :
|
|
14484
|
+
/* @__PURE__ */ jsx71(List9.Value, { children: isLoading ? /* @__PURE__ */ jsx71(Skeleton, {}) : !isNullTimestamp(activeSubscription?.currentPeriodStartAt) ? /* @__PURE__ */ jsxs55(Flex48, { gap: 3, children: [
|
|
14506
14485
|
/* @__PURE__ */ jsx71(CalendarIcon, {}),
|
|
14507
|
-
/* @__PURE__ */ jsx71(Text33, { children:
|
|
14508
|
-
"DD MMM YYYY"
|
|
14509
|
-
) })
|
|
14486
|
+
/* @__PURE__ */ jsx71(Text33, { children: formatTimestamp(activeSubscription?.currentPeriodStartAt) })
|
|
14510
14487
|
] }) : /* @__PURE__ */ jsx71(Text33, { children: "-" }) })
|
|
14511
14488
|
] }),
|
|
14512
14489
|
/* @__PURE__ */ jsxs55(List9.Item, { children: [
|
|
14513
14490
|
/* @__PURE__ */ jsx71(List9.Label, { className: side_panel_module_css_default7["side-panel-section-item-label"], children: "Ends on" }),
|
|
14514
|
-
/* @__PURE__ */ jsx71(List9.Value, { children: isLoading ? /* @__PURE__ */ jsx71(Skeleton, {}) :
|
|
14491
|
+
/* @__PURE__ */ jsx71(List9.Value, { children: isLoading ? /* @__PURE__ */ jsx71(Skeleton, {}) : !isNullTimestamp(activeSubscription?.currentPeriodEndAt) ? /* @__PURE__ */ jsxs55(Flex48, { gap: 3, children: [
|
|
14515
14492
|
/* @__PURE__ */ jsx71(CalendarIcon, {}),
|
|
14516
|
-
/* @__PURE__ */ jsx71(Text33, { children:
|
|
14517
|
-
"DD MMM YYYY"
|
|
14518
|
-
) })
|
|
14493
|
+
/* @__PURE__ */ jsx71(Text33, { children: formatTimestamp(activeSubscription?.currentPeriodEndAt) })
|
|
14519
14494
|
] }) : /* @__PURE__ */ jsx71(Text33, { children: "-" }) })
|
|
14520
14495
|
] })
|
|
14521
14496
|
] });
|
|
@@ -14525,8 +14500,8 @@ var PlanDetailsSection = () => {
|
|
|
14525
14500
|
import { List as List10, Text as Text34, Flex as Flex49 } from "@raystack/apsara";
|
|
14526
14501
|
import { CoinIcon, CoinColoredIcon } from "@raystack/apsara/icons";
|
|
14527
14502
|
|
|
14528
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14529
|
-
var digest53 = "
|
|
14503
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-68WiO9u9LsoB/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
14504
|
+
var digest53 = "d1e1f8960acd32df1d55bdd97de07d28158cd9757616380df97eab6895dd154d";
|
|
14530
14505
|
var css53 = `._side-panel-section-item-label_slrfc_1 {
|
|
14531
14506
|
width: 120px;
|
|
14532
14507
|
}
|
|
@@ -14591,8 +14566,8 @@ var side_panel_module_css_default8 = { "side-panel-section-item-label": "_side-p
|
|
|
14591
14566
|
|
|
14592
14567
|
// admin/views/organizations/details/side-panel/tokens-details-section.tsx
|
|
14593
14568
|
import { useContext as useContext10, useEffect as useEffect7 } from "react";
|
|
14594
|
-
import { useQuery as
|
|
14595
|
-
import { FrontierServiceQueries as
|
|
14569
|
+
import { useQuery as useQuery15 } from "@connectrpc/connect-query";
|
|
14570
|
+
import { FrontierServiceQueries as FrontierServiceQueries16, TotalDebitedTransactionsRequestSchema } from "@raystack/proton/frontier";
|
|
14596
14571
|
import { create as create11 } from "@bufbuild/protobuf";
|
|
14597
14572
|
import { jsx as jsx72, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
14598
14573
|
var TokensDetailsSection = () => {
|
|
@@ -14605,8 +14580,8 @@ var TokensDetailsSection = () => {
|
|
|
14605
14580
|
} = useContext10(OrganizationContext);
|
|
14606
14581
|
const organizationId = organization?.id || "";
|
|
14607
14582
|
const billingAccountId = billingAccount?.id || "";
|
|
14608
|
-
const { data: tokensUsed = "0", isLoading: isTokensLoading, error } =
|
|
14609
|
-
|
|
14583
|
+
const { data: tokensUsed = "0", isLoading: isTokensLoading, error } = useQuery15(
|
|
14584
|
+
FrontierServiceQueries16.totalDebitedTransactions,
|
|
14610
14585
|
create11(TotalDebitedTransactionsRequestSchema, {
|
|
14611
14586
|
orgId: organizationId,
|
|
14612
14587
|
billingId: billingAccountId
|
|
@@ -14659,8 +14634,8 @@ var TokensDetailsSection = () => {
|
|
|
14659
14634
|
// admin/views/organizations/details/side-panel/billing-details-section.tsx
|
|
14660
14635
|
import { Amount as Amount4, CopyButton as CopyButton4, Flex as Flex50, IconButton as IconButton11, Link as Link3, List as List11, Text as Text35, Tooltip as Tooltip5, toastManager as toastManager11 } from "@raystack/apsara";
|
|
14661
14636
|
|
|
14662
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14663
|
-
var digest54 = "
|
|
14637
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-EqIH0Af6pu0r/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
14638
|
+
var digest54 = "47f7c797b56d74cd7c14ea3798e24abbc9f5cfdda5be615b779ae3d484d41474";
|
|
14664
14639
|
var css54 = `._side-panel-section-item-label_slrfc_1 {
|
|
14665
14640
|
width: 120px;
|
|
14666
14641
|
}
|
|
@@ -14725,16 +14700,16 @@ var side_panel_module_css_default9 = { "side-panel-section-item-label": "_side-p
|
|
|
14725
14700
|
|
|
14726
14701
|
// admin/views/organizations/details/side-panel/billing-details-section.tsx
|
|
14727
14702
|
import { useContext as useContext11, useEffect as useEffect8 } from "react";
|
|
14728
|
-
import { useMutation as useMutation9, useQuery as
|
|
14729
|
-
import { CreateCheckoutRequestSchema, FrontierServiceQueries as
|
|
14703
|
+
import { useMutation as useMutation9, useQuery as useQuery16 } from "@connectrpc/connect-query";
|
|
14704
|
+
import { CreateCheckoutRequestSchema, FrontierServiceQueries as FrontierServiceQueries17, GetUpcomingInvoiceRequestSchema } from "@raystack/proton/frontier";
|
|
14730
14705
|
import { create as create12 } from "@bufbuild/protobuf";
|
|
14731
14706
|
import { jsx as jsx73, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
14732
14707
|
var BillingDetailsSection = () => {
|
|
14733
14708
|
const { billingAccount, organization } = useContext11(OrganizationContext);
|
|
14734
14709
|
const organizationId = organization?.id || "";
|
|
14735
14710
|
const billingAccountId = billingAccount?.id || "";
|
|
14736
|
-
const { data: upcomingInvoice, isLoading, error } =
|
|
14737
|
-
|
|
14711
|
+
const { data: upcomingInvoice, isLoading, error } = useQuery16(
|
|
14712
|
+
FrontierServiceQueries17.getUpcomingInvoice,
|
|
14738
14713
|
create12(GetUpcomingInvoiceRequestSchema, {
|
|
14739
14714
|
orgId: organizationId,
|
|
14740
14715
|
billingId: billingAccountId
|
|
@@ -14751,7 +14726,7 @@ var BillingDetailsSection = () => {
|
|
|
14751
14726
|
}, [error]);
|
|
14752
14727
|
const due_date = upcomingInvoice?.dueDate || upcomingInvoice?.periodEndAt;
|
|
14753
14728
|
const stripeLink = billingAccount?.providerId ? "https://dashboard.stripe.com/customers/" + billingAccount?.providerId : "";
|
|
14754
|
-
const { mutateAsync: createCheckout, isPending: isPortalLoading } = useMutation9(
|
|
14729
|
+
const { mutateAsync: createCheckout, isPending: isPortalLoading } = useMutation9(FrontierServiceQueries17.createCheckout, {
|
|
14755
14730
|
onError: (error2) => {
|
|
14756
14731
|
toastManager11.add({
|
|
14757
14732
|
title: "Something went wrong",
|
|
@@ -14833,9 +14808,9 @@ var BillingDetailsSection = () => {
|
|
|
14833
14808
|
] }),
|
|
14834
14809
|
/* @__PURE__ */ jsxs57(List11.Item, { children: [
|
|
14835
14810
|
/* @__PURE__ */ jsx73(List11.Label, { className: side_panel_module_css_default9["side-panel-section-item-label"], children: "Next billing date" }),
|
|
14836
|
-
/* @__PURE__ */ jsx73(List11.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ jsx73(Skeleton, {}) :
|
|
14811
|
+
/* @__PURE__ */ jsx73(List11.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ jsx73(Skeleton, {}) : !isNullTimestamp(due_date) ? /* @__PURE__ */ jsxs57(Flex50, { gap: 3, children: [
|
|
14837
14812
|
/* @__PURE__ */ jsx73(CalendarIcon, {}),
|
|
14838
|
-
/* @__PURE__ */ jsx73(Text35, { children:
|
|
14813
|
+
/* @__PURE__ */ jsx73(Text35, { children: formatTimestamp(due_date) })
|
|
14839
14814
|
] }) : /* @__PURE__ */ jsx73(Text35, { children: "-" }) })
|
|
14840
14815
|
] }),
|
|
14841
14816
|
/* @__PURE__ */ jsxs57(List11.Item, { children: [
|
|
@@ -14903,8 +14878,8 @@ import {
|
|
|
14903
14878
|
toastManager as toastManager12
|
|
14904
14879
|
} from "@raystack/apsara";
|
|
14905
14880
|
|
|
14906
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14907
|
-
var digest55 = "
|
|
14881
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-wn3qJq2PsXzd/sdk/admin/views/organizations/details/edit/edit.module.css.js
|
|
14882
|
+
var digest55 = "2811bd8143842734de5ce12003e4fa614468bb796424e62ef67014ccd46272c7";
|
|
14908
14883
|
var css55 = `._drawer-content_18xgg_1 {
|
|
14909
14884
|
min-width: 500px;
|
|
14910
14885
|
padding: 0;
|
|
@@ -14958,7 +14933,7 @@ import { Controller as Controller5, useForm as useForm6 } from "react-hook-form"
|
|
|
14958
14933
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
|
14959
14934
|
import { useMutation as useMutation10, createConnectQueryKey as createConnectQueryKey6, useTransport as useTransport7 } from "@connectrpc/connect-query";
|
|
14960
14935
|
import { useQueryClient as useQueryClient8 } from "@tanstack/react-query";
|
|
14961
|
-
import { AdminServiceQueries as AdminServiceQueries14, FrontierServiceQueries as
|
|
14936
|
+
import { AdminServiceQueries as AdminServiceQueries14, FrontierServiceQueries as FrontierServiceQueries18, SetOrganizationKycRequestSchema } from "@raystack/proton/frontier";
|
|
14962
14937
|
import { create as create13 } from "@bufbuild/protobuf";
|
|
14963
14938
|
import { Fragment as Fragment13, jsx as jsx75, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
14964
14939
|
var kycUpdateSchema = external_exports.object({
|
|
@@ -14999,7 +14974,7 @@ function EditKYCPanel({ open = false, onClose }) {
|
|
|
14999
14974
|
}
|
|
15000
14975
|
queryClient.invalidateQueries({
|
|
15001
14976
|
queryKey: createConnectQueryKey6({
|
|
15002
|
-
schema:
|
|
14977
|
+
schema: FrontierServiceQueries18.getOrganizationKyc,
|
|
15003
14978
|
transport,
|
|
15004
14979
|
input: { orgId },
|
|
15005
14980
|
cardinality: "finite"
|
|
@@ -15130,8 +15105,8 @@ function EditKYCPanel({ open = false, onClose }) {
|
|
|
15130
15105
|
// admin/views/organizations/details/edit/organization.tsx
|
|
15131
15106
|
import { useContext as useContext13, useEffect as useEffect9, useState as useState20 } from "react";
|
|
15132
15107
|
|
|
15133
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15134
|
-
var digest56 = "
|
|
15108
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-9u0642VxIx2r/sdk/admin/views/organizations/details/edit/edit.module.css.js
|
|
15109
|
+
var digest56 = "cc546471ceca8cac9119bb6b75f3f0d6f960faf98b4dfb5397606d75dc4201b2";
|
|
15135
15110
|
var css56 = `._drawer-content_18xgg_1 {
|
|
15136
15111
|
min-width: 500px;
|
|
15137
15112
|
padding: 0;
|
|
@@ -15196,7 +15171,7 @@ import { Controller as Controller6, useForm as useForm7 } from "react-hook-form"
|
|
|
15196
15171
|
import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
|
|
15197
15172
|
import { useMutation as useMutation11, createConnectQueryKey as createConnectQueryKey7, useTransport as useTransport8 } from "@connectrpc/connect-query";
|
|
15198
15173
|
import { useQueryClient as useQueryClient9 } from "@tanstack/react-query";
|
|
15199
|
-
import { FrontierServiceQueries as
|
|
15174
|
+
import { FrontierServiceQueries as FrontierServiceQueries19, UpdateOrganizationRequestSchema } from "@raystack/proton/frontier";
|
|
15200
15175
|
import { create as create14 } from "@bufbuild/protobuf";
|
|
15201
15176
|
import { Fragment as Fragment14, jsx as jsx76, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
15202
15177
|
var orgUpdateSchema = external_exports.object({
|
|
@@ -15261,11 +15236,11 @@ function EditOrganizationPanel({ open = false, onClose }) {
|
|
|
15261
15236
|
mutateAsync: updateOrganizationMutation,
|
|
15262
15237
|
error: mutationError,
|
|
15263
15238
|
isPending: isSubmitting
|
|
15264
|
-
} = useMutation11(
|
|
15239
|
+
} = useMutation11(FrontierServiceQueries19.updateOrganization, {
|
|
15265
15240
|
onSuccess: () => {
|
|
15266
15241
|
queryClient.invalidateQueries({
|
|
15267
15242
|
queryKey: createConnectQueryKey7({
|
|
15268
|
-
schema:
|
|
15243
|
+
schema: FrontierServiceQueries19.getOrganization,
|
|
15269
15244
|
transport,
|
|
15270
15245
|
input: { id: orgId },
|
|
15271
15246
|
cardinality: "finite"
|
|
@@ -15508,8 +15483,8 @@ import {
|
|
|
15508
15483
|
toastManager as toastManager13
|
|
15509
15484
|
} from "@raystack/apsara";
|
|
15510
15485
|
|
|
15511
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15512
|
-
var digest57 = "
|
|
15486
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-ExCzmyBBVNNm/sdk/admin/views/organizations/details/edit/edit.module.css.js
|
|
15487
|
+
var digest57 = "a6ca5ce19c2237d90dfbcdb43ccdf43bf5cd9593564932b647dcb9478733b360";
|
|
15513
15488
|
var css57 = `._drawer-content_18xgg_1 {
|
|
15514
15489
|
min-width: 500px;
|
|
15515
15490
|
padding: 0;
|
|
@@ -15891,7 +15866,7 @@ var OrganizationDetailsLayout = ({
|
|
|
15891
15866
|
|
|
15892
15867
|
// admin/views/organizations/details/index.tsx
|
|
15893
15868
|
import {
|
|
15894
|
-
FrontierServiceQueries as
|
|
15869
|
+
FrontierServiceQueries as FrontierServiceQueries20,
|
|
15895
15870
|
GetBillingAccountRequestSchema,
|
|
15896
15871
|
GetBillingBalanceRequestSchema,
|
|
15897
15872
|
GetOrganizationKycResponseSchema
|
|
@@ -15918,8 +15893,8 @@ var OrganizationDetailsView = ({
|
|
|
15918
15893
|
data: organization,
|
|
15919
15894
|
isLoading: isOrganizationLoading,
|
|
15920
15895
|
error: organizationError
|
|
15921
|
-
} =
|
|
15922
|
-
|
|
15896
|
+
} = useQuery17(
|
|
15897
|
+
FrontierServiceQueries20.getOrganization,
|
|
15923
15898
|
{ id: organizationId },
|
|
15924
15899
|
{
|
|
15925
15900
|
enabled: !!organizationId,
|
|
@@ -15927,7 +15902,7 @@ var OrganizationDetailsView = ({
|
|
|
15927
15902
|
}
|
|
15928
15903
|
);
|
|
15929
15904
|
const getOrganizationQueryKey = [
|
|
15930
|
-
|
|
15905
|
+
FrontierServiceQueries20.getOrganization,
|
|
15931
15906
|
{ id: organizationId }
|
|
15932
15907
|
];
|
|
15933
15908
|
async function updateOrganization(org) {
|
|
@@ -15937,8 +15912,8 @@ var OrganizationDetailsView = ({
|
|
|
15937
15912
|
data: kycData,
|
|
15938
15913
|
isLoading: isKYCLoading,
|
|
15939
15914
|
error: kycError
|
|
15940
|
-
} =
|
|
15941
|
-
|
|
15915
|
+
} = useQuery17(
|
|
15916
|
+
FrontierServiceQueries20.getOrganizationKyc,
|
|
15942
15917
|
{ orgId: organizationId || "" },
|
|
15943
15918
|
{
|
|
15944
15919
|
enabled: !!organizationId
|
|
@@ -15950,7 +15925,7 @@ var OrganizationDetailsView = ({
|
|
|
15950
15925
|
return;
|
|
15951
15926
|
queryClient.setQueryData(
|
|
15952
15927
|
createConnectQueryKey8({
|
|
15953
|
-
schema:
|
|
15928
|
+
schema: FrontierServiceQueries20.getOrganizationKyc,
|
|
15954
15929
|
transport,
|
|
15955
15930
|
input: { orgId: organizationId },
|
|
15956
15931
|
cardinality: "finite"
|
|
@@ -15962,8 +15937,8 @@ var OrganizationDetailsView = ({
|
|
|
15962
15937
|
data: defaultRoles = [],
|
|
15963
15938
|
isLoading: isDefaultRolesLoading,
|
|
15964
15939
|
error: defaultRolesError
|
|
15965
|
-
} =
|
|
15966
|
-
|
|
15940
|
+
} = useQuery17(
|
|
15941
|
+
FrontierServiceQueries20.listRoles,
|
|
15967
15942
|
{ scopes: [ORG_NAMESPACE] },
|
|
15968
15943
|
{
|
|
15969
15944
|
enabled: !!organizationId,
|
|
@@ -15974,8 +15949,8 @@ var OrganizationDetailsView = ({
|
|
|
15974
15949
|
data: organizationRoles = [],
|
|
15975
15950
|
isLoading: isOrgRolesLoading,
|
|
15976
15951
|
error: orgRolesError
|
|
15977
|
-
} =
|
|
15978
|
-
|
|
15952
|
+
} = useQuery17(
|
|
15953
|
+
FrontierServiceQueries20.listOrganizationRoles,
|
|
15979
15954
|
{ orgId: organizationId || "", scopes: [ORG_NAMESPACE] },
|
|
15980
15955
|
{
|
|
15981
15956
|
enabled: !!organizationId,
|
|
@@ -15987,8 +15962,8 @@ var OrganizationDetailsView = ({
|
|
|
15987
15962
|
data: orgMembersMap = {},
|
|
15988
15963
|
isLoading: isOrgMembersMapLoading,
|
|
15989
15964
|
error: orgMembersError
|
|
15990
|
-
} =
|
|
15991
|
-
|
|
15965
|
+
} = useQuery17(
|
|
15966
|
+
FrontierServiceQueries20.listOrganizationUsers,
|
|
15992
15967
|
{ id: organizationId || "" },
|
|
15993
15968
|
{
|
|
15994
15969
|
enabled: !!organizationId,
|
|
@@ -16005,8 +15980,8 @@ var OrganizationDetailsView = ({
|
|
|
16005
15980
|
}
|
|
16006
15981
|
}
|
|
16007
15982
|
);
|
|
16008
|
-
const { data: firstBillingAccountId = "", error: billingAccountsError } =
|
|
16009
|
-
|
|
15983
|
+
const { data: firstBillingAccountId = "", error: billingAccountsError } = useQuery17(
|
|
15984
|
+
FrontierServiceQueries20.listBillingAccounts,
|
|
16010
15985
|
{ orgId: organizationId || "" },
|
|
16011
15986
|
{
|
|
16012
15987
|
enabled: !!organizationId,
|
|
@@ -16018,8 +15993,8 @@ var OrganizationDetailsView = ({
|
|
|
16018
15993
|
isLoading: isBillingAccountLoading,
|
|
16019
15994
|
error: billingAccountError,
|
|
16020
15995
|
refetch: fetchBillingAccountDetails
|
|
16021
|
-
} =
|
|
16022
|
-
|
|
15996
|
+
} = useQuery17(
|
|
15997
|
+
FrontierServiceQueries20.getBillingAccount,
|
|
16023
15998
|
create16(GetBillingAccountRequestSchema, {
|
|
16024
15999
|
id: firstBillingAccountId,
|
|
16025
16000
|
withBillingDetails: true
|
|
@@ -16039,8 +16014,8 @@ var OrganizationDetailsView = ({
|
|
|
16039
16014
|
isLoading: isTokenBalanceLoading,
|
|
16040
16015
|
error: tokenBalanceError,
|
|
16041
16016
|
refetch: fetchTokenBalance
|
|
16042
|
-
} =
|
|
16043
|
-
|
|
16017
|
+
} = useQuery17(
|
|
16018
|
+
FrontierServiceQueries20.getBillingBalance,
|
|
16044
16019
|
create16(GetBillingBalanceRequestSchema, {
|
|
16045
16020
|
id: firstBillingAccountId
|
|
16046
16021
|
}),
|
|
@@ -16145,8 +16120,8 @@ import {
|
|
|
16145
16120
|
toastManager as toastManager16
|
|
16146
16121
|
} from "@raystack/apsara";
|
|
16147
16122
|
|
|
16148
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16149
|
-
var digest58 = "
|
|
16123
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-69EYhAsv5jK3/sdk/admin/views/organizations/details/security/security.module.css.js
|
|
16124
|
+
var digest58 = "aed36a724f85812e8a1575ccdef118d7e6a624eec64c63a956b419e15d2c4ea0";
|
|
16150
16125
|
var css58 = `._container_gfopt_1 {
|
|
16151
16126
|
width: 100%;
|
|
16152
16127
|
}
|
|
@@ -16203,7 +16178,7 @@ import { useContext as useContext17 } from "react";
|
|
|
16203
16178
|
import { AlertDialog as AlertDialog4, Button as Button19, Flex as Flex55, Text as Text39, toastManager as toastManager14 } from "@raystack/apsara";
|
|
16204
16179
|
import { useContext as useContext15, useState as useState23 } from "react";
|
|
16205
16180
|
import { createConnectQueryKey as createConnectQueryKey9, useMutation as useMutation13, useTransport as useTransport10 } from "@connectrpc/connect-query";
|
|
16206
|
-
import { FrontierServiceQueries as
|
|
16181
|
+
import { FrontierServiceQueries as FrontierServiceQueries21, DisableOrganizationRequestSchema, EnableOrganizationRequestSchema } from "@raystack/proton/frontier";
|
|
16207
16182
|
import { create as create17 } from "@bufbuild/protobuf";
|
|
16208
16183
|
import { useQueryClient as useQueryClient11 } from "@tanstack/react-query";
|
|
16209
16184
|
import { jsx as jsx80, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
@@ -16214,12 +16189,12 @@ var BlockOrganizationDialog = () => {
|
|
|
16214
16189
|
const transport = useTransport10();
|
|
16215
16190
|
const [isDialogOpen, setIsDialogOpen] = useState23(false);
|
|
16216
16191
|
const { mutateAsync: disableOrganization, isPending: isDisabling } = useMutation13(
|
|
16217
|
-
|
|
16192
|
+
FrontierServiceQueries21.disableOrganization,
|
|
16218
16193
|
{
|
|
16219
16194
|
onSuccess: async () => {
|
|
16220
16195
|
await queryClient.invalidateQueries({
|
|
16221
16196
|
queryKey: createConnectQueryKey9({
|
|
16222
|
-
schema:
|
|
16197
|
+
schema: FrontierServiceQueries21.getOrganization,
|
|
16223
16198
|
transport,
|
|
16224
16199
|
input: { id: organization?.id },
|
|
16225
16200
|
cardinality: "finite"
|
|
@@ -16239,12 +16214,12 @@ var BlockOrganizationDialog = () => {
|
|
|
16239
16214
|
}
|
|
16240
16215
|
);
|
|
16241
16216
|
const { mutateAsync: enableOrganization, isPending: isEnabling } = useMutation13(
|
|
16242
|
-
|
|
16217
|
+
FrontierServiceQueries21.enableOrganization,
|
|
16243
16218
|
{
|
|
16244
16219
|
onSuccess: async () => {
|
|
16245
16220
|
await queryClient.invalidateQueries({
|
|
16246
16221
|
queryKey: createConnectQueryKey9({
|
|
16247
|
-
schema:
|
|
16222
|
+
schema: FrontierServiceQueries21.getOrganization,
|
|
16248
16223
|
transport,
|
|
16249
16224
|
input: { id: organization?.id },
|
|
16250
16225
|
cardinality: "finite"
|
|
@@ -16372,8 +16347,8 @@ import {
|
|
|
16372
16347
|
toastManager as toastManager15
|
|
16373
16348
|
} from "@raystack/apsara";
|
|
16374
16349
|
|
|
16375
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16376
|
-
var digest59 = "
|
|
16350
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-gcW9Ij9GktHY/sdk/admin/views/organizations/details/security/security.module.css.js
|
|
16351
|
+
var digest59 = "e5732046bae0b4f7d3c46ac29e98d1cf49a27066215f54010dadb69e4c3e05b3";
|
|
16377
16352
|
var css59 = `._container_gfopt_1 {
|
|
16378
16353
|
width: 100%;
|
|
16379
16354
|
}
|
|
@@ -16427,7 +16402,7 @@ var security_module_css_default3 = { "container": "_container_gfopt_1", "content
|
|
|
16427
16402
|
import { useContext as useContext16, useState as useState24 } from "react";
|
|
16428
16403
|
import { useMutation as useMutation14, createConnectQueryKey as createConnectQueryKey10, useTransport as useTransport11 } from "@connectrpc/connect-query";
|
|
16429
16404
|
import { useQueryClient as useQueryClient12 } from "@tanstack/react-query";
|
|
16430
|
-
import { FrontierServiceQueries as
|
|
16405
|
+
import { FrontierServiceQueries as FrontierServiceQueries22, DeleteOrganizationDomainRequestSchema } from "@raystack/proton/frontier";
|
|
16431
16406
|
import { create as create18 } from "@bufbuild/protobuf";
|
|
16432
16407
|
import { jsx as jsx81, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
16433
16408
|
var DeleteDomainDialog = ({
|
|
@@ -16438,12 +16413,12 @@ var DeleteDomainDialog = ({
|
|
|
16438
16413
|
const queryClient = useQueryClient12();
|
|
16439
16414
|
const transport = useTransport11();
|
|
16440
16415
|
const { mutateAsync: deleteDomain, isPending } = useMutation14(
|
|
16441
|
-
|
|
16416
|
+
FrontierServiceQueries22.deleteOrganizationDomain,
|
|
16442
16417
|
{
|
|
16443
16418
|
onSuccess: () => {
|
|
16444
16419
|
queryClient.invalidateQueries({
|
|
16445
16420
|
queryKey: createConnectQueryKey10({
|
|
16446
|
-
schema:
|
|
16421
|
+
schema: FrontierServiceQueries22.listOrganizationDomains,
|
|
16447
16422
|
transport,
|
|
16448
16423
|
input: { orgId: organization?.id || "" },
|
|
16449
16424
|
cardinality: "finite"
|
|
@@ -16580,9 +16555,9 @@ var DomainsList = ({
|
|
|
16580
16555
|
};
|
|
16581
16556
|
|
|
16582
16557
|
// admin/views/organizations/details/security/index.tsx
|
|
16583
|
-
import { useQuery as
|
|
16558
|
+
import { useQuery as useQuery18 } from "@connectrpc/connect-query";
|
|
16584
16559
|
import {
|
|
16585
|
-
FrontierServiceQueries as
|
|
16560
|
+
FrontierServiceQueries as FrontierServiceQueries23,
|
|
16586
16561
|
ListOrganizationDomainsRequestSchema
|
|
16587
16562
|
} from "@raystack/proton/frontier";
|
|
16588
16563
|
import { create as create19 } from "@bufbuild/protobuf";
|
|
@@ -16613,8 +16588,8 @@ var AddDomainSection = () => {
|
|
|
16613
16588
|
};
|
|
16614
16589
|
var OrganizationSecurity = () => {
|
|
16615
16590
|
const { organization } = useContext17(OrganizationContext);
|
|
16616
|
-
const { data: domains, isLoading, error, refetch } =
|
|
16617
|
-
|
|
16591
|
+
const { data: domains, isLoading, error, refetch } = useQuery18(
|
|
16592
|
+
FrontierServiceQueries23.listOrganizationDomains,
|
|
16618
16593
|
create19(ListOrganizationDomainsRequestSchema, {
|
|
16619
16594
|
orgId: organization?.id
|
|
16620
16595
|
}),
|
|
@@ -16656,8 +16631,8 @@ var OrganizationSecurity = () => {
|
|
|
16656
16631
|
// admin/views/organizations/details/members/index.tsx
|
|
16657
16632
|
import { AlertDialog as AlertDialog9, DataTable as DataTable16, EmptyState as EmptyState15, Flex as Flex59 } from "@raystack/apsara";
|
|
16658
16633
|
|
|
16659
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16660
|
-
var digest60 = "
|
|
16634
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-i549N7Omg51t/sdk/admin/views/organizations/details/members/members.module.css.js
|
|
16635
|
+
var digest60 = "b1810f6cd67a9721483fce11e9f8c6472ea6928799cf36c96baf2b86b0db357a";
|
|
16661
16636
|
var css60 = `._container_jkaqi_1 {
|
|
16662
16637
|
width: 100%;
|
|
16663
16638
|
}
|
|
@@ -16721,8 +16696,8 @@ import {
|
|
|
16721
16696
|
IconButton as IconButton16
|
|
16722
16697
|
} from "@raystack/apsara";
|
|
16723
16698
|
|
|
16724
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16725
|
-
var digest61 = "
|
|
16699
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-dISb3GaQSJGU/sdk/admin/views/organizations/details/members/members.module.css.js
|
|
16700
|
+
var digest61 = "12532c0250947f0b694408a3ddbc9d67342493e01b7c336b587d1bd831ea74c1";
|
|
16726
16701
|
var css61 = `._container_jkaqi_1 {
|
|
16727
16702
|
width: 100%;
|
|
16728
16703
|
}
|
|
@@ -16773,9 +16748,6 @@ var css61 = `._container_jkaqi_1 {
|
|
|
16773
16748
|
})();
|
|
16774
16749
|
var members_module_css_default2 = { "container": "_container_jkaqi_1", "name-column": "_name-column_jkaqi_5", "nameColumn": "_name-column_jkaqi_5", "empty-state": "_empty-state_jkaqi_9", "emptyState": "_empty-state_jkaqi_9", "empty-state-subheading": "_empty-state-subheading_jkaqi_13", "emptyStateSubheading": "_empty-state-subheading_jkaqi_13", "table": "_table_jkaqi_18", "table-wrapper": "_table-wrapper_jkaqi_23", "tableWrapper": "_table-wrapper_jkaqi_23", "table-header": "_table-header_jkaqi_29", "tableHeader": "_table-header_jkaqi_29", "table-action-column": "_table-action-column_jkaqi_34", "tableActionColumn": "_table-action-column_jkaqi_34" };
|
|
16775
16750
|
|
|
16776
|
-
// admin/views/organizations/details/members/columns.tsx
|
|
16777
|
-
import dayjs13 from "dayjs";
|
|
16778
|
-
|
|
16779
16751
|
// admin/assets/icons/DeleteIcon.tsx
|
|
16780
16752
|
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
16781
16753
|
function DeleteIcon(props) {
|
|
@@ -16886,11 +16858,7 @@ var getColumns12 = ({
|
|
|
16886
16858
|
{
|
|
16887
16859
|
accessorKey: "orgJoinedAt",
|
|
16888
16860
|
header: "Joined On",
|
|
16889
|
-
cell: ({ getValue }) => {
|
|
16890
|
-
const value = getValue();
|
|
16891
|
-
const date = isNullTimestamp(value) ? "-" : dayjs13(timestampToDate(value)).format("YYYY-MM-DD");
|
|
16892
|
-
return /* @__PURE__ */ jsx84(Text42, { children: date });
|
|
16893
|
-
},
|
|
16861
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx84(Text42, { children: formatTimestamp(getValue()) }),
|
|
16894
16862
|
enableSorting: true,
|
|
16895
16863
|
enableHiding: true
|
|
16896
16864
|
// enableColumnFilter: true,
|
|
@@ -16968,7 +16936,7 @@ import { useQueryClient as useQueryClient14 } from "@tanstack/react-query";
|
|
|
16968
16936
|
|
|
16969
16937
|
// admin/views/organizations/details/members/update-role.tsx
|
|
16970
16938
|
import {
|
|
16971
|
-
FrontierServiceQueries as
|
|
16939
|
+
FrontierServiceQueries as FrontierServiceQueries24,
|
|
16972
16940
|
SetOrganizationMemberRoleRequestSchema as SetOrganizationMemberRoleRequestSchema2
|
|
16973
16941
|
} from "@raystack/proton/frontier";
|
|
16974
16942
|
import { create as create20 } from "@bufbuild/protobuf";
|
|
@@ -17006,7 +16974,7 @@ function UpdateRoleContent({
|
|
|
17006
16974
|
onRoleUpdate
|
|
17007
16975
|
}) {
|
|
17008
16976
|
const { mutateAsync: setMemberRole, isPending } = useMutation15(
|
|
17009
|
-
|
|
16977
|
+
FrontierServiceQueries24.setOrganizationMemberRole
|
|
17010
16978
|
);
|
|
17011
16979
|
async function onSubmit() {
|
|
17012
16980
|
try {
|
|
@@ -17065,7 +17033,7 @@ function UpdateRoleContent({
|
|
|
17065
17033
|
|
|
17066
17034
|
// admin/views/organizations/details/members/remove-member.tsx
|
|
17067
17035
|
import {
|
|
17068
|
-
FrontierServiceQueries as
|
|
17036
|
+
FrontierServiceQueries as FrontierServiceQueries25,
|
|
17069
17037
|
RemoveOrganizationMemberRequestSchema
|
|
17070
17038
|
} from "@raystack/proton/frontier";
|
|
17071
17039
|
import { create as create21 } from "@bufbuild/protobuf";
|
|
@@ -17080,7 +17048,7 @@ var RemoveMember = ({
|
|
|
17080
17048
|
}) => {
|
|
17081
17049
|
const t = useTerminology();
|
|
17082
17050
|
const { mutateAsync: removeOrganizationMember, isPending } = useMutation16(
|
|
17083
|
-
|
|
17051
|
+
FrontierServiceQueries25.removeOrganizationMember
|
|
17084
17052
|
);
|
|
17085
17053
|
async function onSubmit() {
|
|
17086
17054
|
try {
|
|
@@ -17166,14 +17134,14 @@ var RemoveMember = ({
|
|
|
17166
17134
|
|
|
17167
17135
|
// hooks/index.ts
|
|
17168
17136
|
import {
|
|
17169
|
-
useQuery as
|
|
17137
|
+
useQuery as useQuery19,
|
|
17170
17138
|
useMutation as useMutation17,
|
|
17171
17139
|
useInfiniteQuery as useInfiniteQuery5,
|
|
17172
17140
|
useTransport as useTransport12,
|
|
17173
17141
|
createConnectQueryKey as createConnectQueryKey11
|
|
17174
17142
|
} from "@connectrpc/connect-query";
|
|
17175
17143
|
import { ConnectError as ConnectError4, Code as Code3 } from "@connectrpc/connect";
|
|
17176
|
-
import { FrontierServiceQueries as
|
|
17144
|
+
import { FrontierServiceQueries as FrontierServiceQueries26 } from "@raystack/proton/frontier";
|
|
17177
17145
|
import { useQueryClient as useQueryClient13 } from "@tanstack/react-query";
|
|
17178
17146
|
import { create as create22 } from "@bufbuild/protobuf";
|
|
17179
17147
|
|
|
@@ -17378,8 +17346,8 @@ import {
|
|
|
17378
17346
|
Flex as Flex66
|
|
17379
17347
|
} from "@raystack/apsara";
|
|
17380
17348
|
|
|
17381
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17382
|
-
var digest62 = "
|
|
17349
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-Gxc7axYAXNM6/sdk/admin/views/organizations/details/projects/projects.module.css.js
|
|
17350
|
+
var digest62 = "3ad50dc162be51b753a6eb204b5cc855ca0ed2ce9f597cd324671ec588dce63e";
|
|
17383
17351
|
var css62 = `._container_1xzwm_1 {
|
|
17384
17352
|
width: 100%;
|
|
17385
17353
|
}
|
|
@@ -17447,8 +17415,8 @@ import {
|
|
|
17447
17415
|
Menu as Menu4
|
|
17448
17416
|
} from "@raystack/apsara";
|
|
17449
17417
|
|
|
17450
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17451
|
-
var digest63 = "
|
|
17418
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-TBt8XngrEhPs/sdk/admin/views/organizations/details/projects/projects.module.css.js
|
|
17419
|
+
var digest63 = "950b785ad7ca8bc011989aa9e910eefe8e77e9a55c008396f052ccc6713cdf4d";
|
|
17452
17420
|
var css63 = `._container_1xzwm_1 {
|
|
17453
17421
|
width: 100%;
|
|
17454
17422
|
}
|
|
@@ -17503,13 +17471,10 @@ var css63 = `._container_1xzwm_1 {
|
|
|
17503
17471
|
})();
|
|
17504
17472
|
var projects_module_css_default2 = { "container": "_container_1xzwm_1", "title-column": "_title-column_1xzwm_5", "titleColumn": "_title-column_1xzwm_5", "empty-state": "_empty-state_1xzwm_9", "emptyState": "_empty-state_1xzwm_9", "empty-state-subheading": "_empty-state-subheading_1xzwm_13", "emptyStateSubheading": "_empty-state-subheading_1xzwm_13", "table": "_table_1xzwm_18", "table-wrapper": "_table-wrapper_1xzwm_23", "tableWrapper": "_table-wrapper_1xzwm_23", "table-header": "_table-header_1xzwm_29", "tableHeader": "_table-header_1xzwm_29", "table-action-column": "_table-action-column_1xzwm_34", "tableActionColumn": "_table-action-column_1xzwm_34", "flex1": "_flex1_1xzwm_38" };
|
|
17505
17473
|
|
|
17506
|
-
// admin/views/organizations/details/projects/columns.tsx
|
|
17507
|
-
import dayjs14 from "dayjs";
|
|
17508
|
-
|
|
17509
17474
|
// admin/views/organizations/details/projects/rename-project.tsx
|
|
17510
17475
|
import { Button as Button24, Dialog as Dialog8, Field as Field7, Flex as Flex60, Input as Input7, toastManager as toastManager19 } from "@raystack/apsara";
|
|
17511
17476
|
import {
|
|
17512
|
-
FrontierServiceQueries as
|
|
17477
|
+
FrontierServiceQueries as FrontierServiceQueries27,
|
|
17513
17478
|
UpdateProjectRequestSchema
|
|
17514
17479
|
} from "@raystack/proton/frontier";
|
|
17515
17480
|
import { create as create23 } from "@bufbuild/protobuf";
|
|
@@ -17542,7 +17507,7 @@ function RenameProjectDialog({
|
|
|
17542
17507
|
resolver: zodResolver9(projectRenameSchema)
|
|
17543
17508
|
});
|
|
17544
17509
|
const { mutateAsync: updateProject } = useMutation18(
|
|
17545
|
-
|
|
17510
|
+
FrontierServiceQueries27.updateProject
|
|
17546
17511
|
);
|
|
17547
17512
|
const submit = async (data) => {
|
|
17548
17513
|
try {
|
|
@@ -17643,16 +17608,16 @@ import { useState as useState28 } from "react";
|
|
|
17643
17608
|
// admin/views/organizations/details/projects/use-add-project-members.tsx
|
|
17644
17609
|
import { useCallback as useCallback8, useContext as useContext19, useMemo as useMemo10, useState as useState27 } from "react";
|
|
17645
17610
|
import { toastManager as toastManager20 } from "@raystack/apsara";
|
|
17646
|
-
import { useQuery as
|
|
17647
|
-
import { FrontierServiceQueries as
|
|
17611
|
+
import { useQuery as useQuery20, useMutation as useMutation19 } from "@connectrpc/connect-query";
|
|
17612
|
+
import { FrontierServiceQueries as FrontierServiceQueries28, ListProjectUsersRequestSchema, ListRolesRequestSchema as ListRolesRequestSchema3, SetProjectMemberRoleRequestSchema } from "@raystack/proton/frontier";
|
|
17648
17613
|
import { create as create24 } from "@bufbuild/protobuf";
|
|
17649
17614
|
function useAddProjectMembers({ projectId }) {
|
|
17650
17615
|
const t = useTerminology();
|
|
17651
17616
|
const memberLabel = t.member({ case: "capital" });
|
|
17652
17617
|
const { orgMembersMap } = useContext19(OrganizationContext);
|
|
17653
17618
|
const [searchQuery, setSearchQuery] = useState27("");
|
|
17654
|
-
const { data: projectMembers, isLoading, refetch } =
|
|
17655
|
-
|
|
17619
|
+
const { data: projectMembers, isLoading, refetch } = useQuery20(
|
|
17620
|
+
FrontierServiceQueries28.listProjectUsers,
|
|
17656
17621
|
create24(ListProjectUsersRequestSchema, { id: projectId }),
|
|
17657
17622
|
{
|
|
17658
17623
|
enabled: !!projectId,
|
|
@@ -17675,8 +17640,8 @@ function useAddProjectMembers({ projectId }) {
|
|
|
17675
17640
|
return name.toLowerCase().includes(searchQuery.toLowerCase());
|
|
17676
17641
|
}) : nonMembers;
|
|
17677
17642
|
}, [nonMembers, searchQuery]);
|
|
17678
|
-
const { data: rolesData } =
|
|
17679
|
-
|
|
17643
|
+
const { data: rolesData } = useQuery20(
|
|
17644
|
+
FrontierServiceQueries28.listRoles,
|
|
17680
17645
|
create24(ListRolesRequestSchema3, {
|
|
17681
17646
|
state: "enabled",
|
|
17682
17647
|
scopes: [SCOPES.PROJECT]
|
|
@@ -17688,7 +17653,7 @@ function useAddProjectMembers({ projectId }) {
|
|
|
17688
17653
|
[rolesData]
|
|
17689
17654
|
);
|
|
17690
17655
|
const { mutateAsync: setProjectMemberRole } = useMutation19(
|
|
17691
|
-
|
|
17656
|
+
FrontierServiceQueries28.setProjectMemberRole
|
|
17692
17657
|
);
|
|
17693
17658
|
const addMember = useCallback8(
|
|
17694
17659
|
async (userId) => {
|
|
@@ -17925,11 +17890,7 @@ var getColumns13 = ({
|
|
|
17925
17890
|
{
|
|
17926
17891
|
accessorKey: "createdAt",
|
|
17927
17892
|
header: "Created On",
|
|
17928
|
-
cell: ({ getValue }) =>
|
|
17929
|
-
const value = getValue();
|
|
17930
|
-
const date = isNullTimestamp(value) ? "-" : dayjs14(timestampToDate(value)).format("YYYY-MM-DD");
|
|
17931
|
-
return date;
|
|
17932
|
-
},
|
|
17893
|
+
cell: ({ getValue }) => formatTimestamp(getValue()),
|
|
17933
17894
|
enableSorting: true,
|
|
17934
17895
|
enableHiding: true,
|
|
17935
17896
|
enableColumnFilter: true,
|
|
@@ -17964,16 +17925,16 @@ import { AlertDialog as AlertDialog13, DataTable as DataTable17, Dialog as Dialo
|
|
|
17964
17925
|
import { useCallback as useCallback9, useMemo as useMemo11, useState as useState30 } from "react";
|
|
17965
17926
|
import {
|
|
17966
17927
|
AdminServiceQueries as AdminServiceQueries17,
|
|
17967
|
-
FrontierServiceQueries as
|
|
17928
|
+
FrontierServiceQueries as FrontierServiceQueries31,
|
|
17968
17929
|
GetProjectRequestSchema,
|
|
17969
17930
|
ListRolesRequestSchema as ListRolesRequestSchema4
|
|
17970
17931
|
} from "@raystack/proton/frontier";
|
|
17971
17932
|
import { create as create27 } from "@bufbuild/protobuf";
|
|
17972
|
-
import { useQuery as
|
|
17933
|
+
import { useQuery as useQuery21, useInfiniteQuery as useInfiniteQuery7 } from "@connectrpc/connect-query";
|
|
17973
17934
|
import { useDebouncedState as useDebouncedState4 } from "@raystack/apsara/hooks";
|
|
17974
17935
|
|
|
17975
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17976
|
-
var digest64 = "
|
|
17936
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-JXCSmFK8zk1c/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
17937
|
+
var digest64 = "594ac1f880bd163a35a591b74d880d8208f5a4349f7e8285c6638800eb88b65b";
|
|
17977
17938
|
var css64 = `._flex1_65nkt_1 {
|
|
17978
17939
|
flex: 1;
|
|
17979
17940
|
}
|
|
@@ -18061,8 +18022,8 @@ var css64 = `._flex1_65nkt_1 {
|
|
|
18061
18022
|
})();
|
|
18062
18023
|
var members_module_css_default3 = { "flex1": "_flex1_65nkt_1", "dialog-content": "_dialog-content_65nkt_5", "dialogContent": "_dialog-content_65nkt_5", "dialog-body": "_dialog-body_65nkt_10", "dialogBody": "_dialog-body_65nkt_10", "empty-state": "_empty-state_65nkt_14", "emptyState": "_empty-state_65nkt_14", "empty-state-subheading": "_empty-state-subheading_65nkt_18", "emptyStateSubheading": "_empty-state-subheading_65nkt_18", "table": "_table_65nkt_23", "table-wrapper": "_table-wrapper_65nkt_28", "tableWrapper": "_table-wrapper_65nkt_28", "table-header": "_table-header_65nkt_34", "tableHeader": "_table-header_65nkt_34", "table-search": "_table-search_65nkt_39", "tableSearch": "_table-search_65nkt_39", "table-content-wrapper": "_table-content-wrapper_65nkt_43", "tableContentWrapper": "_table-content-wrapper_65nkt_43", "table-action-column": "_table-action-column_65nkt_47", "tableActionColumn": "_table-action-column_65nkt_47", "table-action-dropdown": "_table-action-dropdown_65nkt_51", "tableActionDropdown": "_table-action-dropdown_65nkt_51", "action-dialog-content": "_action-dialog-content_65nkt_56", "actionDialogContent": "_action-dialog-content_65nkt_56", "add-member-dropdown": "_add-member-dropdown_65nkt_60", "addMemberDropdown": "_add-member-dropdown_65nkt_60", "add-member-dropdown-member": "_add-member-dropdown-member_65nkt_65", "addMemberDropdownMember": "_add-member-dropdown-member_65nkt_65", "add-member-dropdown-member-name": "_add-member-dropdown-member-name_65nkt_69", "addMemberDropdownMemberName": "_add-member-dropdown-member-name_65nkt_69" };
|
|
18063
18024
|
|
|
18064
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18065
|
-
var digest65 = "
|
|
18025
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-E9AkGVL2QaJ6/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
18026
|
+
var digest65 = "b7d5d1ebd3a25b023bc9a8e8e5d9fb0c054664026163fa27718962dd5455a8e9";
|
|
18066
18027
|
var css65 = `._flex1_65nkt_1 {
|
|
18067
18028
|
flex: 1;
|
|
18068
18029
|
}
|
|
@@ -18278,8 +18239,8 @@ var getColumns14 = ({
|
|
|
18278
18239
|
];
|
|
18279
18240
|
};
|
|
18280
18241
|
|
|
18281
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18282
|
-
var digest66 = "
|
|
18242
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-cL19KXKffr6n/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
18243
|
+
var digest66 = "74a575e4163469bf6dcde38486ec918459b17512646f2cd28ebfc63c90d42f05";
|
|
18283
18244
|
var css66 = `._flex1_65nkt_1 {
|
|
18284
18245
|
flex: 1;
|
|
18285
18246
|
}
|
|
@@ -18369,7 +18330,7 @@ var members_module_css_default5 = { "flex1": "_flex1_65nkt_1", "dialog-content":
|
|
|
18369
18330
|
|
|
18370
18331
|
// admin/views/organizations/details/projects/members/update-role.tsx
|
|
18371
18332
|
import {
|
|
18372
|
-
FrontierServiceQueries as
|
|
18333
|
+
FrontierServiceQueries as FrontierServiceQueries29,
|
|
18373
18334
|
SetProjectMemberRoleRequestSchema as SetProjectMemberRoleRequestSchema2
|
|
18374
18335
|
} from "@raystack/proton/frontier";
|
|
18375
18336
|
import { create as create25 } from "@bufbuild/protobuf";
|
|
@@ -18407,7 +18368,7 @@ function UpdateRoleContent2({
|
|
|
18407
18368
|
onRoleUpdate
|
|
18408
18369
|
}) {
|
|
18409
18370
|
const { mutateAsync: setProjectMemberRole, isPending } = useMutation20(
|
|
18410
|
-
|
|
18371
|
+
FrontierServiceQueries29.setProjectMemberRole
|
|
18411
18372
|
);
|
|
18412
18373
|
async function onSubmit() {
|
|
18413
18374
|
try {
|
|
@@ -18475,14 +18436,14 @@ function UpdateRoleContent2({
|
|
|
18475
18436
|
// admin/views/organizations/details/projects/members/remove-member.tsx
|
|
18476
18437
|
import { useState as useState29 } from "react";
|
|
18477
18438
|
import {
|
|
18478
|
-
FrontierServiceQueries as
|
|
18439
|
+
FrontierServiceQueries as FrontierServiceQueries30,
|
|
18479
18440
|
RemoveProjectMemberRequestSchema
|
|
18480
18441
|
} from "@raystack/proton/frontier";
|
|
18481
18442
|
import { create as create26 } from "@bufbuild/protobuf";
|
|
18482
18443
|
import { useMutation as useMutation21 } from "@connectrpc/connect-query";
|
|
18483
18444
|
|
|
18484
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18485
|
-
var digest67 = "
|
|
18445
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-0mXy4AODZVi7/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
18446
|
+
var digest67 = "fe810db9b37326208d1485c4aeaf0e835dbccab9fbeaa838ae2de2a083a99680";
|
|
18486
18447
|
var css67 = `._flex1_65nkt_1 {
|
|
18487
18448
|
flex: 1;
|
|
18488
18449
|
}
|
|
@@ -18582,7 +18543,7 @@ var RemoveMember2 = ({
|
|
|
18582
18543
|
const t = useTerminology();
|
|
18583
18544
|
const [isSubmitting, setIsSubmitting] = useState29(false);
|
|
18584
18545
|
const { mutateAsync: removeProjectMember } = useMutation21(
|
|
18585
|
-
|
|
18546
|
+
FrontierServiceQueries30.removeProjectMember
|
|
18586
18547
|
);
|
|
18587
18548
|
async function onSubmit() {
|
|
18588
18549
|
try {
|
|
@@ -18686,8 +18647,8 @@ import {
|
|
|
18686
18647
|
Text as Text48
|
|
18687
18648
|
} from "@raystack/apsara";
|
|
18688
18649
|
|
|
18689
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18690
|
-
var digest68 = "
|
|
18650
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-cppWC3wOOvQX/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
18651
|
+
var digest68 = "ee1eae69ab8a1848ab99e009808dc94b0ea20ffbe7219466b42ebaf2ccc8de44";
|
|
18691
18652
|
var css68 = `._flex1_65nkt_1 {
|
|
18692
18653
|
flex: 1;
|
|
18693
18654
|
}
|
|
@@ -18873,16 +18834,16 @@ var ProjectMembersDialog = ({
|
|
|
18873
18834
|
200
|
|
18874
18835
|
);
|
|
18875
18836
|
const [removeMemberConfig, setRemoveMemberConfig] = useState30({ isOpen: false, user: null });
|
|
18876
|
-
const { data: project, isLoading: isProjectLoading, error: projectError } =
|
|
18877
|
-
|
|
18837
|
+
const { data: project, isLoading: isProjectLoading, error: projectError } = useQuery21(
|
|
18838
|
+
FrontierServiceQueries31.getProject,
|
|
18878
18839
|
create27(GetProjectRequestSchema, { id: projectId }),
|
|
18879
18840
|
{
|
|
18880
18841
|
enabled: !!projectId,
|
|
18881
18842
|
select: (data2) => data2?.project
|
|
18882
18843
|
}
|
|
18883
18844
|
);
|
|
18884
|
-
const { data: projectRoles = [], isLoading: isProjectRolesLoading, error: rolesError } =
|
|
18885
|
-
|
|
18845
|
+
const { data: projectRoles = [], isLoading: isProjectRolesLoading, error: rolesError } = useQuery21(
|
|
18846
|
+
FrontierServiceQueries31.listRoles,
|
|
18886
18847
|
create27(ListRolesRequestSchema4, { scopes: [PROJECT_NAMESPACE] }),
|
|
18887
18848
|
{
|
|
18888
18849
|
select: (data2) => data2?.roles || []
|
|
@@ -19211,8 +19172,8 @@ function OrganizationProjectsView() {
|
|
|
19211
19172
|
// admin/views/organizations/details/invoices/index.tsx
|
|
19212
19173
|
import { DataTable as DataTable19, EmptyState as EmptyState18, Flex as Flex67 } from "@raystack/apsara";
|
|
19213
19174
|
|
|
19214
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19215
|
-
var digest69 = "
|
|
19175
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-q5fyq8VF7Vq1/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
|
|
19176
|
+
var digest69 = "c7a66d0464c52deb29436c7491a30765a552cc5509e1692e7cbf1cd1dc01fe7e";
|
|
19216
19177
|
var css69 = `._empty-state_ct7gw_1 {
|
|
19217
19178
|
height: 100%;
|
|
19218
19179
|
}
|
|
@@ -19258,8 +19219,8 @@ var invoices_module_css_default4 = { "empty-state": "_empty-state_ct7gw_1", "emp
|
|
|
19258
19219
|
// admin/views/organizations/details/invoices/index.tsx
|
|
19259
19220
|
import { useContext as useContext21, useEffect as useEffect16, useMemo as useMemo13, useState as useState32 } from "react";
|
|
19260
19221
|
|
|
19261
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19262
|
-
var digest70 = "
|
|
19222
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-vnpHeI3M2G5m/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
|
|
19223
|
+
var digest70 = "9f3febf1758c2493771675bde72d97d27bcae663ff461a5564a83932ee7c0e34";
|
|
19263
19224
|
var css70 = `._empty-state_ct7gw_1 {
|
|
19264
19225
|
height: 100%;
|
|
19265
19226
|
}
|
|
@@ -19303,7 +19264,6 @@ var css70 = `._empty-state_ct7gw_1 {
|
|
|
19303
19264
|
var invoices_module_css_default5 = { "empty-state": "_empty-state_ct7gw_1", "emptyState": "_empty-state_ct7gw_1", "empty-state-subheading": "_empty-state-subheading_ct7gw_5", "emptyStateSubheading": "_empty-state-subheading_ct7gw_5", "table": "_table_ct7gw_10", "table-wrapper": "_table-wrapper_ct7gw_15", "tableWrapper": "_table-wrapper_ct7gw_15", "table-header": "_table-header_ct7gw_21", "tableHeader": "_table-header_ct7gw_21", "first-column": "_first-column_ct7gw_26", "firstColumn": "_first-column_ct7gw_26" };
|
|
19304
19265
|
|
|
19305
19266
|
// admin/views/organizations/details/invoices/columns.tsx
|
|
19306
|
-
import dayjs15 from "dayjs";
|
|
19307
19267
|
import { Link as Link4, Amount as Amount5 } from "@raystack/apsara";
|
|
19308
19268
|
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
19309
19269
|
var InvoiceStatusesMap = {
|
|
@@ -19323,11 +19283,7 @@ var getColumns15 = ({
|
|
|
19323
19283
|
cell: invoices_module_css_default5["first-column"],
|
|
19324
19284
|
header: invoices_module_css_default5["first-column"]
|
|
19325
19285
|
},
|
|
19326
|
-
cell: ({ getValue }) =>
|
|
19327
|
-
const value = getValue();
|
|
19328
|
-
const date = isNullTimestamp(value) ? "-" : dayjs15(timestampToDate(value)).format("YYYY-MM-DD");
|
|
19329
|
-
return date;
|
|
19330
|
-
},
|
|
19286
|
+
cell: ({ getValue }) => formatTimestamp(getValue()),
|
|
19331
19287
|
enableSorting: true,
|
|
19332
19288
|
enableColumnFilter: true,
|
|
19333
19289
|
filterType: "date"
|
|
@@ -19374,7 +19330,7 @@ var getColumns15 = ({
|
|
|
19374
19330
|
];
|
|
19375
19331
|
|
|
19376
19332
|
// admin/views/organizations/details/invoices/index.tsx
|
|
19377
|
-
import { FrontierServiceQueries as
|
|
19333
|
+
import { FrontierServiceQueries as FrontierServiceQueries32 } from "@raystack/proton/frontier";
|
|
19378
19334
|
import { useInfiniteQuery as useInfiniteQuery9 } from "@connectrpc/connect-query";
|
|
19379
19335
|
import { jsx as jsx97, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
19380
19336
|
var DEFAULT_SORT7 = { name: "createdAt", order: "desc" };
|
|
@@ -19469,7 +19425,7 @@ function OrganizationInvoicesView() {
|
|
|
19469
19425
|
hasNextPage,
|
|
19470
19426
|
isError
|
|
19471
19427
|
} = useInfiniteQuery9(
|
|
19472
|
-
|
|
19428
|
+
FrontierServiceQueries32.searchOrganizationInvoices,
|
|
19473
19429
|
{ id: organizationId, query },
|
|
19474
19430
|
{
|
|
19475
19431
|
enabled: !!organizationId,
|
|
@@ -19539,8 +19495,8 @@ function OrganizationInvoicesView() {
|
|
|
19539
19495
|
// admin/views/organizations/details/tokens/index.tsx
|
|
19540
19496
|
import { DataTable as DataTable20, EmptyState as EmptyState19, Flex as Flex69 } from "@raystack/apsara";
|
|
19541
19497
|
|
|
19542
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19543
|
-
var digest71 = "
|
|
19498
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-29RCczOSbUN0/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
|
|
19499
|
+
var digest71 = "2ee7c406a681518dd3caca0ab1d06c2832071cf861d27a9e318b36b9595932a1";
|
|
19544
19500
|
var css71 = `._empty-state_1mf09_1 {
|
|
19545
19501
|
height: 100%;
|
|
19546
19502
|
}
|
|
@@ -19597,11 +19553,11 @@ var tokens_module_css_default = { "empty-state": "_empty-state_1mf09_1", "emptyS
|
|
|
19597
19553
|
// admin/views/organizations/details/tokens/index.tsx
|
|
19598
19554
|
import { CoinIcon as CoinIcon2 } from "@raystack/apsara/icons";
|
|
19599
19555
|
import { useContext as useContext22, useEffect as useEffect17, useMemo as useMemo14, useState as useState33 } from "react";
|
|
19600
|
-
import { FrontierServiceQueries as
|
|
19556
|
+
import { FrontierServiceQueries as FrontierServiceQueries33 } from "@raystack/proton/frontier";
|
|
19601
19557
|
import { useInfiniteQuery as useInfiniteQuery10 } from "@connectrpc/connect-query";
|
|
19602
19558
|
|
|
19603
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19604
|
-
var digest72 = "
|
|
19559
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-mPEVQ7B4SFwh/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
|
|
19560
|
+
var digest72 = "4151d332cc7a5a0abecc977c464f71b59d0dcb3fd177e53437b674c42c1ab372";
|
|
19605
19561
|
var css72 = `._empty-state_1mf09_1 {
|
|
19606
19562
|
height: 100%;
|
|
19607
19563
|
}
|
|
@@ -19656,7 +19612,6 @@ var css72 = `._empty-state_1mf09_1 {
|
|
|
19656
19612
|
var tokens_module_css_default2 = { "empty-state": "_empty-state_1mf09_1", "emptyState": "_empty-state_1mf09_1", "empty-state-subheading": "_empty-state-subheading_1mf09_5", "emptyStateSubheading": "_empty-state-subheading_1mf09_5", "table": "_table_1mf09_10", "table-wrapper": "_table-wrapper_1mf09_15", "tableWrapper": "_table-wrapper_1mf09_15", "table-header": "_table-header_1mf09_21", "tableHeader": "_table-header_1mf09_21", "first-column": "_first-column_1mf09_26", "firstColumn": "_first-column_1mf09_26", "truncate-tooltip-wrapper": "_truncate-tooltip-wrapper_1mf09_31", "truncateTooltipWrapper": "_truncate-tooltip-wrapper_1mf09_31", "truncate-text": "_truncate-text_1mf09_35", "truncateText": "_truncate-text_1mf09_35" };
|
|
19657
19613
|
|
|
19658
19614
|
// admin/views/organizations/details/tokens/columns.tsx
|
|
19659
|
-
import dayjs16 from "dayjs";
|
|
19660
19615
|
import {
|
|
19661
19616
|
Avatar as Avatar14,
|
|
19662
19617
|
Flex as Flex68,
|
|
@@ -19675,11 +19630,7 @@ var getColumns16 = ({ t }) => {
|
|
|
19675
19630
|
header: tokens_module_css_default2["first-column"]
|
|
19676
19631
|
},
|
|
19677
19632
|
styles: { header: { width: "180px" } },
|
|
19678
|
-
cell: ({ getValue }) =>
|
|
19679
|
-
const value = getValue();
|
|
19680
|
-
const date = isNullTimestamp(value) ? "-" : dayjs16(timestampToDate(value)).format("YYYY-MM-DD");
|
|
19681
|
-
return date;
|
|
19682
|
-
},
|
|
19633
|
+
cell: ({ getValue }) => formatTimestamp(getValue()),
|
|
19683
19634
|
enableSorting: true,
|
|
19684
19635
|
enableColumnFilter: true,
|
|
19685
19636
|
filterType: "date"
|
|
@@ -19815,7 +19766,7 @@ function OrganizationTokensView() {
|
|
|
19815
19766
|
hasNextPage,
|
|
19816
19767
|
isError
|
|
19817
19768
|
} = useInfiniteQuery10(
|
|
19818
|
-
|
|
19769
|
+
FrontierServiceQueries33.searchOrganizationTokens,
|
|
19819
19770
|
{ id: organizationId, query },
|
|
19820
19771
|
{
|
|
19821
19772
|
enabled: !!organizationId,
|
|
@@ -19884,8 +19835,8 @@ function OrganizationTokensView() {
|
|
|
19884
19835
|
// admin/views/organizations/details/apis/index.tsx
|
|
19885
19836
|
import { DataTable as DataTable21, EmptyState as EmptyState20, Flex as Flex71 } from "@raystack/apsara";
|
|
19886
19837
|
|
|
19887
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19888
|
-
var digest73 = "
|
|
19838
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-0ffTuxJLwT82/sdk/admin/views/organizations/details/apis/apis.module.css.js
|
|
19839
|
+
var digest73 = "bbe4f3f0ab44e7a12d531cca678b5d11e0c34258cdec4ba67982d93d64d46536";
|
|
19889
19840
|
var css73 = `._empty-state_r9k2f_1 {
|
|
19890
19841
|
height: 100%;
|
|
19891
19842
|
}
|
|
@@ -19968,10 +19919,9 @@ import { useCallback as useCallback11, useContext as useContext23, useEffect as
|
|
|
19968
19919
|
|
|
19969
19920
|
// admin/views/organizations/details/apis/columns.tsx
|
|
19970
19921
|
import { Text as Text50 } from "@raystack/apsara";
|
|
19971
|
-
import dayjs17 from "dayjs";
|
|
19972
19922
|
|
|
19973
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19974
|
-
var digest74 = "
|
|
19923
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-ItpNFM5uxlzc/sdk/admin/views/organizations/details/apis/apis.module.css.js
|
|
19924
|
+
var digest74 = "2f7cf2ce3d367121787be6b899410e245e76b6ea7739e6bf267e232c82387f7b";
|
|
19975
19925
|
var css74 = `._empty-state_r9k2f_1 {
|
|
19976
19926
|
height: 100%;
|
|
19977
19927
|
}
|
|
@@ -20078,12 +20028,9 @@ function getColumns17(options) {
|
|
|
20078
20028
|
enableColumnFilter: true
|
|
20079
20029
|
},
|
|
20080
20030
|
{
|
|
20081
|
-
accessorKey: "
|
|
20031
|
+
accessorKey: "createdAt",
|
|
20082
20032
|
header: "Created on",
|
|
20083
|
-
cell: ({ getValue }) =>
|
|
20084
|
-
const value = getValue();
|
|
20085
|
-
return value !== NULL_DATE ? dayjs17(value).format("YYYY-MM-DD") : "-";
|
|
20086
|
-
},
|
|
20033
|
+
cell: ({ getValue }) => formatTimestamp(getValue()),
|
|
20087
20034
|
enableSorting: true,
|
|
20088
20035
|
enableColumnFilter: true,
|
|
20089
20036
|
filterType: "date",
|
|
@@ -20095,8 +20042,8 @@ function getColumns17(options) {
|
|
|
20095
20042
|
// admin/views/organizations/details/apis/details-dialog.tsx
|
|
20096
20043
|
import { Dialog as Dialog10, Flex as Flex70, Skeleton as Skeleton6, Tabs, Text as Text51, toastManager as toastManager23 } from "@raystack/apsara";
|
|
20097
20044
|
|
|
20098
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20099
|
-
var digest75 = "
|
|
20045
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-vLc9U4CAjRZ4/sdk/admin/views/organizations/details/apis/apis.module.css.js
|
|
20046
|
+
var digest75 = "67ee52eb7755ff697549a356e439225f41d900770963472912544a3afb201d42";
|
|
20100
20047
|
var css75 = `._empty-state_r9k2f_1 {
|
|
20101
20048
|
height: 100%;
|
|
20102
20049
|
}
|
|
@@ -20176,9 +20123,9 @@ var apis_module_css_default3 = { "empty-state": "_empty-state_r9k2f_1", "emptySt
|
|
|
20176
20123
|
|
|
20177
20124
|
// admin/views/organizations/details/apis/details-dialog.tsx
|
|
20178
20125
|
import { useCallback as useCallback10, useEffect as useEffect18, useMemo as useMemo15 } from "react";
|
|
20179
|
-
import { useQuery as
|
|
20126
|
+
import { useQuery as useQuery22 } from "@connectrpc/connect-query";
|
|
20180
20127
|
import {
|
|
20181
|
-
FrontierServiceQueries as
|
|
20128
|
+
FrontierServiceQueries as FrontierServiceQueries34,
|
|
20182
20129
|
ListServiceUserProjectsRequestSchema,
|
|
20183
20130
|
ListServiceUserTokensRequestSchema
|
|
20184
20131
|
} from "@raystack/proton/frontier";
|
|
@@ -20208,7 +20155,7 @@ var ServiceUserDetailsDialog = ({
|
|
|
20208
20155
|
data: projects = [],
|
|
20209
20156
|
isLoading: isProjectLoading,
|
|
20210
20157
|
error: projectError
|
|
20211
|
-
} =
|
|
20158
|
+
} = useQuery22(FrontierServiceQueries34.listServiceUserProjects, projectsRequest, {
|
|
20212
20159
|
enabled: !!orgId && !!id,
|
|
20213
20160
|
select: (data) => data?.projects || []
|
|
20214
20161
|
});
|
|
@@ -20216,7 +20163,7 @@ var ServiceUserDetailsDialog = ({
|
|
|
20216
20163
|
data: tokens = [],
|
|
20217
20164
|
isLoading: isTokenLoading,
|
|
20218
20165
|
error: tokenError
|
|
20219
|
-
} =
|
|
20166
|
+
} = useQuery22(FrontierServiceQueries34.listServiceUserTokens, tokensRequest, {
|
|
20220
20167
|
enabled: !!orgId && !!id,
|
|
20221
20168
|
select: (data) => data?.tokens || []
|
|
20222
20169
|
});
|
|
@@ -20276,7 +20223,7 @@ var ServiceUserDetailsDialog = ({
|
|
|
20276
20223
|
gap: 2,
|
|
20277
20224
|
children: [
|
|
20278
20225
|
/* @__PURE__ */ jsx101(Text51, { weight: "medium", children: token.title }),
|
|
20279
|
-
/* @__PURE__ */ jsx101(Text51, { size: "micro", children:
|
|
20226
|
+
/* @__PURE__ */ jsx101(Text51, { size: "micro", children: formatTimestamp(token.createdAt) })
|
|
20280
20227
|
]
|
|
20281
20228
|
},
|
|
20282
20229
|
token.id
|
|
@@ -20476,10 +20423,10 @@ function OrganizationApisView() {
|
|
|
20476
20423
|
// admin/views/organizations/details/pat/index.tsx
|
|
20477
20424
|
import { DataTable as DataTable22, EmptyState as EmptyState21, Flex as Flex74 } from "@raystack/apsara";
|
|
20478
20425
|
import { useCallback as useCallback12, useContext as useContext24, useEffect as useEffect20, useMemo as useMemo18, useState as useState35 } from "react";
|
|
20479
|
-
import { useInfiniteQuery as useInfiniteQuery12, useQuery as
|
|
20426
|
+
import { useInfiniteQuery as useInfiniteQuery12, useQuery as useQuery24 } from "@connectrpc/connect-query";
|
|
20480
20427
|
import {
|
|
20481
20428
|
AdminServiceQueries as AdminServiceQueries20,
|
|
20482
|
-
FrontierServiceQueries as
|
|
20429
|
+
FrontierServiceQueries as FrontierServiceQueries36
|
|
20483
20430
|
} from "@raystack/proton/frontier";
|
|
20484
20431
|
|
|
20485
20432
|
// admin/views/organizations/details/pat/columns.tsx
|
|
@@ -20489,7 +20436,7 @@ import {
|
|
|
20489
20436
|
getAvatarColor as getAvatarColor13,
|
|
20490
20437
|
Text as Text52
|
|
20491
20438
|
} from "@raystack/apsara";
|
|
20492
|
-
import
|
|
20439
|
+
import dayjs4 from "dayjs";
|
|
20493
20440
|
import relativeTime2 from "dayjs/plugin/relativeTime";
|
|
20494
20441
|
|
|
20495
20442
|
// utils/index.ts
|
|
@@ -20501,8 +20448,8 @@ var getInitials = function(name = "") {
|
|
|
20501
20448
|
return initials;
|
|
20502
20449
|
};
|
|
20503
20450
|
|
|
20504
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20505
|
-
var digest76 = "
|
|
20451
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-IDAR33iyPjKv/sdk/admin/views/organizations/details/pat/pat.module.css.js
|
|
20452
|
+
var digest76 = "980760f4cc020f0592104e0046a907149df116265bfc9d86caa848fa06d9a148";
|
|
20506
20453
|
var css76 = `._empty-state_1xap9_1 {
|
|
20507
20454
|
height: 100%;
|
|
20508
20455
|
}
|
|
@@ -20566,8 +20513,7 @@ var pat_module_css_default = { "empty-state": "_empty-state_1xap9_1", "emptyStat
|
|
|
20566
20513
|
|
|
20567
20514
|
// admin/views/organizations/details/pat/columns.tsx
|
|
20568
20515
|
import { jsx as jsx103, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
20569
|
-
|
|
20570
|
-
var DATE_FORMAT = "DD MMM YYYY";
|
|
20516
|
+
dayjs4.extend(relativeTime2);
|
|
20571
20517
|
function getColumns18({
|
|
20572
20518
|
projectsMap
|
|
20573
20519
|
}) {
|
|
@@ -20626,10 +20572,7 @@ function getColumns18({
|
|
|
20626
20572
|
accessorKey: "createdAt",
|
|
20627
20573
|
header: "Created On",
|
|
20628
20574
|
styles: { header: { width: "152px" } },
|
|
20629
|
-
cell: ({
|
|
20630
|
-
const date = timestampToDayjs(row.original.createdAt);
|
|
20631
|
-
return date ? /* @__PURE__ */ jsx103(Text52, { children: date.format(DATE_FORMAT) }) : /* @__PURE__ */ jsx103(Text52, { children: "-" });
|
|
20632
|
-
},
|
|
20575
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx103(Text52, { children: formatTimestamp(getValue()) }),
|
|
20633
20576
|
enableSorting: true,
|
|
20634
20577
|
enableColumnFilter: true,
|
|
20635
20578
|
filterType: "date",
|
|
@@ -20639,13 +20582,7 @@ function getColumns18({
|
|
|
20639
20582
|
accessorKey: "expiresAt",
|
|
20640
20583
|
header: "Expiry Date",
|
|
20641
20584
|
styles: { header: { width: "152px" } },
|
|
20642
|
-
cell: ({
|
|
20643
|
-
const expiresAt = row.original.expiresAt;
|
|
20644
|
-
if (!expiresAt || isNullTimestamp(expiresAt))
|
|
20645
|
-
return /* @__PURE__ */ jsx103(Text52, { children: "-" });
|
|
20646
|
-
const date = timestampToDayjs(expiresAt);
|
|
20647
|
-
return date ? /* @__PURE__ */ jsx103(Text52, { children: date.format(DATE_FORMAT) }) : /* @__PURE__ */ jsx103(Text52, { children: "-" });
|
|
20648
|
-
},
|
|
20585
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx103(Text52, { children: formatTimestamp(getValue()) }),
|
|
20649
20586
|
enableSorting: true,
|
|
20650
20587
|
enableColumnFilter: true,
|
|
20651
20588
|
filterType: "date",
|
|
@@ -20679,13 +20616,13 @@ import {
|
|
|
20679
20616
|
Tabs as Tabs2,
|
|
20680
20617
|
Text as Text53
|
|
20681
20618
|
} from "@raystack/apsara";
|
|
20682
|
-
import { useQuery as
|
|
20619
|
+
import { useQuery as useQuery23 } from "@connectrpc/connect-query";
|
|
20683
20620
|
import {
|
|
20684
|
-
FrontierServiceQueries as
|
|
20621
|
+
FrontierServiceQueries as FrontierServiceQueries35
|
|
20685
20622
|
} from "@raystack/proton/frontier";
|
|
20686
20623
|
|
|
20687
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20688
|
-
var digest77 = "
|
|
20624
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-7GmbZsunbCPS/sdk/admin/views/organizations/details/pat/components/pat-details-dialog.module.css.js
|
|
20625
|
+
var digest77 = "f0d2080f304f25f0e5ba236b803560309e98152c516bccb9fb54dfc782ede49e";
|
|
20689
20626
|
var css77 = `._details-dialog_1dwlo_1 {
|
|
20690
20627
|
width: 100%;
|
|
20691
20628
|
max-width: 400px;
|
|
@@ -20772,8 +20709,8 @@ function PatDetailsDialog({
|
|
|
20772
20709
|
() => scopeProjectIds.map((id) => projectsMap[id]).filter((p) => Boolean(p)),
|
|
20773
20710
|
[scopeProjectIds, projectsMap]
|
|
20774
20711
|
);
|
|
20775
|
-
const { data: rolesData, isLoading: isRolesLoading } =
|
|
20776
|
-
|
|
20712
|
+
const { data: rolesData, isLoading: isRolesLoading } = useQuery23(
|
|
20713
|
+
FrontierServiceQueries35.listRolesForPAT,
|
|
20777
20714
|
{ scopes: [SCOPES.ORG, SCOPES.PROJECT] },
|
|
20778
20715
|
{ enabled: open }
|
|
20779
20716
|
);
|
|
@@ -20876,8 +20813,8 @@ function PatDetailsDialog({
|
|
|
20876
20813
|
] }) });
|
|
20877
20814
|
}
|
|
20878
20815
|
|
|
20879
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20880
|
-
var digest78 = "
|
|
20816
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2387-YFtKjVTZLKJD/sdk/admin/views/organizations/details/pat/pat.module.css.js
|
|
20817
|
+
var digest78 = "d8d06dec9ea736400a1e67e0def82aa8701529e43e61c92a3b2490930a87c193";
|
|
20881
20818
|
var css78 = `._empty-state_1xap9_1 {
|
|
20882
20819
|
height: 100%;
|
|
20883
20820
|
}
|
|
@@ -21038,8 +20975,8 @@ function OrganizationPatView() {
|
|
|
21038
20975
|
retryDelay: 1e3
|
|
21039
20976
|
}
|
|
21040
20977
|
);
|
|
21041
|
-
const { data: projects = [] } =
|
|
21042
|
-
|
|
20978
|
+
const { data: projects = [] } = useQuery24(
|
|
20979
|
+
FrontierServiceQueries36.listOrganizationProjects,
|
|
21043
20980
|
{ id: organizationId, state: "", withMemberCount: false },
|
|
21044
20981
|
{
|
|
21045
20982
|
enabled: !!organizationId,
|