@frontegg/redux-store 5.71.0 → 5.72.2

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var auth_index = require('../index-85c05bdb.js');
5
+ var auth_index = require('../index-b3622c8e.js');
6
6
  var toolkit = require('@reduxjs/toolkit');
7
7
  var createSagaMiddleware = require('redux-saga');
8
8
  var effects = require('redux-saga/effects');
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
3
  "libName": "FronteggReduxStore",
4
- "version": "5.71.0",
4
+ "version": "5.72.2",
5
5
  "author": "Frontegg LTD",
6
6
  "main": "./node/index.js",
7
7
  "module": "./index.js",
8
8
  "types": "./index.d.ts",
9
9
  "dependencies": {
10
- "@frontegg/rest-api": "^3.0.8",
10
+ "@frontegg/rest-api": "^3.0.10",
11
11
  "@reduxjs/toolkit": "^1.5.0",
12
12
  "redux-saga": "^1.1.0",
13
13
  "tslib": "^2.3.1",
@@ -0,0 +1,10 @@
1
+ import { VendorPublicConfigurationState } from './interfaces';
2
+ export declare const vendorPublicConfigInitialState: VendorPublicConfigurationState;
3
+ declare const reducer: import("redux").Reducer<VendorPublicConfigurationState, import("redux").AnyAction>;
4
+ declare const actions: {
5
+ setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
6
+ setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
7
+ setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<VendorPublicConfigurationState>], Partial<VendorPublicConfigurationState>, string, never, never>;
8
+ loadVendorPublicConfiguration: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
9
+ };
10
+ export { actions as vendorPublicConfigActions, reducer as vendorPublicConfigReducer };
@@ -0,0 +1,10 @@
1
+ import { IVendorPublicConfigurationResponse } from '@frontegg/rest-api';
2
+ export interface VendorPublicConfigurationState {
3
+ loading: boolean;
4
+ error?: string;
5
+ fetching: boolean;
6
+ vendorPublicConfig: IVendorPublicConfigurationResponse | null;
7
+ }
8
+ export interface VendorPublicConfigurationActions {
9
+ loadVendorPublicConfiguration: () => void;
10
+ }
@@ -0,0 +1,2 @@
1
+ export declare function vendorPublicConfigSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
2
+ export declare function vendorPublicConfigSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
@@ -1,5 +1,6 @@
1
- import { IPlanResponse, ISubscriptionResponse, ISubscriptionInvoiceResponse, ISubscriptionPaymentMethodCardResponse } from '@frontegg/rest-api';
1
+ import { IPlanResponse, ISubscriptionResponse, ISubscriptionInvoiceResponse, ISubscriptionPaymentMethodCardResponse, IVendorPublicConfigurationResponse } from '@frontegg/rest-api';
2
2
  export declare const subscriptionResponseMock: ISubscriptionResponse;
3
3
  export declare const planResponseMock: IPlanResponse[];
4
4
  export declare const invoicesMock: ISubscriptionInvoiceResponse[];
5
5
  export declare const paymentMethodsMock: ISubscriptionPaymentMethodCardResponse[];
6
+ export declare const vendorPublicConfigurationResponseMock: IVendorPublicConfigurationResponse;
@@ -12,6 +12,7 @@ declare const _default: {
12
12
  plans: import("./interfaces").PlansState;
13
13
  checkout: import("./interfaces").CheckoutState;
14
14
  stripe: import("./interfaces").StripeState;
15
+ vendorPublicConfig: import("./interfaces").VendorPublicConfigurationState;
15
16
  }>, import("redux").AnyAction>;
16
17
  actions: {
17
18
  config: {
@@ -93,6 +94,12 @@ declare const _default: {
93
94
  loadCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
94
95
  createCardSetupIntentSecret: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, string>;
95
96
  };
97
+ vendorPublicConfig: {
98
+ setLoading: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[boolean], boolean, string, never, never>;
99
+ setError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string | null], string | null, string, never, never>;
100
+ setState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./interfaces").VendorPublicConfigurationState>], Partial<import("./interfaces").VendorPublicConfigurationState>, string, never, never>;
101
+ loadVendorPublicConfiguration: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
102
+ };
96
103
  };
97
104
  initialState: import("./interfaces").SubscriptionsState;
98
105
  storeName: string;