@iblai/web-utils 1.2.5 → 1.2.7
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/data-layer/src/features/monetization/constants.d.ts +76 -0
- package/dist/data-layer/src/features/monetization/custom-api-slice.d.ts +5017 -0
- package/dist/data-layer/src/features/monetization/types.d.ts +224 -0
- package/dist/data-layer/src/index.d.ts +2 -0
- package/dist/data-layer/src/utils/index.d.ts +5 -1
- package/dist/index.d.ts +24 -7
- package/dist/index.esm.js +412 -19
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +416 -18
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/web-utils/src/features/index.d.ts +1 -0
- package/dist/web-utils/src/features/monetization/__tests__/slice.test.d.ts +1 -0
- package/dist/web-utils/src/features/monetization/slice.d.ts +16 -0
- package/dist/web-utils/src/types/subscription.d.ts +2 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Slice } from "@reduxjs/toolkit";
|
|
2
|
+
import type { AccessCheckResponse } from "@iblai/data-layer";
|
|
3
|
+
interface showMonetizationCheckoutModalPayload {
|
|
4
|
+
showModal?: boolean;
|
|
5
|
+
paywallClosable: boolean;
|
|
6
|
+
onClosePayload: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface MonetizationState {
|
|
9
|
+
displayMonetizationCheckoutModal: boolean;
|
|
10
|
+
accessCheckResponse: (AccessCheckResponse & showMonetizationCheckoutModalPayload) | null;
|
|
11
|
+
paywallClosable: boolean;
|
|
12
|
+
onClosePayload: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare const monetizationSlice: Slice;
|
|
15
|
+
export declare const setDisplayMonetizationCheckoutModal: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<`${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPayload<any, `${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, any> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, any>, setAccessCheckResponse: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<`${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPayload<any, `${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, any> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, any>, showMonetizationCheckoutModal: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<`${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPayload<any, `${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, any> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, any>, setAdvancedDisplayMonetizationCheckoutModal: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<`${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPayload<any, `${string}/${string}`> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, never, any> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, never> | import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<any[], any, `${string}/${string}`, any, any>;
|
|
16
|
+
export default monetizationSlice;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StripeCustomerPortalRequest } from "@iblai/iblai-api";
|
|
2
|
+
import { AccessCheckResponse } from "@iblai/data-layer";
|
|
2
3
|
export interface UseExternalPricingProps {
|
|
3
4
|
referenceId: string;
|
|
4
5
|
customerEmail: string;
|
|
@@ -21,7 +22,7 @@ export interface CreateStripeCustomerPortalRequest {
|
|
|
21
22
|
* Note: Only `error` is required. Other fields may not be present
|
|
22
23
|
* in all error scenarios (e.g., generic API 402 vs WebSocket 402).
|
|
23
24
|
*/
|
|
24
|
-
export interface Error402MessageData {
|
|
25
|
+
export interface Error402MessageData extends Partial<AccessCheckResponse> {
|
|
25
26
|
error: string;
|
|
26
27
|
message?: string;
|
|
27
28
|
details?: {
|