@raystack/frontier 0.115.0 → 0.116.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.js +1179 -1183
- package/admin/dist/index.mjs +1075 -1079
- package/client/dist/index.d.ts +5 -1
- package/client/dist/index.js +1437 -1301
- package/client/dist/index.mjs +828 -691
- package/package.json +2 -2
package/client/dist/index.mjs
CHANGED
|
@@ -355,8 +355,8 @@ import {
|
|
|
355
355
|
} from "@raystack/apsara";
|
|
356
356
|
import "react-image-crop/dist/ReactCrop.css";
|
|
357
357
|
|
|
358
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
359
|
-
var digest = "
|
|
358
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-frVfmTta3Rww/sdk/client/components/image-upload/image-upload.module.css.js
|
|
359
|
+
var digest = "f7506e1165d4a7a6e80f86ec90e0c26bee32ca1a84cab1afb534ddde72c9244f";
|
|
360
360
|
var css = `._iconButton_1ifr2_1 {
|
|
361
361
|
position: relative;
|
|
362
362
|
width: var(--rs-space-14);
|
|
@@ -667,8 +667,8 @@ function ImageUpload(_a) {
|
|
|
667
667
|
// client/components/view-container/view-container.tsx
|
|
668
668
|
import { Flex as Flex2 } from "@raystack/apsara";
|
|
669
669
|
|
|
670
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
671
|
-
var digest2 = "
|
|
670
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-LxEzE1zaEC3V/sdk/client/components/view-container/view-container.module.css.js
|
|
671
|
+
var digest2 = "45c6aea587ea2744acccac2311c30a2f8af20760b498f77fa39a35e227de86e6";
|
|
672
672
|
var css2 = `._container_13qo0_1 {
|
|
673
673
|
background-color: var(--rs-color-background-base-primary);
|
|
674
674
|
width: 100%;
|
|
@@ -730,8 +730,8 @@ function ViewHeader(_a) {
|
|
|
730
730
|
import { Flex as Flex4 } from "@raystack/apsara";
|
|
731
731
|
import { cx as cx2 } from "class-variance-authority";
|
|
732
732
|
|
|
733
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
734
|
-
var digest3 = "
|
|
733
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-15c0tXHvinsN/sdk/client/components/auth-container/auth-container.module.css.js
|
|
734
|
+
var digest3 = "15f59aa84ced9773e0d87f194cc5b60b8428313332deec11a31bc1f1f45286c7";
|
|
735
735
|
var css3 = `._container_1088g_1 {
|
|
736
736
|
min-width: 220px;
|
|
737
737
|
max-width: 480px;
|
|
@@ -778,8 +778,8 @@ import { Flex as Flex5, Headline as Headline2 } from "@raystack/apsara";
|
|
|
778
778
|
// client/assets/logo.png
|
|
779
779
|
var logo_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAABZvElEQVR4nNS9CZAeR3Ymlq/67xt9X2igL6DRQIMASIInyAHBIXjNDGdGszMaWdbE2pJshxW2YqW1HCGtHCs55JD2sLwrybK1G7JXVnjlWB07M9JoODMYDs8BSfAACeJGA+gD3Y1G3/f9/+n4qyoz38t8WX/9ALWxW0Gi68/KyvPl9773Misz83Nf/4GQUkohpRBCivy/Ivyp7tX/IKI4IgoF4VzhUxDSCoku4ALd38DHccMleNNg85JJiTsh+fSZQF9knC4U/y4TH7hyqmaXbra+7jCp0UAnPtNr4BYpugETEt5DFKLvAUQmEqBIqvL/KpGSOgMZyp2AnBIrkG7lTMbxy2CXL07QCVfSDLHscpUFq94yKoU06ThNzXZMPlxKOz36Ixo/KIa0ZEW6tXYSYwuARibTi5J2pJS0iVA4I0P2CEItg1IjIfQPoF7Sf6Ulkbo0IAKI65cvD+gRFd7LfBtnsFSFgoXESxjcEiqAKSVt8XhISTZceMNFTsGl6hIw/0qn/UBIKazGEJxYGKxC4Xa/kh7VHSFJv5KyodgRkgM44c6IlyyoC52fCQVrDKrBYNfXh9PR21K67anHLu27OH8X2HAfhZFCcJIyF4ZGiCWVSOWbIZQr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eQWJODqYoLJyayqL4bFs4kKey4wYnk4J0+ISH45twqjAKf99hKxjUKGwJTXwfhvGKzM2QQUHpg0a2iZIK4EM4fFRlBAZgO7QCQZSjIu/Kp55XgnrP6SB0jEt05js6CsuMEQk8Grt4zphLdrj0qXkP6/FuEMWNSLaYjBVWQOIlGUUFc49pid7w1JiXdl5I67Ep2pYQIu+Ogna4v1UgO1Bat7aESzpBDEozgiAnM6qt6yPJyxjvsZCBwKfTak9DiFXYYpJq57tAILsXJOcXAKdi3vlOd/9tz7oIcLWbxm0LOSQnr9JpMKTO/NpQulhbAIRUukiR2ak73W93M5kCpoIYl8bmcPR7Y4YDEHe2b6qa7yMwOcT3QSxoWqqihxlNd9UeSGZuEAzNUX4+dUCWqRKYsRQkrI9xvSZWlIQpbRdCHD9QQnMAG87ybtY35jInIOE4kCZoOtbOSDhpCi0iQB6h3CVWmlLrQUZjsinoSvJD3WpP87Iuj+1FdXSikao8xxKaHwcgc1I/iI4LQNPHxvhXWQZqAQTDHjzQ7acFBg7dZpe2B5ByGrAbWc+ggev4JvGdnrB2uETd6WyQJR1EICIo3ZUlYFULX3FaYC/jQXW0pNN1BrrlVzGxvrH1SiLxwlZkIHQbm7N/MGHHJwyJDOBzSAPAQyH2yEfrZdjVJQD27gX+hoj+cKe/JAxoif4aafLJpZqORXIHHuXLZQnC8drrqRK7MyTil4bTkL28SbmwXEpGCIBUk7zsQiYZgkg7gwg8KI6KauKzGpCGEzaCNDoiUPrAIkBqGOD/DwAA//8N10+QXsh1VAAAAABJRU5ErkJggg==";
|
|
780
780
|
|
|
781
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
782
|
-
var digest4 = "
|
|
781
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-tPlp6euzB5rk/sdk/client/components/auth-header/auth-header.module.css.js
|
|
782
|
+
var digest4 = "66dabb749125f07e87dbc1ad0ee81cc22b8ef3e3331683c4c959cf441ef1ba68";
|
|
783
783
|
var css4 = `._container_15i8g_1 {
|
|
784
784
|
min-width: 220px;
|
|
785
785
|
max-width: 100%;
|
|
@@ -1428,8 +1428,8 @@ var shouldShowComponent = (permissions = {}, permisionsRequired) => {
|
|
|
1428
1428
|
return permissions[permisionsRequired] === true;
|
|
1429
1429
|
};
|
|
1430
1430
|
|
|
1431
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1432
|
-
var digest5 = "
|
|
1431
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-zdo1EY9L4P3A/sdk/client/components/auth-oidc-button/auth-oidc-button.module.css.js
|
|
1432
|
+
var digest5 = "b2619b217c677ec9c6e66fb81b7a5a41edff8f4749eaed3384e1a5bf5d176749";
|
|
1433
1433
|
var css5 = `._button_wx9jp_1 {
|
|
1434
1434
|
width: 100%;
|
|
1435
1435
|
}
|
|
@@ -1488,8 +1488,8 @@ import isEmail from "validator/lib/isEmail";
|
|
|
1488
1488
|
import { useMutation as useMutation2 } from "@connectrpc/connect-query";
|
|
1489
1489
|
import { FrontierServiceQueries as FrontierServiceQueries3 } from "@raystack/proton/frontier";
|
|
1490
1490
|
|
|
1491
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1492
|
-
var digest6 = "
|
|
1491
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-RZIzGUUlIIMy/sdk/client/views/auth/magic-link/magic-link-view.module.css.js
|
|
1492
|
+
var digest6 = "e64a613f99b916875c677c21bd1f561f6599035a65f2cff914f87a01124e8fb8";
|
|
1493
1493
|
var css6 = `._form_f3bzk_1 {
|
|
1494
1494
|
width: 100%;
|
|
1495
1495
|
display: flex;
|
|
@@ -1631,8 +1631,8 @@ var MagicLinkView = (_a) => {
|
|
|
1631
1631
|
] }));
|
|
1632
1632
|
};
|
|
1633
1633
|
|
|
1634
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1635
|
-
var digest7 = "
|
|
1634
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-l7ECXBH0rZGG/sdk/client/views/auth/sign-in/sign-in-view.module.css.js
|
|
1635
|
+
var digest7 = "6933ff89e2840065e17e9cac4990c663b30315547de3c30695ea2d4e8dfa9714";
|
|
1636
1636
|
var css7 = `._redirectLink_jq3hl_1 {
|
|
1637
1637
|
color: var(--rs-color-foreground-accent-primary);
|
|
1638
1638
|
}
|
|
@@ -1733,8 +1733,8 @@ import { useCallback as useCallback4 } from "react";
|
|
|
1733
1733
|
import { useMutation as useMutation4, useQuery as useQuery4 } from "@connectrpc/connect-query";
|
|
1734
1734
|
import { FrontierServiceQueries as FrontierServiceQueries5 } from "@raystack/proton/frontier";
|
|
1735
1735
|
|
|
1736
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1737
|
-
var digest8 = "
|
|
1736
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-3SSth64Ww12Q/sdk/client/views/auth/sign-up/sign-up-view.module.css.js
|
|
1737
|
+
var digest8 = "0d57e0af43fe5a8a3e5dbccf5380ef1230da143d6e904b6382050286f67391b6";
|
|
1738
1738
|
var css8 = `._redirectLink_jq3hl_1 {
|
|
1739
1739
|
color: var(--rs-color-foreground-accent-primary);
|
|
1740
1740
|
}
|
|
@@ -1838,8 +1838,8 @@ import {
|
|
|
1838
1838
|
import { useMutation as useMutation5 } from "@connectrpc/connect-query";
|
|
1839
1839
|
import { FrontierServiceQueries as FrontierServiceQueries6 } from "@raystack/proton/frontier";
|
|
1840
1840
|
|
|
1841
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1842
|
-
var digest9 = "
|
|
1841
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-3cvGxT3hpzQW/sdk/client/views/auth/magic-link-verify/magic-link-verify-view.module.css.js
|
|
1842
|
+
var digest9 = "2f72c94da873c5f729250696070f59683a0032899103a70029a67675cb291c90";
|
|
1843
1843
|
var css9 = `._button_1oqz9_1 {
|
|
1844
1844
|
width: 100%;
|
|
1845
1845
|
}
|
|
@@ -2004,8 +2004,8 @@ import { create as create4 } from "@bufbuild/protobuf";
|
|
|
2004
2004
|
// client/assets/check-circle.svg
|
|
2005
2005
|
var check_circle_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <g id="Check circle">%0A <path id="Vector" fill-rule="evenodd" clip-rule="evenodd"%0A d="M1.5 8C1.5 4.41 4.41 1.5 8 1.5C11.59 1.5 14.5 4.41 14.5 8C14.5 11.59 11.59 14.5 8 14.5C4.41 14.5 1.5 11.59 1.5 8ZM10.4067 6.79067C10.4467 6.73737 10.4756 6.67661 10.4918 6.61197C10.508 6.54732 10.5111 6.48009 10.5009 6.41424C10.4907 6.34838 10.4675 6.28522 10.4326 6.22847C10.3976 6.17171 10.3517 6.12252 10.2975 6.08377C10.2433 6.04502 10.1819 6.0175 10.1169 6.00282C10.0519 5.98814 9.98459 5.98661 9.91899 5.99831C9.85338 6.01001 9.79078 6.0347 9.73485 6.07094C9.67893 6.10718 9.63081 6.15423 9.59333 6.20933L7.436 9.22933L6.35333 8.14667C6.25855 8.05835 6.13319 8.01026 6.00365 8.01255C5.87412 8.01484 5.75053 8.06731 5.65892 8.15892C5.56731 8.25053 5.51484 8.37412 5.51255 8.50365C5.51026 8.63319 5.55835 8.75855 5.64667 8.85333L7.14667 10.3533C7.19799 10.4046 7.25987 10.4441 7.32799 10.4691C7.39612 10.4941 7.46886 10.5039 7.54118 10.498C7.61349 10.492 7.68364 10.4704 7.74675 10.4346C7.80987 10.3988 7.86443 10.3497 7.90667 10.2907L10.4067 6.79067Z"%0A fill="%2330A46C" />%0A </g>%0A</svg>';
|
|
2006
2006
|
|
|
2007
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2008
|
-
var digest10 = "
|
|
2007
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-6dnQuV48AEai/sdk/client/views/auth/subscribe/subscribe-view.module.css.js
|
|
2008
|
+
var digest10 = "f38d0e29f9c45d9f7fffa3f713479b6c4e595751b2679c904a3ffb4b00f09065";
|
|
2009
2009
|
var css10 = `._button_10v8x_1 {
|
|
2010
2010
|
width: 100%;
|
|
2011
2011
|
}
|
|
@@ -2346,8 +2346,8 @@ function usePreferences({
|
|
|
2346
2346
|
};
|
|
2347
2347
|
}
|
|
2348
2348
|
|
|
2349
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2350
|
-
var digest11 = "
|
|
2349
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-kAhObk9MVmla/sdk/client/views/auth/updates/updates-view.module.css.js
|
|
2350
|
+
var digest11 = "514d23b095ba3e3702973edf17dbd81ebe750b86f5f45a13e30f8d9d6c2118f3";
|
|
2351
2351
|
var css11 = `._button_zt41c_1 {
|
|
2352
2352
|
width: 100%;
|
|
2353
2353
|
}
|
|
@@ -2454,20 +2454,22 @@ var UpdatesView = ({
|
|
|
2454
2454
|
};
|
|
2455
2455
|
|
|
2456
2456
|
// client/views/general/general-view.tsx
|
|
2457
|
-
import { useEffect as
|
|
2457
|
+
import { useEffect as useEffect4, useMemo as useMemo6, useState as useState8 } from "react";
|
|
2458
2458
|
import { yupResolver as yupResolver5 } from "@hookform/resolvers/yup";
|
|
2459
2459
|
import { useForm as useForm5 } from "react-hook-form";
|
|
2460
2460
|
import * as yup5 from "yup";
|
|
2461
|
-
import { create as
|
|
2461
|
+
import { create as create9 } from "@bufbuild/protobuf";
|
|
2462
2462
|
import {
|
|
2463
2463
|
createConnectQueryKey as createConnectQueryKey3,
|
|
2464
2464
|
useMutation as useMutation9,
|
|
2465
|
+
useQuery as useQuery8,
|
|
2465
2466
|
useTransport as useTransport3
|
|
2466
2467
|
} from "@connectrpc/connect-query";
|
|
2467
2468
|
import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
|
|
2468
2469
|
import {
|
|
2469
|
-
FrontierServiceQueries as
|
|
2470
|
-
UpdateOrganizationRequestSchema
|
|
2470
|
+
FrontierServiceQueries as FrontierServiceQueries12,
|
|
2471
|
+
UpdateOrganizationRequestSchema,
|
|
2472
|
+
CheckOrganizationDeleteRequestSchema
|
|
2471
2473
|
} from "@raystack/proton/frontier";
|
|
2472
2474
|
import {
|
|
2473
2475
|
Button as Button8,
|
|
@@ -2477,7 +2479,7 @@ import {
|
|
|
2477
2479
|
Flex as Flex13,
|
|
2478
2480
|
Field as Field3,
|
|
2479
2481
|
Input as Input5,
|
|
2480
|
-
toastManager as
|
|
2482
|
+
toastManager as toastManager4
|
|
2481
2483
|
} from "@raystack/apsara";
|
|
2482
2484
|
|
|
2483
2485
|
// client/hooks/usePermissions.ts
|
|
@@ -2597,15 +2599,67 @@ var useTerminology = () => {
|
|
|
2597
2599
|
return useContext2(TerminologyContext);
|
|
2598
2600
|
};
|
|
2599
2601
|
|
|
2602
|
+
// client/utils/delete-blockers.ts
|
|
2603
|
+
var BLOCKER_INSTRUCTIONS = {
|
|
2604
|
+
ACTIVE_SUBSCRIPTION: () => "Please downgrade the subscription to the standard plan",
|
|
2605
|
+
UNPAID_INVOICE: (count) => count > 1 ? `Please pay the ${count} open invoices from the billing page` : "Please pay the open invoice from the billing page",
|
|
2606
|
+
NEGATIVE_TOKEN_BALANCE: () => "Your token balance is negative. Please add tokens from the Tokens page to bring it back up, or pay the invoice when it arrives, and then you can delete"
|
|
2607
|
+
};
|
|
2608
|
+
var GENERIC_DELETE_BLOCKED_MESSAGE = "Something is blocking the delete right now. Please try again later or contact support.";
|
|
2609
|
+
function instructionLines(blockers) {
|
|
2610
|
+
var _a;
|
|
2611
|
+
const counts2 = /* @__PURE__ */ new Map();
|
|
2612
|
+
for (const blocker of blockers) {
|
|
2613
|
+
counts2.set(blocker.type, ((_a = counts2.get(blocker.type)) != null ? _a : 0) + 1);
|
|
2614
|
+
}
|
|
2615
|
+
const lines = [];
|
|
2616
|
+
let hasUnknown = false;
|
|
2617
|
+
for (const [type, count] of counts2) {
|
|
2618
|
+
const instruction = BLOCKER_INSTRUCTIONS[type];
|
|
2619
|
+
if (instruction) {
|
|
2620
|
+
lines.push(instruction(count));
|
|
2621
|
+
} else {
|
|
2622
|
+
hasUnknown = true;
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
if (hasUnknown) {
|
|
2626
|
+
lines.push(GENERIC_DELETE_BLOCKED_MESSAGE);
|
|
2627
|
+
}
|
|
2628
|
+
return lines;
|
|
2629
|
+
}
|
|
2630
|
+
function deleteBlockedDescription(err) {
|
|
2631
|
+
for (const detail of err.details) {
|
|
2632
|
+
if (!("type" in detail) || detail.type !== "google.rpc.PreconditionFailure") {
|
|
2633
|
+
continue;
|
|
2634
|
+
}
|
|
2635
|
+
const debug = detail.debug;
|
|
2636
|
+
if (typeof debug !== "object" || debug === null) {
|
|
2637
|
+
continue;
|
|
2638
|
+
}
|
|
2639
|
+
const violations = debug.violations;
|
|
2640
|
+
if (!Array.isArray(violations)) {
|
|
2641
|
+
continue;
|
|
2642
|
+
}
|
|
2643
|
+
const blockers = violations.filter(
|
|
2644
|
+
(violation) => typeof violation === "object" && violation !== null && typeof violation.type === "string"
|
|
2645
|
+
);
|
|
2646
|
+
const lines = instructionLines(blockers);
|
|
2647
|
+
if (lines.length > 0) {
|
|
2648
|
+
return lines.join(". ");
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
return GENERIC_DELETE_BLOCKED_MESSAGE;
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2600
2654
|
// client/views/general/components/delete-organization-dialog.tsx
|
|
2601
2655
|
import { useState as useState7 } from "react";
|
|
2602
2656
|
import { yupResolver as yupResolver4 } from "@hookform/resolvers/yup";
|
|
2603
2657
|
import { useForm as useForm4 } from "react-hook-form";
|
|
2604
2658
|
import * as yup4 from "yup";
|
|
2605
|
-
import { create as
|
|
2659
|
+
import { create as create8 } from "@bufbuild/protobuf";
|
|
2606
2660
|
import { useMutation as useMutation8 } from "@connectrpc/connect-query";
|
|
2607
2661
|
import {
|
|
2608
|
-
FrontierServiceQueries as
|
|
2662
|
+
FrontierServiceQueries as FrontierServiceQueries11,
|
|
2609
2663
|
DeleteOrganizationRequestSchema
|
|
2610
2664
|
} from "@raystack/proton/frontier";
|
|
2611
2665
|
import {
|
|
@@ -2616,8 +2670,59 @@ import {
|
|
|
2616
2670
|
Flex as Flex12,
|
|
2617
2671
|
Input as Input4,
|
|
2618
2672
|
Text as Text9,
|
|
2619
|
-
toastManager as
|
|
2673
|
+
toastManager as toastManager3
|
|
2620
2674
|
} from "@raystack/apsara";
|
|
2675
|
+
|
|
2676
|
+
// client/hooks/useTokens.ts
|
|
2677
|
+
import { useMemo as useMemo5, useEffect as useEffect3 } from "react";
|
|
2678
|
+
import { useQuery as useQuery7 } from "@connectrpc/connect-query";
|
|
2679
|
+
import { create as create7 } from "@bufbuild/protobuf";
|
|
2680
|
+
import { FrontierServiceQueries as FrontierServiceQueries10, GetBillingBalanceRequestSchema } from "@raystack/proton/frontier";
|
|
2681
|
+
import { toastManager as toastManager2 } from "@raystack/apsara";
|
|
2682
|
+
var useTokens = (options = {}) => {
|
|
2683
|
+
var _a, _b, _c;
|
|
2684
|
+
const { billingAccount } = useFrontier();
|
|
2685
|
+
const {
|
|
2686
|
+
data,
|
|
2687
|
+
isLoading: isTokensLoading,
|
|
2688
|
+
isFetching: isTokensFetching,
|
|
2689
|
+
error,
|
|
2690
|
+
refetch
|
|
2691
|
+
} = useQuery7(
|
|
2692
|
+
FrontierServiceQueries10.getBillingBalance,
|
|
2693
|
+
create7(GetBillingBalanceRequestSchema, {
|
|
2694
|
+
id: (_a = billingAccount == null ? void 0 : billingAccount.id) != null ? _a : ""
|
|
2695
|
+
}),
|
|
2696
|
+
{
|
|
2697
|
+
enabled: !!(billingAccount == null ? void 0 : billingAccount.id) && ((_b = options.enabled) != null ? _b : true),
|
|
2698
|
+
retry: false
|
|
2699
|
+
}
|
|
2700
|
+
);
|
|
2701
|
+
useEffect3(() => {
|
|
2702
|
+
if (error) {
|
|
2703
|
+
console.error(error);
|
|
2704
|
+
toastManager2.add({
|
|
2705
|
+
title: "Unable to fetch balance",
|
|
2706
|
+
type: "error"
|
|
2707
|
+
});
|
|
2708
|
+
}
|
|
2709
|
+
}, [error]);
|
|
2710
|
+
const tokenBalance = useMemo5(
|
|
2711
|
+
() => {
|
|
2712
|
+
var _a2;
|
|
2713
|
+
return BigInt(((_a2 = data == null ? void 0 : data.balance) == null ? void 0 : _a2.amount) || "0");
|
|
2714
|
+
},
|
|
2715
|
+
[(_c = data == null ? void 0 : data.balance) == null ? void 0 : _c.amount]
|
|
2716
|
+
);
|
|
2717
|
+
return {
|
|
2718
|
+
tokenBalance,
|
|
2719
|
+
isTokensLoading,
|
|
2720
|
+
isTokensFetching,
|
|
2721
|
+
fetchTokenBalance: refetch
|
|
2722
|
+
};
|
|
2723
|
+
};
|
|
2724
|
+
|
|
2725
|
+
// client/views/general/components/delete-organization-dialog.tsx
|
|
2621
2726
|
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2622
2727
|
var deleteOrgSchema = yup4.object({
|
|
2623
2728
|
title: yup4.string()
|
|
@@ -2633,8 +2738,9 @@ var DeleteOrganizationDialog = ({
|
|
|
2633
2738
|
const orgLabel = t.organization({ case: "capital" });
|
|
2634
2739
|
const orgLabelLower = t.organization({ case: "lower" });
|
|
2635
2740
|
const [isAcknowledged, setIsAcknowledged] = useState7(false);
|
|
2741
|
+
const { tokenBalance, isTokensFetching } = useTokens({ enabled: open });
|
|
2636
2742
|
const { mutateAsync: deleteOrganization } = useMutation8(
|
|
2637
|
-
|
|
2743
|
+
FrontierServiceQueries11.deleteOrganization
|
|
2638
2744
|
);
|
|
2639
2745
|
const {
|
|
2640
2746
|
register,
|
|
@@ -2657,20 +2763,23 @@ var DeleteOrganizationDialog = ({
|
|
|
2657
2763
|
return;
|
|
2658
2764
|
}
|
|
2659
2765
|
try {
|
|
2660
|
-
const req =
|
|
2766
|
+
const req = create8(DeleteOrganizationRequestSchema, {
|
|
2661
2767
|
id: organization.id
|
|
2662
2768
|
});
|
|
2663
2769
|
yield deleteOrganization(req);
|
|
2664
|
-
|
|
2770
|
+
toastManager3.add({
|
|
2665
2771
|
title: `${orgLabel} deleted`,
|
|
2666
2772
|
type: "success"
|
|
2667
2773
|
});
|
|
2668
2774
|
onDeleteSuccess == null ? void 0 : onDeleteSuccess();
|
|
2669
2775
|
} catch (error) {
|
|
2670
2776
|
handleConnectError(error, {
|
|
2671
|
-
PermissionDenied: () =>
|
|
2672
|
-
|
|
2673
|
-
|
|
2777
|
+
PermissionDenied: () => toastManager3.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
2778
|
+
// the server names what blocks the delete; show the matching
|
|
2779
|
+
// instructions instead of the raw server text
|
|
2780
|
+
FailedPrecondition: (err) => toastManager3.add({ title: `Cannot delete this ${orgLabelLower} yet`, description: deleteBlockedDescription(err), type: "error" }),
|
|
2781
|
+
NotFound: () => toastManager3.add({ title: "Not found", description: `This ${orgLabelLower} no longer exists.`, type: "error" }),
|
|
2782
|
+
Default: () => toastManager3.add({ title: "Something went wrong", description: "Please try again later or contact support.", type: "error" })
|
|
2674
2783
|
});
|
|
2675
2784
|
}
|
|
2676
2785
|
});
|
|
@@ -2686,6 +2795,11 @@ var DeleteOrganizationDialog = ({
|
|
|
2686
2795
|
organization == null ? void 0 : organization.title,
|
|
2687
2796
|
"."
|
|
2688
2797
|
] }),
|
|
2798
|
+
tokenBalance > 0 ? /* @__PURE__ */ jsxs11(Text9, { size: "small", variant: "danger", children: [
|
|
2799
|
+
"This ",
|
|
2800
|
+
orgLabelLower,
|
|
2801
|
+
" still has unused tokens, and deleting it forfeits them. If any of them were purchased, our support team will reach out to you to settle them."
|
|
2802
|
+
] }) : null,
|
|
2689
2803
|
/* @__PURE__ */ jsx15(
|
|
2690
2804
|
Field2,
|
|
2691
2805
|
{
|
|
@@ -2740,7 +2854,7 @@ var DeleteOrganizationDialog = ({
|
|
|
2740
2854
|
variant: "solid",
|
|
2741
2855
|
color: "danger",
|
|
2742
2856
|
type: "submit",
|
|
2743
|
-
disabled: !deleteTitle || !isAcknowledged,
|
|
2857
|
+
disabled: !deleteTitle || !isAcknowledged || isSubmitting || isTokensFetching,
|
|
2744
2858
|
"data-test-id": "frontier-sdk-delete-organization-btn",
|
|
2745
2859
|
loading: isSubmitting,
|
|
2746
2860
|
loaderText: "Deleting...",
|
|
@@ -2751,8 +2865,8 @@ var DeleteOrganizationDialog = ({
|
|
|
2751
2865
|
] }) }) });
|
|
2752
2866
|
};
|
|
2753
2867
|
|
|
2754
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2755
|
-
var digest12 = "
|
|
2868
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-b8nA08H1QEvx/sdk/client/views/general/general-view.module.css.js
|
|
2869
|
+
var digest12 = "52c98f3c3f06fd3ca350249ddd4cf308871cce06411584d8244612b5098a2724";
|
|
2756
2870
|
var css12 = `._section_29fut_1 {
|
|
2757
2871
|
padding: var(--rs-space-9) 0;
|
|
2758
2872
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2791,7 +2905,7 @@ var generalSchema = yup5.object({
|
|
|
2791
2905
|
name: yup5.string().required("URL is a required field")
|
|
2792
2906
|
}).required();
|
|
2793
2907
|
function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
2794
|
-
var _a, _b, _c;
|
|
2908
|
+
var _a, _b, _c, _d;
|
|
2795
2909
|
const t = useTerminology();
|
|
2796
2910
|
const {
|
|
2797
2911
|
activeOrganization: organization,
|
|
@@ -2801,7 +2915,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
2801
2915
|
const queryClient2 = useQueryClient3();
|
|
2802
2916
|
const transport = useTransport3();
|
|
2803
2917
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
2804
|
-
const listOfPermissionsToCheck =
|
|
2918
|
+
const listOfPermissionsToCheck = useMemo6(() => {
|
|
2805
2919
|
return [
|
|
2806
2920
|
{
|
|
2807
2921
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -2817,7 +2931,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
2817
2931
|
listOfPermissionsToCheck,
|
|
2818
2932
|
!!(organization == null ? void 0 : organization.id)
|
|
2819
2933
|
);
|
|
2820
|
-
const { canUpdateWorkspace, canDeleteWorkspace } =
|
|
2934
|
+
const { canUpdateWorkspace, canDeleteWorkspace } = useMemo6(() => {
|
|
2821
2935
|
return {
|
|
2822
2936
|
canUpdateWorkspace: shouldShowComponent(
|
|
2823
2937
|
permissions,
|
|
@@ -2830,22 +2944,40 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
2830
2944
|
};
|
|
2831
2945
|
}, [permissions, resource]);
|
|
2832
2946
|
const isLoading = !(organization == null ? void 0 : organization.id) || isActiveOrganizationLoading || isPermissionsFetching;
|
|
2947
|
+
const { data: deleteCheck, isLoading: isDeleteCheckLoading } = useQuery8(
|
|
2948
|
+
FrontierServiceQueries12.checkOrganizationDelete,
|
|
2949
|
+
create9(CheckOrganizationDeleteRequestSchema, {
|
|
2950
|
+
id: (_a = organization == null ? void 0 : organization.id) != null ? _a : ""
|
|
2951
|
+
}),
|
|
2952
|
+
{
|
|
2953
|
+
enabled: canDeleteWorkspace && !!(organization == null ? void 0 : organization.id),
|
|
2954
|
+
retry: false
|
|
2955
|
+
}
|
|
2956
|
+
);
|
|
2957
|
+
const isDeleteBlocked = !!deleteCheck && !deleteCheck.canDelete;
|
|
2958
|
+
const blockerLines = useMemo6(
|
|
2959
|
+
() => {
|
|
2960
|
+
var _a2;
|
|
2961
|
+
return instructionLines((_a2 = deleteCheck == null ? void 0 : deleteCheck.blockers) != null ? _a2 : []);
|
|
2962
|
+
},
|
|
2963
|
+
[deleteCheck]
|
|
2964
|
+
);
|
|
2833
2965
|
const { mutateAsync: updateOrganization } = useMutation9(
|
|
2834
|
-
|
|
2966
|
+
FrontierServiceQueries12.updateOrganization,
|
|
2835
2967
|
{
|
|
2836
2968
|
onSuccess: (data) => {
|
|
2837
2969
|
if (data.organization) {
|
|
2838
2970
|
setActiveOrganization(data.organization);
|
|
2839
2971
|
queryClient2.invalidateQueries({
|
|
2840
2972
|
queryKey: createConnectQueryKey3({
|
|
2841
|
-
schema:
|
|
2973
|
+
schema: FrontierServiceQueries12.getOrganization,
|
|
2842
2974
|
transport,
|
|
2843
2975
|
input: { id: (organization == null ? void 0 : organization.id) || "" },
|
|
2844
2976
|
cardinality: "finite"
|
|
2845
2977
|
})
|
|
2846
2978
|
});
|
|
2847
2979
|
}
|
|
2848
|
-
|
|
2980
|
+
toastManager4.add({
|
|
2849
2981
|
title: `Updated ${t.organization({ case: "lower" })}`,
|
|
2850
2982
|
type: "success"
|
|
2851
2983
|
});
|
|
@@ -2862,8 +2994,8 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
2862
2994
|
} = useForm5({
|
|
2863
2995
|
resolver: yupResolver5(generalSchema)
|
|
2864
2996
|
});
|
|
2865
|
-
const URL_PREFIX = urlPrefix != null ? urlPrefix : ((
|
|
2866
|
-
|
|
2997
|
+
const URL_PREFIX = urlPrefix != null ? urlPrefix : ((_b = window == null ? void 0 : window.location) == null ? void 0 : _b.host) + "/";
|
|
2998
|
+
useEffect4(() => {
|
|
2867
2999
|
reset(organization);
|
|
2868
3000
|
}, [organization, reset]);
|
|
2869
3001
|
function onUpdateSubmit(data) {
|
|
@@ -2871,7 +3003,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
2871
3003
|
if (!(organization == null ? void 0 : organization.id))
|
|
2872
3004
|
return;
|
|
2873
3005
|
try {
|
|
2874
|
-
const req =
|
|
3006
|
+
const req = create9(UpdateOrganizationRequestSchema, {
|
|
2875
3007
|
id: organization.id,
|
|
2876
3008
|
body: {
|
|
2877
3009
|
title: data.title,
|
|
@@ -2882,11 +3014,11 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
2882
3014
|
yield updateOrganization(req);
|
|
2883
3015
|
} catch (error) {
|
|
2884
3016
|
handleConnectError(error, {
|
|
2885
|
-
AlreadyExists: () =>
|
|
2886
|
-
InvalidArgument: (err) =>
|
|
2887
|
-
PermissionDenied: () =>
|
|
2888
|
-
NotFound: (err) =>
|
|
2889
|
-
Default: (err) =>
|
|
3017
|
+
AlreadyExists: () => toastManager4.add({ title: `${t.organization({ case: "capital" })} already exists`, type: "error" }),
|
|
3018
|
+
InvalidArgument: (err) => toastManager4.add({ title: "Invalid input", description: err.message, type: "error" }),
|
|
3019
|
+
PermissionDenied: () => toastManager4.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
3020
|
+
NotFound: (err) => toastManager4.add({ title: "Not found", description: err.message, type: "error" }),
|
|
3021
|
+
Default: (err) => toastManager4.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
2890
3022
|
});
|
|
2891
3023
|
}
|
|
2892
3024
|
});
|
|
@@ -2931,7 +3063,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
2931
3063
|
Field3,
|
|
2932
3064
|
{
|
|
2933
3065
|
label: `${orgLabel} name`,
|
|
2934
|
-
error: errors.title && String((
|
|
3066
|
+
error: errors.title && String((_c = errors.title) == null ? void 0 : _c.message),
|
|
2935
3067
|
children: /* @__PURE__ */ jsx16(
|
|
2936
3068
|
Input5,
|
|
2937
3069
|
__spreadValues({
|
|
@@ -2947,7 +3079,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
2947
3079
|
Field3,
|
|
2948
3080
|
{
|
|
2949
3081
|
label: `${orgLabel} URL`,
|
|
2950
|
-
error: errors.name && String((
|
|
3082
|
+
error: errors.name && String((_d = errors.name) == null ? void 0 : _d.message),
|
|
2951
3083
|
children: /* @__PURE__ */ jsx16(
|
|
2952
3084
|
Input5,
|
|
2953
3085
|
__spreadValues({
|
|
@@ -3000,7 +3132,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
3000
3132
|
/* @__PURE__ */ jsx16(
|
|
3001
3133
|
Tooltip.Trigger,
|
|
3002
3134
|
{
|
|
3003
|
-
disabled: canDeleteWorkspace,
|
|
3135
|
+
disabled: canDeleteWorkspace && !isDeleteBlocked,
|
|
3004
3136
|
render: /* @__PURE__ */ jsx16("span", { className: general_view_module_css_default.fitContent }),
|
|
3005
3137
|
children: /* @__PURE__ */ jsxs12(
|
|
3006
3138
|
Button8,
|
|
@@ -3008,7 +3140,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
3008
3140
|
variant: "solid",
|
|
3009
3141
|
color: "danger",
|
|
3010
3142
|
onClick: () => setShowDeleteDialog(true),
|
|
3011
|
-
disabled: !canDeleteWorkspace,
|
|
3143
|
+
disabled: !canDeleteWorkspace || isDeleteBlocked || isDeleteCheckLoading,
|
|
3012
3144
|
"data-test-id": "frontier-sdk-delete-organization-btn",
|
|
3013
3145
|
children: [
|
|
3014
3146
|
"Delete ",
|
|
@@ -3018,7 +3150,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
|
|
|
3018
3150
|
)
|
|
3019
3151
|
}
|
|
3020
3152
|
),
|
|
3021
|
-
!canDeleteWorkspace
|
|
3153
|
+
!canDeleteWorkspace ? /* @__PURE__ */ jsx16(Tooltip.Content, { children: AuthTooltipMessage }) : isDeleteBlocked ? /* @__PURE__ */ jsx16(Tooltip.Content, { children: /* @__PURE__ */ jsx16(Flex13, { direction: "column", gap: 2, children: blockerLines.map((line) => /* @__PURE__ */ jsx16("span", { children: line }, line)) }) }) : null
|
|
3022
3154
|
] })
|
|
3023
3155
|
] }) })
|
|
3024
3156
|
] }) }),
|
|
@@ -3040,8 +3172,8 @@ import { BellIcon, BellSlashIcon } from "@raystack/apsara/icons";
|
|
|
3040
3172
|
// client/views/preferences/components/preference-row.tsx
|
|
3041
3173
|
import { Flex as Flex14, Text as Text11, Skeleton as Skeleton3 } from "@raystack/apsara";
|
|
3042
3174
|
|
|
3043
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3044
|
-
var digest13 = "
|
|
3175
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-sMNxfP6ZPJn1/sdk/client/views/preferences/components/preferences-row.module.css.js
|
|
3176
|
+
var digest13 = "526062f04016d6894da1fc73074c418d2f531839ffec6001b62eb97f6011ca8a";
|
|
3045
3177
|
var css13 = `._row_6r013_1 {
|
|
3046
3178
|
padding: var(--rs-space-7) 0;
|
|
3047
3179
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3104,8 +3236,8 @@ function PreferenceRow(_a) {
|
|
|
3104
3236
|
// client/views/preferences/preferences-view.tsx
|
|
3105
3237
|
import { useTheme } from "@raystack/apsara";
|
|
3106
3238
|
|
|
3107
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3108
|
-
var digest14 = "
|
|
3239
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-beCXe00jhaLt/sdk/client/views/preferences/preferences-view.module.css.js
|
|
3240
|
+
var digest14 = "9223a7a719eba18a94a75f263ce9d140ae9eb2d47b907033b98f746b9af82402";
|
|
3109
3241
|
var css14 = `._selectTrigger_rur1t_1 {
|
|
3110
3242
|
width: 100%;
|
|
3111
3243
|
}
|
|
@@ -3205,7 +3337,7 @@ function PreferencesView({ children, theme: providedTheme, onThemeChange }) {
|
|
|
3205
3337
|
}
|
|
3206
3338
|
|
|
3207
3339
|
// client/views/profile/profile-view.tsx
|
|
3208
|
-
import { useEffect as
|
|
3340
|
+
import { useEffect as useEffect5 } from "react";
|
|
3209
3341
|
import { yupResolver as yupResolver6 } from "@hookform/resolvers/yup";
|
|
3210
3342
|
import { useForm as useForm6 } from "react-hook-form";
|
|
3211
3343
|
import * as yup6 from "yup";
|
|
@@ -3213,7 +3345,7 @@ import {
|
|
|
3213
3345
|
createConnectQueryKey as createConnectQueryKey4,
|
|
3214
3346
|
useMutation as useMutation10
|
|
3215
3347
|
} from "@connectrpc/connect-query";
|
|
3216
|
-
import { FrontierServiceQueries as
|
|
3348
|
+
import { FrontierServiceQueries as FrontierServiceQueries13 } from "@raystack/proton/frontier";
|
|
3217
3349
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
3218
3350
|
import {
|
|
3219
3351
|
Button as Button9,
|
|
@@ -3221,11 +3353,11 @@ import {
|
|
|
3221
3353
|
Field as Field4,
|
|
3222
3354
|
Input as Input6,
|
|
3223
3355
|
Skeleton as Skeleton4,
|
|
3224
|
-
toastManager as
|
|
3356
|
+
toastManager as toastManager5
|
|
3225
3357
|
} from "@raystack/apsara";
|
|
3226
3358
|
|
|
3227
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3228
|
-
var digest15 = "
|
|
3359
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-eoGtyoHnww0Z/sdk/client/views/profile/profile-view.module.css.js
|
|
3360
|
+
var digest15 = "f73be2e6b058a34377e0d60f168f14486d251bb366361aaba5917aa92c8505c7";
|
|
3229
3361
|
var css15 = `._section_1rcsm_1 {
|
|
3230
3362
|
padding: var(--rs-space-9) 0;
|
|
3231
3363
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3273,12 +3405,12 @@ function ProfileView() {
|
|
|
3273
3405
|
const { user, isUserLoading: isLoading } = useFrontier();
|
|
3274
3406
|
const queryClient2 = useQueryClient4();
|
|
3275
3407
|
const { mutateAsync: updateCurrentUser } = useMutation10(
|
|
3276
|
-
|
|
3408
|
+
FrontierServiceQueries13.updateCurrentUser,
|
|
3277
3409
|
{
|
|
3278
3410
|
onSuccess: () => {
|
|
3279
3411
|
queryClient2.invalidateQueries({
|
|
3280
3412
|
queryKey: createConnectQueryKey4({
|
|
3281
|
-
schema:
|
|
3413
|
+
schema: FrontierServiceQueries13.getCurrentUser,
|
|
3282
3414
|
cardinality: "finite"
|
|
3283
3415
|
})
|
|
3284
3416
|
});
|
|
@@ -3295,7 +3427,7 @@ function ProfileView() {
|
|
|
3295
3427
|
} = useForm6({
|
|
3296
3428
|
resolver: yupResolver6(profileSchema)
|
|
3297
3429
|
});
|
|
3298
|
-
|
|
3430
|
+
useEffect5(() => {
|
|
3299
3431
|
reset(user, { keepDirtyValues: true });
|
|
3300
3432
|
}, [user, reset]);
|
|
3301
3433
|
function onSubmit(data) {
|
|
@@ -3304,13 +3436,13 @@ function ProfileView() {
|
|
|
3304
3436
|
if (!(user == null ? void 0 : user.id))
|
|
3305
3437
|
return;
|
|
3306
3438
|
yield updateCurrentUser({ body: data });
|
|
3307
|
-
|
|
3439
|
+
toastManager5.add({ title: "Updated user", type: "success" });
|
|
3308
3440
|
} catch (err) {
|
|
3309
3441
|
handleConnectError(err, {
|
|
3310
|
-
InvalidArgument: (e) =>
|
|
3311
|
-
PermissionDenied: () =>
|
|
3312
|
-
NotFound: (e) =>
|
|
3313
|
-
Default: (e) =>
|
|
3442
|
+
InvalidArgument: (e) => toastManager5.add({ title: "Invalid input", description: e.message, type: "error" }),
|
|
3443
|
+
PermissionDenied: () => toastManager5.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
3444
|
+
NotFound: (e) => toastManager5.add({ title: "Not found", description: e.message, type: "error" }),
|
|
3445
|
+
Default: (e) => toastManager5.add({ title: "Something went wrong", description: e.message, type: "error" })
|
|
3314
3446
|
});
|
|
3315
3447
|
}
|
|
3316
3448
|
});
|
|
@@ -3402,16 +3534,16 @@ import { useState as useState10 } from "react";
|
|
|
3402
3534
|
import { Button as Button12, Flex as Flex18, Skeleton as Skeleton6, Text as Text13 } from "@raystack/apsara";
|
|
3403
3535
|
|
|
3404
3536
|
// client/hooks/useSessions.ts
|
|
3405
|
-
import { useMemo as
|
|
3537
|
+
import { useMemo as useMemo7 } from "react";
|
|
3406
3538
|
import {
|
|
3407
|
-
useQuery as
|
|
3539
|
+
useQuery as useQuery9,
|
|
3408
3540
|
useMutation as useMutation11,
|
|
3409
3541
|
createConnectQueryKey as createConnectQueryKey5,
|
|
3410
3542
|
useTransport as useTransport4
|
|
3411
3543
|
} from "@connectrpc/connect-query";
|
|
3412
3544
|
import { useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
3413
|
-
import { FrontierServiceQueries as
|
|
3414
|
-
import { toastManager as
|
|
3545
|
+
import { FrontierServiceQueries as FrontierServiceQueries14 } from "@raystack/proton/frontier";
|
|
3546
|
+
import { toastManager as toastManager6 } from "@raystack/apsara";
|
|
3415
3547
|
import dayjs2 from "dayjs";
|
|
3416
3548
|
import relativeTime from "dayjs/plugin/relativeTime";
|
|
3417
3549
|
dayjs2.extend(relativeTime);
|
|
@@ -3431,12 +3563,12 @@ var useSessions = () => {
|
|
|
3431
3563
|
data: sessionsData,
|
|
3432
3564
|
isLoading,
|
|
3433
3565
|
error
|
|
3434
|
-
} =
|
|
3566
|
+
} = useQuery9(FrontierServiceQueries14.listSessions, {});
|
|
3435
3567
|
const formatLastActive = (updatedAt) => {
|
|
3436
3568
|
const d = timestampToDayjs(updatedAt);
|
|
3437
3569
|
return d ? d.fromNow() : "Unknown";
|
|
3438
3570
|
};
|
|
3439
|
-
const sessions =
|
|
3571
|
+
const sessions = useMemo7(
|
|
3440
3572
|
() => ((sessionsData == null ? void 0 : sessionsData.sessions) || []).map((session) => {
|
|
3441
3573
|
var _a, _b, _c, _d;
|
|
3442
3574
|
return {
|
|
@@ -3458,24 +3590,24 @@ var useSessions = () => {
|
|
|
3458
3590
|
[sessionsData == null ? void 0 : sessionsData.sessions]
|
|
3459
3591
|
);
|
|
3460
3592
|
const { mutate: revokeSession, isPending: isRevokingSession } = useMutation11(
|
|
3461
|
-
|
|
3593
|
+
FrontierServiceQueries14.revokeSession,
|
|
3462
3594
|
{
|
|
3463
3595
|
onSuccess: () => {
|
|
3464
3596
|
queryClient2.invalidateQueries({
|
|
3465
3597
|
queryKey: createConnectQueryKey5({
|
|
3466
|
-
schema:
|
|
3598
|
+
schema: FrontierServiceQueries14.listSessions,
|
|
3467
3599
|
transport,
|
|
3468
3600
|
input: {},
|
|
3469
3601
|
cardinality: "finite"
|
|
3470
3602
|
})
|
|
3471
3603
|
});
|
|
3472
|
-
|
|
3604
|
+
toastManager6.add({
|
|
3473
3605
|
title: "Session revoked successfully",
|
|
3474
3606
|
type: "success"
|
|
3475
3607
|
});
|
|
3476
3608
|
},
|
|
3477
3609
|
onError: (error2) => {
|
|
3478
|
-
|
|
3610
|
+
toastManager6.add({
|
|
3479
3611
|
title: "Failed to revoke session",
|
|
3480
3612
|
description: getErrorMessage(error2),
|
|
3481
3613
|
type: "error"
|
|
@@ -3498,9 +3630,9 @@ var useSessions = () => {
|
|
|
3498
3630
|
};
|
|
3499
3631
|
|
|
3500
3632
|
// client/views/sessions/components/revoke-session-dialog.tsx
|
|
3501
|
-
import { useState as useState9, useMemo as
|
|
3633
|
+
import { useState as useState9, useMemo as useMemo8 } from "react";
|
|
3502
3634
|
import { useMutation as useMutation12 } from "@connectrpc/connect-query";
|
|
3503
|
-
import { FrontierServiceQueries as
|
|
3635
|
+
import { FrontierServiceQueries as FrontierServiceQueries15 } from "@raystack/proton/frontier";
|
|
3504
3636
|
import { AlertDialog as AlertDialog3, Button as Button11, Flex as Flex17, Skeleton as Skeleton5, Text as Text12 } from "@raystack/apsara";
|
|
3505
3637
|
|
|
3506
3638
|
// client/views/sessions/components/revoke-session-confirm-dialog.tsx
|
|
@@ -3554,8 +3686,8 @@ var RevokeSessionConfirmDialog = ({
|
|
|
3554
3686
|
] }) });
|
|
3555
3687
|
};
|
|
3556
3688
|
|
|
3557
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3558
|
-
var digest16 = "
|
|
3689
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-cAutPabzAJzR/sdk/client/views/sessions/components/revoke-session-dialog.module.css.js
|
|
3690
|
+
var digest16 = "7bd3d967ef40440dacaa6d02f9d180c1d05cf00a2531a45573b5f3cbde5d68b2";
|
|
3559
3691
|
var css16 = `._detailRow_12thi_1 {
|
|
3560
3692
|
padding: var(--rs-space-5) 0;
|
|
3561
3693
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3594,7 +3726,7 @@ var RevokeSessionDialog = ({
|
|
|
3594
3726
|
const { sessions, revokeSession, isRevokingSession } = useSessions();
|
|
3595
3727
|
const [isConfirmOpen, setIsConfirmOpen] = useState9(false);
|
|
3596
3728
|
const handleClose = () => onOpenChange(false);
|
|
3597
|
-
const { mutate: logout } = useMutation12(
|
|
3729
|
+
const { mutate: logout } = useMutation12(FrontierServiceQueries15.authLogout, {
|
|
3598
3730
|
onSuccess: () => {
|
|
3599
3731
|
onLogout == null ? void 0 : onLogout();
|
|
3600
3732
|
},
|
|
@@ -3606,7 +3738,7 @@ var RevokeSessionDialog = ({
|
|
|
3606
3738
|
}
|
|
3607
3739
|
}
|
|
3608
3740
|
});
|
|
3609
|
-
const sessionData =
|
|
3741
|
+
const sessionData = useMemo8(() => {
|
|
3610
3742
|
var _a;
|
|
3611
3743
|
if (!sessionId || sessions.length === 0)
|
|
3612
3744
|
return null;
|
|
@@ -3692,8 +3824,8 @@ var RevokeSessionDialog = ({
|
|
|
3692
3824
|
] });
|
|
3693
3825
|
};
|
|
3694
3826
|
|
|
3695
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3696
|
-
var digest17 = "
|
|
3827
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-FtXQlNvl2z52/sdk/client/views/sessions/sessions-view.module.css.js
|
|
3828
|
+
var digest17 = "588672a9cfe3d9019efd5e5f15bdc551ba3859cfcd006464d71e1e972f897bf7";
|
|
3697
3829
|
var css17 = `._sessionRow_1qg03_1 {
|
|
3698
3830
|
padding: var(--rs-space-7) 0;
|
|
3699
3831
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3800,7 +3932,7 @@ function SessionsView({ onLogout, onRevoke } = {}) {
|
|
|
3800
3932
|
}
|
|
3801
3933
|
|
|
3802
3934
|
// client/views/members/members-view.tsx
|
|
3803
|
-
import { useMemo as
|
|
3935
|
+
import { useMemo as useMemo11, useState as useState14 } from "react";
|
|
3804
3936
|
import {
|
|
3805
3937
|
AlertDialog as AlertDialog6,
|
|
3806
3938
|
Button as Button16,
|
|
@@ -3819,25 +3951,25 @@ import {
|
|
|
3819
3951
|
var delete_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">%0A <path d="M9.82667 6.00035L9.596 12.0003M6.404 12.0003L6.17333 6.00035M12.8187 3.86035C13.0467 3.89501 13.2733 3.93168 13.5 3.97101M12.8187 3.86035L12.1067 13.1157C12.0776 13.4925 11.9074 13.8445 11.63 14.1012C11.3527 14.3579 10.9886 14.5005 10.6107 14.5003H5.38933C5.0114 14.5005 4.64735 14.3579 4.36999 14.1012C4.09262 13.8445 3.92239 13.4925 3.89333 13.1157L3.18133 3.86035M12.8187 3.86035C12.0492 3.74403 11.2758 3.65574 10.5 3.59568M3.18133 3.86035C2.95333 3.89435 2.72667 3.93101 2.5 3.97035M3.18133 3.86035C3.95076 3.74403 4.72416 3.65575 5.5 3.59568M10.5 3.59568V2.98501C10.5 2.19835 9.89333 1.54235 9.10667 1.51768C8.36908 1.49411 7.63092 1.49411 6.89333 1.51768C6.10667 1.54235 5.5 2.19901 5.5 2.98501V3.59568M10.5 3.59568C8.83581 3.46707 7.16419 3.46707 5.5 3.59568" stroke="%23E5484D" stroke-linecap="round" stroke-linejoin="round"/>%0A</svg>';
|
|
3820
3952
|
|
|
3821
3953
|
// client/hooks/useOrganizationMembers.ts
|
|
3822
|
-
import { useCallback as useCallback7, useEffect as
|
|
3823
|
-
import { useQuery as
|
|
3824
|
-
import { FrontierServiceQueries as
|
|
3825
|
-
import { create as
|
|
3954
|
+
import { useCallback as useCallback7, useEffect as useEffect6, useState as useState11, useMemo as useMemo9 } from "react";
|
|
3955
|
+
import { useQuery as useQuery10 } from "@connectrpc/connect-query";
|
|
3956
|
+
import { FrontierServiceQueries as FrontierServiceQueries16, ListOrganizationUsersRequestSchema, ListRolesRequestSchema, ListOrganizationInvitationsRequestSchema } from "@raystack/proton/frontier";
|
|
3957
|
+
import { create as create10 } from "@bufbuild/protobuf";
|
|
3826
3958
|
var useOrganizationMembers = ({
|
|
3827
3959
|
showInvitations = false
|
|
3828
3960
|
}) => {
|
|
3829
3961
|
const [users, setUsers] = useState11([]);
|
|
3830
3962
|
const [memberRoles, setMemberRoles] = useState11({});
|
|
3831
3963
|
const { activeOrganization: organization } = useFrontier();
|
|
3832
|
-
const { data: organizationUsersData, isLoading: isUsersLoading, error: usersError, refetch: refetchUsers } =
|
|
3833
|
-
|
|
3834
|
-
|
|
3964
|
+
const { data: organizationUsersData, isLoading: isUsersLoading, error: usersError, refetch: refetchUsers } = useQuery10(
|
|
3965
|
+
FrontierServiceQueries16.listOrganizationUsers,
|
|
3966
|
+
create10(ListOrganizationUsersRequestSchema, {
|
|
3835
3967
|
id: (organization == null ? void 0 : organization.id) || "",
|
|
3836
3968
|
withRoles: true
|
|
3837
3969
|
}),
|
|
3838
3970
|
{ enabled: !!(organization == null ? void 0 : organization.id) }
|
|
3839
3971
|
);
|
|
3840
|
-
|
|
3972
|
+
useEffect6(() => {
|
|
3841
3973
|
if (organizationUsersData) {
|
|
3842
3974
|
const { users: users2, rolePairs } = organizationUsersData;
|
|
3843
3975
|
setUsers(users2 || []);
|
|
@@ -3851,9 +3983,9 @@ var useOrganizationMembers = ({
|
|
|
3851
3983
|
);
|
|
3852
3984
|
}
|
|
3853
3985
|
}, [organizationUsersData]);
|
|
3854
|
-
const { data: rolesData, isLoading: isRolesLoading, error: rolesError, refetch: refetchRoles } =
|
|
3855
|
-
|
|
3856
|
-
|
|
3986
|
+
const { data: rolesData, isLoading: isRolesLoading, error: rolesError, refetch: refetchRoles } = useQuery10(
|
|
3987
|
+
FrontierServiceQueries16.listRoles,
|
|
3988
|
+
create10(ListRolesRequestSchema, {
|
|
3857
3989
|
state: "enabled",
|
|
3858
3990
|
scopes: [PERMISSIONS.OrganizationNamespace]
|
|
3859
3991
|
}),
|
|
@@ -3861,17 +3993,17 @@ var useOrganizationMembers = ({
|
|
|
3861
3993
|
enabled: !!(organization == null ? void 0 : organization.id)
|
|
3862
3994
|
}
|
|
3863
3995
|
);
|
|
3864
|
-
const roles =
|
|
3865
|
-
const { data: invitationsData, isLoading: isInvitationsLoading, error: invitationsError, refetch: refetchInvitations } =
|
|
3866
|
-
|
|
3867
|
-
|
|
3996
|
+
const roles = useMemo9(() => (rolesData == null ? void 0 : rolesData.roles) || [], [rolesData]);
|
|
3997
|
+
const { data: invitationsData, isLoading: isInvitationsLoading, error: invitationsError, refetch: refetchInvitations } = useQuery10(
|
|
3998
|
+
FrontierServiceQueries16.listOrganizationInvitations,
|
|
3999
|
+
create10(ListOrganizationInvitationsRequestSchema, {
|
|
3868
4000
|
orgId: (organization == null ? void 0 : organization.id) || ""
|
|
3869
4001
|
}),
|
|
3870
4002
|
{ enabled: !!(organization == null ? void 0 : organization.id) && showInvitations }
|
|
3871
4003
|
);
|
|
3872
4004
|
const isFetching = isUsersLoading || isInvitationsLoading || isRolesLoading;
|
|
3873
4005
|
const hasError = usersError || rolesError || invitationsError;
|
|
3874
|
-
const updatedUsers =
|
|
4006
|
+
const updatedUsers = useMemo9(() => {
|
|
3875
4007
|
const invitations = ((invitationsData == null ? void 0 : invitationsData.invitations) || []).map((user) => {
|
|
3876
4008
|
return __spreadProps(__spreadValues({}, user), {
|
|
3877
4009
|
email: user.userId,
|
|
@@ -3905,8 +4037,8 @@ import {
|
|
|
3905
4037
|
IconButton as IconButton2
|
|
3906
4038
|
} from "@raystack/apsara";
|
|
3907
4039
|
|
|
3908
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3909
|
-
var digest18 = "
|
|
4040
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-DLQIzAXKAmlQ/sdk/client/views/members/components/member-columns.module.css.js
|
|
4041
|
+
var digest18 = "67c916708d1dc4e9948ae365547858e82a7b76cce938233c0b1009dd7f8f24d0";
|
|
3910
4042
|
var css18 = `._pendingText_p6jus_1 {
|
|
3911
4043
|
color: var(--rs-color-foreground-base-tertiary);
|
|
3912
4044
|
}
|
|
@@ -4042,14 +4174,14 @@ var getColumns = ({
|
|
|
4042
4174
|
];
|
|
4043
4175
|
|
|
4044
4176
|
// client/views/members/components/invite-member-dialog.tsx
|
|
4045
|
-
import { useCallback as useCallback8, useMemo as
|
|
4177
|
+
import { useCallback as useCallback8, useMemo as useMemo10 } from "react";
|
|
4046
4178
|
import { yupResolver as yupResolver7 } from "@hookform/resolvers/yup";
|
|
4047
4179
|
import { Controller as Controller2, useForm as useForm7 } from "react-hook-form";
|
|
4048
4180
|
import * as yup7 from "yup";
|
|
4049
|
-
import { create as
|
|
4050
|
-
import { useMutation as useMutation13, useQuery as
|
|
4181
|
+
import { create as create11 } from "@bufbuild/protobuf";
|
|
4182
|
+
import { useMutation as useMutation13, useQuery as useQuery11 } from "@connectrpc/connect-query";
|
|
4051
4183
|
import {
|
|
4052
|
-
FrontierServiceQueries as
|
|
4184
|
+
FrontierServiceQueries as FrontierServiceQueries17,
|
|
4053
4185
|
CreateOrganizationInvitationRequestSchema,
|
|
4054
4186
|
ListOrganizationRolesRequestSchema,
|
|
4055
4187
|
ListRolesRequestSchema as ListRolesRequestSchema2,
|
|
@@ -4064,7 +4196,7 @@ import {
|
|
|
4064
4196
|
Dialog as Dialog2,
|
|
4065
4197
|
Field as Field5,
|
|
4066
4198
|
TextArea,
|
|
4067
|
-
toastManager as
|
|
4199
|
+
toastManager as toastManager7
|
|
4068
4200
|
} from "@raystack/apsara";
|
|
4069
4201
|
import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4070
4202
|
var inviteSchema = yup7.object({
|
|
@@ -4093,44 +4225,44 @@ function InviteMemberDialog({ handle, showTeamField = true, refetch }) {
|
|
|
4093
4225
|
refetch();
|
|
4094
4226
|
}
|
|
4095
4227
|
};
|
|
4096
|
-
const { data: orgRolesData, isLoading: isOrgRolesLoading } =
|
|
4097
|
-
|
|
4098
|
-
|
|
4228
|
+
const { data: orgRolesData, isLoading: isOrgRolesLoading } = useQuery11(
|
|
4229
|
+
FrontierServiceQueries17.listOrganizationRoles,
|
|
4230
|
+
create11(ListOrganizationRolesRequestSchema, {
|
|
4099
4231
|
orgId: (organization == null ? void 0 : organization.id) || "",
|
|
4100
4232
|
scopes: [PERMISSIONS.OrganizationNamespace]
|
|
4101
4233
|
}),
|
|
4102
4234
|
{ enabled: !!(organization == null ? void 0 : organization.id) }
|
|
4103
4235
|
);
|
|
4104
|
-
const orgRoles =
|
|
4105
|
-
const { data: globalRolesData, isLoading: isGlobalRolesLoading } =
|
|
4106
|
-
|
|
4107
|
-
|
|
4236
|
+
const orgRoles = useMemo10(() => (orgRolesData == null ? void 0 : orgRolesData.roles) || [], [orgRolesData]);
|
|
4237
|
+
const { data: globalRolesData, isLoading: isGlobalRolesLoading } = useQuery11(
|
|
4238
|
+
FrontierServiceQueries17.listRoles,
|
|
4239
|
+
create11(ListRolesRequestSchema2, {
|
|
4108
4240
|
scopes: [PERMISSIONS.OrganizationNamespace]
|
|
4109
4241
|
}),
|
|
4110
4242
|
{ enabled: !!(organization == null ? void 0 : organization.id) }
|
|
4111
4243
|
);
|
|
4112
|
-
const globalRoles =
|
|
4244
|
+
const globalRoles = useMemo10(
|
|
4113
4245
|
() => (globalRolesData == null ? void 0 : globalRolesData.roles) || [],
|
|
4114
4246
|
[globalRolesData]
|
|
4115
4247
|
);
|
|
4116
|
-
const { data: teamsData, isLoading: isGroupsLoading } =
|
|
4117
|
-
|
|
4118
|
-
|
|
4248
|
+
const { data: teamsData, isLoading: isGroupsLoading } = useQuery11(
|
|
4249
|
+
FrontierServiceQueries17.listOrganizationGroups,
|
|
4250
|
+
create11(ListOrganizationGroupsRequestSchema, {
|
|
4119
4251
|
orgId: (organization == null ? void 0 : organization.id) || ""
|
|
4120
4252
|
}),
|
|
4121
4253
|
{ enabled: !!(organization == null ? void 0 : organization.id) && showTeamField }
|
|
4122
4254
|
);
|
|
4123
|
-
const teams =
|
|
4255
|
+
const teams = useMemo10(() => (teamsData == null ? void 0 : teamsData.groups) || [], [teamsData]);
|
|
4124
4256
|
const isLoading = isOrgRolesLoading || isGlobalRolesLoading || showTeamField && isGroupsLoading;
|
|
4125
|
-
const roles =
|
|
4257
|
+
const roles = useMemo10(
|
|
4126
4258
|
() => [...globalRoles || [], ...orgRoles || []],
|
|
4127
4259
|
[globalRoles, orgRoles]
|
|
4128
4260
|
);
|
|
4129
4261
|
const { mutateAsync: createInvitation } = useMutation13(
|
|
4130
|
-
|
|
4262
|
+
FrontierServiceQueries17.createOrganizationInvitation,
|
|
4131
4263
|
{
|
|
4132
4264
|
onSuccess: () => {
|
|
4133
|
-
|
|
4265
|
+
toastManager7.add({ title: "User(s) invited", type: "success" });
|
|
4134
4266
|
handle.close();
|
|
4135
4267
|
}
|
|
4136
4268
|
}
|
|
@@ -4145,7 +4277,7 @@ function InviteMemberDialog({ handle, showTeamField = true, refetch }) {
|
|
|
4145
4277
|
if (!type)
|
|
4146
4278
|
return;
|
|
4147
4279
|
try {
|
|
4148
|
-
const req =
|
|
4280
|
+
const req = create11(CreateOrganizationInvitationRequestSchema, {
|
|
4149
4281
|
orgId: organization.id,
|
|
4150
4282
|
userIds: emailList,
|
|
4151
4283
|
groupIds: showTeamField && team ? [team] : void 0,
|
|
@@ -4154,10 +4286,10 @@ function InviteMemberDialog({ handle, showTeamField = true, refetch }) {
|
|
|
4154
4286
|
yield createInvitation(req);
|
|
4155
4287
|
} catch (error) {
|
|
4156
4288
|
handleConnectError(error, {
|
|
4157
|
-
AlreadyExists: () =>
|
|
4158
|
-
InvalidArgument: (err) =>
|
|
4159
|
-
PermissionDenied: () =>
|
|
4160
|
-
Default: (err) =>
|
|
4289
|
+
AlreadyExists: () => toastManager7.add({ title: "Invitation already exists", type: "error" }),
|
|
4290
|
+
InvalidArgument: (err) => toastManager7.add({ title: "Invalid input", description: err.message, type: "error" }),
|
|
4291
|
+
PermissionDenied: () => toastManager7.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
4292
|
+
Default: (err) => toastManager7.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
4161
4293
|
});
|
|
4162
4294
|
}
|
|
4163
4295
|
}),
|
|
@@ -4246,17 +4378,17 @@ function InviteMemberDialog({ handle, showTeamField = true, refetch }) {
|
|
|
4246
4378
|
|
|
4247
4379
|
// client/views/members/components/remove-member-dialog.tsx
|
|
4248
4380
|
import { useState as useState12 } from "react";
|
|
4249
|
-
import { create as
|
|
4381
|
+
import { create as create12 } from "@bufbuild/protobuf";
|
|
4250
4382
|
import { useMutation as useMutation14 } from "@connectrpc/connect-query";
|
|
4251
4383
|
import {
|
|
4252
|
-
FrontierServiceQueries as
|
|
4384
|
+
FrontierServiceQueries as FrontierServiceQueries18,
|
|
4253
4385
|
DeleteOrganizationInvitationRequestSchema,
|
|
4254
4386
|
RemoveOrganizationMemberRequestSchema
|
|
4255
4387
|
} from "@raystack/proton/frontier";
|
|
4256
4388
|
import {
|
|
4257
4389
|
AlertDialog as AlertDialog4,
|
|
4258
4390
|
Button as Button14,
|
|
4259
|
-
toastManager as
|
|
4391
|
+
toastManager as toastManager8
|
|
4260
4392
|
} from "@raystack/apsara";
|
|
4261
4393
|
import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4262
4394
|
function RemoveMemberDialog({ handle, refetch }) {
|
|
@@ -4266,22 +4398,22 @@ function RemoveMemberDialog({ handle, refetch }) {
|
|
|
4266
4398
|
const [isLoading, setIsLoading] = useState12(false);
|
|
4267
4399
|
const t = useTerminology();
|
|
4268
4400
|
const { mutateAsync: deleteInvitation } = useMutation14(
|
|
4269
|
-
|
|
4401
|
+
FrontierServiceQueries18.deleteOrganizationInvitation,
|
|
4270
4402
|
{
|
|
4271
4403
|
onSuccess: () => {
|
|
4272
4404
|
handle.close();
|
|
4273
4405
|
refetch();
|
|
4274
|
-
|
|
4406
|
+
toastManager8.add({ title: "Invitation deleted", type: "success" });
|
|
4275
4407
|
}
|
|
4276
4408
|
}
|
|
4277
4409
|
);
|
|
4278
4410
|
const { mutateAsync: removeMember } = useMutation14(
|
|
4279
|
-
|
|
4411
|
+
FrontierServiceQueries18.removeOrganizationMember,
|
|
4280
4412
|
{
|
|
4281
4413
|
onSuccess: () => {
|
|
4282
4414
|
handle.close();
|
|
4283
4415
|
refetch();
|
|
4284
|
-
|
|
4416
|
+
toastManager8.add({ title: "User removed", type: "success" });
|
|
4285
4417
|
}
|
|
4286
4418
|
}
|
|
4287
4419
|
);
|
|
@@ -4289,13 +4421,13 @@ function RemoveMemberDialog({ handle, refetch }) {
|
|
|
4289
4421
|
setIsLoading(true);
|
|
4290
4422
|
try {
|
|
4291
4423
|
if (invited === "true") {
|
|
4292
|
-
const req =
|
|
4424
|
+
const req = create12(DeleteOrganizationInvitationRequestSchema, {
|
|
4293
4425
|
orgId: organizationId,
|
|
4294
4426
|
id: memberId
|
|
4295
4427
|
});
|
|
4296
4428
|
yield deleteInvitation(req);
|
|
4297
4429
|
} else {
|
|
4298
|
-
const req =
|
|
4430
|
+
const req = create12(RemoveOrganizationMemberRequestSchema, {
|
|
4299
4431
|
orgId: organizationId,
|
|
4300
4432
|
principalId: memberId,
|
|
4301
4433
|
principalType: "app/user"
|
|
@@ -4305,10 +4437,10 @@ function RemoveMemberDialog({ handle, refetch }) {
|
|
|
4305
4437
|
handle.close();
|
|
4306
4438
|
} catch (error) {
|
|
4307
4439
|
handleConnectError(error, {
|
|
4308
|
-
NotFound: (err) =>
|
|
4309
|
-
PermissionDenied: () =>
|
|
4310
|
-
FailedPrecondition: (err) =>
|
|
4311
|
-
Default: (err) =>
|
|
4440
|
+
NotFound: (err) => toastManager8.add({ title: "Not found", description: err.message, type: "error" }),
|
|
4441
|
+
PermissionDenied: () => toastManager8.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
4442
|
+
FailedPrecondition: (err) => toastManager8.add({ title: "Cannot remove user", description: err.message, type: "error" }),
|
|
4443
|
+
Default: (err) => toastManager8.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
4312
4444
|
});
|
|
4313
4445
|
} finally {
|
|
4314
4446
|
setIsLoading(false);
|
|
@@ -4358,16 +4490,16 @@ function RemoveMemberDialog({ handle, refetch }) {
|
|
|
4358
4490
|
|
|
4359
4491
|
// client/views/members/components/update-role-dialog.tsx
|
|
4360
4492
|
import { useState as useState13 } from "react";
|
|
4361
|
-
import { create as
|
|
4493
|
+
import { create as create13 } from "@bufbuild/protobuf";
|
|
4362
4494
|
import { useMutation as useMutation15 } from "@connectrpc/connect-query";
|
|
4363
4495
|
import {
|
|
4364
|
-
FrontierServiceQueries as
|
|
4496
|
+
FrontierServiceQueries as FrontierServiceQueries19,
|
|
4365
4497
|
SetOrganizationMemberRoleRequestSchema
|
|
4366
4498
|
} from "@raystack/proton/frontier";
|
|
4367
4499
|
import {
|
|
4368
4500
|
AlertDialog as AlertDialog5,
|
|
4369
4501
|
Button as Button15,
|
|
4370
|
-
toastManager as
|
|
4502
|
+
toastManager as toastManager9
|
|
4371
4503
|
} from "@raystack/apsara";
|
|
4372
4504
|
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4373
4505
|
function UpdateRoleDialog({ handle, organizationId, refetch }) {
|
|
@@ -4392,25 +4524,25 @@ function UpdateRoleContent({
|
|
|
4392
4524
|
}) {
|
|
4393
4525
|
const [isLoading, setIsLoading] = useState13(false);
|
|
4394
4526
|
const { mutateAsync: setMemberRole } = useMutation15(
|
|
4395
|
-
|
|
4527
|
+
FrontierServiceQueries19.setOrganizationMemberRole
|
|
4396
4528
|
);
|
|
4397
4529
|
const handleUpdate = () => __async(this, null, function* () {
|
|
4398
4530
|
setIsLoading(true);
|
|
4399
4531
|
try {
|
|
4400
|
-
const req =
|
|
4532
|
+
const req = create13(SetOrganizationMemberRoleRequestSchema, {
|
|
4401
4533
|
orgId: organizationId,
|
|
4402
4534
|
userId: payload.memberId,
|
|
4403
4535
|
roleId: payload.role.id
|
|
4404
4536
|
});
|
|
4405
4537
|
yield setMemberRole(req);
|
|
4406
|
-
|
|
4538
|
+
toastManager9.add({ title: "Member role updated", type: "success" });
|
|
4407
4539
|
refetch();
|
|
4408
4540
|
onClose();
|
|
4409
4541
|
} catch (error) {
|
|
4410
4542
|
handleConnectError(error, {
|
|
4411
|
-
PermissionDenied: () =>
|
|
4412
|
-
NotFound: (err) =>
|
|
4413
|
-
Default: (err) =>
|
|
4543
|
+
PermissionDenied: () => toastManager9.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
4544
|
+
NotFound: (err) => toastManager9.add({ title: "Not found", description: err.message, type: "error" }),
|
|
4545
|
+
Default: (err) => toastManager9.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
4414
4546
|
});
|
|
4415
4547
|
} finally {
|
|
4416
4548
|
setIsLoading(false);
|
|
@@ -4450,8 +4582,8 @@ function UpdateRoleContent({
|
|
|
4450
4582
|
] });
|
|
4451
4583
|
}
|
|
4452
4584
|
|
|
4453
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4454
|
-
var digest19 = "
|
|
4585
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-1FlSyvxEOH6J/sdk/client/views/members/members-view.module.css.js
|
|
4586
|
+
var digest19 = "f41fd4bf41fe95fbf34236b28089c13d146525a3e9930a0a5fbf00d6b95b81c5";
|
|
4455
4587
|
var css19 = `._roleFilter_1fmrt_1 {
|
|
4456
4588
|
width: auto;
|
|
4457
4589
|
min-width: 80px;
|
|
@@ -4497,7 +4629,7 @@ function MembersView({ showTeamField = true }) {
|
|
|
4497
4629
|
var _a;
|
|
4498
4630
|
const { activeOrganization: organization } = useFrontier();
|
|
4499
4631
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
4500
|
-
const listOfPermissionsToCheck =
|
|
4632
|
+
const listOfPermissionsToCheck = useMemo11(
|
|
4501
4633
|
() => [
|
|
4502
4634
|
{
|
|
4503
4635
|
permission: PERMISSIONS.InvitationCreatePermission,
|
|
@@ -4514,7 +4646,7 @@ function MembersView({ showTeamField = true }) {
|
|
|
4514
4646
|
listOfPermissionsToCheck,
|
|
4515
4647
|
!!(organization == null ? void 0 : organization.id)
|
|
4516
4648
|
);
|
|
4517
|
-
const { canCreateInvite, canDeleteUser } =
|
|
4649
|
+
const { canCreateInvite, canDeleteUser } = useMemo11(() => {
|
|
4518
4650
|
return {
|
|
4519
4651
|
canCreateInvite: shouldShowComponent(
|
|
4520
4652
|
permissions,
|
|
@@ -4537,7 +4669,7 @@ function MembersView({ showTeamField = true }) {
|
|
|
4537
4669
|
});
|
|
4538
4670
|
const isLoading = !(organization == null ? void 0 : organization.id) || isOrgMembersLoading || isPermissionsFetching;
|
|
4539
4671
|
const [roleFilter, setRoleFilter] = useState14("all");
|
|
4540
|
-
const filteredMembers =
|
|
4672
|
+
const filteredMembers = useMemo11(() => {
|
|
4541
4673
|
if (roleFilter === "all")
|
|
4542
4674
|
return members;
|
|
4543
4675
|
return members.filter((member) => {
|
|
@@ -4549,7 +4681,7 @@ function MembersView({ showTeamField = true }) {
|
|
|
4549
4681
|
return userRoles == null ? void 0 : userRoles.some((r) => r.id === roleFilter);
|
|
4550
4682
|
}) || [];
|
|
4551
4683
|
}, [members, roleFilter, memberRoles]);
|
|
4552
|
-
const columns =
|
|
4684
|
+
const columns = useMemo11(
|
|
4553
4685
|
() => getColumns({
|
|
4554
4686
|
memberRoles,
|
|
4555
4687
|
roles,
|
|
@@ -4718,7 +4850,7 @@ function MembersView({ showTeamField = true }) {
|
|
|
4718
4850
|
}
|
|
4719
4851
|
|
|
4720
4852
|
// client/views/security/security-view.tsx
|
|
4721
|
-
import { useEffect as
|
|
4853
|
+
import { useEffect as useEffect7, useMemo as useMemo13 } from "react";
|
|
4722
4854
|
import {
|
|
4723
4855
|
AlertDialog as AlertDialog8,
|
|
4724
4856
|
Button as Button20,
|
|
@@ -4728,14 +4860,14 @@ import {
|
|
|
4728
4860
|
Image as Image3,
|
|
4729
4861
|
Skeleton as Skeleton11,
|
|
4730
4862
|
Text as Text19,
|
|
4731
|
-
toastManager as
|
|
4863
|
+
toastManager as toastManager13
|
|
4732
4864
|
} from "@raystack/apsara";
|
|
4733
4865
|
|
|
4734
4866
|
// client/hooks/useOrganizationDomains.ts
|
|
4735
|
-
import { useQuery as
|
|
4736
|
-
import { FrontierServiceQueries as
|
|
4737
|
-
import { create as
|
|
4738
|
-
import { useMemo as
|
|
4867
|
+
import { useQuery as useQuery12 } from "@connectrpc/connect-query";
|
|
4868
|
+
import { FrontierServiceQueries as FrontierServiceQueries20, ListOrganizationDomainsRequestSchema } from "@raystack/proton/frontier";
|
|
4869
|
+
import { create as create14 } from "@bufbuild/protobuf";
|
|
4870
|
+
import { useMemo as useMemo12 } from "react";
|
|
4739
4871
|
var useOrganizationDomains = () => {
|
|
4740
4872
|
const { activeOrganization: organization } = useFrontier();
|
|
4741
4873
|
const {
|
|
@@ -4743,16 +4875,16 @@ var useOrganizationDomains = () => {
|
|
|
4743
4875
|
isLoading: isDomainsLoading,
|
|
4744
4876
|
error: domainsError,
|
|
4745
4877
|
refetch: refetchDomains
|
|
4746
|
-
} =
|
|
4747
|
-
|
|
4748
|
-
|
|
4878
|
+
} = useQuery12(
|
|
4879
|
+
FrontierServiceQueries20.listOrganizationDomains,
|
|
4880
|
+
create14(ListOrganizationDomainsRequestSchema, {
|
|
4749
4881
|
orgId: (organization == null ? void 0 : organization.id) || ""
|
|
4750
4882
|
}),
|
|
4751
4883
|
{
|
|
4752
4884
|
enabled: !!(organization == null ? void 0 : organization.id)
|
|
4753
4885
|
}
|
|
4754
4886
|
);
|
|
4755
|
-
const domains =
|
|
4887
|
+
const domains = useMemo12(() => {
|
|
4756
4888
|
var _a;
|
|
4757
4889
|
return (_a = domainsData == null ? void 0 : domainsData.domains) != null ? _a : [];
|
|
4758
4890
|
}, [domainsData]);
|
|
@@ -4768,11 +4900,11 @@ var useOrganizationDomains = () => {
|
|
|
4768
4900
|
import { useForm as useForm8 } from "react-hook-form";
|
|
4769
4901
|
import { yupResolver as yupResolver8 } from "@hookform/resolvers/yup";
|
|
4770
4902
|
import * as yup8 from "yup";
|
|
4771
|
-
import { create as
|
|
4903
|
+
import { create as create15 } from "@bufbuild/protobuf";
|
|
4772
4904
|
import { useMutation as useMutation16, createConnectQueryKey as createConnectQueryKey6, useTransport as useTransport5 } from "@connectrpc/connect-query";
|
|
4773
4905
|
import { useQueryClient as useQueryClient6 } from "@tanstack/react-query";
|
|
4774
4906
|
import {
|
|
4775
|
-
FrontierServiceQueries as
|
|
4907
|
+
FrontierServiceQueries as FrontierServiceQueries21,
|
|
4776
4908
|
CreateOrganizationDomainRequestSchema,
|
|
4777
4909
|
ListOrganizationDomainsRequestSchema as ListOrganizationDomainsRequestSchema2
|
|
4778
4910
|
} from "@raystack/proton/frontier";
|
|
@@ -4783,7 +4915,7 @@ import {
|
|
|
4783
4915
|
Dialog as Dialog4,
|
|
4784
4916
|
Field as Field6,
|
|
4785
4917
|
Input as Input7,
|
|
4786
|
-
toastManager as
|
|
4918
|
+
toastManager as toastManager10
|
|
4787
4919
|
} from "@raystack/apsara";
|
|
4788
4920
|
import { jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4789
4921
|
var domainSchema = yup8.object({
|
|
@@ -4809,17 +4941,17 @@ function AddDomainDialog({
|
|
|
4809
4941
|
resolver: yupResolver8(domainSchema)
|
|
4810
4942
|
});
|
|
4811
4943
|
const { mutateAsync: createOrganizationDomain } = useMutation16(
|
|
4812
|
-
|
|
4944
|
+
FrontierServiceQueries21.createOrganizationDomain,
|
|
4813
4945
|
{
|
|
4814
4946
|
onSuccess: (data) => __async(this, null, function* () {
|
|
4815
4947
|
var _a2, _b;
|
|
4816
|
-
|
|
4948
|
+
toastManager10.add({ title: "Domain successfully added", type: "success" });
|
|
4817
4949
|
if (organization == null ? void 0 : organization.id) {
|
|
4818
4950
|
yield queryClient2.invalidateQueries({
|
|
4819
4951
|
queryKey: createConnectQueryKey6({
|
|
4820
|
-
schema:
|
|
4952
|
+
schema: FrontierServiceQueries21.listOrganizationDomains,
|
|
4821
4953
|
transport,
|
|
4822
|
-
input:
|
|
4954
|
+
input: create15(ListOrganizationDomainsRequestSchema2, {
|
|
4823
4955
|
orgId: organization.id
|
|
4824
4956
|
}),
|
|
4825
4957
|
cardinality: "finite"
|
|
@@ -4836,17 +4968,17 @@ function AddDomainDialog({
|
|
|
4836
4968
|
return;
|
|
4837
4969
|
try {
|
|
4838
4970
|
yield createOrganizationDomain(
|
|
4839
|
-
|
|
4971
|
+
create15(CreateOrganizationDomainRequestSchema, {
|
|
4840
4972
|
orgId: organization.id,
|
|
4841
4973
|
domain: data.domain
|
|
4842
4974
|
})
|
|
4843
4975
|
);
|
|
4844
4976
|
} catch (error) {
|
|
4845
4977
|
handleConnectError(error, {
|
|
4846
|
-
AlreadyExists: () =>
|
|
4847
|
-
InvalidArgument: (err) =>
|
|
4848
|
-
PermissionDenied: () =>
|
|
4849
|
-
Default: (err) =>
|
|
4978
|
+
AlreadyExists: () => toastManager10.add({ title: "Domain already exists", type: "error" }),
|
|
4979
|
+
InvalidArgument: (err) => toastManager10.add({ title: "Invalid input", description: err.message, type: "error" }),
|
|
4980
|
+
PermissionDenied: () => toastManager10.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
4981
|
+
Default: (err) => toastManager10.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
4850
4982
|
});
|
|
4851
4983
|
}
|
|
4852
4984
|
});
|
|
@@ -4895,11 +5027,11 @@ function AddDomainDialog({
|
|
|
4895
5027
|
}
|
|
4896
5028
|
|
|
4897
5029
|
// client/views/security/components/verify-domain-dialog.tsx
|
|
4898
|
-
import { create as
|
|
5030
|
+
import { create as create17 } from "@bufbuild/protobuf";
|
|
4899
5031
|
import { useMutation as useMutation17, createConnectQueryKey as createConnectQueryKey7, useTransport as useTransport6 } from "@connectrpc/connect-query";
|
|
4900
5032
|
import { useQueryClient as useQueryClient7 } from "@tanstack/react-query";
|
|
4901
5033
|
import {
|
|
4902
|
-
FrontierServiceQueries as
|
|
5034
|
+
FrontierServiceQueries as FrontierServiceQueries23,
|
|
4903
5035
|
VerifyOrganizationDomainRequestSchema,
|
|
4904
5036
|
ListOrganizationDomainsRequestSchema as ListOrganizationDomainsRequestSchema3
|
|
4905
5037
|
} from "@raystack/proton/frontier";
|
|
@@ -4911,22 +5043,22 @@ import {
|
|
|
4911
5043
|
Dialog as Dialog5,
|
|
4912
5044
|
Input as Input8,
|
|
4913
5045
|
Skeleton as Skeleton9,
|
|
4914
|
-
toastManager as
|
|
5046
|
+
toastManager as toastManager11
|
|
4915
5047
|
} from "@raystack/apsara";
|
|
4916
5048
|
|
|
4917
5049
|
// client/hooks/useOrganizationDomain.ts
|
|
4918
|
-
import { useQuery as
|
|
4919
|
-
import { create as
|
|
4920
|
-
import { FrontierServiceQueries as
|
|
5050
|
+
import { useQuery as useQuery13 } from "@connectrpc/connect-query";
|
|
5051
|
+
import { create as create16 } from "@bufbuild/protobuf";
|
|
5052
|
+
import { FrontierServiceQueries as FrontierServiceQueries22, GetOrganizationDomainRequestSchema } from "@raystack/proton/frontier";
|
|
4921
5053
|
var useOrganizationDomain = (domainId) => {
|
|
4922
5054
|
const { activeOrganization: organization } = useFrontier();
|
|
4923
5055
|
const {
|
|
4924
5056
|
data: domain,
|
|
4925
5057
|
isLoading,
|
|
4926
5058
|
error: domainError
|
|
4927
|
-
} =
|
|
4928
|
-
|
|
4929
|
-
|
|
5059
|
+
} = useQuery13(
|
|
5060
|
+
FrontierServiceQueries22.getOrganizationDomain,
|
|
5061
|
+
create16(GetOrganizationDomainRequestSchema, {
|
|
4930
5062
|
id: domainId || "",
|
|
4931
5063
|
orgId: (organization == null ? void 0 : organization.id) || ""
|
|
4932
5064
|
}),
|
|
@@ -4977,15 +5109,15 @@ function VerifyDomainContent({
|
|
|
4977
5109
|
transport
|
|
4978
5110
|
}) {
|
|
4979
5111
|
const { domain, isLoading: isDomainLoading } = useOrganizationDomain(domainId);
|
|
4980
|
-
const { mutateAsync: verifyOrganizationDomain, isPending: isVerifying } = useMutation17(
|
|
5112
|
+
const { mutateAsync: verifyOrganizationDomain, isPending: isVerifying } = useMutation17(FrontierServiceQueries23.verifyOrganizationDomain, {
|
|
4981
5113
|
onSuccess: () => __async(this, null, function* () {
|
|
4982
|
-
|
|
5114
|
+
toastManager11.add({ title: "Domain verified", type: "success" });
|
|
4983
5115
|
if (organization == null ? void 0 : organization.id) {
|
|
4984
5116
|
yield queryClient2.invalidateQueries({
|
|
4985
5117
|
queryKey: createConnectQueryKey7({
|
|
4986
|
-
schema:
|
|
5118
|
+
schema: FrontierServiceQueries23.listOrganizationDomains,
|
|
4987
5119
|
transport,
|
|
4988
|
-
input:
|
|
5120
|
+
input: create17(ListOrganizationDomainsRequestSchema3, {
|
|
4989
5121
|
orgId: organization.id
|
|
4990
5122
|
}),
|
|
4991
5123
|
cardinality: "finite"
|
|
@@ -5001,17 +5133,17 @@ function VerifyDomainContent({
|
|
|
5001
5133
|
return;
|
|
5002
5134
|
try {
|
|
5003
5135
|
yield verifyOrganizationDomain(
|
|
5004
|
-
|
|
5136
|
+
create17(VerifyOrganizationDomainRequestSchema, {
|
|
5005
5137
|
orgId: organization.id,
|
|
5006
5138
|
id: domainId
|
|
5007
5139
|
})
|
|
5008
5140
|
);
|
|
5009
5141
|
} catch (error) {
|
|
5010
5142
|
handleConnectError(error, {
|
|
5011
|
-
NotFound: (err) =>
|
|
5012
|
-
PermissionDenied: () =>
|
|
5013
|
-
InvalidArgument: (err) =>
|
|
5014
|
-
Default: (err) =>
|
|
5143
|
+
NotFound: (err) => toastManager11.add({ title: "Not found", description: err.message, type: "error" }),
|
|
5144
|
+
PermissionDenied: () => toastManager11.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
5145
|
+
InvalidArgument: (err) => toastManager11.add({ title: "Invalid input", description: err.message, type: "error" }),
|
|
5146
|
+
Default: (err) => toastManager11.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
5015
5147
|
});
|
|
5016
5148
|
}
|
|
5017
5149
|
});
|
|
@@ -5067,11 +5199,11 @@ import { useState as useState15 } from "react";
|
|
|
5067
5199
|
import { useForm as useForm9 } from "react-hook-form";
|
|
5068
5200
|
import { yupResolver as yupResolver9 } from "@hookform/resolvers/yup";
|
|
5069
5201
|
import * as yup9 from "yup";
|
|
5070
|
-
import { create as
|
|
5202
|
+
import { create as create18 } from "@bufbuild/protobuf";
|
|
5071
5203
|
import { useMutation as useMutation18, createConnectQueryKey as createConnectQueryKey8, useTransport as useTransport7 } from "@connectrpc/connect-query";
|
|
5072
5204
|
import { useQueryClient as useQueryClient8 } from "@tanstack/react-query";
|
|
5073
5205
|
import {
|
|
5074
|
-
FrontierServiceQueries as
|
|
5206
|
+
FrontierServiceQueries as FrontierServiceQueries24,
|
|
5075
5207
|
DeleteOrganizationDomainRequestSchema,
|
|
5076
5208
|
ListOrganizationDomainsRequestSchema as ListOrganizationDomainsRequestSchema4
|
|
5077
5209
|
} from "@raystack/proton/frontier";
|
|
@@ -5084,7 +5216,7 @@ import {
|
|
|
5084
5216
|
Field as Field7,
|
|
5085
5217
|
Input as Input9,
|
|
5086
5218
|
Skeleton as Skeleton10,
|
|
5087
|
-
toastManager as
|
|
5219
|
+
toastManager as toastManager12
|
|
5088
5220
|
} from "@raystack/apsara";
|
|
5089
5221
|
import { Fragment as Fragment8, jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5090
5222
|
var domainSchema2 = yup9.object({
|
|
@@ -5130,16 +5262,16 @@ function DeleteDomainContent({
|
|
|
5130
5262
|
resolver: yupResolver9(domainSchema2)
|
|
5131
5263
|
});
|
|
5132
5264
|
const { mutateAsync: deleteOrganizationDomain, isPending } = useMutation18(
|
|
5133
|
-
|
|
5265
|
+
FrontierServiceQueries24.deleteOrganizationDomain,
|
|
5134
5266
|
{
|
|
5135
5267
|
onSuccess: () => __async(this, null, function* () {
|
|
5136
|
-
|
|
5268
|
+
toastManager12.add({ title: "Domain successfully deleted", type: "success" });
|
|
5137
5269
|
if (organization == null ? void 0 : organization.id) {
|
|
5138
5270
|
yield queryClient2.invalidateQueries({
|
|
5139
5271
|
queryKey: createConnectQueryKey8({
|
|
5140
|
-
schema:
|
|
5272
|
+
schema: FrontierServiceQueries24.listOrganizationDomains,
|
|
5141
5273
|
transport,
|
|
5142
|
-
input:
|
|
5274
|
+
input: create18(ListOrganizationDomainsRequestSchema4, {
|
|
5143
5275
|
orgId: organization.id
|
|
5144
5276
|
}),
|
|
5145
5277
|
cardinality: "finite"
|
|
@@ -5159,16 +5291,16 @@ function DeleteDomainContent({
|
|
|
5159
5291
|
}
|
|
5160
5292
|
try {
|
|
5161
5293
|
yield deleteOrganizationDomain(
|
|
5162
|
-
|
|
5294
|
+
create18(DeleteOrganizationDomainRequestSchema, {
|
|
5163
5295
|
id: domain.id,
|
|
5164
5296
|
orgId: organization.id
|
|
5165
5297
|
})
|
|
5166
5298
|
);
|
|
5167
5299
|
} catch (error) {
|
|
5168
5300
|
handleConnectError(error, {
|
|
5169
|
-
NotFound: (err) =>
|
|
5170
|
-
PermissionDenied: () =>
|
|
5171
|
-
Default: (err) =>
|
|
5301
|
+
NotFound: (err) => toastManager12.add({ title: "Not found", description: err.message, type: "error" }),
|
|
5302
|
+
PermissionDenied: () => toastManager12.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
5303
|
+
Default: (err) => toastManager12.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
5172
5304
|
});
|
|
5173
5305
|
}
|
|
5174
5306
|
});
|
|
@@ -5232,8 +5364,8 @@ function DeleteDomainContent({
|
|
|
5232
5364
|
] }) });
|
|
5233
5365
|
}
|
|
5234
5366
|
|
|
5235
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5236
|
-
var digest20 = "
|
|
5367
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-8oBRAiBIUcF5/sdk/client/views/security/security-view.module.css.js
|
|
5368
|
+
var digest20 = "564cce3dea1b31f66e8793bb2aa53ba718ccefa4e51f5f5c08d7416e8f136878";
|
|
5237
5369
|
var css20 = `._section_xhxms_1 {
|
|
5238
5370
|
padding: var(--rs-space-9) 0;
|
|
5239
5371
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -5278,9 +5410,9 @@ var deleteDomainDialogHandle = AlertDialog8.createHandle();
|
|
|
5278
5410
|
function SecurityView({ children }) {
|
|
5279
5411
|
const { activeOrganization: organization } = useFrontier();
|
|
5280
5412
|
const { isFetching, domains, refetch, error: domainsError } = useOrganizationDomains();
|
|
5281
|
-
|
|
5413
|
+
useEffect7(() => {
|
|
5282
5414
|
if (domainsError) {
|
|
5283
|
-
|
|
5415
|
+
toastManager13.add({
|
|
5284
5416
|
title: "Something went wrong",
|
|
5285
5417
|
description: domainsError.message,
|
|
5286
5418
|
type: "error"
|
|
@@ -5288,7 +5420,7 @@ function SecurityView({ children }) {
|
|
|
5288
5420
|
}
|
|
5289
5421
|
}, [domainsError]);
|
|
5290
5422
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
5291
|
-
const listOfPermissionsToCheck =
|
|
5423
|
+
const listOfPermissionsToCheck = useMemo13(
|
|
5292
5424
|
() => [
|
|
5293
5425
|
{
|
|
5294
5426
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -5408,7 +5540,7 @@ function DomainCard({ domain, canUpdateOrg, onVerify, onDelete }) {
|
|
|
5408
5540
|
}
|
|
5409
5541
|
|
|
5410
5542
|
// client/views/projects/projects-view.tsx
|
|
5411
|
-
import { useCallback as useCallback12, useEffect as
|
|
5543
|
+
import { useCallback as useCallback12, useEffect as useEffect11, useMemo as useMemo17, useState as useState19 } from "react";
|
|
5412
5544
|
import {
|
|
5413
5545
|
Button as Button25,
|
|
5414
5546
|
Tooltip as Tooltip4,
|
|
@@ -5427,13 +5559,13 @@ import {
|
|
|
5427
5559
|
var inbox_stack_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none">%0A <path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 16.3872V19.375C2.5 21.1009 3.89911 22.5 5.625 22.5H34.375C36.1009 22.5 37.5 21.1009 37.5 19.375V16.3872C37.5 15.1937 37.073 14.0395 36.2963 13.1333L30.8215 6.74604C29.8716 5.63781 28.4849 5 27.0252 5H12.9748C11.5151 5 10.1284 5.63781 9.17847 6.74604L3.70372 13.1333C2.92696 14.0395 2.5 15.1937 2.5 16.3872ZM12.9748 7.5C12.2449 7.5 11.5516 7.81891 11.0766 8.37302L6.46778 13.75H11.7431C13.4148 13.75 14.976 14.5855 15.9033 15.9765L16.1768 16.3868C16.6405 17.0822 17.4211 17.5 18.2569 17.5H21.7431C22.5789 17.5 23.3595 17.0822 23.8232 16.3868L24.0967 15.9765C25.024 14.5855 26.5852 13.75 28.2569 13.75H33.5322L28.9234 8.37302C28.4484 7.81891 27.7551 7.5 27.0252 7.5H12.9748Z" fill="%23646464"/>%0A <path d="M4.6875 25C3.47938 25 2.5 25.9794 2.5 27.1875V30C2.5 32.7614 4.73858 35 7.5 35H32.5C35.2614 35 37.5 32.7614 37.5 30V27.1875C37.5 25.9794 36.5206 25 35.3125 25H28.2569C26.5852 25 25.024 25.8355 24.0967 27.2265L23.8232 27.6368C23.3595 28.3322 22.5789 28.75 21.7431 28.75H18.2569C17.4211 28.75 16.6405 28.3322 16.1768 27.6367L15.9033 27.2265C14.976 25.8355 13.4148 25 11.7431 25H4.6875Z" fill="%23646464"/>%0A</svg>';
|
|
5428
5560
|
|
|
5429
5561
|
// client/views/projects/projects-view.tsx
|
|
5430
|
-
import { toastManager as
|
|
5562
|
+
import { toastManager as toastManager18 } from "@raystack/apsara";
|
|
5431
5563
|
|
|
5432
5564
|
// client/hooks/useOrganizationProjects.ts
|
|
5433
|
-
import { useCallback as useCallback9, useMemo as
|
|
5434
|
-
import { useQuery as
|
|
5435
|
-
import { FrontierServiceQueries as
|
|
5436
|
-
import { create as
|
|
5565
|
+
import { useCallback as useCallback9, useMemo as useMemo14 } from "react";
|
|
5566
|
+
import { useQuery as useQuery14 } from "@connectrpc/connect-query";
|
|
5567
|
+
import { FrontierServiceQueries as FrontierServiceQueries25, ListOrganizationProjectsRequestSchema, ListProjectsByCurrentUserRequestSchema } from "@raystack/proton/frontier";
|
|
5568
|
+
import { create as create19 } from "@bufbuild/protobuf";
|
|
5437
5569
|
var useOrganizationProjects = ({
|
|
5438
5570
|
withMemberCount = false,
|
|
5439
5571
|
allProjects = false
|
|
@@ -5445,9 +5577,9 @@ var useOrganizationProjects = ({
|
|
|
5445
5577
|
isFetched: isOrgProjectsFetched,
|
|
5446
5578
|
error: orgProjectsError,
|
|
5447
5579
|
refetch: refetchOrgProjects
|
|
5448
|
-
} =
|
|
5449
|
-
|
|
5450
|
-
|
|
5580
|
+
} = useQuery14(
|
|
5581
|
+
FrontierServiceQueries25.listOrganizationProjects,
|
|
5582
|
+
create19(ListOrganizationProjectsRequestSchema, {
|
|
5451
5583
|
id: (organization == null ? void 0 : organization.id) || "",
|
|
5452
5584
|
withMemberCount
|
|
5453
5585
|
}),
|
|
@@ -5459,9 +5591,9 @@ var useOrganizationProjects = ({
|
|
|
5459
5591
|
isFetched: isUserProjectsFetched,
|
|
5460
5592
|
error: userProjectsError,
|
|
5461
5593
|
refetch: refetchUserProjects
|
|
5462
|
-
} =
|
|
5463
|
-
|
|
5464
|
-
|
|
5594
|
+
} = useQuery14(
|
|
5595
|
+
FrontierServiceQueries25.listProjectsByCurrentUser,
|
|
5596
|
+
create19(ListProjectsByCurrentUserRequestSchema, {
|
|
5465
5597
|
orgId: (organization == null ? void 0 : organization.id) || "",
|
|
5466
5598
|
withPermissions: ["update", "delete"],
|
|
5467
5599
|
nonInherited: true,
|
|
@@ -5476,13 +5608,13 @@ var useOrganizationProjects = ({
|
|
|
5476
5608
|
refetchUserProjects();
|
|
5477
5609
|
}
|
|
5478
5610
|
}, [allProjects, refetchOrgProjects, refetchUserProjects]);
|
|
5479
|
-
const projects =
|
|
5611
|
+
const projects = useMemo14(() => {
|
|
5480
5612
|
return allProjects ? (orgProjectsData == null ? void 0 : orgProjectsData.projects) || [] : (userProjectsData == null ? void 0 : userProjectsData.projects) || [];
|
|
5481
5613
|
}, [allProjects, orgProjectsData == null ? void 0 : orgProjectsData.projects, userProjectsData == null ? void 0 : userProjectsData.projects]);
|
|
5482
|
-
const accessPairs =
|
|
5614
|
+
const accessPairs = useMemo14(() => {
|
|
5483
5615
|
return allProjects ? [] : (userProjectsData == null ? void 0 : userProjectsData.accessPairs) || [];
|
|
5484
5616
|
}, [allProjects, userProjectsData == null ? void 0 : userProjectsData.accessPairs]);
|
|
5485
|
-
const userAccessOnProject =
|
|
5617
|
+
const userAccessOnProject = useMemo14(() => {
|
|
5486
5618
|
return accessPairs.reduce((acc, p) => {
|
|
5487
5619
|
const { projectId, permissions } = p;
|
|
5488
5620
|
acc[projectId] = permissions;
|
|
@@ -5517,15 +5649,15 @@ import {
|
|
|
5517
5649
|
Text as Text20,
|
|
5518
5650
|
getAvatarColor as getAvatarColor2
|
|
5519
5651
|
} from "@raystack/apsara";
|
|
5520
|
-
import { useQuery as
|
|
5652
|
+
import { useQuery as useQuery15 } from "@connectrpc/connect-query";
|
|
5521
5653
|
import {
|
|
5522
|
-
FrontierServiceQueries as
|
|
5654
|
+
FrontierServiceQueries as FrontierServiceQueries26,
|
|
5523
5655
|
ListProjectUsersRequestSchema
|
|
5524
5656
|
} from "@raystack/proton/frontier";
|
|
5525
|
-
import { create as
|
|
5657
|
+
import { create as create20 } from "@bufbuild/protobuf";
|
|
5526
5658
|
|
|
5527
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5528
|
-
var digest21 = "
|
|
5659
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-7TPTVP7vYCYn/sdk/client/views/projects/components/members-cell.module.css.js
|
|
5660
|
+
var digest21 = "7fe6c84312788bbb676b93bb2d48271d5e424b9c8788e05c99b562eb54bde7e6";
|
|
5529
5661
|
var css21 = `._avatar_1t3nx_1 {
|
|
5530
5662
|
border: none;
|
|
5531
5663
|
outline: 1px solid var(--rs-color-background-base-primary);
|
|
@@ -5553,9 +5685,9 @@ var members_cell_module_css_default = { "avatar": "_avatar_1t3nx_1" };
|
|
|
5553
5685
|
import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5554
5686
|
var MAX_AVATARS = 4;
|
|
5555
5687
|
function MembersCell({ projectId }) {
|
|
5556
|
-
const { data: users = [], isLoading } =
|
|
5557
|
-
|
|
5558
|
-
|
|
5688
|
+
const { data: users = [], isLoading } = useQuery15(
|
|
5689
|
+
FrontierServiceQueries26.listProjectUsers,
|
|
5690
|
+
create20(ListProjectUsersRequestSchema, { id: projectId }),
|
|
5559
5691
|
{
|
|
5560
5692
|
enabled: !!projectId,
|
|
5561
5693
|
select: (d) => {
|
|
@@ -5588,8 +5720,8 @@ function MembersCell({ projectId }) {
|
|
|
5588
5720
|
] });
|
|
5589
5721
|
}
|
|
5590
5722
|
|
|
5591
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5592
|
-
var digest22 = "
|
|
5723
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-JpDT2Btj6eZX/sdk/client/views/projects/components/project-columns.module.css.js
|
|
5724
|
+
var digest22 = "2479b339004503182e3a3fe4ac5dae2c4e1f98ee9eb6bbee8ed24918a9267c44";
|
|
5593
5725
|
var css22 = `._actionsCell_elyi1_1 {
|
|
5594
5726
|
visibility: hidden;
|
|
5595
5727
|
}
|
|
@@ -5689,16 +5821,16 @@ import {
|
|
|
5689
5821
|
Field as Field8,
|
|
5690
5822
|
Input as Input10
|
|
5691
5823
|
} from "@raystack/apsara";
|
|
5692
|
-
import { toastManager as
|
|
5824
|
+
import { toastManager as toastManager14 } from "@raystack/apsara";
|
|
5693
5825
|
import * as yup10 from "yup";
|
|
5694
5826
|
import { yupResolver as yupResolver10 } from "@hookform/resolvers/yup";
|
|
5695
5827
|
import { useForm as useForm10 } from "react-hook-form";
|
|
5696
5828
|
import { useMutation as useMutation19 } from "@connectrpc/connect-query";
|
|
5697
5829
|
import {
|
|
5698
|
-
FrontierServiceQueries as
|
|
5830
|
+
FrontierServiceQueries as FrontierServiceQueries27,
|
|
5699
5831
|
CreateProjectRequestSchema
|
|
5700
5832
|
} from "@raystack/proton/frontier";
|
|
5701
|
-
import { create as
|
|
5833
|
+
import { create as create21 } from "@bufbuild/protobuf";
|
|
5702
5834
|
import slugify2 from "slugify";
|
|
5703
5835
|
import { jsx as jsx34, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5704
5836
|
var projectSchema = yup10.object({
|
|
@@ -5717,7 +5849,7 @@ function AddProjectDialog({ handle, refetch }) {
|
|
|
5717
5849
|
});
|
|
5718
5850
|
const { activeOrganization: organization } = useFrontier();
|
|
5719
5851
|
const { mutateAsync: createProject } = useMutation19(
|
|
5720
|
-
|
|
5852
|
+
FrontierServiceQueries27.createProject
|
|
5721
5853
|
);
|
|
5722
5854
|
const handleOpenChange = (open) => {
|
|
5723
5855
|
if (!open)
|
|
@@ -5732,7 +5864,7 @@ function AddProjectDialog({ handle, refetch }) {
|
|
|
5732
5864
|
const name = `${slug}-${suffix}`;
|
|
5733
5865
|
try {
|
|
5734
5866
|
yield createProject(
|
|
5735
|
-
|
|
5867
|
+
create21(CreateProjectRequestSchema, {
|
|
5736
5868
|
body: {
|
|
5737
5869
|
title: data.title,
|
|
5738
5870
|
name,
|
|
@@ -5740,7 +5872,7 @@ function AddProjectDialog({ handle, refetch }) {
|
|
|
5740
5872
|
}
|
|
5741
5873
|
})
|
|
5742
5874
|
);
|
|
5743
|
-
|
|
5875
|
+
toastManager14.add({ title: "Project added", type: "success" });
|
|
5744
5876
|
refetch();
|
|
5745
5877
|
handle.close();
|
|
5746
5878
|
} catch (error) {
|
|
@@ -5748,9 +5880,9 @@ function AddProjectDialog({ handle, refetch }) {
|
|
|
5748
5880
|
AlreadyExists: () => setError("title", {
|
|
5749
5881
|
message: "A project with a similar title already exists. Please tweak the title and try again."
|
|
5750
5882
|
}),
|
|
5751
|
-
InvalidArgument: (err) =>
|
|
5752
|
-
PermissionDenied: () =>
|
|
5753
|
-
Default: (err) =>
|
|
5883
|
+
InvalidArgument: (err) => toastManager14.add({ title: "Invalid input", description: err.message, type: "error" }),
|
|
5884
|
+
PermissionDenied: () => toastManager14.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
5885
|
+
Default: (err) => toastManager14.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
5754
5886
|
});
|
|
5755
5887
|
}
|
|
5756
5888
|
});
|
|
@@ -5803,7 +5935,7 @@ function AddProjectDialog({ handle, refetch }) {
|
|
|
5803
5935
|
}
|
|
5804
5936
|
|
|
5805
5937
|
// client/views/projects/components/edit-project-dialog.tsx
|
|
5806
|
-
import { useEffect as
|
|
5938
|
+
import { useEffect as useEffect8 } from "react";
|
|
5807
5939
|
import {
|
|
5808
5940
|
Button as Button22,
|
|
5809
5941
|
Flex as Flex29,
|
|
@@ -5811,16 +5943,16 @@ import {
|
|
|
5811
5943
|
Field as Field9,
|
|
5812
5944
|
Input as Input11
|
|
5813
5945
|
} from "@raystack/apsara";
|
|
5814
|
-
import { toastManager as
|
|
5946
|
+
import { toastManager as toastManager15 } from "@raystack/apsara";
|
|
5815
5947
|
import * as yup11 from "yup";
|
|
5816
5948
|
import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
|
|
5817
5949
|
import { useForm as useForm11 } from "react-hook-form";
|
|
5818
5950
|
import { useMutation as useMutation20 } from "@connectrpc/connect-query";
|
|
5819
5951
|
import {
|
|
5820
|
-
FrontierServiceQueries as
|
|
5952
|
+
FrontierServiceQueries as FrontierServiceQueries28,
|
|
5821
5953
|
UpdateProjectRequestSchema
|
|
5822
5954
|
} from "@raystack/proton/frontier";
|
|
5823
|
-
import { create as
|
|
5955
|
+
import { create as create22 } from "@bufbuild/protobuf";
|
|
5824
5956
|
import { jsx as jsx35, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5825
5957
|
var editProjectSchema = yup11.object({
|
|
5826
5958
|
title: yup11.string().required("Project name is required")
|
|
@@ -5852,9 +5984,9 @@ function EditProjectForm({ payload, handle, refetch }) {
|
|
|
5852
5984
|
}
|
|
5853
5985
|
});
|
|
5854
5986
|
const { mutateAsync: updateProject } = useMutation20(
|
|
5855
|
-
|
|
5987
|
+
FrontierServiceQueries28.updateProject
|
|
5856
5988
|
);
|
|
5857
|
-
|
|
5989
|
+
useEffect8(() => {
|
|
5858
5990
|
reset({
|
|
5859
5991
|
title: payload.title
|
|
5860
5992
|
});
|
|
@@ -5865,7 +5997,7 @@ function EditProjectForm({ payload, handle, refetch }) {
|
|
|
5865
5997
|
return;
|
|
5866
5998
|
try {
|
|
5867
5999
|
yield updateProject(
|
|
5868
|
-
|
|
6000
|
+
create22(UpdateProjectRequestSchema, {
|
|
5869
6001
|
id: payload.projectId,
|
|
5870
6002
|
body: {
|
|
5871
6003
|
name: payload.name,
|
|
@@ -5873,16 +6005,16 @@ function EditProjectForm({ payload, handle, refetch }) {
|
|
|
5873
6005
|
}
|
|
5874
6006
|
})
|
|
5875
6007
|
);
|
|
5876
|
-
|
|
6008
|
+
toastManager15.add({ title: "Project updated", type: "success" });
|
|
5877
6009
|
refetch();
|
|
5878
6010
|
handle.close();
|
|
5879
6011
|
} catch (error) {
|
|
5880
6012
|
handleConnectError(error, {
|
|
5881
|
-
AlreadyExists: () =>
|
|
5882
|
-
InvalidArgument: (err) =>
|
|
5883
|
-
PermissionDenied: () =>
|
|
5884
|
-
NotFound: (err) =>
|
|
5885
|
-
Default: (err) =>
|
|
6013
|
+
AlreadyExists: () => toastManager15.add({ title: "Project already exists", type: "error" }),
|
|
6014
|
+
InvalidArgument: (err) => toastManager15.add({ title: "Invalid input", description: err.message, type: "error" }),
|
|
6015
|
+
PermissionDenied: () => toastManager15.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
6016
|
+
NotFound: (err) => toastManager15.add({ title: "Not found", description: err.message, type: "error" }),
|
|
6017
|
+
Default: (err) => toastManager15.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
5886
6018
|
});
|
|
5887
6019
|
}
|
|
5888
6020
|
});
|
|
@@ -5940,19 +6072,19 @@ import {
|
|
|
5940
6072
|
Text as Text22,
|
|
5941
6073
|
AlertDialog as AlertDialog9
|
|
5942
6074
|
} from "@raystack/apsara";
|
|
5943
|
-
import { toastManager as
|
|
6075
|
+
import { toastManager as toastManager16 } from "@raystack/apsara";
|
|
5944
6076
|
import { useMutation as useMutation21 } from "@connectrpc/connect-query";
|
|
5945
6077
|
import {
|
|
5946
|
-
FrontierServiceQueries as
|
|
6078
|
+
FrontierServiceQueries as FrontierServiceQueries29,
|
|
5947
6079
|
DeleteProjectRequestSchema
|
|
5948
6080
|
} from "@raystack/proton/frontier";
|
|
5949
|
-
import { create as
|
|
6081
|
+
import { create as create23 } from "@bufbuild/protobuf";
|
|
5950
6082
|
import { jsx as jsx36, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5951
6083
|
function DeleteProjectDialog({ handle, refetch }) {
|
|
5952
6084
|
const { activeOrganization: organization } = useFrontier();
|
|
5953
6085
|
const [isLoading, setIsLoading] = useState16(false);
|
|
5954
6086
|
const { mutateAsync: deleteProject } = useMutation21(
|
|
5955
|
-
|
|
6087
|
+
FrontierServiceQueries29.deleteProject
|
|
5956
6088
|
);
|
|
5957
6089
|
const handleDelete = (projectId) => __async(this, null, function* () {
|
|
5958
6090
|
if (!(organization == null ? void 0 : organization.id) || !projectId)
|
|
@@ -5960,16 +6092,16 @@ function DeleteProjectDialog({ handle, refetch }) {
|
|
|
5960
6092
|
setIsLoading(true);
|
|
5961
6093
|
try {
|
|
5962
6094
|
yield deleteProject(
|
|
5963
|
-
|
|
6095
|
+
create23(DeleteProjectRequestSchema, { id: projectId })
|
|
5964
6096
|
);
|
|
5965
|
-
|
|
6097
|
+
toastManager16.add({ title: "Project deleted", type: "success" });
|
|
5966
6098
|
refetch();
|
|
5967
6099
|
handle.close();
|
|
5968
6100
|
} catch (error) {
|
|
5969
6101
|
handleConnectError(error, {
|
|
5970
|
-
PermissionDenied: () =>
|
|
5971
|
-
NotFound: (err) =>
|
|
5972
|
-
Default: (err) =>
|
|
6102
|
+
PermissionDenied: () => toastManager16.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
6103
|
+
NotFound: (err) => toastManager16.add({ title: "Not found", description: err.message, type: "error" }),
|
|
6104
|
+
Default: (err) => toastManager16.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
5973
6105
|
});
|
|
5974
6106
|
} finally {
|
|
5975
6107
|
setIsLoading(false);
|
|
@@ -6015,7 +6147,7 @@ function DeleteProjectDialog({ handle, refetch }) {
|
|
|
6015
6147
|
}
|
|
6016
6148
|
|
|
6017
6149
|
// client/views/projects/components/add-member-menu.tsx
|
|
6018
|
-
import { useCallback as useCallback11, useEffect as
|
|
6150
|
+
import { useCallback as useCallback11, useEffect as useEffect10, useMemo as useMemo16, useState as useState18 } from "react";
|
|
6019
6151
|
import {
|
|
6020
6152
|
Avatar as Avatar4,
|
|
6021
6153
|
Button as Button24,
|
|
@@ -6025,21 +6157,21 @@ import {
|
|
|
6025
6157
|
Skeleton as Skeleton13,
|
|
6026
6158
|
Tooltip as Tooltip3
|
|
6027
6159
|
} from "@raystack/apsara";
|
|
6028
|
-
import { toastManager as
|
|
6029
|
-
import { useQuery as
|
|
6160
|
+
import { toastManager as toastManager17 } from "@raystack/apsara";
|
|
6161
|
+
import { useQuery as useQuery17, useMutation as useMutation22 } from "@connectrpc/connect-query";
|
|
6030
6162
|
import {
|
|
6031
|
-
FrontierServiceQueries as
|
|
6163
|
+
FrontierServiceQueries as FrontierServiceQueries31,
|
|
6032
6164
|
ListOrganizationUsersRequestSchema as ListOrganizationUsersRequestSchema2,
|
|
6033
6165
|
ListRolesRequestSchema as ListRolesRequestSchema3,
|
|
6034
6166
|
SetProjectMemberRoleRequestSchema
|
|
6035
6167
|
} from "@raystack/proton/frontier";
|
|
6036
|
-
import { create as
|
|
6168
|
+
import { create as create25 } from "@bufbuild/protobuf";
|
|
6037
6169
|
|
|
6038
6170
|
// client/hooks/useOrganizationTeams.ts
|
|
6039
|
-
import { useCallback as useCallback10, useEffect as
|
|
6040
|
-
import { useQuery as
|
|
6041
|
-
import { FrontierServiceQueries as
|
|
6042
|
-
import { create as
|
|
6171
|
+
import { useCallback as useCallback10, useEffect as useEffect9, useMemo as useMemo15, useState as useState17 } from "react";
|
|
6172
|
+
import { useQuery as useQuery16 } from "@connectrpc/connect-query";
|
|
6173
|
+
import { FrontierServiceQueries as FrontierServiceQueries30, ListOrganizationGroupsRequestSchema as ListOrganizationGroupsRequestSchema2, ListCurrentUserGroupsRequestSchema } from "@raystack/proton/frontier";
|
|
6174
|
+
import { create as create24 } from "@bufbuild/protobuf";
|
|
6043
6175
|
var useOrganizationTeams = ({
|
|
6044
6176
|
withPermissions = [],
|
|
6045
6177
|
showOrgTeams = false,
|
|
@@ -6048,19 +6180,19 @@ var useOrganizationTeams = ({
|
|
|
6048
6180
|
const [teams, setTeams] = useState17([]);
|
|
6049
6181
|
const [accessPairs, setAccessPairs] = useState17([]);
|
|
6050
6182
|
const { activeOrganization: organization } = useFrontier();
|
|
6051
|
-
const { data: orgTeamsData, isLoading: isOrgTeamsLoading, isFetched: isOrgTeamsFetched, error: orgTeamsError, refetch: refetchOrgTeams } =
|
|
6052
|
-
|
|
6053
|
-
|
|
6183
|
+
const { data: orgTeamsData, isLoading: isOrgTeamsLoading, isFetched: isOrgTeamsFetched, error: orgTeamsError, refetch: refetchOrgTeams } = useQuery16(
|
|
6184
|
+
FrontierServiceQueries30.listOrganizationGroups,
|
|
6185
|
+
create24(ListOrganizationGroupsRequestSchema2, { orgId: (organization == null ? void 0 : organization.id) || "", withMemberCount }),
|
|
6054
6186
|
{ enabled: !!(organization == null ? void 0 : organization.id) && showOrgTeams }
|
|
6055
6187
|
);
|
|
6056
|
-
const { data: userTeamsData, isLoading: isUserTeamsLoading, isFetched: isUserTeamsFetched, error: userTeamsError, refetch: refetchUserTeams } =
|
|
6057
|
-
|
|
6058
|
-
|
|
6188
|
+
const { data: userTeamsData, isLoading: isUserTeamsLoading, isFetched: isUserTeamsFetched, error: userTeamsError, refetch: refetchUserTeams } = useQuery16(
|
|
6189
|
+
FrontierServiceQueries30.listCurrentUserGroups,
|
|
6190
|
+
create24(ListCurrentUserGroupsRequestSchema, { orgId: (organization == null ? void 0 : organization.id) || "", withPermissions, withMemberCount }),
|
|
6059
6191
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !showOrgTeams }
|
|
6060
6192
|
);
|
|
6061
6193
|
const isTeamsLoading = showOrgTeams ? isOrgTeamsLoading : isUserTeamsLoading;
|
|
6062
6194
|
const teamsData = showOrgTeams ? orgTeamsData : userTeamsData;
|
|
6063
|
-
|
|
6195
|
+
useEffect9(() => {
|
|
6064
6196
|
if (teamsData) {
|
|
6065
6197
|
const { groups = [] } = teamsData;
|
|
6066
6198
|
setTeams(groups);
|
|
@@ -6071,7 +6203,7 @@ var useOrganizationTeams = ({
|
|
|
6071
6203
|
}
|
|
6072
6204
|
}
|
|
6073
6205
|
}, [teamsData, showOrgTeams]);
|
|
6074
|
-
const userAccessOnTeam =
|
|
6206
|
+
const userAccessOnTeam = useMemo15(() => {
|
|
6075
6207
|
return accessPairs.reduce((acc, p) => {
|
|
6076
6208
|
const { groupId, permissions } = p;
|
|
6077
6209
|
acc[groupId] = permissions;
|
|
@@ -6095,8 +6227,8 @@ var useOrganizationTeams = ({
|
|
|
6095
6227
|
};
|
|
6096
6228
|
};
|
|
6097
6229
|
|
|
6098
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6099
|
-
var digest23 = "
|
|
6230
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-zNpp8OEFz1f9/sdk/client/views/projects/project-details-view.module.css.js
|
|
6231
|
+
var digest23 = "05205e3a14c6c05a896cec73cdfbc3936181f10eb10e25d7194afe056d9fde54";
|
|
6100
6232
|
var css23 = `._roleFilter_1dxgv_1 {
|
|
6101
6233
|
width: auto;
|
|
6102
6234
|
min-width: 80px;
|
|
@@ -6188,42 +6320,42 @@ function AddMemberMenuContent({
|
|
|
6188
6320
|
data: orgUsersData,
|
|
6189
6321
|
isLoading: isOrgUsersLoading,
|
|
6190
6322
|
error: orgUsersError
|
|
6191
|
-
} =
|
|
6192
|
-
|
|
6193
|
-
|
|
6323
|
+
} = useQuery17(
|
|
6324
|
+
FrontierServiceQueries31.listOrganizationUsers,
|
|
6325
|
+
create25(ListOrganizationUsersRequestSchema2, {
|
|
6194
6326
|
id: (organization == null ? void 0 : organization.id) || ""
|
|
6195
6327
|
}),
|
|
6196
6328
|
{ enabled: !!(organization == null ? void 0 : organization.id) && canUpdateProject }
|
|
6197
6329
|
);
|
|
6198
|
-
const orgUsers =
|
|
6330
|
+
const orgUsers = useMemo16(
|
|
6199
6331
|
() => {
|
|
6200
6332
|
var _a;
|
|
6201
6333
|
return (_a = orgUsersData == null ? void 0 : orgUsersData.users) != null ? _a : [];
|
|
6202
6334
|
},
|
|
6203
6335
|
[orgUsersData]
|
|
6204
6336
|
);
|
|
6205
|
-
|
|
6337
|
+
useEffect10(() => {
|
|
6206
6338
|
if (orgUsersError) {
|
|
6207
|
-
|
|
6339
|
+
toastManager17.add({
|
|
6208
6340
|
title: "Something went wrong",
|
|
6209
6341
|
description: orgUsersError.message,
|
|
6210
6342
|
type: "error"
|
|
6211
6343
|
});
|
|
6212
6344
|
}
|
|
6213
6345
|
}, [orgUsersError]);
|
|
6214
|
-
const invitableUsers =
|
|
6346
|
+
const invitableUsers = useMemo16(
|
|
6215
6347
|
() => filterUsersfromUsers(orgUsers, members),
|
|
6216
6348
|
[orgUsers, members]
|
|
6217
6349
|
);
|
|
6218
|
-
const { data: rolesData } =
|
|
6219
|
-
|
|
6220
|
-
|
|
6350
|
+
const { data: rolesData } = useQuery17(
|
|
6351
|
+
FrontierServiceQueries31.listRoles,
|
|
6352
|
+
create25(ListRolesRequestSchema3, {
|
|
6221
6353
|
state: "enabled",
|
|
6222
6354
|
scopes: [PERMISSIONS.ProjectNamespace]
|
|
6223
6355
|
}),
|
|
6224
6356
|
{ enabled: !!projectId }
|
|
6225
6357
|
);
|
|
6226
|
-
const viewerRole =
|
|
6358
|
+
const viewerRole = useMemo16(
|
|
6227
6359
|
() => {
|
|
6228
6360
|
var _a;
|
|
6229
6361
|
return ((_a = rolesData == null ? void 0 : rolesData.roles) != null ? _a : []).find(
|
|
@@ -6233,17 +6365,17 @@ function AddMemberMenuContent({
|
|
|
6233
6365
|
[rolesData]
|
|
6234
6366
|
);
|
|
6235
6367
|
const { mutate: setProjectMemberRole } = useMutation22(
|
|
6236
|
-
|
|
6368
|
+
FrontierServiceQueries31.setProjectMemberRole,
|
|
6237
6369
|
{
|
|
6238
6370
|
onSuccess: () => {
|
|
6239
|
-
|
|
6371
|
+
toastManager17.add({
|
|
6240
6372
|
title: "Member added",
|
|
6241
6373
|
type: "success"
|
|
6242
6374
|
});
|
|
6243
6375
|
refetch();
|
|
6244
6376
|
},
|
|
6245
6377
|
onError: (err) => {
|
|
6246
|
-
|
|
6378
|
+
toastManager17.add({
|
|
6247
6379
|
title: "Something went wrong",
|
|
6248
6380
|
description: err.message,
|
|
6249
6381
|
type: "error"
|
|
@@ -6256,7 +6388,7 @@ function AddMemberMenuContent({
|
|
|
6256
6388
|
if (!userId || !(organization == null ? void 0 : organization.id) || !projectId || !(viewerRole == null ? void 0 : viewerRole.id))
|
|
6257
6389
|
return;
|
|
6258
6390
|
setProjectMemberRole(
|
|
6259
|
-
|
|
6391
|
+
create25(SetProjectMemberRoleRequestSchema, {
|
|
6260
6392
|
projectId,
|
|
6261
6393
|
principalId: userId,
|
|
6262
6394
|
principalType: PERMISSIONS.UserNamespace,
|
|
@@ -6271,7 +6403,7 @@ function AddMemberMenuContent({
|
|
|
6271
6403
|
if (!teamId || !(organization == null ? void 0 : organization.id) || !projectId || !(viewerRole == null ? void 0 : viewerRole.id))
|
|
6272
6404
|
return;
|
|
6273
6405
|
setProjectMemberRole(
|
|
6274
|
-
|
|
6406
|
+
create25(SetProjectMemberRoleRequestSchema, {
|
|
6275
6407
|
projectId,
|
|
6276
6408
|
principalId: teamId,
|
|
6277
6409
|
principalType: PERMISSIONS.GroupNamespace,
|
|
@@ -6401,8 +6533,8 @@ function AddMemberMenu({
|
|
|
6401
6533
|
] });
|
|
6402
6534
|
}
|
|
6403
6535
|
|
|
6404
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6405
|
-
var digest24 = "
|
|
6536
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-rb7DmZm2WjA2/sdk/client/views/projects/projects-view.module.css.js
|
|
6537
|
+
var digest24 = "fcb9f19ec5196d0f81914ad749a0a1c77355aff567a4ba13d696808d604363f5";
|
|
6406
6538
|
var css24 = `._tableRoot_1tj9z_1 {
|
|
6407
6539
|
border: none;
|
|
6408
6540
|
}
|
|
@@ -6475,7 +6607,7 @@ function ProjectsView({
|
|
|
6475
6607
|
const { activeOrganization: organization } = useFrontier();
|
|
6476
6608
|
const t = useTerminology();
|
|
6477
6609
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
6478
|
-
const listOfPermissionsToCheck =
|
|
6610
|
+
const listOfPermissionsToCheck = useMemo17(
|
|
6479
6611
|
() => [
|
|
6480
6612
|
{
|
|
6481
6613
|
permission: PERMISSIONS.ProjectCreatePermission,
|
|
@@ -6492,7 +6624,7 @@ function ProjectsView({
|
|
|
6492
6624
|
listOfPermissionsToCheck,
|
|
6493
6625
|
!!(organization == null ? void 0 : organization.id)
|
|
6494
6626
|
);
|
|
6495
|
-
const { canCreateProject, canListOrgProjects } =
|
|
6627
|
+
const { canCreateProject, canListOrgProjects } = useMemo17(() => {
|
|
6496
6628
|
return {
|
|
6497
6629
|
canCreateProject: shouldShowComponent(
|
|
6498
6630
|
permissions,
|
|
@@ -6507,9 +6639,9 @@ function ProjectsView({
|
|
|
6507
6639
|
const onFilterChange = useCallback12((value) => {
|
|
6508
6640
|
setShowOrgProjects(value === "all-projects");
|
|
6509
6641
|
}, []);
|
|
6510
|
-
|
|
6642
|
+
useEffect11(() => {
|
|
6511
6643
|
if (projectsError) {
|
|
6512
|
-
|
|
6644
|
+
toastManager18.add({
|
|
6513
6645
|
title: "Something went wrong",
|
|
6514
6646
|
description: projectsError instanceof Error ? projectsError.message : "Failed to load projects",
|
|
6515
6647
|
type: "error"
|
|
@@ -6520,7 +6652,7 @@ function ProjectsView({
|
|
|
6520
6652
|
const showInitialSkeleton = isLoading && !isProjectsFetched;
|
|
6521
6653
|
const filterValue = showOrgProjects ? "all-projects" : "my-projects";
|
|
6522
6654
|
const hasNoProjects = !isLoading && ((_a = projects == null ? void 0 : projects.length) != null ? _a : 0) === 0;
|
|
6523
|
-
const columns =
|
|
6655
|
+
const columns = useMemo17(
|
|
6524
6656
|
() => getColumns2({
|
|
6525
6657
|
userAccessOnProject,
|
|
6526
6658
|
menuHandle: projectMenuHandle
|
|
@@ -6703,7 +6835,7 @@ function ProjectsView({
|
|
|
6703
6835
|
}
|
|
6704
6836
|
|
|
6705
6837
|
// client/views/projects/project-details-view.tsx
|
|
6706
|
-
import { useCallback as useCallback13, useEffect as
|
|
6838
|
+
import { useCallback as useCallback13, useEffect as useEffect12, useMemo as useMemo18, useState as useState22 } from "react";
|
|
6707
6839
|
import {
|
|
6708
6840
|
Breadcrumb,
|
|
6709
6841
|
Skeleton as Skeleton15,
|
|
@@ -6717,16 +6849,16 @@ import {
|
|
|
6717
6849
|
Image as Image5,
|
|
6718
6850
|
Select as Select5
|
|
6719
6851
|
} from "@raystack/apsara";
|
|
6720
|
-
import { toastManager as
|
|
6721
|
-
import { useQuery as
|
|
6852
|
+
import { toastManager as toastManager21 } from "@raystack/apsara";
|
|
6853
|
+
import { useQuery as useQuery18 } from "@connectrpc/connect-query";
|
|
6722
6854
|
import {
|
|
6723
|
-
FrontierServiceQueries as
|
|
6855
|
+
FrontierServiceQueries as FrontierServiceQueries34,
|
|
6724
6856
|
ListProjectGroupsRequestSchema,
|
|
6725
6857
|
ListProjectUsersRequestSchema as ListProjectUsersRequestSchema2,
|
|
6726
6858
|
GetProjectRequestSchema,
|
|
6727
6859
|
ListRolesRequestSchema as ListRolesRequestSchema4
|
|
6728
6860
|
} from "@raystack/proton/frontier";
|
|
6729
|
-
import { create as
|
|
6861
|
+
import { create as create28 } from "@bufbuild/protobuf";
|
|
6730
6862
|
|
|
6731
6863
|
// client/views/projects/components/remove-member-dialog.tsx
|
|
6732
6864
|
import { useState as useState20 } from "react";
|
|
@@ -6735,13 +6867,13 @@ import {
|
|
|
6735
6867
|
Text as Text23,
|
|
6736
6868
|
AlertDialog as AlertDialog11
|
|
6737
6869
|
} from "@raystack/apsara";
|
|
6738
|
-
import { toastManager as
|
|
6870
|
+
import { toastManager as toastManager19 } from "@raystack/apsara";
|
|
6739
6871
|
import { useMutation as useMutation23 } from "@connectrpc/connect-query";
|
|
6740
6872
|
import {
|
|
6741
|
-
FrontierServiceQueries as
|
|
6873
|
+
FrontierServiceQueries as FrontierServiceQueries32,
|
|
6742
6874
|
RemoveProjectMemberRequestSchema
|
|
6743
6875
|
} from "@raystack/proton/frontier";
|
|
6744
|
-
import { create as
|
|
6876
|
+
import { create as create26 } from "@bufbuild/protobuf";
|
|
6745
6877
|
import { Fragment as Fragment11, jsx as jsx39, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6746
6878
|
var PRINCIPAL_TYPES = {
|
|
6747
6879
|
USER: "app/user",
|
|
@@ -6770,27 +6902,27 @@ function RemoveMemberForm({
|
|
|
6770
6902
|
}) {
|
|
6771
6903
|
const [isLoading, setIsLoading] = useState20(false);
|
|
6772
6904
|
const { mutateAsync: removeProjectMember } = useMutation23(
|
|
6773
|
-
|
|
6905
|
+
FrontierServiceQueries32.removeProjectMember
|
|
6774
6906
|
);
|
|
6775
6907
|
function handleRemove() {
|
|
6776
6908
|
return __async(this, null, function* () {
|
|
6777
6909
|
setIsLoading(true);
|
|
6778
6910
|
try {
|
|
6779
6911
|
yield removeProjectMember(
|
|
6780
|
-
|
|
6912
|
+
create26(RemoveProjectMemberRequestSchema, {
|
|
6781
6913
|
projectId: payload.projectId,
|
|
6782
6914
|
principalId: payload.memberId,
|
|
6783
6915
|
principalType: payload.memberType === "group" ? PRINCIPAL_TYPES.GROUP : PRINCIPAL_TYPES.USER
|
|
6784
6916
|
})
|
|
6785
6917
|
);
|
|
6786
|
-
|
|
6918
|
+
toastManager19.add({ title: "Member removed", type: "success" });
|
|
6787
6919
|
refetch();
|
|
6788
6920
|
handle.close();
|
|
6789
6921
|
} catch (error) {
|
|
6790
6922
|
handleConnectError(error, {
|
|
6791
|
-
PermissionDenied: () =>
|
|
6792
|
-
NotFound: (err) =>
|
|
6793
|
-
Default: (err) =>
|
|
6923
|
+
PermissionDenied: () => toastManager19.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
6924
|
+
NotFound: (err) => toastManager19.add({ title: "Not found", description: err.message, type: "error" }),
|
|
6925
|
+
Default: (err) => toastManager19.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
6794
6926
|
});
|
|
6795
6927
|
} finally {
|
|
6796
6928
|
setIsLoading(false);
|
|
@@ -6831,16 +6963,16 @@ function RemoveMemberForm({
|
|
|
6831
6963
|
|
|
6832
6964
|
// client/views/projects/components/update-role-dialog.tsx
|
|
6833
6965
|
import { useState as useState21 } from "react";
|
|
6834
|
-
import { create as
|
|
6966
|
+
import { create as create27 } from "@bufbuild/protobuf";
|
|
6835
6967
|
import { useMutation as useMutation24 } from "@connectrpc/connect-query";
|
|
6836
6968
|
import {
|
|
6837
|
-
FrontierServiceQueries as
|
|
6969
|
+
FrontierServiceQueries as FrontierServiceQueries33,
|
|
6838
6970
|
SetProjectMemberRoleRequestSchema as SetProjectMemberRoleRequestSchema2
|
|
6839
6971
|
} from "@raystack/proton/frontier";
|
|
6840
6972
|
import {
|
|
6841
6973
|
AlertDialog as AlertDialog12,
|
|
6842
6974
|
Button as Button27,
|
|
6843
|
-
toastManager as
|
|
6975
|
+
toastManager as toastManager20
|
|
6844
6976
|
} from "@raystack/apsara";
|
|
6845
6977
|
import { jsx as jsx40, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6846
6978
|
function UpdateRoleDialog2({
|
|
@@ -6869,27 +7001,27 @@ function UpdateRoleContent2({
|
|
|
6869
7001
|
}) {
|
|
6870
7002
|
const [isLoading, setIsLoading] = useState21(false);
|
|
6871
7003
|
const { mutateAsync: setProjectMemberRole } = useMutation24(
|
|
6872
|
-
|
|
7004
|
+
FrontierServiceQueries33.setProjectMemberRole
|
|
6873
7005
|
);
|
|
6874
7006
|
const handleUpdate = () => __async(this, null, function* () {
|
|
6875
7007
|
setIsLoading(true);
|
|
6876
7008
|
try {
|
|
6877
7009
|
yield setProjectMemberRole(
|
|
6878
|
-
|
|
7010
|
+
create27(SetProjectMemberRoleRequestSchema2, {
|
|
6879
7011
|
projectId,
|
|
6880
7012
|
principalId: payload.memberId,
|
|
6881
7013
|
principalType: payload.isTeam ? PERMISSIONS.GroupNamespace : PERMISSIONS.UserNamespace,
|
|
6882
7014
|
roleId: payload.role.id
|
|
6883
7015
|
})
|
|
6884
7016
|
);
|
|
6885
|
-
|
|
7017
|
+
toastManager20.add({ title: "Member role updated", type: "success" });
|
|
6886
7018
|
refetch();
|
|
6887
7019
|
onClose();
|
|
6888
7020
|
} catch (error) {
|
|
6889
7021
|
handleConnectError(error, {
|
|
6890
|
-
PermissionDenied: () =>
|
|
6891
|
-
NotFound: (err) =>
|
|
6892
|
-
Default: (err) =>
|
|
7022
|
+
PermissionDenied: () => toastManager20.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
7023
|
+
NotFound: (err) => toastManager20.add({ title: "Not found", description: err.message, type: "error" }),
|
|
7024
|
+
Default: (err) => toastManager20.add({ title: "Something went wrong", description: err.message, type: "error" })
|
|
6893
7025
|
});
|
|
6894
7026
|
} finally {
|
|
6895
7027
|
setIsLoading(false);
|
|
@@ -6942,8 +7074,8 @@ import {
|
|
|
6942
7074
|
// client/assets/users.svg
|
|
6943
7075
|
var users_default = 'data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="users">%0A<path id="Vector" d="M7.1206 8.07982C7.88443 8.07982 8.61697 7.7764 9.15707 7.23629C9.69718 6.69619 10.0006 5.96365 10.0006 5.19982C10.0006 4.436 9.69718 3.70346 9.15707 3.16336C8.61697 2.62325 7.88443 2.31982 7.1206 2.31982C6.35678 2.31982 5.62424 2.62325 5.08413 3.16336C4.54403 3.70346 4.2406 4.436 4.2406 5.19982C4.2406 5.96365 4.54403 6.69619 5.08413 7.23629C5.62424 7.7764 6.35678 8.07982 7.1206 8.07982ZM14.3206 9.03982C14.9571 9.03982 15.5676 8.78697 16.0177 8.33688C16.4677 7.88679 16.7206 7.27634 16.7206 6.63982C16.7206 6.0033 16.4677 5.39286 16.0177 4.94277C15.5676 4.49268 14.9571 4.23982 14.3206 4.23982C13.6841 4.23982 13.0736 4.49268 12.6235 4.94277C12.1735 5.39286 11.9206 6.0033 11.9206 6.63982C11.9206 7.27634 12.1735 7.88679 12.6235 8.33688C13.0736 8.78697 13.6841 9.03982 14.3206 9.03982ZM1.951 16.1707C1.76278 16.0534 1.6116 15.8852 1.51494 15.6856C1.41828 15.486 1.38008 15.2631 1.40476 15.0427C1.58174 13.6517 2.25988 12.373 3.3121 11.4462C4.36432 10.5194 5.7184 10.008 7.1206 10.008C8.5228 10.008 9.87688 10.5194 10.9291 11.4462C11.9813 12.373 12.6595 13.6517 12.8364 15.0427C12.8921 15.491 12.6713 15.9259 12.2892 16.1697C10.7468 17.1582 8.95262 17.6824 7.1206 17.6798C5.28835 17.6829 3.49386 17.159 1.951 16.1707ZM14.3206 15.7598H14.2188C14.286 15.4747 14.3033 15.1733 14.2649 14.8641C14.1008 13.5444 13.573 12.2963 12.7404 11.2593C13.2762 11.0485 13.8488 10.9469 14.4244 10.9604C15 10.9739 15.5671 11.1023 16.0925 11.338C16.6178 11.5738 17.0907 11.9121 17.4834 12.3331C17.8762 12.7542 18.1808 13.2495 18.3795 13.7899C18.4405 13.9624 18.4394 14.1508 18.3763 14.3226C18.3132 14.4944 18.1921 14.6387 18.0339 14.7307C16.9133 15.4063 15.6291 15.7622 14.3206 15.7598Z" fill="%23687076"/>%0A</g>%0A</svg>%0A';
|
|
6944
7076
|
|
|
6945
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6946
|
-
var digest25 = "
|
|
7077
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-QVhF3mhasTcv/sdk/client/views/projects/components/member-columns.module.css.js
|
|
7078
|
+
var digest25 = "04d776e102063d0c6e22c9fb2952b271009d881d55a5386289b2e9fb6ce72040";
|
|
6947
7079
|
var css25 = `._actionsCell_elyi1_1 {
|
|
6948
7080
|
visibility: hidden;
|
|
6949
7081
|
}
|
|
@@ -7056,8 +7188,8 @@ function getColumns3({
|
|
|
7056
7188
|
];
|
|
7057
7189
|
}
|
|
7058
7190
|
|
|
7059
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7060
|
-
var digest26 = "
|
|
7191
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-Yi4rUGA5oDD2/sdk/client/views/projects/project-details-view.module.css.js
|
|
7192
|
+
var digest26 = "467dcd03ae6fbf0bea2397ef715bd74111a4ff11c499b0bbcacbd8b8ee724865";
|
|
7061
7193
|
var css26 = `._roleFilter_1dxgv_1 {
|
|
7062
7194
|
width: auto;
|
|
7063
7195
|
min-width: 80px;
|
|
@@ -7152,17 +7284,17 @@ function ProjectDetailsView({
|
|
|
7152
7284
|
isLoading: isProjectLoading,
|
|
7153
7285
|
error: projectError,
|
|
7154
7286
|
refetch: refetchProject
|
|
7155
|
-
} =
|
|
7156
|
-
|
|
7157
|
-
|
|
7287
|
+
} = useQuery18(
|
|
7288
|
+
FrontierServiceQueries34.getProject,
|
|
7289
|
+
create28(GetProjectRequestSchema, { id: projectId || "" }),
|
|
7158
7290
|
{
|
|
7159
7291
|
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId,
|
|
7160
7292
|
select: (d) => d == null ? void 0 : d.project
|
|
7161
7293
|
}
|
|
7162
7294
|
);
|
|
7163
|
-
|
|
7295
|
+
useEffect12(() => {
|
|
7164
7296
|
if (projectError) {
|
|
7165
|
-
|
|
7297
|
+
toastManager21.add({
|
|
7166
7298
|
title: "Something went wrong",
|
|
7167
7299
|
description: projectError.message,
|
|
7168
7300
|
type: "error"
|
|
@@ -7173,14 +7305,14 @@ function ProjectDetailsView({
|
|
|
7173
7305
|
data: projectUsersData,
|
|
7174
7306
|
isLoading: isMembersLoading,
|
|
7175
7307
|
refetch: refetchProjectUsers
|
|
7176
|
-
} =
|
|
7177
|
-
|
|
7178
|
-
|
|
7308
|
+
} = useQuery18(
|
|
7309
|
+
FrontierServiceQueries34.listProjectUsers,
|
|
7310
|
+
create28(ListProjectUsersRequestSchema2, {
|
|
7179
7311
|
id: projectId || ""
|
|
7180
7312
|
}),
|
|
7181
7313
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!projectId }
|
|
7182
7314
|
);
|
|
7183
|
-
const projectUsers =
|
|
7315
|
+
const projectUsers = useMemo18(
|
|
7184
7316
|
() => {
|
|
7185
7317
|
var _a, _b;
|
|
7186
7318
|
return {
|
|
@@ -7202,23 +7334,23 @@ function ProjectDetailsView({
|
|
|
7202
7334
|
isLoading: isTeamsLoading,
|
|
7203
7335
|
error: groupsError,
|
|
7204
7336
|
refetch: refetchProjectGroups
|
|
7205
|
-
} =
|
|
7206
|
-
|
|
7207
|
-
|
|
7337
|
+
} = useQuery18(
|
|
7338
|
+
FrontierServiceQueries34.listProjectGroups,
|
|
7339
|
+
create28(ListProjectGroupsRequestSchema, {
|
|
7208
7340
|
id: projectId || ""
|
|
7209
7341
|
}),
|
|
7210
7342
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!projectId }
|
|
7211
7343
|
);
|
|
7212
|
-
|
|
7344
|
+
useEffect12(() => {
|
|
7213
7345
|
if (groupsError) {
|
|
7214
|
-
|
|
7346
|
+
toastManager21.add({
|
|
7215
7347
|
title: "Something went wrong",
|
|
7216
7348
|
description: groupsError.message,
|
|
7217
7349
|
type: "error"
|
|
7218
7350
|
});
|
|
7219
7351
|
}
|
|
7220
7352
|
}, [groupsError]);
|
|
7221
|
-
const projectGroups =
|
|
7353
|
+
const projectGroups = useMemo18(
|
|
7222
7354
|
() => {
|
|
7223
7355
|
var _a, _b;
|
|
7224
7356
|
return {
|
|
@@ -7239,21 +7371,21 @@ function ProjectDetailsView({
|
|
|
7239
7371
|
data: rolesData,
|
|
7240
7372
|
isLoading: isRolesLoading,
|
|
7241
7373
|
error: rolesError
|
|
7242
|
-
} =
|
|
7243
|
-
|
|
7244
|
-
|
|
7374
|
+
} = useQuery18(
|
|
7375
|
+
FrontierServiceQueries34.listRoles,
|
|
7376
|
+
create28(ListRolesRequestSchema4, {
|
|
7245
7377
|
state: "enabled",
|
|
7246
7378
|
scopes: [PERMISSIONS.ProjectNamespace]
|
|
7247
7379
|
}),
|
|
7248
7380
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!projectId }
|
|
7249
7381
|
);
|
|
7250
|
-
const roles =
|
|
7382
|
+
const roles = useMemo18(() => {
|
|
7251
7383
|
var _a;
|
|
7252
7384
|
return (_a = rolesData == null ? void 0 : rolesData.roles) != null ? _a : [];
|
|
7253
7385
|
}, [rolesData]);
|
|
7254
|
-
|
|
7386
|
+
useEffect12(() => {
|
|
7255
7387
|
if (rolesError) {
|
|
7256
|
-
|
|
7388
|
+
toastManager21.add({
|
|
7257
7389
|
title: "Something went wrong",
|
|
7258
7390
|
description: rolesError.message,
|
|
7259
7391
|
type: "error"
|
|
@@ -7261,7 +7393,7 @@ function ProjectDetailsView({
|
|
|
7261
7393
|
}
|
|
7262
7394
|
}, [rolesError]);
|
|
7263
7395
|
const resource = `app/project:${projectId}`;
|
|
7264
|
-
const listOfPermissionsToCheck =
|
|
7396
|
+
const listOfPermissionsToCheck = useMemo18(
|
|
7265
7397
|
() => [
|
|
7266
7398
|
{ permission: PERMISSIONS.UpdatePermission, resource },
|
|
7267
7399
|
{ permission: PERMISSIONS.DeletePermission, resource }
|
|
@@ -7272,7 +7404,7 @@ function ProjectDetailsView({
|
|
|
7272
7404
|
listOfPermissionsToCheck,
|
|
7273
7405
|
!!projectId
|
|
7274
7406
|
);
|
|
7275
|
-
const { canUpdateProject, canDeleteProject } =
|
|
7407
|
+
const { canUpdateProject, canDeleteProject } = useMemo18(() => {
|
|
7276
7408
|
return {
|
|
7277
7409
|
canUpdateProject: shouldShowComponent(
|
|
7278
7410
|
permissions,
|
|
@@ -7290,13 +7422,13 @@ function ProjectDetailsView({
|
|
|
7290
7422
|
refetchProjectGroups();
|
|
7291
7423
|
}, [refetchProjectUsers, refetchProjectGroups]);
|
|
7292
7424
|
const [roleFilter, setRoleFilter] = useState22("all");
|
|
7293
|
-
const members =
|
|
7425
|
+
const members = useMemo18(() => {
|
|
7294
7426
|
const teams = projectGroups.groups.map((t) => __spreadProps(__spreadValues({}, t), {
|
|
7295
7427
|
isTeam: true
|
|
7296
7428
|
}));
|
|
7297
7429
|
return [...teams, ...projectUsers.users];
|
|
7298
7430
|
}, [projectGroups.groups, projectUsers.users]);
|
|
7299
|
-
const filteredMembers =
|
|
7431
|
+
const filteredMembers = useMemo18(() => {
|
|
7300
7432
|
if (roleFilter === "all")
|
|
7301
7433
|
return members;
|
|
7302
7434
|
return members.filter((member) => {
|
|
@@ -7304,7 +7436,7 @@ function ProjectDetailsView({
|
|
|
7304
7436
|
return memberRoleList.some((r) => r.id === roleFilter);
|
|
7305
7437
|
});
|
|
7306
7438
|
}, [members, roleFilter, projectUsers.memberRoles, projectGroups.groupRoles]);
|
|
7307
|
-
const columns =
|
|
7439
|
+
const columns = useMemo18(
|
|
7308
7440
|
() => getColumns3({
|
|
7309
7441
|
memberRoles: projectUsers.memberRoles,
|
|
7310
7442
|
groupRoles: projectGroups.groupRoles,
|
|
@@ -7537,20 +7669,20 @@ function ProjectActionsMenu({
|
|
|
7537
7669
|
// client/views/billing/billing-view.tsx
|
|
7538
7670
|
import { useCallback as useCallback17 } from "react";
|
|
7539
7671
|
import qs3 from "query-string";
|
|
7540
|
-
import { Flex as Flex41, Dialog as Dialog12, EmptyState as EmptyState6, toastManager as
|
|
7672
|
+
import { Flex as Flex41, Dialog as Dialog12, EmptyState as EmptyState6, toastManager as toastManager28 } from "@raystack/apsara";
|
|
7541
7673
|
import {
|
|
7542
7674
|
CreateCheckoutRequestSchema as CreateCheckoutRequestSchema3,
|
|
7543
|
-
FrontierServiceQueries as
|
|
7675
|
+
FrontierServiceQueries as FrontierServiceQueries39
|
|
7544
7676
|
} from "@raystack/proton/frontier";
|
|
7545
7677
|
import { useMutation as useMutation27 } from "@connectrpc/connect-query";
|
|
7546
|
-
import { create as
|
|
7678
|
+
import { create as create36 } from "@bufbuild/protobuf";
|
|
7547
7679
|
|
|
7548
7680
|
// client/hooks/useBillingPermission.ts
|
|
7549
|
-
import { useMemo as
|
|
7681
|
+
import { useMemo as useMemo19 } from "react";
|
|
7550
7682
|
var useBillingPermission = () => {
|
|
7551
7683
|
const { activeOrganization } = useFrontier();
|
|
7552
7684
|
const resource = `app/organization:${activeOrganization == null ? void 0 : activeOrganization.id}`;
|
|
7553
|
-
const listOfPermissionsToCheck =
|
|
7685
|
+
const listOfPermissionsToCheck = useMemo19(
|
|
7554
7686
|
() => [
|
|
7555
7687
|
{
|
|
7556
7688
|
permission: PERMISSIONS.DeletePermission,
|
|
@@ -7567,7 +7699,7 @@ var useBillingPermission = () => {
|
|
|
7567
7699
|
listOfPermissionsToCheck,
|
|
7568
7700
|
!!(activeOrganization == null ? void 0 : activeOrganization.id)
|
|
7569
7701
|
);
|
|
7570
|
-
const { isAllowed, canSeeBilling } =
|
|
7702
|
+
const { isAllowed, canSeeBilling } = useMemo19(() => {
|
|
7571
7703
|
return {
|
|
7572
7704
|
isAllowed: shouldShowComponent(
|
|
7573
7705
|
permissions,
|
|
@@ -7588,16 +7720,16 @@ var useBillingPermission = () => {
|
|
|
7588
7720
|
|
|
7589
7721
|
// client/views/billing/components/payment-method-card.tsx
|
|
7590
7722
|
import qs from "query-string";
|
|
7591
|
-
import { Button as Button28, Skeleton as Skeleton16, Text as Text25, Flex as Flex34, Tooltip as Tooltip5, toastManager as
|
|
7723
|
+
import { Button as Button28, Skeleton as Skeleton16, Text as Text25, Flex as Flex34, Tooltip as Tooltip5, toastManager as toastManager22 } from "@raystack/apsara";
|
|
7592
7724
|
import {
|
|
7593
|
-
FrontierServiceQueries as
|
|
7725
|
+
FrontierServiceQueries as FrontierServiceQueries35,
|
|
7594
7726
|
CreateCheckoutRequestSchema
|
|
7595
7727
|
} from "@raystack/proton/frontier";
|
|
7596
7728
|
import { useMutation as useMutation25 } from "@connectrpc/connect-query";
|
|
7597
|
-
import { create as
|
|
7729
|
+
import { create as create29 } from "@bufbuild/protobuf";
|
|
7598
7730
|
|
|
7599
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7600
|
-
var digest27 = "
|
|
7731
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-Gq2F78OyQ0fn/sdk/client/views/billing/billing-view.module.css.js
|
|
7732
|
+
var digest27 = "97ab191a3a4b600e3878a01a6bc8e069a1a153b60792e6f4a1f997ee9c6906d3";
|
|
7601
7733
|
var css27 = `._detailsBox_11gbn_1 {
|
|
7602
7734
|
padding: var(--rs-space-4);
|
|
7603
7735
|
display: flex;
|
|
@@ -7669,9 +7801,9 @@ function PaymentMethodCard({
|
|
|
7669
7801
|
isAllowed
|
|
7670
7802
|
}) {
|
|
7671
7803
|
const { config, activeOrganization } = useFrontier();
|
|
7672
|
-
const { mutateAsync: createCheckoutMutation, isPending: isActionLoading } = useMutation25(
|
|
7804
|
+
const { mutateAsync: createCheckoutMutation, isPending: isActionLoading } = useMutation25(FrontierServiceQueries35.createCheckout, {
|
|
7673
7805
|
onError: (err) => {
|
|
7674
|
-
|
|
7806
|
+
toastManager22.add({
|
|
7675
7807
|
title: "Something went wrong",
|
|
7676
7808
|
description: err == null ? void 0 : err.message,
|
|
7677
7809
|
type: "error"
|
|
@@ -7705,7 +7837,7 @@ function PaymentMethodCard({
|
|
|
7705
7837
|
const cancel_url = `${(_a = config == null ? void 0 : config.billing) == null ? void 0 : _a.cancelUrl}?${query}`;
|
|
7706
7838
|
const success_url = `${(_b = config == null ? void 0 : config.billing) == null ? void 0 : _b.successUrl}?${query}`;
|
|
7707
7839
|
const resp = yield createCheckoutMutation(
|
|
7708
|
-
|
|
7840
|
+
create29(CreateCheckoutRequestSchema, {
|
|
7709
7841
|
orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
|
|
7710
7842
|
cancelUrl: cancel_url,
|
|
7711
7843
|
successUrl: success_url,
|
|
@@ -7765,8 +7897,8 @@ function PaymentMethodCard({
|
|
|
7765
7897
|
// client/views/billing/components/billing-details-card.tsx
|
|
7766
7898
|
import { Button as Button29, Skeleton as Skeleton17, Text as Text26, Flex as Flex35, Tooltip as Tooltip6 } from "@raystack/apsara";
|
|
7767
7899
|
|
|
7768
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7769
|
-
var digest28 = "
|
|
7900
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-0mNGhAlzyJQT/sdk/client/views/billing/billing-view.module.css.js
|
|
7901
|
+
var digest28 = "b4e28240caf171ad95d6a5f83b5e933fcf1f15cd6bfa6ec64682171044055025";
|
|
7770
7902
|
var css28 = `._detailsBox_11gbn_1 {
|
|
7771
7903
|
padding: var(--rs-space-4);
|
|
7772
7904
|
display: flex;
|
|
@@ -7890,14 +8022,31 @@ function BillingDetailsCard({
|
|
|
7890
8022
|
}
|
|
7891
8023
|
|
|
7892
8024
|
// client/views/billing/components/payment-issue.tsx
|
|
7893
|
-
import { useCallback as useCallback14, useEffect as
|
|
7894
|
-
import { Button as Button30, Text as Text27, Flex as Flex36, toastManager as
|
|
8025
|
+
import { useCallback as useCallback14, useEffect as useEffect13 } from "react";
|
|
8026
|
+
import { Button as Button30, Text as Text27, Flex as Flex36, toastManager as toastManager23 } from "@raystack/apsara";
|
|
7895
8027
|
import {
|
|
7896
8028
|
RQLRequestSchema,
|
|
7897
|
-
RQLFilterSchema,
|
|
7898
8029
|
RQLSortSchema
|
|
7899
8030
|
} from "@raystack/proton/frontier";
|
|
7900
|
-
import { create as
|
|
8031
|
+
import { create as create31 } from "@bufbuild/protobuf";
|
|
8032
|
+
|
|
8033
|
+
// client/utils/invoice-queries.ts
|
|
8034
|
+
import { create as create30 } from "@bufbuild/protobuf";
|
|
8035
|
+
import { RQLFilterSchema } from "@raystack/proton/frontier";
|
|
8036
|
+
function openInvoiceFilters() {
|
|
8037
|
+
return [
|
|
8038
|
+
create30(RQLFilterSchema, {
|
|
8039
|
+
name: "state",
|
|
8040
|
+
operator: "eq",
|
|
8041
|
+
value: { case: "stringValue", value: INVOICE_STATES.OPEN }
|
|
8042
|
+
}),
|
|
8043
|
+
create30(RQLFilterSchema, {
|
|
8044
|
+
name: "amount",
|
|
8045
|
+
operator: "gt",
|
|
8046
|
+
value: { case: "numberValue", value: 0 }
|
|
8047
|
+
})
|
|
8048
|
+
];
|
|
8049
|
+
}
|
|
7901
8050
|
|
|
7902
8051
|
// client/utils/connect-pagination.ts
|
|
7903
8052
|
var DEFAULT_PAGE_SIZE = 50;
|
|
@@ -7938,9 +8087,9 @@ function getGroupCountMapFromFirstPage(infiniteData) {
|
|
|
7938
8087
|
}
|
|
7939
8088
|
|
|
7940
8089
|
// client/hooks/useOrganizationInvoices.ts
|
|
7941
|
-
import { useMemo as
|
|
8090
|
+
import { useMemo as useMemo20 } from "react";
|
|
7942
8091
|
import { useInfiniteQuery as useInfiniteQuery2 } from "@connectrpc/connect-query";
|
|
7943
|
-
import { FrontierServiceQueries as
|
|
8092
|
+
import { FrontierServiceQueries as FrontierServiceQueries36 } from "@raystack/proton/frontier";
|
|
7944
8093
|
function useOrganizationInvoices({
|
|
7945
8094
|
query,
|
|
7946
8095
|
enabled = true
|
|
@@ -7956,7 +8105,7 @@ function useOrganizationInvoices({
|
|
|
7956
8105
|
isError,
|
|
7957
8106
|
error
|
|
7958
8107
|
} = useInfiniteQuery2(
|
|
7959
|
-
|
|
8108
|
+
FrontierServiceQueries36.searchOrganizationInvoices,
|
|
7960
8109
|
{ id: organizationId, query },
|
|
7961
8110
|
{
|
|
7962
8111
|
enabled: !!organizationId && enabled,
|
|
@@ -7968,14 +8117,14 @@ function useOrganizationInvoices({
|
|
|
7968
8117
|
retryDelay: 1e3
|
|
7969
8118
|
}
|
|
7970
8119
|
);
|
|
7971
|
-
const invoices =
|
|
8120
|
+
const invoices = useMemo20(
|
|
7972
8121
|
() => {
|
|
7973
8122
|
var _a, _b;
|
|
7974
8123
|
return (_b = (_a = infiniteData == null ? void 0 : infiniteData.pages) == null ? void 0 : _a.flatMap((page) => page.organizationInvoices)) != null ? _b : [];
|
|
7975
8124
|
},
|
|
7976
8125
|
[infiniteData]
|
|
7977
8126
|
);
|
|
7978
|
-
const groupCountMap =
|
|
8127
|
+
const groupCountMap = useMemo20(
|
|
7979
8128
|
() => infiniteData ? getGroupCountMapFromFirstPage(infiniteData) : {},
|
|
7980
8129
|
[infiniteData]
|
|
7981
8130
|
);
|
|
@@ -7991,8 +8140,8 @@ function useOrganizationInvoices({
|
|
|
7991
8140
|
};
|
|
7992
8141
|
}
|
|
7993
8142
|
|
|
7994
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7995
|
-
var digest29 = "
|
|
8143
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-Zq8RE6UNtxUn/sdk/client/views/billing/billing-view.module.css.js
|
|
8144
|
+
var digest29 = "90034c1b74ccb5fa23caee5163c671ae41c5d257bd6442a636bcc8976afdd852";
|
|
7996
8145
|
var css29 = `._detailsBox_11gbn_1 {
|
|
7997
8146
|
padding: var(--rs-space-4);
|
|
7998
8147
|
display: flex;
|
|
@@ -8058,20 +8207,9 @@ var billing_view_module_css_default3 = { "detailsBox": "_detailsBox_11gbn_1", "b
|
|
|
8058
8207
|
|
|
8059
8208
|
// client/views/billing/components/payment-issue.tsx
|
|
8060
8209
|
import { jsx as jsx45, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
8061
|
-
var OPEN_INVOICES_QUERY =
|
|
8062
|
-
filters:
|
|
8063
|
-
|
|
8064
|
-
name: "state",
|
|
8065
|
-
operator: "eq",
|
|
8066
|
-
value: { case: "stringValue", value: INVOICE_STATES.OPEN }
|
|
8067
|
-
}),
|
|
8068
|
-
create29(RQLFilterSchema, {
|
|
8069
|
-
name: "amount",
|
|
8070
|
-
operator: "gt",
|
|
8071
|
-
value: { case: "numberValue", value: 0 }
|
|
8072
|
-
})
|
|
8073
|
-
],
|
|
8074
|
-
sort: [create29(RQLSortSchema, { name: "created_at", order: "desc" })],
|
|
8210
|
+
var OPEN_INVOICES_QUERY = create31(RQLRequestSchema, {
|
|
8211
|
+
filters: openInvoiceFilters(),
|
|
8212
|
+
sort: [create31(RQLSortSchema, { name: "created_at", order: "desc" })],
|
|
8075
8213
|
offset: 0,
|
|
8076
8214
|
limit: DEFAULT_PAGE_SIZE
|
|
8077
8215
|
});
|
|
@@ -8089,9 +8227,9 @@ function PaymentIssue({
|
|
|
8089
8227
|
query: OPEN_INVOICES_QUERY,
|
|
8090
8228
|
enabled: hasAccess
|
|
8091
8229
|
});
|
|
8092
|
-
|
|
8230
|
+
useEffect13(() => {
|
|
8093
8231
|
if (invoicesError) {
|
|
8094
|
-
|
|
8232
|
+
toastManager23.add({
|
|
8095
8233
|
title: "Failed to load invoices",
|
|
8096
8234
|
description: invoicesError == null ? void 0 : invoicesError.message,
|
|
8097
8235
|
type: "error"
|
|
@@ -8127,20 +8265,20 @@ function PaymentIssue({
|
|
|
8127
8265
|
}
|
|
8128
8266
|
|
|
8129
8267
|
// client/views/billing/components/upcoming-plan-change-banner.tsx
|
|
8130
|
-
import { useCallback as useCallback15, useMemo as
|
|
8131
|
-
import { Button as Button31, Text as Text28, Flex as Flex37, toastManager as
|
|
8268
|
+
import { useCallback as useCallback15, useMemo as useMemo21 } from "react";
|
|
8269
|
+
import { Button as Button31, Text as Text28, Flex as Flex37, toastManager as toastManager24 } from "@raystack/apsara";
|
|
8132
8270
|
import {
|
|
8133
8271
|
ChangeSubscriptionRequestSchema,
|
|
8134
|
-
FrontierServiceQueries as
|
|
8272
|
+
FrontierServiceQueries as FrontierServiceQueries37
|
|
8135
8273
|
} from "@raystack/proton/frontier";
|
|
8136
8274
|
import { useMutation as useMutation26 } from "@connectrpc/connect-query";
|
|
8137
8275
|
import { createConnectQueryKey as createConnectQueryKey9, useTransport as useTransport8 } from "@connectrpc/connect-query";
|
|
8138
8276
|
import { useQueryClient as useQueryClient9 } from "@tanstack/react-query";
|
|
8139
|
-
import { create as
|
|
8277
|
+
import { create as create32 } from "@bufbuild/protobuf";
|
|
8140
8278
|
import dayjs3 from "dayjs";
|
|
8141
8279
|
|
|
8142
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8143
|
-
var digest30 = "
|
|
8280
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-tJCv5lsJyw2v/sdk/client/views/billing/billing-view.module.css.js
|
|
8281
|
+
var digest30 = "fb147ece5e49fbea0c58341bd952df56c4c31b1f5962c6b20d0458d9e43e2aad";
|
|
8144
8282
|
var css30 = `._detailsBox_11gbn_1 {
|
|
8145
8283
|
padding: var(--rs-space-4);
|
|
8146
8284
|
display: flex;
|
|
@@ -8222,12 +8360,12 @@ function UpcomingPlanChangeBanner({
|
|
|
8222
8360
|
} = useFrontier();
|
|
8223
8361
|
const queryClient2 = useQueryClient9();
|
|
8224
8362
|
const transport = useTransport8();
|
|
8225
|
-
const { mutate: cancelUpcomingChange, isPending: isPlanChangeLoading } = useMutation26(
|
|
8363
|
+
const { mutate: cancelUpcomingChange, isPending: isPlanChangeLoading } = useMutation26(FrontierServiceQueries37.changeSubscription, {
|
|
8226
8364
|
onSuccess: () => __async(this, null, function* () {
|
|
8227
8365
|
var _a2;
|
|
8228
8366
|
yield queryClient2.invalidateQueries({
|
|
8229
8367
|
queryKey: createConnectQueryKey9({
|
|
8230
|
-
schema:
|
|
8368
|
+
schema: FrontierServiceQueries37.listSubscriptions,
|
|
8231
8369
|
transport,
|
|
8232
8370
|
input: {
|
|
8233
8371
|
orgId: (_a2 = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _a2 : ""
|
|
@@ -8235,13 +8373,13 @@ function UpcomingPlanChangeBanner({
|
|
|
8235
8373
|
cardinality: "finite"
|
|
8236
8374
|
})
|
|
8237
8375
|
});
|
|
8238
|
-
|
|
8376
|
+
toastManager24.add({
|
|
8239
8377
|
title: `Success: Your ${activePlan == null ? void 0 : activePlan.title} is resumed`,
|
|
8240
8378
|
type: "success"
|
|
8241
8379
|
});
|
|
8242
8380
|
}),
|
|
8243
8381
|
onError: (err) => {
|
|
8244
|
-
|
|
8382
|
+
toastManager24.add({
|
|
8245
8383
|
title: "Failed to resume plan",
|
|
8246
8384
|
description: err.message,
|
|
8247
8385
|
type: "error"
|
|
@@ -8255,7 +8393,7 @@ function UpcomingPlanChangeBanner({
|
|
|
8255
8393
|
}
|
|
8256
8394
|
)) || [];
|
|
8257
8395
|
const nextPhase = phases == null ? void 0 : phases[0];
|
|
8258
|
-
const upcomingPlan =
|
|
8396
|
+
const upcomingPlan = useMemo21(() => {
|
|
8259
8397
|
if ((nextPhase == null ? void 0 : nextPhase.planId) && allPlans.length > 0) {
|
|
8260
8398
|
return allPlans.find((p) => p.id === (nextPhase == null ? void 0 : nextPhase.planId));
|
|
8261
8399
|
}
|
|
@@ -8273,7 +8411,7 @@ function UpcomingPlanChangeBanner({
|
|
|
8273
8411
|
const onPlanChangeCancel = useCallback15(() => {
|
|
8274
8412
|
if (subscription == null ? void 0 : subscription.id) {
|
|
8275
8413
|
cancelUpcomingChange(
|
|
8276
|
-
|
|
8414
|
+
create32(ChangeSubscriptionRequestSchema, {
|
|
8277
8415
|
id: subscription == null ? void 0 : subscription.id,
|
|
8278
8416
|
change: {
|
|
8279
8417
|
case: "phaseChange",
|
|
@@ -8330,14 +8468,14 @@ function UpcomingPlanChangeBanner({
|
|
|
8330
8468
|
}
|
|
8331
8469
|
|
|
8332
8470
|
// client/views/billing/components/upcoming-billing-cycle.tsx
|
|
8333
|
-
import { useEffect as
|
|
8471
|
+
import { useEffect as useEffect14, useMemo as useMemo22 } from "react";
|
|
8334
8472
|
import {
|
|
8335
8473
|
GetUpcomingInvoiceRequestSchema,
|
|
8336
|
-
FrontierServiceQueries as
|
|
8474
|
+
FrontierServiceQueries as FrontierServiceQueries38,
|
|
8337
8475
|
ListOrganizationUsersRequestSchema as ListOrganizationUsersRequestSchema3
|
|
8338
8476
|
} from "@raystack/proton/frontier";
|
|
8339
8477
|
import { useQuery as useConnectQuery2 } from "@connectrpc/connect-query";
|
|
8340
|
-
import { create as
|
|
8478
|
+
import { create as create33 } from "@bufbuild/protobuf";
|
|
8341
8479
|
import {
|
|
8342
8480
|
Button as Button32,
|
|
8343
8481
|
Tooltip as Tooltip7,
|
|
@@ -8345,11 +8483,11 @@ import {
|
|
|
8345
8483
|
Text as Text29,
|
|
8346
8484
|
Flex as Flex38,
|
|
8347
8485
|
Amount,
|
|
8348
|
-
toastManager as
|
|
8486
|
+
toastManager as toastManager25
|
|
8349
8487
|
} from "@raystack/apsara";
|
|
8350
8488
|
|
|
8351
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8352
|
-
var digest31 = "
|
|
8489
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-yPAAQk06hRVE/sdk/client/views/billing/billing-view.module.css.js
|
|
8490
|
+
var digest31 = "bfb072fcfe5df27f4753ebb5df14f7506172f65052b61a29649f2bf84ed114e2";
|
|
8353
8491
|
var css31 = `._detailsBox_11gbn_1 {
|
|
8354
8492
|
padding: var(--rs-space-4);
|
|
8355
8493
|
display: flex;
|
|
@@ -8450,8 +8588,8 @@ function UpcomingBillingCycle({
|
|
|
8450
8588
|
isLoading: isInvoiceLoading,
|
|
8451
8589
|
error: invoiceError
|
|
8452
8590
|
} = useConnectQuery2(
|
|
8453
|
-
|
|
8454
|
-
|
|
8591
|
+
FrontierServiceQueries38.getUpcomingInvoice,
|
|
8592
|
+
create33(GetUpcomingInvoiceRequestSchema, {
|
|
8455
8593
|
orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || ""
|
|
8456
8594
|
}),
|
|
8457
8595
|
{
|
|
@@ -8464,8 +8602,8 @@ function UpcomingBillingCycle({
|
|
|
8464
8602
|
isLoading: isMemberCountLoading,
|
|
8465
8603
|
error: memberCountError
|
|
8466
8604
|
} = useConnectQuery2(
|
|
8467
|
-
|
|
8468
|
-
|
|
8605
|
+
FrontierServiceQueries38.listOrganizationUsers,
|
|
8606
|
+
create33(ListOrganizationUsersRequestSchema3, {
|
|
8469
8607
|
id: (billingAccount == null ? void 0 : billingAccount.orgId) || ""
|
|
8470
8608
|
}),
|
|
8471
8609
|
{
|
|
@@ -8476,7 +8614,7 @@ function UpcomingBillingCycle({
|
|
|
8476
8614
|
}
|
|
8477
8615
|
}
|
|
8478
8616
|
);
|
|
8479
|
-
const { plan, switchablePlan } =
|
|
8617
|
+
const { plan, switchablePlan } = useMemo22(() => {
|
|
8480
8618
|
if ((activeSubscription == null ? void 0 : activeSubscription.planId) && allPlans.length > 0) {
|
|
8481
8619
|
const currentPlan = allPlans.find(
|
|
8482
8620
|
(p) => p.id === activeSubscription.planId
|
|
@@ -8498,9 +8636,9 @@ function UpcomingBillingCycle({
|
|
|
8498
8636
|
(phase) => phase.planId === (switchablePlan == null ? void 0 : switchablePlan.id)
|
|
8499
8637
|
);
|
|
8500
8638
|
const error = memberCountError || invoiceError;
|
|
8501
|
-
|
|
8639
|
+
useEffect14(() => {
|
|
8502
8640
|
if (error) {
|
|
8503
|
-
|
|
8641
|
+
toastManager25.add({
|
|
8504
8642
|
title: "Failed to get upcoming billing cycle details",
|
|
8505
8643
|
type: "error"
|
|
8506
8644
|
});
|
|
@@ -8606,7 +8744,7 @@ function UpcomingBillingCycle({
|
|
|
8606
8744
|
}
|
|
8607
8745
|
|
|
8608
8746
|
// client/views/billing/components/invoices.tsx
|
|
8609
|
-
import { useMemo as
|
|
8747
|
+
import { useMemo as useMemo23, useState as useState23 } from "react";
|
|
8610
8748
|
import {
|
|
8611
8749
|
Button as Button33,
|
|
8612
8750
|
DataTable as DataTable4,
|
|
@@ -8622,7 +8760,7 @@ import {
|
|
|
8622
8760
|
RQLFilterSchema as RQLFilterSchema2,
|
|
8623
8761
|
RQLSortSchema as RQLSortSchema2
|
|
8624
8762
|
} from "@raystack/proton/frontier";
|
|
8625
|
-
import { create as
|
|
8763
|
+
import { create as create34 } from "@bufbuild/protobuf";
|
|
8626
8764
|
import dayjs4 from "dayjs";
|
|
8627
8765
|
function convertFilterValue(value) {
|
|
8628
8766
|
switch (typeof value) {
|
|
@@ -8640,12 +8778,12 @@ function transformDateFilter(filter, fieldName) {
|
|
|
8640
8778
|
const startOfDay = dayjs4(filter.value).startOf("day");
|
|
8641
8779
|
if (filter.operator === "eq") {
|
|
8642
8780
|
return [
|
|
8643
|
-
|
|
8781
|
+
create34(RQLFilterSchema2, {
|
|
8644
8782
|
name: fieldName,
|
|
8645
8783
|
operator: "gte",
|
|
8646
8784
|
value: { case: "stringValue", value: startOfDay.toISOString() }
|
|
8647
8785
|
}),
|
|
8648
|
-
|
|
8786
|
+
create34(RQLFilterSchema2, {
|
|
8649
8787
|
name: fieldName,
|
|
8650
8788
|
operator: "lt",
|
|
8651
8789
|
value: {
|
|
@@ -8656,7 +8794,7 @@ function transformDateFilter(filter, fieldName) {
|
|
|
8656
8794
|
];
|
|
8657
8795
|
}
|
|
8658
8796
|
return [
|
|
8659
|
-
|
|
8797
|
+
create34(RQLFilterSchema2, {
|
|
8660
8798
|
name: fieldName,
|
|
8661
8799
|
operator: filter.operator,
|
|
8662
8800
|
value: { case: "stringValue", value: startOfDay.toISOString() }
|
|
@@ -8680,7 +8818,7 @@ function transformFilter(filter, fieldNameMapping) {
|
|
|
8680
8818
|
value = convertFilterValue(filter.value);
|
|
8681
8819
|
}
|
|
8682
8820
|
return [
|
|
8683
|
-
|
|
8821
|
+
create34(RQLFilterSchema2, {
|
|
8684
8822
|
name: fieldName,
|
|
8685
8823
|
operator: filter.operator,
|
|
8686
8824
|
value
|
|
@@ -8694,7 +8832,7 @@ function transformSort(sort, fieldNameMapping) {
|
|
|
8694
8832
|
return sort.map(
|
|
8695
8833
|
(s) => {
|
|
8696
8834
|
var _a;
|
|
8697
|
-
return
|
|
8835
|
+
return create34(RQLSortSchema2, __spreadProps(__spreadValues({}, s), {
|
|
8698
8836
|
name: (_a = fieldNameMapping == null ? void 0 : fieldNameMapping[s.name]) != null ? _a : s.name
|
|
8699
8837
|
}));
|
|
8700
8838
|
}
|
|
@@ -8704,7 +8842,7 @@ function transformDataTableQueryToRQLRequest(query, options = {}) {
|
|
|
8704
8842
|
var _a;
|
|
8705
8843
|
const { defaultLimit = 50, fieldNameMapping } = options;
|
|
8706
8844
|
const filters = ((_a = query.filters) == null ? void 0 : _a.length) ? query.filters.flatMap((filter) => transformFilter(filter, fieldNameMapping)) : [];
|
|
8707
|
-
const rqlRequest =
|
|
8845
|
+
const rqlRequest = create34(RQLRequestSchema2, {
|
|
8708
8846
|
filters,
|
|
8709
8847
|
groupBy: (query.group_by || []).map(
|
|
8710
8848
|
(field) => {
|
|
@@ -8720,8 +8858,8 @@ function transformDataTableQueryToRQLRequest(query, options = {}) {
|
|
|
8720
8858
|
return rqlRequest;
|
|
8721
8859
|
}
|
|
8722
8860
|
|
|
8723
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8724
|
-
var digest32 = "
|
|
8861
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-ZU0DRlsDXyyL/sdk/client/views/billing/billing-view.module.css.js
|
|
8862
|
+
var digest32 = "9e4c0651b45d6ccd6af79b4b6cb0fedb6e78c7679eab284772cee6ea60b206b7";
|
|
8725
8863
|
var css32 = `._detailsBox_11gbn_1 {
|
|
8726
8864
|
padding: var(--rs-space-4);
|
|
8727
8865
|
display: flex;
|
|
@@ -8884,7 +9022,7 @@ var ErrorState = () => /* @__PURE__ */ jsx48(
|
|
|
8884
9022
|
function Invoices() {
|
|
8885
9023
|
const { activeOrganization, config } = useFrontier();
|
|
8886
9024
|
const [tableQuery, setTableQuery] = useState23(INITIAL_QUERY);
|
|
8887
|
-
const computedQuery =
|
|
9025
|
+
const computedQuery = useMemo23(
|
|
8888
9026
|
() => transformDataTableQueryToRQLRequest(tableQuery),
|
|
8889
9027
|
[tableQuery]
|
|
8890
9028
|
);
|
|
@@ -8945,7 +9083,7 @@ function Invoices() {
|
|
|
8945
9083
|
}
|
|
8946
9084
|
|
|
8947
9085
|
// client/views/billing/components/confirm-cycle-switch-dialog.tsx
|
|
8948
|
-
import { useMemo as
|
|
9086
|
+
import { useMemo as useMemo24 } from "react";
|
|
8949
9087
|
import {
|
|
8950
9088
|
Amount as Amount3,
|
|
8951
9089
|
Button as Button34,
|
|
@@ -8953,15 +9091,15 @@ import {
|
|
|
8953
9091
|
Text as Text31,
|
|
8954
9092
|
Flex as Flex40,
|
|
8955
9093
|
Dialog as Dialog11,
|
|
8956
|
-
toastManager as
|
|
9094
|
+
toastManager as toastManager27
|
|
8957
9095
|
} from "@raystack/apsara";
|
|
8958
9096
|
|
|
8959
9097
|
// client/views/plans/hooks/use-plans.tsx
|
|
8960
9098
|
import { useCallback as useCallback16, useState as useState24 } from "react";
|
|
8961
9099
|
import qs2 from "query-string";
|
|
8962
|
-
import { toastManager as
|
|
9100
|
+
import { toastManager as toastManager26 } from "@raystack/apsara";
|
|
8963
9101
|
import { NIL as NIL_UUID2 } from "uuid";
|
|
8964
|
-
import { create as
|
|
9102
|
+
import { create as create35 } from "@bufbuild/protobuf";
|
|
8965
9103
|
import {
|
|
8966
9104
|
CreateCheckoutRequestSchema as CreateCheckoutRequestSchema2,
|
|
8967
9105
|
ChangeSubscriptionRequestSchema as ChangeSubscriptionRequestSchema2,
|
|
@@ -9022,7 +9160,7 @@ var usePlans = () => {
|
|
|
9022
9160
|
cancelAfterTrial = (_d = config == null ? void 0 : config.billing) == null ? void 0 : _d.cancelAfterTrial;
|
|
9023
9161
|
}
|
|
9024
9162
|
const resp = yield createCheckoutMutation(
|
|
9025
|
-
|
|
9163
|
+
create35(CreateCheckoutRequestSchema2, {
|
|
9026
9164
|
orgId: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
9027
9165
|
cancelUrl: cancel_url,
|
|
9028
9166
|
successUrl: success_url,
|
|
@@ -9039,21 +9177,21 @@ var usePlans = () => {
|
|
|
9039
9177
|
}
|
|
9040
9178
|
} catch (err) {
|
|
9041
9179
|
handleConnectError(err, {
|
|
9042
|
-
PermissionDenied: () =>
|
|
9180
|
+
PermissionDenied: () => toastManager26.add({
|
|
9043
9181
|
title: "You don't have permission to perform this action",
|
|
9044
9182
|
type: "error"
|
|
9045
9183
|
}),
|
|
9046
|
-
InvalidArgument: (e) =>
|
|
9184
|
+
InvalidArgument: (e) => toastManager26.add({
|
|
9047
9185
|
title: "Checkout failed",
|
|
9048
9186
|
description: e.message,
|
|
9049
9187
|
type: "error"
|
|
9050
9188
|
}),
|
|
9051
|
-
NotFound: (e) =>
|
|
9189
|
+
NotFound: (e) => toastManager26.add({
|
|
9052
9190
|
title: "Not found",
|
|
9053
9191
|
description: e.message,
|
|
9054
9192
|
type: "error"
|
|
9055
9193
|
}),
|
|
9056
|
-
Default: (e) =>
|
|
9194
|
+
Default: (e) => toastManager26.add({
|
|
9057
9195
|
title: "Checkout failed",
|
|
9058
9196
|
description: e.message,
|
|
9059
9197
|
type: "error"
|
|
@@ -9077,7 +9215,7 @@ var usePlans = () => {
|
|
|
9077
9215
|
if (activeSubscription == null ? void 0 : activeSubscription.id) {
|
|
9078
9216
|
try {
|
|
9079
9217
|
const resp = yield changeSubscriptionMutation(
|
|
9080
|
-
|
|
9218
|
+
create35(ChangeSubscriptionRequestSchema2, {
|
|
9081
9219
|
id: activeSubscription == null ? void 0 : activeSubscription.id,
|
|
9082
9220
|
change: {
|
|
9083
9221
|
case: "planChange",
|
|
@@ -9093,21 +9231,21 @@ var usePlans = () => {
|
|
|
9093
9231
|
}
|
|
9094
9232
|
} catch (error) {
|
|
9095
9233
|
handleConnectError(error, {
|
|
9096
|
-
PermissionDenied: () =>
|
|
9234
|
+
PermissionDenied: () => toastManager26.add({
|
|
9097
9235
|
title: "You don't have permission to perform this action",
|
|
9098
9236
|
type: "error"
|
|
9099
9237
|
}),
|
|
9100
|
-
InvalidArgument: (err) =>
|
|
9238
|
+
InvalidArgument: (err) => toastManager26.add({
|
|
9101
9239
|
title: "Failed to change plan",
|
|
9102
9240
|
description: err.message,
|
|
9103
9241
|
type: "error"
|
|
9104
9242
|
}),
|
|
9105
|
-
NotFound: (err) =>
|
|
9243
|
+
NotFound: (err) => toastManager26.add({
|
|
9106
9244
|
title: "Not found",
|
|
9107
9245
|
description: err.message,
|
|
9108
9246
|
type: "error"
|
|
9109
9247
|
}),
|
|
9110
|
-
Default: (err) =>
|
|
9248
|
+
Default: (err) => toastManager26.add({
|
|
9111
9249
|
title: "Failed to change plan",
|
|
9112
9250
|
description: err.message,
|
|
9113
9251
|
type: "error"
|
|
@@ -9200,7 +9338,7 @@ var usePlans = () => {
|
|
|
9200
9338
|
if (activeSubscription == null ? void 0 : activeSubscription.id) {
|
|
9201
9339
|
try {
|
|
9202
9340
|
const resp = yield cancelSubscriptionMutation(
|
|
9203
|
-
|
|
9341
|
+
create35(CancelSubscriptionRequestSchema, {
|
|
9204
9342
|
id: activeSubscription == null ? void 0 : activeSubscription.id,
|
|
9205
9343
|
immediate: false
|
|
9206
9344
|
})
|
|
@@ -9210,16 +9348,16 @@ var usePlans = () => {
|
|
|
9210
9348
|
}
|
|
9211
9349
|
} catch (error) {
|
|
9212
9350
|
handleConnectError(error, {
|
|
9213
|
-
PermissionDenied: () =>
|
|
9351
|
+
PermissionDenied: () => toastManager26.add({
|
|
9214
9352
|
title: "You don't have permission to perform this action",
|
|
9215
9353
|
type: "error"
|
|
9216
9354
|
}),
|
|
9217
|
-
NotFound: (err) =>
|
|
9355
|
+
NotFound: (err) => toastManager26.add({
|
|
9218
9356
|
title: "Not found",
|
|
9219
9357
|
description: err.message,
|
|
9220
9358
|
type: "error"
|
|
9221
9359
|
}),
|
|
9222
|
-
Default: (err) =>
|
|
9360
|
+
Default: (err) => toastManager26.add({
|
|
9223
9361
|
title: "Failed to cancel subscription",
|
|
9224
9362
|
description: err.message,
|
|
9225
9363
|
type: "error"
|
|
@@ -9308,7 +9446,7 @@ function ConfirmCycleSwitchContent({
|
|
|
9308
9446
|
verifyPlanChange
|
|
9309
9447
|
}) {
|
|
9310
9448
|
var _a;
|
|
9311
|
-
const nextPlan =
|
|
9449
|
+
const nextPlan = useMemo24(() => {
|
|
9312
9450
|
if (planId && allPlans.length > 0) {
|
|
9313
9451
|
return allPlans.find((p) => p.id === planId);
|
|
9314
9452
|
}
|
|
@@ -9318,7 +9456,7 @@ function ConfirmCycleSwitchContent({
|
|
|
9318
9456
|
const isPaymentMethodRequired = isEmpty(paymentMethod) && nextPlanPrice.amount > 0;
|
|
9319
9457
|
const activePlanIntervalName = getPlanIntervalName(activePlan);
|
|
9320
9458
|
const nextPlanIntervalName = getPlanIntervalName(nextPlan);
|
|
9321
|
-
const savings =
|
|
9459
|
+
const savings = useMemo24(() => {
|
|
9322
9460
|
if (!activePlan || !nextPlan)
|
|
9323
9461
|
return null;
|
|
9324
9462
|
const activeInterval = activePlan.interval || "";
|
|
@@ -9384,7 +9522,7 @@ function ConfirmCycleSwitchContent({
|
|
|
9384
9522
|
const changeDate = (_a2 = timestampToDayjs(
|
|
9385
9523
|
planPhase == null ? void 0 : planPhase.effectiveAt
|
|
9386
9524
|
)) == null ? void 0 : _a2.format(dateFormat);
|
|
9387
|
-
|
|
9525
|
+
toastManager27.add({
|
|
9388
9526
|
title: "Plan cycle switch successful",
|
|
9389
9527
|
description: `Your plan cycle will be switched to ${nextPlanIntervalName} on ${changeDate}`,
|
|
9390
9528
|
type: "success"
|
|
@@ -9456,8 +9594,8 @@ function ConfirmCycleSwitchContent({
|
|
|
9456
9594
|
] });
|
|
9457
9595
|
}
|
|
9458
9596
|
|
|
9459
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9460
|
-
var digest33 = "
|
|
9597
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-y9y76Bomi3do/sdk/client/views/billing/billing-view.module.css.js
|
|
9598
|
+
var digest33 = "c6b660767b95193183bf59e841951e21b5115cc7f6e160a0c2d1f147b5d6eaae";
|
|
9461
9599
|
var css33 = `._detailsBox_11gbn_1 {
|
|
9462
9600
|
padding: var(--rs-space-4);
|
|
9463
9601
|
display: flex;
|
|
@@ -9547,9 +9685,9 @@ function BillingView({ onNavigateToPlans }) {
|
|
|
9547
9685
|
function handleCycleSwitchClick(planId) {
|
|
9548
9686
|
cycleSwitchDialogHandle.openWithPayload({ planId });
|
|
9549
9687
|
}
|
|
9550
|
-
const { mutateAsync: createCheckoutMutation, isPending: isCheckoutPending } = useMutation27(
|
|
9688
|
+
const { mutateAsync: createCheckoutMutation, isPending: isCheckoutPending } = useMutation27(FrontierServiceQueries39.createCheckout, {
|
|
9551
9689
|
onError: (err) => {
|
|
9552
|
-
|
|
9690
|
+
toastManager28.add({
|
|
9553
9691
|
title: "Something went wrong",
|
|
9554
9692
|
description: err == null ? void 0 : err.message,
|
|
9555
9693
|
type: "error"
|
|
@@ -9577,7 +9715,7 @@ function BillingView({ onNavigateToPlans }) {
|
|
|
9577
9715
|
const cancel_url = `${(_a2 = config == null ? void 0 : config.billing) == null ? void 0 : _a2.cancelUrl}?${query}`;
|
|
9578
9716
|
const success_url = `${(_b2 = config == null ? void 0 : config.billing) == null ? void 0 : _b2.successUrl}?${query}`;
|
|
9579
9717
|
const resp = yield createCheckoutMutation(
|
|
9580
|
-
|
|
9718
|
+
create36(CreateCheckoutRequestSchema3, {
|
|
9581
9719
|
orgId,
|
|
9582
9720
|
cancelUrl: cancel_url,
|
|
9583
9721
|
successUrl: success_url,
|
|
@@ -9683,53 +9821,6 @@ import { FilterIcon } from "@raystack/apsara/icons";
|
|
|
9683
9821
|
import { useInfiniteQuery as useInfiniteQuery3 } from "@connectrpc/connect-query";
|
|
9684
9822
|
import { FrontierServiceQueries as FrontierServiceQueries41 } from "@raystack/proton/frontier";
|
|
9685
9823
|
|
|
9686
|
-
// client/hooks/useTokens.ts
|
|
9687
|
-
import { useMemo as useMemo24, useEffect as useEffect14 } from "react";
|
|
9688
|
-
import { useQuery as useQuery17 } from "@connectrpc/connect-query";
|
|
9689
|
-
import { create as create35 } from "@bufbuild/protobuf";
|
|
9690
|
-
import { FrontierServiceQueries as FrontierServiceQueries39, GetBillingBalanceRequestSchema } from "@raystack/proton/frontier";
|
|
9691
|
-
import { toastManager as toastManager28 } from "@raystack/apsara";
|
|
9692
|
-
var useTokens = () => {
|
|
9693
|
-
var _a, _b;
|
|
9694
|
-
const { billingAccount } = useFrontier();
|
|
9695
|
-
const {
|
|
9696
|
-
data,
|
|
9697
|
-
isLoading: isTokensLoading,
|
|
9698
|
-
error,
|
|
9699
|
-
refetch
|
|
9700
|
-
} = useQuery17(
|
|
9701
|
-
FrontierServiceQueries39.getBillingBalance,
|
|
9702
|
-
create35(GetBillingBalanceRequestSchema, {
|
|
9703
|
-
id: (_a = billingAccount == null ? void 0 : billingAccount.id) != null ? _a : ""
|
|
9704
|
-
}),
|
|
9705
|
-
{
|
|
9706
|
-
enabled: !!(billingAccount == null ? void 0 : billingAccount.id),
|
|
9707
|
-
retry: false
|
|
9708
|
-
}
|
|
9709
|
-
);
|
|
9710
|
-
useEffect14(() => {
|
|
9711
|
-
if (error) {
|
|
9712
|
-
console.error(error);
|
|
9713
|
-
toastManager28.add({
|
|
9714
|
-
title: "Unable to fetch balance",
|
|
9715
|
-
type: "error"
|
|
9716
|
-
});
|
|
9717
|
-
}
|
|
9718
|
-
}, [error]);
|
|
9719
|
-
const tokenBalance = useMemo24(
|
|
9720
|
-
() => {
|
|
9721
|
-
var _a2;
|
|
9722
|
-
return BigInt(((_a2 = data == null ? void 0 : data.balance) == null ? void 0 : _a2.amount) || "0");
|
|
9723
|
-
},
|
|
9724
|
-
[(_b = data == null ? void 0 : data.balance) == null ? void 0 : _b.amount]
|
|
9725
|
-
);
|
|
9726
|
-
return {
|
|
9727
|
-
tokenBalance,
|
|
9728
|
-
isTokensLoading,
|
|
9729
|
-
fetchTokenBalance: refetch
|
|
9730
|
-
};
|
|
9731
|
-
};
|
|
9732
|
-
|
|
9733
9824
|
// client/assets/coin.svg
|
|
9734
9825
|
var coin_default = 'data:image/svg+xml,<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Credit coin">%0A<path id="credit coin" d="M48 24.0196C47.9983 37.3229 37.2746 48.0052 23.9263 48.0001C10.6771 47.9951 -0.0098551 37.2504 6.81992e-06 23.9446C0.0100138 10.6528 10.7492 -0.012751 24.1099 1.14418e-05C37.3171 0.0127739 48.0017 10.7553 48 24.0196ZM11.2887 24.0977C16.6867 27.289 20.6403 31.8534 24.1954 36.8591C27.1623 31.2874 31.9695 27.6538 36.8726 24.0699C31.3822 20.964 27.5665 16.297 24.0576 11.2374C20.5079 16.2419 16.7425 20.9331 11.2887 24.0977Z" fill="url(%23paint0_linear_8624_16209)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_8624_16209" x1="39.75" y1="7.5" x2="9.75" y2="42.75" gradientUnits="userSpaceOnUse">%0A<stop stop-color="%23E82F72" stop-opacity="0.7"/>%0A<stop offset="1" stop-color="%23ED25B5" stop-opacity="0.7"/>%0A</linearGradient>%0A</defs>%0A</svg>%0A';
|
|
9735
9826
|
|
|
@@ -9744,8 +9835,8 @@ import {
|
|
|
9744
9835
|
import { has, get } from "lodash";
|
|
9745
9836
|
import dayjs5 from "dayjs";
|
|
9746
9837
|
|
|
9747
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9748
|
-
var digest34 = "
|
|
9838
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-8n9X06yDCo72/sdk/client/views/tokens/tokens-view.module.css.js
|
|
9839
|
+
var digest34 = "0e7cdf61a1c1cc35e04925d886abe2a868db9ecde9c15cfacbefe313dd1f2668";
|
|
9749
9840
|
var css34 = `._balancePanel_vtg8m_1 {
|
|
9750
9841
|
padding: var(--rs-space-5);
|
|
9751
9842
|
border-radius: var(--rs-radius-2);
|
|
@@ -9906,18 +9997,18 @@ function getColumns5({
|
|
|
9906
9997
|
import { useMemo as useMemo25 } from "react";
|
|
9907
9998
|
import { Button as Button35, Dialog as Dialog13, Flex as Flex43, Field as Field10, Input as Input12, Skeleton as Skeleton20, toastManager as toastManager29 } from "@raystack/apsara";
|
|
9908
9999
|
import { yupResolver as yupResolver12 } from "@hookform/resolvers/yup";
|
|
9909
|
-
import { useMutation as useMutation28, useQuery as
|
|
10000
|
+
import { useMutation as useMutation28, useQuery as useQuery19 } from "@connectrpc/connect-query";
|
|
9910
10001
|
import { useForm as useForm12 } from "react-hook-form";
|
|
9911
10002
|
import * as yup12 from "yup";
|
|
9912
10003
|
import { CreateCheckoutRequestSchema as CreateCheckoutRequestSchema4, FrontierServiceQueries as FrontierServiceQueries40 } from "@raystack/proton/frontier";
|
|
9913
|
-
import { create as
|
|
10004
|
+
import { create as create37 } from "@bufbuild/protobuf";
|
|
9914
10005
|
import qs4 from "query-string";
|
|
9915
10006
|
import { jsx as jsx52, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
9916
10007
|
function AddTokensDialog({ handle }) {
|
|
9917
10008
|
var _a;
|
|
9918
10009
|
const { config, activeOrganization } = useFrontier();
|
|
9919
10010
|
const tokenProductId = ((_a = config == null ? void 0 : config.billing) == null ? void 0 : _a.tokenProductId) || DEFAULT_TOKEN_PRODUCT_NAME;
|
|
9920
|
-
const { data: product, isLoading } =
|
|
10011
|
+
const { data: product, isLoading } = useQuery19(
|
|
9921
10012
|
FrontierServiceQueries40.getProduct,
|
|
9922
10013
|
{ id: tokenProductId },
|
|
9923
10014
|
{
|
|
@@ -9991,7 +10082,7 @@ function AddTokensDialog({ handle }) {
|
|
|
9991
10082
|
const cancelUrl = `${(_a2 = config == null ? void 0 : config.billing) == null ? void 0 : _a2.cancelUrl}?${query}`;
|
|
9992
10083
|
const successUrl = `${(_b = config == null ? void 0 : config.billing) == null ? void 0 : _b.successUrl}?${query}`;
|
|
9993
10084
|
yield createCheckout(
|
|
9994
|
-
|
|
10085
|
+
create37(CreateCheckoutRequestSchema4, {
|
|
9995
10086
|
orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
|
|
9996
10087
|
cancelUrl,
|
|
9997
10088
|
successUrl,
|
|
@@ -10068,8 +10159,8 @@ function AddTokensDialog({ handle }) {
|
|
|
10068
10159
|
] }) }) });
|
|
10069
10160
|
}
|
|
10070
10161
|
|
|
10071
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10072
|
-
var digest35 = "
|
|
10162
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-7s8YRthsxiI8/sdk/client/views/tokens/tokens-view.module.css.js
|
|
10163
|
+
var digest35 = "f70cf315e0d3c6cbc0b25475f3dd031801afbef58a5ddb8c8c973367714942c6";
|
|
10073
10164
|
var css35 = `._balancePanel_vtg8m_1 {
|
|
10074
10165
|
padding: var(--rs-space-5);
|
|
10075
10166
|
border-radius: var(--rs-radius-2);
|
|
@@ -10344,8 +10435,8 @@ import {
|
|
|
10344
10435
|
IconButton as IconButton7
|
|
10345
10436
|
} from "@raystack/apsara";
|
|
10346
10437
|
|
|
10347
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10348
|
-
var digest36 = "
|
|
10438
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-GfojtDkn7kVs/sdk/client/views/teams/components/team-columns.module.css.js
|
|
10439
|
+
var digest36 = "9899c9ee9f81ed3d74902e3a4f035accc27a0ae805fbbd2097d0ffa3c731ef96";
|
|
10349
10440
|
var css36 = `._actionsCell_elyi1_1 {
|
|
10350
10441
|
visibility: hidden;
|
|
10351
10442
|
}
|
|
@@ -10451,7 +10542,7 @@ import {
|
|
|
10451
10542
|
FrontierServiceQueries as FrontierServiceQueries42,
|
|
10452
10543
|
CreateGroupRequestSchema
|
|
10453
10544
|
} from "@raystack/proton/frontier";
|
|
10454
|
-
import { create as
|
|
10545
|
+
import { create as create38 } from "@bufbuild/protobuf";
|
|
10455
10546
|
import { jsx as jsx55, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
10456
10547
|
var teamSchema = yup13.object({
|
|
10457
10548
|
title: yup13.string().required("Team title is required"),
|
|
@@ -10484,7 +10575,7 @@ function AddTeamDialog({ handle, refetch }) {
|
|
|
10484
10575
|
return;
|
|
10485
10576
|
try {
|
|
10486
10577
|
yield createTeam(
|
|
10487
|
-
|
|
10578
|
+
create38(CreateGroupRequestSchema, {
|
|
10488
10579
|
orgId: organization.id,
|
|
10489
10580
|
body: {
|
|
10490
10581
|
title: data.title,
|
|
@@ -10586,7 +10677,7 @@ import {
|
|
|
10586
10677
|
FrontierServiceQueries as FrontierServiceQueries43,
|
|
10587
10678
|
UpdateGroupRequestSchema
|
|
10588
10679
|
} from "@raystack/proton/frontier";
|
|
10589
|
-
import { create as
|
|
10680
|
+
import { create as create39 } from "@bufbuild/protobuf";
|
|
10590
10681
|
import { jsx as jsx56, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
10591
10682
|
var editTeamSchema = yup14.object({
|
|
10592
10683
|
title: yup14.string().required("Team title is required")
|
|
@@ -10630,7 +10721,7 @@ function EditTeamForm({ payload, handle, refetch }) {
|
|
|
10630
10721
|
return;
|
|
10631
10722
|
try {
|
|
10632
10723
|
yield updateTeam(
|
|
10633
|
-
|
|
10724
|
+
create39(UpdateGroupRequestSchema, {
|
|
10634
10725
|
id: payload.teamId,
|
|
10635
10726
|
body: {
|
|
10636
10727
|
title: data.title,
|
|
@@ -10719,7 +10810,7 @@ import {
|
|
|
10719
10810
|
FrontierServiceQueries as FrontierServiceQueries44,
|
|
10720
10811
|
DeleteGroupRequestSchema
|
|
10721
10812
|
} from "@raystack/proton/frontier";
|
|
10722
|
-
import { create as
|
|
10813
|
+
import { create as create40 } from "@bufbuild/protobuf";
|
|
10723
10814
|
import { jsx as jsx57, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
10724
10815
|
function DeleteTeamDialog({ handle, refetch }) {
|
|
10725
10816
|
const { activeOrganization: organization } = useFrontier();
|
|
@@ -10731,7 +10822,7 @@ function DeleteTeamDialog({ handle, refetch }) {
|
|
|
10731
10822
|
return;
|
|
10732
10823
|
try {
|
|
10733
10824
|
yield deleteTeam(
|
|
10734
|
-
|
|
10825
|
+
create40(DeleteGroupRequestSchema, {
|
|
10735
10826
|
id: teamId
|
|
10736
10827
|
})
|
|
10737
10828
|
);
|
|
@@ -10781,8 +10872,8 @@ function DeleteTeamDialog({ handle, refetch }) {
|
|
|
10781
10872
|
} });
|
|
10782
10873
|
}
|
|
10783
10874
|
|
|
10784
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10785
|
-
var digest37 = "
|
|
10875
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-bliNtrEoWtWd/sdk/client/views/teams/teams-view.module.css.js
|
|
10876
|
+
var digest37 = "c2a839d43dab9774e6ecb6f3863485977ddb5f4cf3c07f1e0bf524185c97b343";
|
|
10786
10877
|
var css37 = `._tableRoot_o6hu6_1 {
|
|
10787
10878
|
border: none;
|
|
10788
10879
|
}
|
|
@@ -11093,7 +11184,7 @@ var user_minus_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/
|
|
|
11093
11184
|
|
|
11094
11185
|
// client/views/teams/team-details-view.tsx
|
|
11095
11186
|
import { toastManager as toastManager36 } from "@raystack/apsara";
|
|
11096
|
-
import { useQuery as
|
|
11187
|
+
import { useQuery as useQuery21, useMutation as useMutation34 } from "@connectrpc/connect-query";
|
|
11097
11188
|
import {
|
|
11098
11189
|
FrontierServiceQueries as FrontierServiceQueries47,
|
|
11099
11190
|
GetGroupRequestSchema,
|
|
@@ -11101,7 +11192,7 @@ import {
|
|
|
11101
11192
|
ListRolesRequestSchema as ListRolesRequestSchema5,
|
|
11102
11193
|
SetGroupMemberRoleRequestSchema as SetGroupMemberRoleRequestSchema2
|
|
11103
11194
|
} from "@raystack/proton/frontier";
|
|
11104
|
-
import { create as
|
|
11195
|
+
import { create as create43 } from "@bufbuild/protobuf";
|
|
11105
11196
|
|
|
11106
11197
|
// client/views/teams/components/remove-member-dialog.tsx
|
|
11107
11198
|
import { useState as useState27 } from "react";
|
|
@@ -11116,7 +11207,7 @@ import {
|
|
|
11116
11207
|
FrontierServiceQueries as FrontierServiceQueries45,
|
|
11117
11208
|
RemoveGroupUserRequestSchema
|
|
11118
11209
|
} from "@raystack/proton/frontier";
|
|
11119
|
-
import { create as
|
|
11210
|
+
import { create as create41 } from "@bufbuild/protobuf";
|
|
11120
11211
|
import { Fragment as Fragment15, jsx as jsx59, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
11121
11212
|
function RemoveMemberDialog3({
|
|
11122
11213
|
handle,
|
|
@@ -11151,7 +11242,7 @@ function RemoveMemberForm2({
|
|
|
11151
11242
|
setIsLoading(true);
|
|
11152
11243
|
try {
|
|
11153
11244
|
yield removeGroupUser(
|
|
11154
|
-
|
|
11245
|
+
create41(RemoveGroupUserRequestSchema, {
|
|
11155
11246
|
id: payload.teamId,
|
|
11156
11247
|
userId: payload.memberId
|
|
11157
11248
|
})
|
|
@@ -11233,8 +11324,8 @@ import {
|
|
|
11233
11324
|
getAvatarColor as getAvatarColor5
|
|
11234
11325
|
} from "@raystack/apsara";
|
|
11235
11326
|
|
|
11236
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11237
|
-
var digest38 = "
|
|
11327
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-67LXoOX9hdZ9/sdk/client/views/teams/components/member-columns.module.css.js
|
|
11328
|
+
var digest38 = "b014aa926f97a3e950a5be1dc45fd584893a49c6cc47feed19f48b8f66632cdb";
|
|
11238
11329
|
var css38 = `._actionsCell_elyi1_1 {
|
|
11239
11330
|
visibility: hidden;
|
|
11240
11331
|
}
|
|
@@ -11354,16 +11445,16 @@ import {
|
|
|
11354
11445
|
Tooltip as Tooltip11
|
|
11355
11446
|
} from "@raystack/apsara";
|
|
11356
11447
|
import { toastManager as toastManager35 } from "@raystack/apsara";
|
|
11357
|
-
import { useQuery as
|
|
11448
|
+
import { useQuery as useQuery20, useMutation as useMutation33 } from "@connectrpc/connect-query";
|
|
11358
11449
|
import {
|
|
11359
11450
|
FrontierServiceQueries as FrontierServiceQueries46,
|
|
11360
11451
|
ListOrganizationUsersRequestSchema as ListOrganizationUsersRequestSchema4,
|
|
11361
11452
|
SetGroupMemberRoleRequestSchema
|
|
11362
11453
|
} from "@raystack/proton/frontier";
|
|
11363
|
-
import { create as
|
|
11454
|
+
import { create as create42 } from "@bufbuild/protobuf";
|
|
11364
11455
|
|
|
11365
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11366
|
-
var digest39 = "
|
|
11456
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-4eYe6gAAprah/sdk/client/views/teams/team-details-view.module.css.js
|
|
11457
|
+
var digest39 = "601e35b61f4f1f26b91dc96271aee4fba91525b3f888c7710cfaead6bba69882";
|
|
11367
11458
|
var css39 = `._tableRoot_eb0aq_1 {
|
|
11368
11459
|
border: none;
|
|
11369
11460
|
}
|
|
@@ -11432,9 +11523,9 @@ function AddMemberMenu2({
|
|
|
11432
11523
|
data: orgUsersData,
|
|
11433
11524
|
isLoading: isOrgUsersLoading,
|
|
11434
11525
|
error: orgUsersError
|
|
11435
|
-
} =
|
|
11526
|
+
} = useQuery20(
|
|
11436
11527
|
FrontierServiceQueries46.listOrganizationUsers,
|
|
11437
|
-
|
|
11528
|
+
create42(ListOrganizationUsersRequestSchema4, {
|
|
11438
11529
|
id: (organization == null ? void 0 : organization.id) || ""
|
|
11439
11530
|
}),
|
|
11440
11531
|
{ enabled: !!(organization == null ? void 0 : organization.id) && canUpdateGroup }
|
|
@@ -11505,7 +11596,7 @@ function AddMemberMenu2({
|
|
|
11505
11596
|
if (!userId || !(organization == null ? void 0 : organization.id) || !teamId || !memberRoleId)
|
|
11506
11597
|
return;
|
|
11507
11598
|
setGroupMemberRole(
|
|
11508
|
-
|
|
11599
|
+
create42(SetGroupMemberRoleRequestSchema, {
|
|
11509
11600
|
groupId: teamId,
|
|
11510
11601
|
principalId: userId,
|
|
11511
11602
|
principalType: PERMISSIONS.UserPrincipal,
|
|
@@ -11580,8 +11671,8 @@ function AddMemberMenu2({
|
|
|
11580
11671
|
] });
|
|
11581
11672
|
}
|
|
11582
11673
|
|
|
11583
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11584
|
-
var digest40 = "
|
|
11674
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-eQ7Ua07UH4V8/sdk/client/views/teams/team-details-view.module.css.js
|
|
11675
|
+
var digest40 = "91331358e1b72f30dda258719c2789de99caf527fc62bbcd158ca31f254625c9";
|
|
11585
11676
|
var css40 = `._tableRoot_eb0aq_1 {
|
|
11586
11677
|
border: none;
|
|
11587
11678
|
}
|
|
@@ -11654,9 +11745,9 @@ function TeamDetailsView({
|
|
|
11654
11745
|
isLoading: isTeamLoading,
|
|
11655
11746
|
error: teamError,
|
|
11656
11747
|
refetch: refetchTeam
|
|
11657
|
-
} =
|
|
11748
|
+
} = useQuery21(
|
|
11658
11749
|
FrontierServiceQueries47.getGroup,
|
|
11659
|
-
|
|
11750
|
+
create43(GetGroupRequestSchema, {
|
|
11660
11751
|
id: teamId || ""
|
|
11661
11752
|
}),
|
|
11662
11753
|
{
|
|
@@ -11678,9 +11769,9 @@ function TeamDetailsView({
|
|
|
11678
11769
|
data: membersData,
|
|
11679
11770
|
isLoading: isMembersLoading,
|
|
11680
11771
|
refetch: refetchMembers
|
|
11681
|
-
} =
|
|
11772
|
+
} = useQuery21(
|
|
11682
11773
|
FrontierServiceQueries47.listGroupUsers,
|
|
11683
|
-
|
|
11774
|
+
create43(ListGroupUsersRequestSchema, {
|
|
11684
11775
|
id: teamId || ""
|
|
11685
11776
|
}),
|
|
11686
11777
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!teamId }
|
|
@@ -11705,9 +11796,9 @@ function TeamDetailsView({
|
|
|
11705
11796
|
data: rolesData,
|
|
11706
11797
|
isLoading: isRolesLoading,
|
|
11707
11798
|
error: rolesError
|
|
11708
|
-
} =
|
|
11799
|
+
} = useQuery21(
|
|
11709
11800
|
FrontierServiceQueries47.listRoles,
|
|
11710
|
-
|
|
11801
|
+
create43(ListRolesRequestSchema5, {
|
|
11711
11802
|
state: "enabled",
|
|
11712
11803
|
scopes: [PERMISSIONS.GroupNamespace]
|
|
11713
11804
|
}),
|
|
@@ -11769,7 +11860,7 @@ function TeamDetailsView({
|
|
|
11769
11860
|
return;
|
|
11770
11861
|
try {
|
|
11771
11862
|
yield setGroupMemberRole(
|
|
11772
|
-
|
|
11863
|
+
create43(SetGroupMemberRoleRequestSchema2, {
|
|
11773
11864
|
groupId: teamId,
|
|
11774
11865
|
principalId: memberId,
|
|
11775
11866
|
principalType: PERMISSIONS.UserPrincipal,
|
|
@@ -12036,8 +12127,8 @@ import {
|
|
|
12036
12127
|
var key_default = 'data:image/svg+xml,<svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="key">%0A<path id="Vector" d="M21.5232 7.04688C23.7323 7.04688 25.5232 8.83774 25.5232 11.0469M29.5232 11.0469C29.5232 15.4652 25.9415 19.0469 21.5232 19.0469C21.0555 19.0469 20.5972 19.0067 20.1516 18.9297C19.4009 18.8 18.6059 18.9642 18.0672 19.5029L14.5232 23.0469H11.5232V26.0469H8.52319V29.0469H3.52319V25.2895C3.52319 24.4939 3.83926 23.7308 4.40187 23.1682L13.0672 14.5029C13.6059 13.9642 13.77 13.1692 13.6403 12.4185C13.5633 11.9728 13.5232 11.5145 13.5232 11.0469C13.5232 6.6286 17.1049 3.04688 21.5232 3.04688C25.9415 3.04688 29.5232 6.6286 29.5232 11.0469Z" stroke="%23646464" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>%0A</g>%0A</svg>%0A';
|
|
12037
12128
|
|
|
12038
12129
|
// client/views/service-accounts/service-accounts-view.tsx
|
|
12039
|
-
import { useQuery as
|
|
12040
|
-
import { create as
|
|
12130
|
+
import { useQuery as useQuery25 } from "@connectrpc/connect-query";
|
|
12131
|
+
import { create as create48 } from "@bufbuild/protobuf";
|
|
12041
12132
|
import {
|
|
12042
12133
|
FrontierServiceQueries as FrontierServiceQueries52,
|
|
12043
12134
|
ListOrganizationServiceUsersRequestSchema as ListOrganizationServiceUsersRequestSchema3
|
|
@@ -12051,8 +12142,8 @@ import {
|
|
|
12051
12142
|
IconButton as IconButton10
|
|
12052
12143
|
} from "@raystack/apsara";
|
|
12053
12144
|
|
|
12054
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12055
|
-
var digest41 = "
|
|
12145
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-xgEJNWz38NW0/sdk/client/views/service-accounts/components/service-account-columns.module.css.js
|
|
12146
|
+
var digest41 = "6cf96e246a75125b9dbdc6fc86e130ad8af71bcd73b0000dd15b6fc5fc7b1131";
|
|
12056
12147
|
var css41 = `._actionsCell_10j4e_1 {
|
|
12057
12148
|
visibility: hidden;
|
|
12058
12149
|
}
|
|
@@ -12150,11 +12241,11 @@ import { Controller as Controller3, useForm as useForm15 } from "react-hook-form
|
|
|
12150
12241
|
import * as yup15 from "yup";
|
|
12151
12242
|
import { yupResolver as yupResolver15 } from "@hookform/resolvers/yup";
|
|
12152
12243
|
import { orderBy } from "lodash";
|
|
12153
|
-
import { create as
|
|
12244
|
+
import { create as create45 } from "@bufbuild/protobuf";
|
|
12154
12245
|
import { useQueryClient as useQueryClient11 } from "@tanstack/react-query";
|
|
12155
12246
|
import {
|
|
12156
12247
|
useMutation as useMutation35,
|
|
12157
|
-
useQuery as
|
|
12248
|
+
useQuery as useQuery23,
|
|
12158
12249
|
createConnectQueryKey as createConnectQueryKey11,
|
|
12159
12250
|
useTransport as useTransport10
|
|
12160
12251
|
} from "@connectrpc/connect-query";
|
|
@@ -12185,13 +12276,13 @@ import {
|
|
|
12185
12276
|
|
|
12186
12277
|
// client/views/service-accounts/hooks/useServiceUserTokens.ts
|
|
12187
12278
|
import {
|
|
12188
|
-
useQuery as
|
|
12279
|
+
useQuery as useQuery22,
|
|
12189
12280
|
createConnectQueryKey as createConnectQueryKey10,
|
|
12190
12281
|
useTransport as useTransport9
|
|
12191
12282
|
} from "@connectrpc/connect-query";
|
|
12192
12283
|
import { useMemo as useMemo30 } from "react";
|
|
12193
12284
|
import { useQueryClient as useQueryClient10 } from "@tanstack/react-query";
|
|
12194
|
-
import { create as
|
|
12285
|
+
import { create as create44 } from "@bufbuild/protobuf";
|
|
12195
12286
|
import {
|
|
12196
12287
|
FrontierServiceQueries as FrontierServiceQueries48,
|
|
12197
12288
|
ListServiceUserTokensRequestSchema,
|
|
@@ -12213,9 +12304,9 @@ var useServiceUserTokens = ({
|
|
|
12213
12304
|
}) => {
|
|
12214
12305
|
const queryClient2 = useQueryClient10();
|
|
12215
12306
|
const transport = useTransport9();
|
|
12216
|
-
const { data: tokensData, isLoading } =
|
|
12307
|
+
const { data: tokensData, isLoading } = useQuery22(
|
|
12217
12308
|
FrontierServiceQueries48.listServiceUserTokens,
|
|
12218
|
-
|
|
12309
|
+
create44(ListServiceUserTokensRequestSchema, {
|
|
12219
12310
|
id,
|
|
12220
12311
|
orgId
|
|
12221
12312
|
}),
|
|
@@ -12242,7 +12333,7 @@ var useServiceUserTokens = ({
|
|
|
12242
12333
|
return createConnectQueryKey10({
|
|
12243
12334
|
schema: FrontierServiceQueries48.listServiceUserTokens,
|
|
12244
12335
|
transport,
|
|
12245
|
-
input:
|
|
12336
|
+
input: create44(ListServiceUserTokensRequestSchema, {
|
|
12246
12337
|
id,
|
|
12247
12338
|
orgId
|
|
12248
12339
|
}),
|
|
@@ -12257,7 +12348,7 @@ var useServiceUserTokens = ({
|
|
|
12257
12348
|
const filteredTokens = existingTokens.filter((t) => t !== void 0);
|
|
12258
12349
|
queryClient2.setQueryData(
|
|
12259
12350
|
queryKey,
|
|
12260
|
-
|
|
12351
|
+
create44(ListServiceUserTokensResponseSchema, {
|
|
12261
12352
|
tokens: [token, ...filteredTokens]
|
|
12262
12353
|
})
|
|
12263
12354
|
);
|
|
@@ -12273,7 +12364,7 @@ var useServiceUserTokens = ({
|
|
|
12273
12364
|
);
|
|
12274
12365
|
queryClient2.setQueryData(
|
|
12275
12366
|
queryKey,
|
|
12276
|
-
|
|
12367
|
+
create44(ListServiceUserTokensResponseSchema, {
|
|
12277
12368
|
tokens: filteredTokens
|
|
12278
12369
|
})
|
|
12279
12370
|
);
|
|
@@ -12331,9 +12422,9 @@ function AddServiceAccountDialog({
|
|
|
12331
12422
|
reset();
|
|
12332
12423
|
}
|
|
12333
12424
|
};
|
|
12334
|
-
const { data: projectsData, isLoading: isProjectsLoading } =
|
|
12425
|
+
const { data: projectsData, isLoading: isProjectsLoading } = useQuery23(
|
|
12335
12426
|
FrontierServiceQueries49.listOrganizationProjects,
|
|
12336
|
-
|
|
12427
|
+
create45(ListOrganizationProjectsRequestSchema2, {
|
|
12337
12428
|
id: orgId,
|
|
12338
12429
|
state: "",
|
|
12339
12430
|
withMemberCount: false
|
|
@@ -12347,9 +12438,9 @@ function AddServiceAccountDialog({
|
|
|
12347
12438
|
const list = (_a2 = projectsData == null ? void 0 : projectsData.projects) != null ? _a2 : [];
|
|
12348
12439
|
return orderBy(list, ["title"], ["asc"]);
|
|
12349
12440
|
}, [projectsData]);
|
|
12350
|
-
const { data: rolesData, isLoading: isRolesLoading } =
|
|
12441
|
+
const { data: rolesData, isLoading: isRolesLoading } = useQuery23(
|
|
12351
12442
|
FrontierServiceQueries49.listRoles,
|
|
12352
|
-
|
|
12443
|
+
create45(ListRolesRequestSchema6, {
|
|
12353
12444
|
state: "enabled",
|
|
12354
12445
|
scopes: [PERMISSIONS.ProjectNamespace]
|
|
12355
12446
|
}),
|
|
@@ -12378,9 +12469,9 @@ function AddServiceAccountDialog({
|
|
|
12378
12469
|
return;
|
|
12379
12470
|
try {
|
|
12380
12471
|
const serviceUserResponse = yield createServiceUser(
|
|
12381
|
-
|
|
12472
|
+
create45(CreateServiceUserRequestSchema, {
|
|
12382
12473
|
orgId,
|
|
12383
|
-
body:
|
|
12474
|
+
body: create45(ServiceUserRequestBodySchema, {
|
|
12384
12475
|
title: data.title
|
|
12385
12476
|
})
|
|
12386
12477
|
})
|
|
@@ -12391,7 +12482,7 @@ function AddServiceAccountDialog({
|
|
|
12391
12482
|
yield Promise.all(
|
|
12392
12483
|
data.project_ids.map(
|
|
12393
12484
|
(projectId) => setProjectMemberRole(
|
|
12394
|
-
|
|
12485
|
+
create45(SetProjectMemberRoleRequestSchema3, {
|
|
12395
12486
|
projectId,
|
|
12396
12487
|
principalId: serviceUserId,
|
|
12397
12488
|
principalType: PERMISSIONS.ServiceUserPrincipal,
|
|
@@ -12401,7 +12492,7 @@ function AddServiceAccountDialog({
|
|
|
12401
12492
|
)
|
|
12402
12493
|
);
|
|
12403
12494
|
const tokenResponse = yield createServiceUserToken(
|
|
12404
|
-
|
|
12495
|
+
create45(CreateServiceUserTokenRequestSchema, {
|
|
12405
12496
|
orgId,
|
|
12406
12497
|
id: serviceUserId,
|
|
12407
12498
|
title: DEFAULT_KEY_NAME
|
|
@@ -12411,7 +12502,7 @@ function AddServiceAccountDialog({
|
|
|
12411
12502
|
queryKey: createConnectQueryKey11({
|
|
12412
12503
|
schema: FrontierServiceQueries49.listOrganizationServiceUsers,
|
|
12413
12504
|
transport,
|
|
12414
|
-
input:
|
|
12505
|
+
input: create45(ListOrganizationServiceUsersRequestSchema, {
|
|
12415
12506
|
id: orgId
|
|
12416
12507
|
}),
|
|
12417
12508
|
cardinality: "finite"
|
|
@@ -12420,7 +12511,7 @@ function AddServiceAccountDialog({
|
|
|
12420
12511
|
const listTokensQueryKey = createConnectQueryKey11({
|
|
12421
12512
|
schema: FrontierServiceQueries49.listServiceUserTokens,
|
|
12422
12513
|
transport,
|
|
12423
|
-
input:
|
|
12514
|
+
input: create45(ListServiceUserTokensRequestSchema2, {
|
|
12424
12515
|
id: serviceUserId,
|
|
12425
12516
|
orgId
|
|
12426
12517
|
}),
|
|
@@ -12428,7 +12519,7 @@ function AddServiceAccountDialog({
|
|
|
12428
12519
|
});
|
|
12429
12520
|
queryClient2.setQueryData(
|
|
12430
12521
|
listTokensQueryKey,
|
|
12431
|
-
|
|
12522
|
+
create45(ListServiceUserTokensResponseSchema2, {
|
|
12432
12523
|
tokens: tokenResponse.token ? [tokenResponse.token] : []
|
|
12433
12524
|
})
|
|
12434
12525
|
);
|
|
@@ -12542,7 +12633,7 @@ function AddServiceAccountDialog({
|
|
|
12542
12633
|
|
|
12543
12634
|
// client/views/service-accounts/components/delete-service-account-dialog.tsx
|
|
12544
12635
|
import { useState as useState28 } from "react";
|
|
12545
|
-
import { create as
|
|
12636
|
+
import { create as create46 } from "@bufbuild/protobuf";
|
|
12546
12637
|
import { useMutation as useMutation36, createConnectQueryKey as createConnectQueryKey12, useTransport as useTransport11 } from "@connectrpc/connect-query";
|
|
12547
12638
|
import {
|
|
12548
12639
|
FrontierServiceQueries as FrontierServiceQueries50,
|
|
@@ -12570,7 +12661,7 @@ function DeleteServiceAccountDialog({ handle, refetch }) {
|
|
|
12570
12661
|
setIsLoading(true);
|
|
12571
12662
|
try {
|
|
12572
12663
|
yield deleteServiceUser(
|
|
12573
|
-
|
|
12664
|
+
create46(DeleteServiceUserRequestSchema, {
|
|
12574
12665
|
id: serviceAccountId,
|
|
12575
12666
|
orgId
|
|
12576
12667
|
})
|
|
@@ -12579,7 +12670,7 @@ function DeleteServiceAccountDialog({ handle, refetch }) {
|
|
|
12579
12670
|
queryKey: createConnectQueryKey12({
|
|
12580
12671
|
schema: FrontierServiceQueries50.listOrganizationServiceUsers,
|
|
12581
12672
|
transport,
|
|
12582
|
-
input:
|
|
12673
|
+
input: create46(ListOrganizationServiceUsersRequestSchema2, {
|
|
12583
12674
|
id: orgId
|
|
12584
12675
|
}),
|
|
12585
12676
|
cardinality: "finite"
|
|
@@ -12647,8 +12738,8 @@ import {
|
|
|
12647
12738
|
Select as Select8,
|
|
12648
12739
|
toastManager as toastManager39
|
|
12649
12740
|
} from "@raystack/apsara";
|
|
12650
|
-
import { useQuery as
|
|
12651
|
-
import { create as
|
|
12741
|
+
import { useQuery as useQuery24, useMutation as useMutation37 } from "@connectrpc/connect-query";
|
|
12742
|
+
import { create as create47 } from "@bufbuild/protobuf";
|
|
12652
12743
|
import {
|
|
12653
12744
|
FrontierServiceQueries as FrontierServiceQueries51,
|
|
12654
12745
|
ListServiceUserProjectsRequestSchema,
|
|
@@ -12659,8 +12750,8 @@ import {
|
|
|
12659
12750
|
} from "@raystack/proton/frontier";
|
|
12660
12751
|
import { orderBy as orderBy2 } from "lodash";
|
|
12661
12752
|
|
|
12662
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12663
|
-
var digest42 = "
|
|
12753
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-TniKPKLWXMAR/sdk/client/views/service-accounts/service-account-details-view.module.css.js
|
|
12754
|
+
var digest42 = "a00cc9cd7f6aca0d1193f3b07a9377bf21b7120cbba0390c7f88650539ef8724";
|
|
12664
12755
|
var css42 = `._addTokenRow_f3qf2_1 {
|
|
12665
12756
|
gap: var(--rs-space-10);
|
|
12666
12757
|
}
|
|
@@ -12822,9 +12913,9 @@ function ManageProjectAccessDialog({
|
|
|
12822
12913
|
const handleOpenChange = (open) => {
|
|
12823
12914
|
setIsOpen(open);
|
|
12824
12915
|
};
|
|
12825
|
-
const { data: projectsData, isLoading: isProjectsLoading } =
|
|
12916
|
+
const { data: projectsData, isLoading: isProjectsLoading } = useQuery24(
|
|
12826
12917
|
FrontierServiceQueries51.listOrganizationProjects,
|
|
12827
|
-
|
|
12918
|
+
create47(ListOrganizationProjectsRequestSchema3, {
|
|
12828
12919
|
id: orgId,
|
|
12829
12920
|
state: "",
|
|
12830
12921
|
withMemberCount: false
|
|
@@ -12836,9 +12927,9 @@ function ManageProjectAccessDialog({
|
|
|
12836
12927
|
const list = (_a = projectsData == null ? void 0 : projectsData.projects) != null ? _a : [];
|
|
12837
12928
|
return orderBy2(list, ["title"], ["asc"]);
|
|
12838
12929
|
}, [projectsData]);
|
|
12839
|
-
const { data: addedProjectsData, isLoading: isAddedProjectsLoading } =
|
|
12930
|
+
const { data: addedProjectsData, isLoading: isAddedProjectsLoading } = useQuery24(
|
|
12840
12931
|
FrontierServiceQueries51.listServiceUserProjects,
|
|
12841
|
-
|
|
12932
|
+
create47(ListServiceUserProjectsRequestSchema, {
|
|
12842
12933
|
id: serviceUserId,
|
|
12843
12934
|
orgId,
|
|
12844
12935
|
withPermissions: []
|
|
@@ -12852,9 +12943,9 @@ function ManageProjectAccessDialog({
|
|
|
12852
12943
|
},
|
|
12853
12944
|
[addedProjectsData]
|
|
12854
12945
|
);
|
|
12855
|
-
const { data: rolesData, isLoading: isRolesLoading } =
|
|
12946
|
+
const { data: rolesData, isLoading: isRolesLoading } = useQuery24(
|
|
12856
12947
|
FrontierServiceQueries51.listRoles,
|
|
12857
|
-
|
|
12948
|
+
create47(ListRolesRequestSchema7, {
|
|
12858
12949
|
state: "enabled",
|
|
12859
12950
|
scopes: [PERMISSIONS.ProjectNamespace]
|
|
12860
12951
|
}),
|
|
@@ -12903,7 +12994,7 @@ function ManageProjectAccessDialog({
|
|
|
12903
12994
|
const roleName = ((_a = accessMap[projectId]) == null ? void 0 : _a.roleId) || PERMISSIONS.RoleProjectViewer;
|
|
12904
12995
|
const resolvedRoleId = roleNameToId[roleName] || "";
|
|
12905
12996
|
yield setProjectMemberRole(
|
|
12906
|
-
|
|
12997
|
+
create47(SetProjectMemberRoleRequestSchema4, {
|
|
12907
12998
|
projectId,
|
|
12908
12999
|
principalId: serviceUserId,
|
|
12909
13000
|
principalType: PERMISSIONS.ServiceUserPrincipal,
|
|
@@ -12915,7 +13006,7 @@ function ManageProjectAccessDialog({
|
|
|
12915
13006
|
}));
|
|
12916
13007
|
} else {
|
|
12917
13008
|
yield removeProjectMember(
|
|
12918
|
-
|
|
13009
|
+
create47(RemoveProjectMemberRequestSchema2, {
|
|
12919
13010
|
projectId,
|
|
12920
13011
|
principalId: serviceUserId,
|
|
12921
13012
|
principalType: PERMISSIONS.ServiceUserPrincipal
|
|
@@ -12966,7 +13057,7 @@ function ManageProjectAccessDialog({
|
|
|
12966
13057
|
}));
|
|
12967
13058
|
const resolvedRoleId = roleNameToId[roleId] || "";
|
|
12968
13059
|
yield setProjectMemberRole(
|
|
12969
|
-
|
|
13060
|
+
create47(SetProjectMemberRoleRequestSchema4, {
|
|
12970
13061
|
projectId,
|
|
12971
13062
|
principalId: serviceUserId,
|
|
12972
13063
|
principalType: PERMISSIONS.ServiceUserPrincipal,
|
|
@@ -13038,8 +13129,8 @@ function ManageProjectAccessDialog({
|
|
|
13038
13129
|
] }) });
|
|
13039
13130
|
}
|
|
13040
13131
|
|
|
13041
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13042
|
-
var digest43 = "
|
|
13132
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-C5SiVEMr7VPG/sdk/client/views/service-accounts/service-accounts-view.module.css.js
|
|
13133
|
+
var digest43 = "cfb6d2558ed1d55df1657da1f86ad896916ba9557360243bcb0fd8118e19b66e";
|
|
13043
13134
|
var css43 = `._tableRoot_1z0j0_1 {
|
|
13044
13135
|
border: none;
|
|
13045
13136
|
}
|
|
@@ -13119,9 +13210,9 @@ function ServiceAccountsView({
|
|
|
13119
13210
|
data: serviceUsersData,
|
|
13120
13211
|
isLoading: isServiceUsersLoading,
|
|
13121
13212
|
refetch
|
|
13122
|
-
} =
|
|
13213
|
+
} = useQuery25(
|
|
13123
13214
|
FrontierServiceQueries52.listOrganizationServiceUsers,
|
|
13124
|
-
|
|
13215
|
+
create48(ListOrganizationServiceUsersRequestSchema3, {
|
|
13125
13216
|
id: orgId
|
|
13126
13217
|
}),
|
|
13127
13218
|
{
|
|
@@ -13358,8 +13449,8 @@ import {
|
|
|
13358
13449
|
Image as Image10,
|
|
13359
13450
|
CopyButton as CopyButton2
|
|
13360
13451
|
} from "@raystack/apsara";
|
|
13361
|
-
import { useQuery as
|
|
13362
|
-
import { create as
|
|
13452
|
+
import { useQuery as useQuery26 } from "@connectrpc/connect-query";
|
|
13453
|
+
import { create as create51 } from "@bufbuild/protobuf";
|
|
13363
13454
|
import {
|
|
13364
13455
|
FrontierServiceQueries as FrontierServiceQueries55,
|
|
13365
13456
|
GetServiceUserRequestSchema
|
|
@@ -13372,14 +13463,14 @@ import { yupResolver as yupResolver16 } from "@hookform/resolvers/yup";
|
|
|
13372
13463
|
import * as yup16 from "yup";
|
|
13373
13464
|
import { Flex as Flex58, Button as Button46, Field as Field14, Input as Input16, toastManager as toastManager40 } from "@raystack/apsara";
|
|
13374
13465
|
import { useMutation as useMutation38 } from "@connectrpc/connect-query";
|
|
13375
|
-
import { create as
|
|
13466
|
+
import { create as create49 } from "@bufbuild/protobuf";
|
|
13376
13467
|
import {
|
|
13377
13468
|
FrontierServiceQueries as FrontierServiceQueries53,
|
|
13378
13469
|
CreateServiceUserTokenRequestSchema as CreateServiceUserTokenRequestSchema2
|
|
13379
13470
|
} from "@raystack/proton/frontier";
|
|
13380
13471
|
|
|
13381
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13382
|
-
var digest44 = "
|
|
13472
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-KnwdKvtOmPHC/sdk/client/views/service-accounts/service-account-details-view.module.css.js
|
|
13473
|
+
var digest44 = "2d6ac073a2376d1826b7a4d50af6eb22cda1536fc13eb7b3f52e03921d26c8d0";
|
|
13383
13474
|
var css44 = `._addTokenRow_f3qf2_1 {
|
|
13384
13475
|
gap: var(--rs-space-10);
|
|
13385
13476
|
}
|
|
@@ -13485,7 +13576,7 @@ function AddTokenForm({
|
|
|
13485
13576
|
(data) => __async(this, null, function* () {
|
|
13486
13577
|
try {
|
|
13487
13578
|
const response = yield createServiceUserToken(
|
|
13488
|
-
|
|
13579
|
+
create49(CreateServiceUserTokenRequestSchema2, {
|
|
13489
13580
|
orgId,
|
|
13490
13581
|
id: serviceUserId,
|
|
13491
13582
|
title: data.title
|
|
@@ -13538,7 +13629,7 @@ function AddTokenForm({
|
|
|
13538
13629
|
|
|
13539
13630
|
// client/views/service-accounts/components/revoke-token-dialog.tsx
|
|
13540
13631
|
import { useState as useState31 } from "react";
|
|
13541
|
-
import { create as
|
|
13632
|
+
import { create as create50 } from "@bufbuild/protobuf";
|
|
13542
13633
|
import { useMutation as useMutation39 } from "@connectrpc/connect-query";
|
|
13543
13634
|
import {
|
|
13544
13635
|
FrontierServiceQueries as FrontierServiceQueries54,
|
|
@@ -13567,7 +13658,7 @@ function RevokeTokenDialog({
|
|
|
13567
13658
|
setIsLoading(true);
|
|
13568
13659
|
try {
|
|
13569
13660
|
yield deleteServiceUserToken(
|
|
13570
|
-
|
|
13661
|
+
create50(DeleteServiceUserTokenRequestSchema, {
|
|
13571
13662
|
id: serviceUserId,
|
|
13572
13663
|
tokenId,
|
|
13573
13664
|
orgId
|
|
@@ -13627,8 +13718,8 @@ function RevokeTokenDialog({
|
|
|
13627
13718
|
} });
|
|
13628
13719
|
}
|
|
13629
13720
|
|
|
13630
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13631
|
-
var digest45 = "
|
|
13721
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-gV7L6DO1O5Mv/sdk/client/views/service-accounts/service-account-details-view.module.css.js
|
|
13722
|
+
var digest45 = "93ab1ff1d3e22c18cdce1720081a7b18343ee2e04562df5b367ea31141338a73";
|
|
13632
13723
|
var css45 = `._addTokenRow_f3qf2_1 {
|
|
13633
13724
|
gap: var(--rs-space-10);
|
|
13634
13725
|
}
|
|
@@ -13722,9 +13813,9 @@ function ServiceAccountDetailsView({
|
|
|
13722
13813
|
const { activeOrganization: organization } = useFrontier();
|
|
13723
13814
|
const t = useTerminology();
|
|
13724
13815
|
const orgId = (organization == null ? void 0 : organization.id) || "";
|
|
13725
|
-
const { data: serviceUser, isLoading: isServiceUserLoading } =
|
|
13816
|
+
const { data: serviceUser, isLoading: isServiceUserLoading } = useQuery26(
|
|
13726
13817
|
FrontierServiceQueries55.getServiceUser,
|
|
13727
|
-
|
|
13818
|
+
create51(GetServiceUserRequestSchema, {
|
|
13728
13819
|
id: serviceAccountId,
|
|
13729
13820
|
orgId
|
|
13730
13821
|
}),
|
|
@@ -13955,8 +14046,8 @@ import {
|
|
|
13955
14046
|
Flex as Flex64,
|
|
13956
14047
|
Skeleton as Skeleton31
|
|
13957
14048
|
} from "@raystack/apsara";
|
|
13958
|
-
import { useQuery as
|
|
13959
|
-
import { create as
|
|
14049
|
+
import { useQuery as useQuery27 } from "@connectrpc/connect-query";
|
|
14050
|
+
import { create as create52 } from "@bufbuild/protobuf";
|
|
13960
14051
|
import {
|
|
13961
14052
|
FrontierServiceQueries as FrontierServiceQueries56,
|
|
13962
14053
|
ListFeaturesRequestSchema
|
|
@@ -14018,8 +14109,8 @@ import {
|
|
|
14018
14109
|
Text as Text42
|
|
14019
14110
|
} from "@raystack/apsara";
|
|
14020
14111
|
|
|
14021
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14022
|
-
var digest46 = "
|
|
14112
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-SyyXLJ6VgjVq/sdk/client/views/plans/components/plan-card.module.css.js
|
|
14113
|
+
var digest46 = "7dff59e3ff509541132b8f7a8facda31289d42cf10f3961497950777f635aa6b";
|
|
14023
14114
|
var css46 = `._card_109ks_1 {
|
|
14024
14115
|
display: flex;
|
|
14025
14116
|
flex-direction: column;
|
|
@@ -14246,8 +14337,8 @@ function PlanCard({
|
|
|
14246
14337
|
import { Flex as Flex62, Image as Image11, Skeleton as Skeleton29, Text as Text43 } from "@raystack/apsara";
|
|
14247
14338
|
import { get as get2 } from "lodash";
|
|
14248
14339
|
|
|
14249
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14250
|
-
var digest47 = "
|
|
14340
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-inpN5wvTfIEF/sdk/client/views/plans/components/feature-table.module.css.js
|
|
14341
|
+
var digest47 = "99c9f86fc9ab7258d286edfa8c41613353ec9f4336c6c830d8e3b5e89fbe2a5d";
|
|
14251
14342
|
var css47 = `._table_1h9e9_1 {
|
|
14252
14343
|
display: flex;
|
|
14253
14344
|
width: 100%;
|
|
@@ -14633,8 +14724,8 @@ function ConfirmPlanChangeContent({
|
|
|
14633
14724
|
] });
|
|
14634
14725
|
}
|
|
14635
14726
|
|
|
14636
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14637
|
-
var digest48 = "
|
|
14727
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-sUHCUafHsBAe/sdk/client/views/plans/plans-view.module.css.js
|
|
14728
|
+
var digest48 = "f5f5e01ee6eb0969f704c663c3d06f9c935398babfdcc650f6ed6f0c53f1349b";
|
|
14638
14729
|
var css48 = `._plansRow_m36hz_1 {
|
|
14639
14730
|
display: flex;
|
|
14640
14731
|
position: sticky;
|
|
@@ -14681,9 +14772,9 @@ function PlansView() {
|
|
|
14681
14772
|
activeOrganization
|
|
14682
14773
|
} = useFrontier();
|
|
14683
14774
|
const { isFetching: isPermissionsFetching, isAllowed: canChangePlan } = useBillingPermission();
|
|
14684
|
-
const { data: featuresData, isLoading: isFeaturesLoading } =
|
|
14775
|
+
const { data: featuresData, isLoading: isFeaturesLoading } = useQuery27(
|
|
14685
14776
|
FrontierServiceQueries56.listFeatures,
|
|
14686
|
-
|
|
14777
|
+
create52(ListFeaturesRequestSchema, {})
|
|
14687
14778
|
);
|
|
14688
14779
|
const features = useMemo37(
|
|
14689
14780
|
() => (featuresData == null ? void 0 : featuresData.features) || [],
|
|
@@ -14842,7 +14933,7 @@ import {
|
|
|
14842
14933
|
RQLFilterSchema as RQLFilterSchema3,
|
|
14843
14934
|
RQLSortSchema as RQLSortSchema3
|
|
14844
14935
|
} from "@raystack/proton/frontier";
|
|
14845
|
-
import { create as
|
|
14936
|
+
import { create as create53 } from "@bufbuild/protobuf";
|
|
14846
14937
|
import dayjs6 from "dayjs";
|
|
14847
14938
|
function convertFilterValue2(value) {
|
|
14848
14939
|
switch (typeof value) {
|
|
@@ -14860,12 +14951,12 @@ function transformDateFilter2(filter, fieldName) {
|
|
|
14860
14951
|
const startOfDay = dayjs6(filter.value).startOf("day");
|
|
14861
14952
|
if (filter.operator === "eq") {
|
|
14862
14953
|
return [
|
|
14863
|
-
|
|
14954
|
+
create53(RQLFilterSchema3, {
|
|
14864
14955
|
name: fieldName,
|
|
14865
14956
|
operator: "gte",
|
|
14866
14957
|
value: { case: "stringValue", value: startOfDay.toISOString() }
|
|
14867
14958
|
}),
|
|
14868
|
-
|
|
14959
|
+
create53(RQLFilterSchema3, {
|
|
14869
14960
|
name: fieldName,
|
|
14870
14961
|
operator: "lt",
|
|
14871
14962
|
value: {
|
|
@@ -14876,7 +14967,7 @@ function transformDateFilter2(filter, fieldName) {
|
|
|
14876
14967
|
];
|
|
14877
14968
|
}
|
|
14878
14969
|
return [
|
|
14879
|
-
|
|
14970
|
+
create53(RQLFilterSchema3, {
|
|
14880
14971
|
name: fieldName,
|
|
14881
14972
|
operator: filter.operator,
|
|
14882
14973
|
value: { case: "stringValue", value: startOfDay.toISOString() }
|
|
@@ -14900,7 +14991,7 @@ function transformFilter2(filter, fieldNameMapping) {
|
|
|
14900
14991
|
value = convertFilterValue2(filter.value);
|
|
14901
14992
|
}
|
|
14902
14993
|
return [
|
|
14903
|
-
|
|
14994
|
+
create53(RQLFilterSchema3, {
|
|
14904
14995
|
name: fieldName,
|
|
14905
14996
|
operator: filter.operator,
|
|
14906
14997
|
value
|
|
@@ -14914,7 +15005,7 @@ function transformSort2(sort, fieldNameMapping) {
|
|
|
14914
15005
|
return sort.map(
|
|
14915
15006
|
(s) => {
|
|
14916
15007
|
var _a;
|
|
14917
|
-
return
|
|
15008
|
+
return create53(RQLSortSchema3, __spreadProps(__spreadValues({}, s), {
|
|
14918
15009
|
name: (_a = fieldNameMapping == null ? void 0 : fieldNameMapping[s.name]) != null ? _a : s.name
|
|
14919
15010
|
}));
|
|
14920
15011
|
}
|
|
@@ -14924,7 +15015,7 @@ function transformDataTableQueryToRQLRequest2(query, options = {}) {
|
|
|
14924
15015
|
var _a;
|
|
14925
15016
|
const { defaultLimit = 50, fieldNameMapping } = options;
|
|
14926
15017
|
const filters = ((_a = query.filters) == null ? void 0 : _a.length) ? query.filters.flatMap((filter) => transformFilter2(filter, fieldNameMapping)) : [];
|
|
14927
|
-
const rqlRequest =
|
|
15018
|
+
const rqlRequest = create53(RQLRequestSchema3, {
|
|
14928
15019
|
filters,
|
|
14929
15020
|
groupBy: (query.group_by || []).map(
|
|
14930
15021
|
(field) => {
|
|
@@ -14945,8 +15036,8 @@ import dayjs7 from "dayjs";
|
|
|
14945
15036
|
import relativeTime2 from "dayjs/plugin/relativeTime";
|
|
14946
15037
|
import { Button as Button51, Text as Text45 } from "@raystack/apsara";
|
|
14947
15038
|
|
|
14948
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14949
|
-
var digest49 = "
|
|
15039
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-0M6nVf373s0K/sdk/client/views/pat/pat-view.module.css.js
|
|
15040
|
+
var digest49 = "67b08f06c7af93f4feeb404096de6715d07b50368e27432f446aa9b94944abce";
|
|
14950
15041
|
var css49 = `._tableRoot_fvisd_1 {
|
|
14951
15042
|
border: none;
|
|
14952
15043
|
}
|
|
@@ -15060,9 +15151,9 @@ import { Controller as Controller4, useForm as useForm17 } from "react-hook-form
|
|
|
15060
15151
|
import * as yup17 from "yup";
|
|
15061
15152
|
import { yupResolver as yupResolver17 } from "@hookform/resolvers/yup";
|
|
15062
15153
|
import { orderBy as orderBy3 } from "lodash";
|
|
15063
|
-
import { create as
|
|
15154
|
+
import { create as create54 } from "@bufbuild/protobuf";
|
|
15064
15155
|
import { timestampFromDate } from "@bufbuild/protobuf/wkt";
|
|
15065
|
-
import { useMutation as useMutation40, useQuery as
|
|
15156
|
+
import { useMutation as useMutation40, useQuery as useQuery28 } from "@connectrpc/connect-query";
|
|
15066
15157
|
import dayjs8 from "dayjs";
|
|
15067
15158
|
import {
|
|
15068
15159
|
FrontierServiceQueries as FrontierServiceQueries57,
|
|
@@ -15114,8 +15205,8 @@ function getExpiryOptionValue(reference, expiresAt) {
|
|
|
15114
15205
|
return (_a = match == null ? void 0 : match.value) != null ? _a : "";
|
|
15115
15206
|
}
|
|
15116
15207
|
|
|
15117
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15118
|
-
var digest50 = "
|
|
15208
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-eCvQBVF6FfTh/sdk/client/views/pat/pat-view.module.css.js
|
|
15209
|
+
var digest50 = "fe5f0c55ee913aab6fec9dd01f6151a66a6149dba623d78602760719db86c1c1";
|
|
15119
15210
|
var css50 = `._tableRoot_fvisd_1 {
|
|
15120
15211
|
border: none;
|
|
15121
15212
|
}
|
|
@@ -15256,9 +15347,9 @@ function PATFormDialog({
|
|
|
15256
15347
|
setProjectAccess("all");
|
|
15257
15348
|
}
|
|
15258
15349
|
};
|
|
15259
|
-
const { data: projectsData, isLoading: isProjectsLoading } =
|
|
15350
|
+
const { data: projectsData, isLoading: isProjectsLoading } = useQuery28(
|
|
15260
15351
|
FrontierServiceQueries57.listProjectsByCurrentUser,
|
|
15261
|
-
|
|
15352
|
+
create54(ListProjectsByCurrentUserRequestSchema2, {
|
|
15262
15353
|
orgId,
|
|
15263
15354
|
nonInherited: false
|
|
15264
15355
|
}),
|
|
@@ -15269,9 +15360,9 @@ function PATFormDialog({
|
|
|
15269
15360
|
const list = (_a2 = projectsData == null ? void 0 : projectsData.projects) != null ? _a2 : [];
|
|
15270
15361
|
return orderBy3(list, ["title"], ["asc"]);
|
|
15271
15362
|
}, [projectsData]);
|
|
15272
|
-
const { data: rolesData, isLoading: isRolesLoading } =
|
|
15363
|
+
const { data: rolesData, isLoading: isRolesLoading } = useQuery28(
|
|
15273
15364
|
FrontierServiceQueries57.listRolesForPAT,
|
|
15274
|
-
|
|
15365
|
+
create54(ListRolesForPATRequestSchema, { scopes: [] }),
|
|
15275
15366
|
{ enabled: Boolean(orgId) }
|
|
15276
15367
|
);
|
|
15277
15368
|
const { orgRoles, projectRoles } = useMemo38(() => {
|
|
@@ -15357,7 +15448,7 @@ function PATFormDialog({
|
|
|
15357
15448
|
setTitleChecking(true);
|
|
15358
15449
|
try {
|
|
15359
15450
|
const result = yield checkTitle(
|
|
15360
|
-
|
|
15451
|
+
create54(CheckCurrentUserPATTitleRequestSchema, { orgId, title })
|
|
15361
15452
|
);
|
|
15362
15453
|
if (getValues("title") === checkedTitle) {
|
|
15363
15454
|
setTitleAvailable((_a2 = result == null ? void 0 : result.available) != null ? _a2 : true);
|
|
@@ -15398,7 +15489,7 @@ function PATFormDialog({
|
|
|
15398
15489
|
try {
|
|
15399
15490
|
if (isUpdateMode && initialData) {
|
|
15400
15491
|
yield updatePAT(
|
|
15401
|
-
|
|
15492
|
+
create54(UpdateCurrentUserPATRequestSchema, {
|
|
15402
15493
|
id: initialData.id,
|
|
15403
15494
|
title: data.title,
|
|
15404
15495
|
scopes
|
|
@@ -15419,7 +15510,7 @@ function PATFormDialog({
|
|
|
15419
15510
|
dayjs8().add(option.amount, option.unit).toDate()
|
|
15420
15511
|
);
|
|
15421
15512
|
const response = yield createPAT(
|
|
15422
|
-
|
|
15513
|
+
create54(CreateCurrentUserPATRequestSchema, {
|
|
15423
15514
|
title: data.title,
|
|
15424
15515
|
orgId,
|
|
15425
15516
|
scopes,
|
|
@@ -15801,7 +15892,7 @@ function PATCreatedDialog({ handle, onClose }) {
|
|
|
15801
15892
|
|
|
15802
15893
|
// client/views/pat/components/revoke-pat-dialog.tsx
|
|
15803
15894
|
import { useState as useState36 } from "react";
|
|
15804
|
-
import { create as
|
|
15895
|
+
import { create as create55 } from "@bufbuild/protobuf";
|
|
15805
15896
|
import { useMutation as useMutation41 } from "@connectrpc/connect-query";
|
|
15806
15897
|
import {
|
|
15807
15898
|
FrontierServiceQueries as FrontierServiceQueries58,
|
|
@@ -15818,7 +15909,7 @@ function RevokePATDialog({ handle, onRevoked }) {
|
|
|
15818
15909
|
setIsLoading(true);
|
|
15819
15910
|
try {
|
|
15820
15911
|
yield deletePAT(
|
|
15821
|
-
|
|
15912
|
+
create55(DeleteCurrentUserPATRequestSchema, { id: patId })
|
|
15822
15913
|
);
|
|
15823
15914
|
handle.close();
|
|
15824
15915
|
toastManager44.add({ title: "Token revoked", type: "success" });
|
|
@@ -15869,8 +15960,8 @@ function RevokePATDialog({ handle, onRevoked }) {
|
|
|
15869
15960
|
] }) });
|
|
15870
15961
|
}
|
|
15871
15962
|
|
|
15872
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15873
|
-
var digest51 = "
|
|
15963
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-uD2Myx1GYVMf/sdk/client/views/pat/pat-view.module.css.js
|
|
15964
|
+
var digest51 = "0b2282bd3689385ee249b5dc37f0c9f79ecdf2cd7d0fc70d18a454f21a53bf46";
|
|
15874
15965
|
var css51 = `._tableRoot_fvisd_1 {
|
|
15875
15966
|
border: none;
|
|
15876
15967
|
}
|
|
@@ -16131,23 +16222,24 @@ function PatsView({ onPATClick } = {}) {
|
|
|
16131
16222
|
}
|
|
16132
16223
|
|
|
16133
16224
|
// client/views/pat/pat-details-view.tsx
|
|
16134
|
-
import { useCallback as useCallback29,
|
|
16225
|
+
import { useCallback as useCallback29, useMemo as useMemo40 } from "react";
|
|
16135
16226
|
import {
|
|
16136
16227
|
AlertDialog as AlertDialog24,
|
|
16137
16228
|
Breadcrumb as Breadcrumb4,
|
|
16138
16229
|
Button as Button57,
|
|
16139
16230
|
Dialog as Dialog29,
|
|
16231
|
+
EmptyState as EmptyState13,
|
|
16140
16232
|
Flex as Flex69,
|
|
16141
16233
|
IconButton as IconButton12,
|
|
16142
16234
|
Image as Image13,
|
|
16143
16235
|
Menu as Menu16,
|
|
16144
16236
|
Skeleton as Skeleton34,
|
|
16145
16237
|
Text as Text49,
|
|
16146
|
-
toastManager as toastManager46,
|
|
16147
16238
|
Tooltip as Tooltip13
|
|
16148
16239
|
} from "@raystack/apsara";
|
|
16149
|
-
import { useQuery as
|
|
16150
|
-
import {
|
|
16240
|
+
import { useQuery as useQuery29 } from "@connectrpc/connect-query";
|
|
16241
|
+
import { Code as Code3, ConnectError as ConnectError3 } from "@connectrpc/connect";
|
|
16242
|
+
import { create as create57 } from "@bufbuild/protobuf";
|
|
16151
16243
|
import {
|
|
16152
16244
|
FrontierServiceQueries as FrontierServiceQueries61,
|
|
16153
16245
|
GetCurrentUserPATRequestSchema,
|
|
@@ -16161,8 +16253,8 @@ import relativeTime4 from "dayjs/plugin/relativeTime";
|
|
|
16161
16253
|
import { useLayoutEffect, useRef as useRef3, useState as useState37 } from "react";
|
|
16162
16254
|
import { Chip as Chip2 } from "@raystack/apsara";
|
|
16163
16255
|
|
|
16164
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16165
|
-
var digest52 = "
|
|
16256
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-74V1FnNuc4q4/sdk/client/views/pat/components/pat-project-chips.module.css.js
|
|
16257
|
+
var digest52 = "45e691bfc8a4c5fa293b058904a11e464b83beaa40e0601bc27a04fbd135dd76";
|
|
16166
16258
|
var css52 = `._compact_10iyo_1 {
|
|
16167
16259
|
display: flex;
|
|
16168
16260
|
gap: var(--rs-space-2);
|
|
@@ -16249,7 +16341,7 @@ function PATProjectChips({ projects }) {
|
|
|
16249
16341
|
|
|
16250
16342
|
// client/views/pat/components/regenerate-pat-dialog.tsx
|
|
16251
16343
|
import { useCallback as useCallback28, useState as useState38 } from "react";
|
|
16252
|
-
import { create as
|
|
16344
|
+
import { create as create56 } from "@bufbuild/protobuf";
|
|
16253
16345
|
import { timestampFromDate as timestampFromDate2 } from "@bufbuild/protobuf/wkt";
|
|
16254
16346
|
import { useMutation as useMutation42 } from "@connectrpc/connect-query";
|
|
16255
16347
|
import dayjs10 from "dayjs";
|
|
@@ -16266,8 +16358,8 @@ import {
|
|
|
16266
16358
|
toastManager as toastManager45
|
|
16267
16359
|
} from "@raystack/apsara";
|
|
16268
16360
|
|
|
16269
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16270
|
-
var digest53 = "
|
|
16361
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-ypNK4qX2D9FR/sdk/client/views/pat/components/regenerate-pat-dialog.module.css.js
|
|
16362
|
+
var digest53 = "08d92cfa20c94004c16938858f7b56f46c675bf4d52dfab91775a6123a4960d9";
|
|
16271
16363
|
var css53 = `._body_1s7vv_1 {
|
|
16272
16364
|
padding: var(--rs-space-9) var(--rs-space-7) !important;
|
|
16273
16365
|
gap: var(--rs-space-7) !important;
|
|
@@ -16316,7 +16408,7 @@ function RegeneratePATDialog({
|
|
|
16316
16408
|
dayjs10().add(option.amount, option.unit).toDate()
|
|
16317
16409
|
);
|
|
16318
16410
|
const response = yield regeneratePAT(
|
|
16319
|
-
|
|
16411
|
+
create56(RegenerateCurrentUserPATRequestSchema, {
|
|
16320
16412
|
id: patId,
|
|
16321
16413
|
expiresAt
|
|
16322
16414
|
})
|
|
@@ -16380,8 +16472,8 @@ function RegeneratePATDialog({
|
|
|
16380
16472
|
} });
|
|
16381
16473
|
}
|
|
16382
16474
|
|
|
16383
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16384
|
-
var digest54 = "
|
|
16475
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-hl58EF6akZlW/sdk/client/views/pat/pat-details-view.module.css.js
|
|
16476
|
+
var digest54 = "b60764cafdf266991564312e88e890c5a0da74e35b615196fe37908dcbb846f4";
|
|
16385
16477
|
var css54 = `._section_1dc9z_1 {
|
|
16386
16478
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
16387
16479
|
border-radius: var(--rs-radius-2);
|
|
@@ -16451,35 +16543,36 @@ function PATDetailsView({
|
|
|
16451
16543
|
isLoading: isPatLoading,
|
|
16452
16544
|
error: patError,
|
|
16453
16545
|
refetch: refetchPat
|
|
16454
|
-
} =
|
|
16546
|
+
} = useQuery29(
|
|
16455
16547
|
FrontierServiceQueries61.getCurrentUserPAT,
|
|
16456
|
-
|
|
16548
|
+
create57(GetCurrentUserPATRequestSchema, { id: patId }),
|
|
16457
16549
|
{
|
|
16458
16550
|
enabled: Boolean(patId),
|
|
16551
|
+
// A missing token or an invalid id is a definite answer, so don't retry
|
|
16552
|
+
// those and surface the result immediately. Other failures may be
|
|
16553
|
+
// transient, so allow a couple of retries before showing an error.
|
|
16554
|
+
retry: (failureCount, error) => {
|
|
16555
|
+
const code = error instanceof ConnectError3 ? error.code : void 0;
|
|
16556
|
+
if (code === Code3.NotFound || code === Code3.InvalidArgument) {
|
|
16557
|
+
return false;
|
|
16558
|
+
}
|
|
16559
|
+
return failureCount < 2;
|
|
16560
|
+
},
|
|
16459
16561
|
select: (d) => d == null ? void 0 : d.pat
|
|
16460
16562
|
}
|
|
16461
16563
|
);
|
|
16462
|
-
|
|
16463
|
-
if (patError) {
|
|
16464
|
-
toastManager46.add({
|
|
16465
|
-
title: "Something went wrong",
|
|
16466
|
-
description: patError.message,
|
|
16467
|
-
type: "error"
|
|
16468
|
-
});
|
|
16469
|
-
}
|
|
16470
|
-
}, [patError]);
|
|
16471
|
-
const { data: orgRolesData, isLoading: isOrgRolesLoading } = useQuery28(
|
|
16564
|
+
const { data: orgRolesData, isLoading: isOrgRolesLoading } = useQuery29(
|
|
16472
16565
|
FrontierServiceQueries61.listRolesForPAT,
|
|
16473
|
-
|
|
16566
|
+
create57(ListRolesForPATRequestSchema2, { scopes: [PERMISSIONS.OrganizationNamespace] }),
|
|
16474
16567
|
{ enabled: Boolean(orgId) }
|
|
16475
16568
|
);
|
|
16476
16569
|
const orgRoles = useMemo40(() => {
|
|
16477
16570
|
var _a;
|
|
16478
16571
|
return (_a = orgRolesData == null ? void 0 : orgRolesData.roles) != null ? _a : [];
|
|
16479
16572
|
}, [orgRolesData]);
|
|
16480
|
-
const { data: projectRolesData, isLoading: isProjectRolesLoading } =
|
|
16573
|
+
const { data: projectRolesData, isLoading: isProjectRolesLoading } = useQuery29(
|
|
16481
16574
|
FrontierServiceQueries61.listRolesForPAT,
|
|
16482
|
-
|
|
16575
|
+
create57(ListRolesForPATRequestSchema2, { scopes: [PERMISSIONS.ProjectNamespace] }),
|
|
16483
16576
|
{ enabled: Boolean(orgId) }
|
|
16484
16577
|
);
|
|
16485
16578
|
const projectRoles = useMemo40(
|
|
@@ -16489,9 +16582,9 @@ function PATDetailsView({
|
|
|
16489
16582
|
},
|
|
16490
16583
|
[projectRolesData]
|
|
16491
16584
|
);
|
|
16492
|
-
const { data: projectsData, isLoading: isProjectsLoading } =
|
|
16585
|
+
const { data: projectsData, isLoading: isProjectsLoading } = useQuery29(
|
|
16493
16586
|
FrontierServiceQueries61.listProjectsByCurrentUser,
|
|
16494
|
-
|
|
16587
|
+
create57(ListProjectsByCurrentUserRequestSchema3, {
|
|
16495
16588
|
orgId,
|
|
16496
16589
|
nonInherited: false
|
|
16497
16590
|
}),
|
|
@@ -16578,6 +16671,50 @@ function PATDetailsView({
|
|
|
16578
16671
|
refetchPat();
|
|
16579
16672
|
};
|
|
16580
16673
|
const patTitle = (pat == null ? void 0 : pat.title) || "";
|
|
16674
|
+
const patErrorCode = patError instanceof ConnectError3 ? patError.code : void 0;
|
|
16675
|
+
const isNotFoundError = patErrorCode === Code3.NotFound || patErrorCode === Code3.InvalidArgument;
|
|
16676
|
+
const isForeignPat = Boolean(orgId) && pat != null && pat.orgId !== orgId;
|
|
16677
|
+
const showTokenNotFound = isForeignPat || isNotFoundError;
|
|
16678
|
+
const hasUnexpectedError = patError != null && !isNotFoundError;
|
|
16679
|
+
if (showTokenNotFound || hasUnexpectedError) {
|
|
16680
|
+
return /* @__PURE__ */ jsx83(ViewContainer, { children: showTokenNotFound ? /* @__PURE__ */ jsx83(
|
|
16681
|
+
EmptyState13,
|
|
16682
|
+
{
|
|
16683
|
+
icon: /* @__PURE__ */ jsx83(LockClosedIcon, {}),
|
|
16684
|
+
heading: "Token not found",
|
|
16685
|
+
subHeading: "This personal access token doesn't exist.",
|
|
16686
|
+
primaryAction: /* @__PURE__ */ jsx83(
|
|
16687
|
+
Button57,
|
|
16688
|
+
{
|
|
16689
|
+
variant: "outline",
|
|
16690
|
+
color: "neutral",
|
|
16691
|
+
size: "small",
|
|
16692
|
+
onClick: () => onNavigateToPats == null ? void 0 : onNavigateToPats(),
|
|
16693
|
+
"data-test-id": "frontier-sdk-pat-not-found-back-btn",
|
|
16694
|
+
children: "Back to personal access tokens"
|
|
16695
|
+
}
|
|
16696
|
+
)
|
|
16697
|
+
}
|
|
16698
|
+
) : /* @__PURE__ */ jsx83(
|
|
16699
|
+
EmptyState13,
|
|
16700
|
+
{
|
|
16701
|
+
icon: /* @__PURE__ */ jsx83(ExclamationTriangleIcon, {}),
|
|
16702
|
+
heading: "Something went wrong",
|
|
16703
|
+
subHeading: "We couldn't load this personal access token. Please try again.",
|
|
16704
|
+
primaryAction: /* @__PURE__ */ jsx83(
|
|
16705
|
+
Button57,
|
|
16706
|
+
{
|
|
16707
|
+
variant: "outline",
|
|
16708
|
+
color: "neutral",
|
|
16709
|
+
size: "small",
|
|
16710
|
+
onClick: () => refetchPat(),
|
|
16711
|
+
"data-test-id": "frontier-sdk-pat-error-retry-btn",
|
|
16712
|
+
children: "Try again"
|
|
16713
|
+
}
|
|
16714
|
+
)
|
|
16715
|
+
}
|
|
16716
|
+
) });
|
|
16717
|
+
}
|
|
16581
16718
|
return /* @__PURE__ */ jsxs75(ViewContainer, { children: [
|
|
16582
16719
|
/* @__PURE__ */ jsx83(
|
|
16583
16720
|
ViewHeader,
|
|
@@ -16772,7 +16909,7 @@ import {
|
|
|
16772
16909
|
Flex as Flex70,
|
|
16773
16910
|
Field as Field16,
|
|
16774
16911
|
Input as Input19,
|
|
16775
|
-
toastManager as
|
|
16912
|
+
toastManager as toastManager46
|
|
16776
16913
|
} from "@raystack/apsara";
|
|
16777
16914
|
import { useForm as useForm18 } from "react-hook-form";
|
|
16778
16915
|
import * as yup18 from "yup";
|
|
@@ -16781,10 +16918,10 @@ import {
|
|
|
16781
16918
|
FrontierServiceQueries as FrontierServiceQueries62,
|
|
16782
16919
|
CreateOrganizationRequestSchema
|
|
16783
16920
|
} from "@raystack/proton/frontier";
|
|
16784
|
-
import { create as
|
|
16921
|
+
import { create as create58 } from "@bufbuild/protobuf";
|
|
16785
16922
|
|
|
16786
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16787
|
-
var digest55 = "
|
|
16923
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2155-Av2CUDY992Gv/sdk/client/views/create-organization/create-organization-view.module.css.js
|
|
16924
|
+
var digest55 = "d595ddb5f11c2eb38adc2131a60f7e672a18b29f05054a6bcbba71c087c7966a";
|
|
16788
16925
|
var css55 = `._container_5yztc_1 {
|
|
16789
16926
|
min-width: 220px;
|
|
16790
16927
|
max-width: 480px;
|
|
@@ -16853,7 +16990,7 @@ var CreateOrganizationView = (_a) => {
|
|
|
16853
16990
|
FrontierServiceQueries62.createOrganization,
|
|
16854
16991
|
{
|
|
16855
16992
|
onError: (err) => {
|
|
16856
|
-
|
|
16993
|
+
toastManager46.add({
|
|
16857
16994
|
title: "Failed to create organization",
|
|
16858
16995
|
description: err == null ? void 0 : err.message,
|
|
16859
16996
|
type: "error"
|
|
@@ -16864,7 +17001,7 @@ var CreateOrganizationView = (_a) => {
|
|
|
16864
17001
|
function onSubmit(data) {
|
|
16865
17002
|
return __async(this, null, function* () {
|
|
16866
17003
|
const response = yield createOrganization(
|
|
16867
|
-
|
|
17004
|
+
create58(CreateOrganizationRequestSchema, {
|
|
16868
17005
|
body: {
|
|
16869
17006
|
title: data.title,
|
|
16870
17007
|
name: data.name
|
|
@@ -17036,7 +17173,7 @@ var OptionalProvider = ({
|
|
|
17036
17173
|
|
|
17037
17174
|
// client/hooks/useConnectQueryPolling.tsx
|
|
17038
17175
|
import { useRef as useRef4, useState as useState39 } from "react";
|
|
17039
|
-
import { useQuery as
|
|
17176
|
+
import { useQuery as useQuery30 } from "@connectrpc/connect-query";
|
|
17040
17177
|
function useConnectQueryPolling(params) {
|
|
17041
17178
|
const {
|
|
17042
17179
|
method,
|
|
@@ -17049,7 +17186,7 @@ function useConnectQueryPolling(params) {
|
|
|
17049
17186
|
} = params;
|
|
17050
17187
|
const [isPollingFailed, setIsPollingFailed] = useState39(false);
|
|
17051
17188
|
const pollCountRef = useRef4(0);
|
|
17052
|
-
const result =
|
|
17189
|
+
const result = useQuery30(method, input, {
|
|
17053
17190
|
enabled,
|
|
17054
17191
|
select,
|
|
17055
17192
|
retry: false,
|