@raystack/frontier 0.8.32 → 0.8.33
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/dist/index.d.ts +8 -5
- package/dist/index.js +7 -4
- package/dist/index.mjs +7 -4
- package/package.json +1 -1
- package/react/dist/index.d.ts +9 -5
- package/react/dist/index.js +169 -165
- package/react/dist/index.mjs +167 -163
package/dist/index.d.ts
CHANGED
|
@@ -314,8 +314,8 @@ interface V1Beta1CheckoutSetupBody {
|
|
|
314
314
|
}
|
|
315
315
|
interface V1Beta1CheckoutSubscriptionBody {
|
|
316
316
|
plan?: string;
|
|
317
|
-
|
|
318
|
-
|
|
317
|
+
skip_trial?: boolean;
|
|
318
|
+
cancel_after_trial?: boolean;
|
|
319
319
|
}
|
|
320
320
|
interface V1Beta1CreateBillingAccountResponse {
|
|
321
321
|
/** Created billing account */
|
|
@@ -498,8 +498,11 @@ type V1Beta1EnableProjectResponse = object;
|
|
|
498
498
|
type V1Beta1EnableUserResponse = object;
|
|
499
499
|
interface V1Beta1Feature {
|
|
500
500
|
id?: string;
|
|
501
|
+
/** machine friendly name */
|
|
501
502
|
name?: string;
|
|
502
503
|
product_ids?: string[];
|
|
504
|
+
/** human friendly name */
|
|
505
|
+
title?: string;
|
|
503
506
|
metadata?: object;
|
|
504
507
|
/** @format date-time */
|
|
505
508
|
created_at?: string;
|
|
@@ -2476,7 +2479,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2476
2479
|
* @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}/cancel
|
|
2477
2480
|
* @secure
|
|
2478
2481
|
*/
|
|
2479
|
-
frontierServiceCancelSubscription: (orgId: string, billingId: string, id: string,
|
|
2482
|
+
frontierServiceCancelSubscription: (orgId: string, billingId: string, id: string, body: {
|
|
2480
2483
|
immediate?: boolean;
|
|
2481
2484
|
}, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
2482
2485
|
/**
|
|
@@ -2800,7 +2803,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2800
2803
|
* @request POST:/v1beta1/organizations/{org_id}/invitations/{id}/accept
|
|
2801
2804
|
* @secure
|
|
2802
2805
|
*/
|
|
2803
|
-
frontierServiceAcceptOrganizationInvitation: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
2806
|
+
frontierServiceAcceptOrganizationInvitation: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
2804
2807
|
/**
|
|
2805
2808
|
* @description Allows the current logged in user to join the Org if one is not a part of it. The user will only be able to join when the user email's domain matches the organization's whitelisted domains.
|
|
2806
2809
|
*
|
|
@@ -2810,7 +2813,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2810
2813
|
* @request POST:/v1beta1/organizations/{org_id}/join
|
|
2811
2814
|
* @secure
|
|
2812
2815
|
*/
|
|
2813
|
-
frontierServiceJoinOrganization: (orgId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
2816
|
+
frontierServiceJoinOrganization: (orgId: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
2814
2817
|
/**
|
|
2815
2818
|
* @description Returns a list of custom roles created under an organization with their associated permissions
|
|
2816
2819
|
*
|
package/dist/index.js
CHANGED
|
@@ -1311,11 +1311,12 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1311
1311
|
* @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}/cancel
|
|
1312
1312
|
* @secure
|
|
1313
1313
|
*/
|
|
1314
|
-
this.frontierServiceCancelSubscription = (orgId, billingId, id,
|
|
1314
|
+
this.frontierServiceCancelSubscription = (orgId, billingId, id, body, params = {}) => this.request(__spreadValues({
|
|
1315
1315
|
path: `/v1beta1/organizations/${orgId}/billing/${billingId}/subscriptions/${id}/cancel`,
|
|
1316
1316
|
method: "POST",
|
|
1317
|
-
|
|
1317
|
+
body,
|
|
1318
1318
|
secure: true,
|
|
1319
|
+
type: "application/json" /* Json */,
|
|
1319
1320
|
format: "json"
|
|
1320
1321
|
}, params));
|
|
1321
1322
|
/**
|
|
@@ -1741,9 +1742,10 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1741
1742
|
* @request POST:/v1beta1/organizations/{org_id}/invitations/{id}/accept
|
|
1742
1743
|
* @secure
|
|
1743
1744
|
*/
|
|
1744
|
-
this.frontierServiceAcceptOrganizationInvitation = (orgId, id, params = {}) => this.request(__spreadValues({
|
|
1745
|
+
this.frontierServiceAcceptOrganizationInvitation = (orgId, id, body, params = {}) => this.request(__spreadValues({
|
|
1745
1746
|
path: `/v1beta1/organizations/${orgId}/invitations/${id}/accept`,
|
|
1746
1747
|
method: "POST",
|
|
1748
|
+
body,
|
|
1747
1749
|
secure: true,
|
|
1748
1750
|
format: "json"
|
|
1749
1751
|
}, params));
|
|
@@ -1756,9 +1758,10 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1756
1758
|
* @request POST:/v1beta1/organizations/{org_id}/join
|
|
1757
1759
|
* @secure
|
|
1758
1760
|
*/
|
|
1759
|
-
this.frontierServiceJoinOrganization = (orgId, params = {}) => this.request(__spreadValues({
|
|
1761
|
+
this.frontierServiceJoinOrganization = (orgId, body, params = {}) => this.request(__spreadValues({
|
|
1760
1762
|
path: `/v1beta1/organizations/${orgId}/join`,
|
|
1761
1763
|
method: "POST",
|
|
1764
|
+
body,
|
|
1762
1765
|
secure: true,
|
|
1763
1766
|
format: "json"
|
|
1764
1767
|
}, params));
|
package/dist/index.mjs
CHANGED
|
@@ -1286,11 +1286,12 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1286
1286
|
* @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}/cancel
|
|
1287
1287
|
* @secure
|
|
1288
1288
|
*/
|
|
1289
|
-
this.frontierServiceCancelSubscription = (orgId, billingId, id,
|
|
1289
|
+
this.frontierServiceCancelSubscription = (orgId, billingId, id, body, params = {}) => this.request(__spreadValues({
|
|
1290
1290
|
path: `/v1beta1/organizations/${orgId}/billing/${billingId}/subscriptions/${id}/cancel`,
|
|
1291
1291
|
method: "POST",
|
|
1292
|
-
|
|
1292
|
+
body,
|
|
1293
1293
|
secure: true,
|
|
1294
|
+
type: "application/json" /* Json */,
|
|
1294
1295
|
format: "json"
|
|
1295
1296
|
}, params));
|
|
1296
1297
|
/**
|
|
@@ -1716,9 +1717,10 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1716
1717
|
* @request POST:/v1beta1/organizations/{org_id}/invitations/{id}/accept
|
|
1717
1718
|
* @secure
|
|
1718
1719
|
*/
|
|
1719
|
-
this.frontierServiceAcceptOrganizationInvitation = (orgId, id, params = {}) => this.request(__spreadValues({
|
|
1720
|
+
this.frontierServiceAcceptOrganizationInvitation = (orgId, id, body, params = {}) => this.request(__spreadValues({
|
|
1720
1721
|
path: `/v1beta1/organizations/${orgId}/invitations/${id}/accept`,
|
|
1721
1722
|
method: "POST",
|
|
1723
|
+
body,
|
|
1722
1724
|
secure: true,
|
|
1723
1725
|
format: "json"
|
|
1724
1726
|
}, params));
|
|
@@ -1731,9 +1733,10 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1731
1733
|
* @request POST:/v1beta1/organizations/{org_id}/join
|
|
1732
1734
|
* @secure
|
|
1733
1735
|
*/
|
|
1734
|
-
this.frontierServiceJoinOrganization = (orgId, params = {}) => this.request(__spreadValues({
|
|
1736
|
+
this.frontierServiceJoinOrganization = (orgId, body, params = {}) => this.request(__spreadValues({
|
|
1735
1737
|
path: `/v1beta1/organizations/${orgId}/join`,
|
|
1736
1738
|
method: "POST",
|
|
1739
|
+
body,
|
|
1737
1740
|
secure: true,
|
|
1738
1741
|
format: "json"
|
|
1739
1742
|
}, params));
|
package/package.json
CHANGED
package/react/dist/index.d.ts
CHANGED
|
@@ -541,8 +541,8 @@ interface V1Beta1CheckoutSetupBody {
|
|
|
541
541
|
}
|
|
542
542
|
interface V1Beta1CheckoutSubscriptionBody {
|
|
543
543
|
plan?: string;
|
|
544
|
-
|
|
545
|
-
|
|
544
|
+
skip_trial?: boolean;
|
|
545
|
+
cancel_after_trial?: boolean;
|
|
546
546
|
}
|
|
547
547
|
interface V1Beta1CreateBillingAccountResponse {
|
|
548
548
|
/** Created billing account */
|
|
@@ -698,8 +698,11 @@ interface V1Beta1Domain {
|
|
|
698
698
|
}
|
|
699
699
|
interface V1Beta1Feature {
|
|
700
700
|
id?: string;
|
|
701
|
+
/** machine friendly name */
|
|
701
702
|
name?: string;
|
|
702
703
|
product_ids?: string[];
|
|
704
|
+
/** human friendly name */
|
|
705
|
+
title?: string;
|
|
703
706
|
metadata?: object;
|
|
704
707
|
/** @format date-time */
|
|
705
708
|
created_at?: string;
|
|
@@ -2673,7 +2676,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2673
2676
|
* @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}/cancel
|
|
2674
2677
|
* @secure
|
|
2675
2678
|
*/
|
|
2676
|
-
frontierServiceCancelSubscription: (orgId: string, billingId: string, id: string,
|
|
2679
|
+
frontierServiceCancelSubscription: (orgId: string, billingId: string, id: string, body: {
|
|
2677
2680
|
immediate?: boolean;
|
|
2678
2681
|
}, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
2679
2682
|
/**
|
|
@@ -2997,7 +3000,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2997
3000
|
* @request POST:/v1beta1/organizations/{org_id}/invitations/{id}/accept
|
|
2998
3001
|
* @secure
|
|
2999
3002
|
*/
|
|
3000
|
-
frontierServiceAcceptOrganizationInvitation: (orgId: string, id: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3003
|
+
frontierServiceAcceptOrganizationInvitation: (orgId: string, id: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3001
3004
|
/**
|
|
3002
3005
|
* @description Allows the current logged in user to join the Org if one is not a part of it. The user will only be able to join when the user email's domain matches the organization's whitelisted domains.
|
|
3003
3006
|
*
|
|
@@ -3007,7 +3010,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
3007
3010
|
* @request POST:/v1beta1/organizations/{org_id}/join
|
|
3008
3011
|
* @secure
|
|
3009
3012
|
*/
|
|
3010
|
-
frontierServiceJoinOrganization: (orgId: string, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3013
|
+
frontierServiceJoinOrganization: (orgId: string, body: object, params?: RequestParams) => Promise<HttpResponse<object, RpcStatus>>;
|
|
3011
3014
|
/**
|
|
3012
3015
|
* @description Returns a list of custom roles created under an organization with their associated permissions
|
|
3013
3016
|
*
|
|
@@ -3871,6 +3874,7 @@ interface FrontierContextProviderProps {
|
|
|
3871
3874
|
isActivePlanLoading: boolean;
|
|
3872
3875
|
setIsActivePlanLoading: Dispatch<SetStateAction<boolean>>;
|
|
3873
3876
|
fetchActiveSubsciption: () => Promise<V1Beta1Subscription | undefined>;
|
|
3877
|
+
paymentMethod: V1Beta1PaymentMethod | undefined;
|
|
3874
3878
|
}
|
|
3875
3879
|
declare function useFrontier(): FrontierContextProviderProps;
|
|
3876
3880
|
|