@raystack/frontier 0.97.0 → 0.98.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.
@@ -10,6 +10,7 @@ type ErrorHandlerMap = {
10
10
  AlreadyExists?: ErrorHandler;
11
11
  InvalidArgument?: ErrorHandler;
12
12
  PermissionDenied?: ErrorHandler;
13
+ FailedPrecondition?: ErrorHandler;
13
14
  NotFound?: ErrorHandler;
14
15
  Default?: ErrorHandler;
15
16
  };
@@ -59,6 +59,9 @@ function handleConnectError(error, handlers) {
59
59
  case import_connect.Code.NotFound:
60
60
  (handlers == null ? void 0 : handlers.NotFound) ? handlers.NotFound(connectError) : defaultHandler(connectError);
61
61
  break;
62
+ case import_connect.Code.FailedPrecondition:
63
+ (handlers == null ? void 0 : handlers.FailedPrecondition) ? handlers.FailedPrecondition(connectError) : defaultHandler(connectError);
64
+ break;
62
65
  default:
63
66
  defaultHandler(connectError);
64
67
  }
@@ -32,6 +32,9 @@ function handleConnectError(error, handlers) {
32
32
  case Code.NotFound:
33
33
  (handlers == null ? void 0 : handlers.NotFound) ? handlers.NotFound(connectError) : defaultHandler(connectError);
34
34
  break;
35
+ case Code.FailedPrecondition:
36
+ (handlers == null ? void 0 : handlers.FailedPrecondition) ? handlers.FailedPrecondition(connectError) : defaultHandler(connectError);
37
+ break;
35
38
  default:
36
39
  defaultHandler(connectError);
37
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.97.0",
3
+ "version": "0.98.0",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -102,7 +102,7 @@
102
102
  "@connectrpc/connect-web": "2.1.1",
103
103
  "@hookform/resolvers": "^3.10.0",
104
104
  "@raystack/apsara-v1": "npm:@raystack/apsara@1.0.0-rc.2",
105
- "@raystack/proton": "0.1.0-ac2df1932fcddcd7f7ff1af0ded07b14d73b781b",
105
+ "@raystack/proton": "0.1.0-432d98ce56451cd9461a755d8db4842ec4354669",
106
106
  "@tanstack/react-query": "^5.90.2",
107
107
  "@tanstack/react-router": "^1.168.3",
108
108
  "axios": "^1.9.0",
@@ -491,6 +491,11 @@ interface ProjectDetailsViewProps {
491
491
  }
492
492
  declare function ProjectDetailsView({ projectId, projectsLabel, onNavigateToProjects, onDeleteSuccess }: ProjectDetailsViewProps): react_jsx_runtime.JSX.Element;
493
493
 
494
+ interface BillingViewProps {
495
+ onNavigateToPlans?: () => void;
496
+ }
497
+ declare function BillingView({ onNavigateToPlans }: BillingViewProps): react_jsx_runtime.JSX.Element;
498
+
494
499
  declare function TokensView(): react_jsx_runtime.JSX.Element;
495
500
 
496
501
  interface TeamsViewProps {
@@ -521,6 +526,8 @@ interface ServiceAccountDetailsViewProps {
521
526
  }
522
527
  declare function ServiceAccountDetailsView({ serviceAccountId, serviceAccountsLabel, onNavigateToServiceAccounts, onDeleteSuccess }: ServiceAccountDetailsViewProps): react_jsx_runtime.JSX.Element;
523
528
 
529
+ declare function PlansView(): react_jsx_runtime.JSX.Element;
530
+
524
531
  declare const PREFERENCE_OPTIONS: {
525
532
  readonly NEWSLETTER: "newsletter";
526
533
  };
@@ -539,4 +546,4 @@ declare function timestampToDayjs(timestamp?: Timestamp): Dayjs | null;
539
546
  declare function isNullTimestamp(timestamp?: Timestamp): boolean;
540
547
  type TimeStamp = Timestamp;
541
548
 
542
- export { AvatarUpload, Container, CreateOrganization, CustomizationProvider, FrontierClientBillingOptions, FrontierClientCustomizationOptions, FrontierClientOptions, FrontierProvider, GeneralView, Header, ImageUpload, Layout, MagicLink, MagicLinkVerify, MembersView, OrganizationProfile, PREFERENCE_OPTIONS, PageHeader, PreferenceRow, PreferencesView, ProfileView, ProjectDetailsView, ProjectsView, SecurityView, ServiceAccountDetailsView, ServiceAccountsView, SessionsView, SignIn, SignUp, Subscribe, TeamDetailsView, TeamsView, TimeStamp, TokensView, Updates, ViewContainer, ViewHeader, Window, isNullTimestamp, queryClient, timestampToDate, timestampToDayjs, useBillingPermission, useConnectQueryPolling, useFrontier, usePreferences, useTerminology, useTokens };
549
+ export { AvatarUpload, BillingView, Container, CreateOrganization, CustomizationProvider, FrontierClientBillingOptions, FrontierClientCustomizationOptions, FrontierClientOptions, FrontierProvider, GeneralView, Header, ImageUpload, Layout, MagicLink, MagicLinkVerify, MembersView, OrganizationProfile, PREFERENCE_OPTIONS, PageHeader, PlansView, PreferenceRow, PreferencesView, ProfileView, ProjectDetailsView, ProjectsView, SecurityView, ServiceAccountDetailsView, ServiceAccountsView, SessionsView, SignIn, SignUp, Subscribe, TeamDetailsView, TeamsView, TimeStamp, TokensView, Updates, ViewContainer, ViewHeader, Window, isNullTimestamp, queryClient, timestampToDate, timestampToDayjs, useBillingPermission, useConnectQueryPolling, useFrontier, usePreferences, useTerminology, useTokens };