@raystack/frontier 0.64.0 → 0.66.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/api-client/dist/index.d.ts +8 -8
- package/dist/index.d.ts +8 -8
- package/package.json +22 -22
- package/react/dist/index.d.ts +10 -21
- package/react/dist/index.js +4310 -4708
- package/react/dist/index.mjs +4416 -4663
|
@@ -2764,7 +2764,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2764
2764
|
* @secure
|
|
2765
2765
|
*/
|
|
2766
2766
|
adminServiceUpdateWebhook: (id: string, body: {
|
|
2767
|
-
body?: V1Beta1WebhookRequestBody
|
|
2767
|
+
body?: V1Beta1WebhookRequestBody;
|
|
2768
2768
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateWebhookResponse, GooglerpcStatus>>;
|
|
2769
2769
|
/**
|
|
2770
2770
|
* @description Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc
|
|
@@ -2982,7 +2982,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2982
2982
|
*/
|
|
2983
2983
|
frontierServiceUpdateFeature: (id: string, body: {
|
|
2984
2984
|
/** Feature to update */
|
|
2985
|
-
body?: V1Beta1FeatureRequestBody
|
|
2985
|
+
body?: V1Beta1FeatureRequestBody;
|
|
2986
2986
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateFeatureResponse, GooglerpcStatus>>;
|
|
2987
2987
|
/**
|
|
2988
2988
|
* @description List all plans.
|
|
@@ -3025,7 +3025,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3025
3025
|
*/
|
|
3026
3026
|
frontierServiceUpdatePlan: (id: string, body: {
|
|
3027
3027
|
/** Plan to update */
|
|
3028
|
-
body?: V1Beta1PlanRequestBody
|
|
3028
|
+
body?: V1Beta1PlanRequestBody;
|
|
3029
3029
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePlanResponse, GooglerpcStatus>>;
|
|
3030
3030
|
/**
|
|
3031
3031
|
* @description List all products of a platform.
|
|
@@ -3068,7 +3068,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3068
3068
|
*/
|
|
3069
3069
|
frontierServiceUpdateProduct: (id: string, body: {
|
|
3070
3070
|
/** Product to update */
|
|
3071
|
-
body?: V1Beta1ProductRequestBody
|
|
3071
|
+
body?: V1Beta1ProductRequestBody;
|
|
3072
3072
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProductResponse, GooglerpcStatus>>;
|
|
3073
3073
|
/**
|
|
3074
3074
|
* @description Accepts a Billing webhook and processes it.
|
|
@@ -3426,9 +3426,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3426
3426
|
*/
|
|
3427
3427
|
frontierServiceCreateBillingAccount: (orgId: string, body: {
|
|
3428
3428
|
/** Billing account to create. */
|
|
3429
|
-
body?: V1Beta1BillingAccountRequestBody
|
|
3429
|
+
body?: V1Beta1BillingAccountRequestBody;
|
|
3430
3430
|
/** Offline billing account don't get registered with billing provider */
|
|
3431
|
-
offline?: boolean
|
|
3431
|
+
offline?: boolean;
|
|
3432
3432
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateBillingAccountResponse, GooglerpcStatus>>;
|
|
3433
3433
|
/**
|
|
3434
3434
|
* @description Check if a billing account is entitled to a feature.
|
|
@@ -3664,7 +3664,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3664
3664
|
*/
|
|
3665
3665
|
frontierServiceUpdateBillingAccount: (orgId: string, id: string, body: {
|
|
3666
3666
|
/** Billing account to update. */
|
|
3667
|
-
body?: V1Beta1BillingAccountRequestBody
|
|
3667
|
+
body?: V1Beta1BillingAccountRequestBody;
|
|
3668
3668
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateBillingAccountResponse, GooglerpcStatus>>;
|
|
3669
3669
|
/**
|
|
3670
3670
|
* @description Get the balance of a billing account by ID.
|
|
@@ -4206,7 +4206,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
4206
4206
|
* @secure
|
|
4207
4207
|
*/
|
|
4208
4208
|
frontierServiceCreateServiceUser: (orgId: string, body: {
|
|
4209
|
-
body?: V1Beta1ServiceUserRequestBody
|
|
4209
|
+
body?: V1Beta1ServiceUserRequestBody;
|
|
4210
4210
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserResponse, GooglerpcStatus>>;
|
|
4211
4211
|
/**
|
|
4212
4212
|
* @description Get service user details by its id.
|
package/dist/index.d.ts
CHANGED
|
@@ -2764,7 +2764,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2764
2764
|
* @secure
|
|
2765
2765
|
*/
|
|
2766
2766
|
adminServiceUpdateWebhook: (id: string, body: {
|
|
2767
|
-
body?: V1Beta1WebhookRequestBody
|
|
2767
|
+
body?: V1Beta1WebhookRequestBody;
|
|
2768
2768
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateWebhookResponse, GooglerpcStatus>>;
|
|
2769
2769
|
/**
|
|
2770
2770
|
* @description Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc
|
|
@@ -2982,7 +2982,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2982
2982
|
*/
|
|
2983
2983
|
frontierServiceUpdateFeature: (id: string, body: {
|
|
2984
2984
|
/** Feature to update */
|
|
2985
|
-
body?: V1Beta1FeatureRequestBody
|
|
2985
|
+
body?: V1Beta1FeatureRequestBody;
|
|
2986
2986
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateFeatureResponse, GooglerpcStatus>>;
|
|
2987
2987
|
/**
|
|
2988
2988
|
* @description List all plans.
|
|
@@ -3025,7 +3025,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3025
3025
|
*/
|
|
3026
3026
|
frontierServiceUpdatePlan: (id: string, body: {
|
|
3027
3027
|
/** Plan to update */
|
|
3028
|
-
body?: V1Beta1PlanRequestBody
|
|
3028
|
+
body?: V1Beta1PlanRequestBody;
|
|
3029
3029
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePlanResponse, GooglerpcStatus>>;
|
|
3030
3030
|
/**
|
|
3031
3031
|
* @description List all products of a platform.
|
|
@@ -3068,7 +3068,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3068
3068
|
*/
|
|
3069
3069
|
frontierServiceUpdateProduct: (id: string, body: {
|
|
3070
3070
|
/** Product to update */
|
|
3071
|
-
body?: V1Beta1ProductRequestBody
|
|
3071
|
+
body?: V1Beta1ProductRequestBody;
|
|
3072
3072
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProductResponse, GooglerpcStatus>>;
|
|
3073
3073
|
/**
|
|
3074
3074
|
* @description Accepts a Billing webhook and processes it.
|
|
@@ -3426,9 +3426,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3426
3426
|
*/
|
|
3427
3427
|
frontierServiceCreateBillingAccount: (orgId: string, body: {
|
|
3428
3428
|
/** Billing account to create. */
|
|
3429
|
-
body?: V1Beta1BillingAccountRequestBody
|
|
3429
|
+
body?: V1Beta1BillingAccountRequestBody;
|
|
3430
3430
|
/** Offline billing account don't get registered with billing provider */
|
|
3431
|
-
offline?: boolean
|
|
3431
|
+
offline?: boolean;
|
|
3432
3432
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateBillingAccountResponse, GooglerpcStatus>>;
|
|
3433
3433
|
/**
|
|
3434
3434
|
* @description Check if a billing account is entitled to a feature.
|
|
@@ -3664,7 +3664,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3664
3664
|
*/
|
|
3665
3665
|
frontierServiceUpdateBillingAccount: (orgId: string, id: string, body: {
|
|
3666
3666
|
/** Billing account to update. */
|
|
3667
|
-
body?: V1Beta1BillingAccountRequestBody
|
|
3667
|
+
body?: V1Beta1BillingAccountRequestBody;
|
|
3668
3668
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateBillingAccountResponse, GooglerpcStatus>>;
|
|
3669
3669
|
/**
|
|
3670
3670
|
* @description Get the balance of a billing account by ID.
|
|
@@ -4206,7 +4206,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
4206
4206
|
* @secure
|
|
4207
4207
|
*/
|
|
4208
4208
|
frontierServiceCreateServiceUser: (orgId: string, body: {
|
|
4209
|
-
body?: V1Beta1ServiceUserRequestBody
|
|
4209
|
+
body?: V1Beta1ServiceUserRequestBody;
|
|
4210
4210
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserResponse, GooglerpcStatus>>;
|
|
4211
4211
|
/**
|
|
4212
4212
|
* @description Get service user details by its id.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raystack/frontier",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.0",
|
|
4
4
|
"description": "A js library for frontier",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -60,46 +60,46 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@jest/globals": "^29.7.0",
|
|
63
|
-
"@radix-ui/react-icons": "^1.3.
|
|
64
|
-
"@raystack/apsara": "
|
|
63
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
64
|
+
"@raystack/apsara": "0.48.3",
|
|
65
65
|
"@raystack/eslint-config": "workspace:^",
|
|
66
66
|
"@raystack/frontier-tsconfig": "workspace:^",
|
|
67
67
|
"@size-limit/preset-small-lib": "^8.2.6",
|
|
68
|
-
"@types/jest": "^29.5.
|
|
69
|
-
"@types/lodash": "^4.
|
|
70
|
-
"@types/node": "^20.
|
|
71
|
-
"@types/react": "^18.
|
|
72
|
-
"@types/react-dom": "^18.
|
|
68
|
+
"@types/jest": "^29.5.14",
|
|
69
|
+
"@types/lodash": "^4.17.17",
|
|
70
|
+
"@types/node": "^20.19.0",
|
|
71
|
+
"@types/react": "^18.3.23",
|
|
72
|
+
"@types/react-dom": "^18.3.7",
|
|
73
73
|
"@types/uuid": "^10.0.0",
|
|
74
|
-
"@types/validator": "^13.
|
|
74
|
+
"@types/validator": "^13.15.1",
|
|
75
75
|
"esbuild-css-modules-plugin": "^2.7.1",
|
|
76
76
|
"esbuild-plugin-external-global": "^1.0.1",
|
|
77
77
|
"eslint": "^7.32.0",
|
|
78
78
|
"jest": "^29.7.0",
|
|
79
79
|
"np": "^7.7.0",
|
|
80
80
|
"prettier": "^2.8.8",
|
|
81
|
-
"release-it": "^16.
|
|
82
|
-
"semver": "^7.
|
|
81
|
+
"release-it": "^16.3.0",
|
|
82
|
+
"semver": "^7.7.2",
|
|
83
83
|
"size-limit": "^8.2.6",
|
|
84
|
-
"swagger-typescript-api": "^13.
|
|
85
|
-
"ts-jest": "^29.
|
|
84
|
+
"swagger-typescript-api": "^13.2.1",
|
|
85
|
+
"ts-jest": "^29.3.4",
|
|
86
86
|
"tsup": "^6.7.0",
|
|
87
|
-
"typescript": "^5.
|
|
87
|
+
"typescript": "^5.8.3"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@hookform/resolvers": "^3.
|
|
90
|
+
"@hookform/resolvers": "^3.10.0",
|
|
91
91
|
"@tanstack/react-router": "1.58.17",
|
|
92
|
-
"axios": "^1.
|
|
93
|
-
"class-variance-authority": "^0.7.
|
|
94
|
-
"dayjs": "^1.11.
|
|
92
|
+
"axios": "^1.9.0",
|
|
93
|
+
"class-variance-authority": "^0.7.1",
|
|
94
|
+
"dayjs": "^1.11.13",
|
|
95
95
|
"lodash": "^4.17.21",
|
|
96
|
-
"query-string": "^8.
|
|
97
|
-
"react-hook-form": "^7.
|
|
96
|
+
"query-string": "^8.2.0",
|
|
97
|
+
"react-hook-form": "^7.57.0",
|
|
98
98
|
"react-image-crop": "^10.1.8",
|
|
99
99
|
"slugify": "^1.6.6",
|
|
100
100
|
"uuid": "^10.0.0",
|
|
101
|
-
"validator": "^13.
|
|
102
|
-
"yup": "^1.
|
|
101
|
+
"validator": "^13.15.15",
|
|
102
|
+
"yup": "^1.6.1"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"@raystack/apsara": ">=0.30.0",
|
package/react/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React, { ComponentPropsWithRef, ReactNode as ReactNode$1, Dispatch, SetStateAction, PropsWithChildren } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as _tanstack_react_router from '@tanstack/react-router';
|
|
4
4
|
import { ReactNode, RouteComponent } from '@tanstack/react-router';
|
|
5
5
|
import * as yup from 'yup';
|
|
6
6
|
import { ThemeProviderProps } from '@raystack/apsara/v1';
|
|
7
7
|
|
|
8
|
-
interface AmountProps {
|
|
9
|
-
value: number;
|
|
10
|
-
currency?: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
currencyClassName?: string;
|
|
13
|
-
decimalClassName?: string;
|
|
14
|
-
valueClassName?: string;
|
|
15
|
-
hideDecimals?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare function Amount({ currency, value, className, currencyClassName, decimalClassName, valueClassName, hideDecimals }: AmountProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
8
|
interface AvatarUploadProps {
|
|
20
9
|
subText?: string;
|
|
21
10
|
value?: string;
|
|
@@ -2774,7 +2763,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2774
2763
|
* @secure
|
|
2775
2764
|
*/
|
|
2776
2765
|
adminServiceUpdateWebhook: (id: string, body: {
|
|
2777
|
-
body?: V1Beta1WebhookRequestBody
|
|
2766
|
+
body?: V1Beta1WebhookRequestBody;
|
|
2778
2767
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateWebhookResponse, GooglerpcStatus>>;
|
|
2779
2768
|
/**
|
|
2780
2769
|
* @description Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc
|
|
@@ -2992,7 +2981,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2992
2981
|
*/
|
|
2993
2982
|
frontierServiceUpdateFeature: (id: string, body: {
|
|
2994
2983
|
/** Feature to update */
|
|
2995
|
-
body?: V1Beta1FeatureRequestBody
|
|
2984
|
+
body?: V1Beta1FeatureRequestBody;
|
|
2996
2985
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateFeatureResponse, GooglerpcStatus>>;
|
|
2997
2986
|
/**
|
|
2998
2987
|
* @description List all plans.
|
|
@@ -3035,7 +3024,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3035
3024
|
*/
|
|
3036
3025
|
frontierServiceUpdatePlan: (id: string, body: {
|
|
3037
3026
|
/** Plan to update */
|
|
3038
|
-
body?: V1Beta1PlanRequestBody
|
|
3027
|
+
body?: V1Beta1PlanRequestBody;
|
|
3039
3028
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdatePlanResponse, GooglerpcStatus>>;
|
|
3040
3029
|
/**
|
|
3041
3030
|
* @description List all products of a platform.
|
|
@@ -3078,7 +3067,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3078
3067
|
*/
|
|
3079
3068
|
frontierServiceUpdateProduct: (id: string, body: {
|
|
3080
3069
|
/** Product to update */
|
|
3081
|
-
body?: V1Beta1ProductRequestBody
|
|
3070
|
+
body?: V1Beta1ProductRequestBody;
|
|
3082
3071
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateProductResponse, GooglerpcStatus>>;
|
|
3083
3072
|
/**
|
|
3084
3073
|
* @description Accepts a Billing webhook and processes it.
|
|
@@ -3436,9 +3425,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3436
3425
|
*/
|
|
3437
3426
|
frontierServiceCreateBillingAccount: (orgId: string, body: {
|
|
3438
3427
|
/** Billing account to create. */
|
|
3439
|
-
body?: V1Beta1BillingAccountRequestBody
|
|
3428
|
+
body?: V1Beta1BillingAccountRequestBody;
|
|
3440
3429
|
/** Offline billing account don't get registered with billing provider */
|
|
3441
|
-
offline?: boolean
|
|
3430
|
+
offline?: boolean;
|
|
3442
3431
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateBillingAccountResponse, GooglerpcStatus>>;
|
|
3443
3432
|
/**
|
|
3444
3433
|
* @description Check if a billing account is entitled to a feature.
|
|
@@ -3674,7 +3663,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3674
3663
|
*/
|
|
3675
3664
|
frontierServiceUpdateBillingAccount: (orgId: string, id: string, body: {
|
|
3676
3665
|
/** Billing account to update. */
|
|
3677
|
-
body?: V1Beta1BillingAccountRequestBody
|
|
3666
|
+
body?: V1Beta1BillingAccountRequestBody;
|
|
3678
3667
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1UpdateBillingAccountResponse, GooglerpcStatus>>;
|
|
3679
3668
|
/**
|
|
3680
3669
|
* @description Get the balance of a billing account by ID.
|
|
@@ -4216,7 +4205,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
4216
4205
|
* @secure
|
|
4217
4206
|
*/
|
|
4218
4207
|
frontierServiceCreateServiceUser: (orgId: string, body: {
|
|
4219
|
-
body?: V1Beta1ServiceUserRequestBody
|
|
4208
|
+
body?: V1Beta1ServiceUserRequestBody;
|
|
4220
4209
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateServiceUserResponse, GooglerpcStatus>>;
|
|
4221
4210
|
/**
|
|
4222
4211
|
* @description Get service user details by its id.
|
|
@@ -5314,4 +5303,4 @@ declare const PREFERENCE_OPTIONS: {
|
|
|
5314
5303
|
readonly NEWSLETTER: "newsletter";
|
|
5315
5304
|
};
|
|
5316
5305
|
|
|
5317
|
-
export {
|
|
5306
|
+
export { AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, Layout, MagicLink, MagicLinkVerify, OrganizationProfile, PREFERENCE_OPTIONS, SignIn, SignUp, Subscribe, Updates, Window, useBillingPermission, useFrontier, usePreferences, useTokens };
|