@frontegg/redux-store 5.39.1 → 5.41.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/node/index.js CHANGED
@@ -2,16 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var auth_index = require('./auth/index.js');
5
+ var auth_index = require('./index-5c2d4101.js');
6
6
  var audits_index = require('./audits/index.js');
7
7
  var connectivity_index = require('./connectivity/index.js');
8
8
  var subscriptions_index = require('./subscriptions/index.js');
9
- var vendor_index = require('./vendor/index.js');
9
+ var vendor_index = require('./index-2ab7009b.js');
10
10
  var saga = require('./saga-b0d1a607.js');
11
- var toolkit_index = require('./toolkit/index.js');
12
11
  var restApi = require('@frontegg/rest-api');
13
12
  var constants = require('./constants-52e37c08.js');
14
- var saga$1 = require('./saga-633c17d2.js');
15
13
  var toolkit = require('@reduxjs/toolkit');
16
14
  var effects = require('redux-saga/effects');
17
15
  var createSagaMiddleware = require('redux-saga');
@@ -42,6 +40,12 @@ Object.defineProperty(exports, 'ApiStateKeys', {
42
40
  return auth_index.ApiStateKeys;
43
41
  }
44
42
  });
43
+ Object.defineProperty(exports, 'AuthenticationTypes', {
44
+ enumerable: true,
45
+ get: function () {
46
+ return auth_index.AuthenticationTypes;
47
+ }
48
+ });
45
49
  Object.defineProperty(exports, 'ForgotPasswordStep', {
46
50
  enumerable: true,
47
51
  get: function () {
@@ -90,59 +94,66 @@ Object.defineProperty(exports, 'TeamStateKeys', {
90
94
  return auth_index.TeamStateKeys;
91
95
  }
92
96
  });
93
- exports.acceptInvitationActions = auth_index.acceptInvitationActions;
94
- exports.acceptInvitationReducers = auth_index.acceptInvitationReducers;
97
+ Object.defineProperty(exports, 'UserVeirifedOriginTypes', {
98
+ enumerable: true,
99
+ get: function () {
100
+ return auth_index.UserVeirifedOriginTypes;
101
+ }
102
+ });
103
+ exports.acceptInvitationActions = auth_index.actions$3;
104
+ exports.acceptInvitationReducers = auth_index.reducers$2;
95
105
  exports.acceptInvitationState = auth_index.acceptInvitationState;
96
- exports.accountSettingsActions = auth_index.accountSettingsActions;
97
- exports.accountSettingsReducers = auth_index.accountSettingsReducers;
106
+ exports.accountSettingsActions = auth_index.actions$14;
107
+ exports.accountSettingsReducers = auth_index.reducers$13;
98
108
  exports.accountSettingsState = auth_index.accountSettingsState;
99
- exports.activateAccountActions = auth_index.activateAccountActions;
100
- exports.activateAccountReducers = auth_index.activateAccountReducers;
109
+ exports.activateAccountActions = auth_index.actions$2;
110
+ exports.activateAccountReducers = auth_index.reducers$1;
101
111
  exports.activateState = auth_index.activateState;
102
- exports.apiTokensActions = auth_index.apiTokensActions;
103
- exports.apiTokensReducers = auth_index.apiTokensReducers;
112
+ exports.apiTokensActions = auth_index.actions$12;
113
+ exports.apiTokensReducers = auth_index.reducers$11;
104
114
  exports.apiTokensState = auth_index.apiTokensState;
105
- exports.auth = auth_index['default'];
106
- exports.authActions = auth_index.authActions;
107
- exports.authInitialState = auth_index.authInitialState;
108
- exports.authMockSagas = auth_index.authMockSagas;
109
- exports.authReducers = auth_index.authReducers;
110
- exports.authSagas = auth_index.authSagas;
111
- exports.forgotPasswordActions = auth_index.forgotPasswordActions;
112
- exports.forgotPasswordReducers = auth_index.forgotPasswordReducers;
115
+ exports.auth = auth_index.authStore;
116
+ exports.authActions = auth_index.actions;
117
+ exports.authInitialState = auth_index.initialState;
118
+ exports.authMockSagas = auth_index.mockSagas;
119
+ exports.authReducers = auth_index.reducer;
120
+ exports.authSagas = auth_index.sagas;
121
+ exports.createFronteggStore = auth_index.createFronteggStore;
122
+ exports.forgotPasswordActions = auth_index.actions$4;
123
+ exports.forgotPasswordReducers = auth_index.reducers$3;
113
124
  exports.forgotPasswordState = auth_index.forgotPasswordState;
114
- exports.loginActions = auth_index.loginActions;
115
- exports.loginReducers = auth_index.loginReducers;
125
+ exports.loginActions = auth_index.actions$1;
126
+ exports.loginReducers = auth_index.reducers;
116
127
  exports.loginState = auth_index.loginState;
117
- exports.mfaActions = auth_index.mfaActions;
118
- exports.mfaReducers = auth_index.mfaReducers;
128
+ exports.mfaActions = auth_index.actions$7;
129
+ exports.mfaReducers = auth_index.reducers$6;
119
130
  exports.mfaState = auth_index.mfaState;
120
- exports.profileActions = auth_index.profileActions;
121
- exports.profileReducers = auth_index.profileReducers;
131
+ exports.profileActions = auth_index.actions$8;
132
+ exports.profileReducers = auth_index.reducers$7;
122
133
  exports.profileState = auth_index.profileState;
123
- exports.resetPhoneNumberActions = auth_index.resetPhoneNumberActions;
124
- exports.resetPhoneNumberReducers = auth_index.resetPhoneNumberReducers;
134
+ exports.resetPhoneNumberActions = auth_index.actions$5;
135
+ exports.resetPhoneNumberReducers = auth_index.reducers$4;
125
136
  exports.resetPhoneNumberState = auth_index.resetPhoneNumberState;
126
- exports.rolesActions = auth_index.rolesActions;
127
- exports.rolesReducers = auth_index.rolesReducers;
137
+ exports.rolesActions = auth_index.actions$16;
138
+ exports.rolesReducers = auth_index.reducers$15;
128
139
  exports.rolesState = auth_index.rolesState;
129
- exports.securityPolicyActions = auth_index.securityPolicyActions;
130
- exports.securityPolicyReducers = auth_index.securityPolicyReducers;
140
+ exports.securityPolicyActions = auth_index.actions$13;
141
+ exports.securityPolicyReducers = auth_index.reducers$12;
131
142
  exports.securityPolicyState = auth_index.securityPolicyState;
132
- exports.signUpActions = auth_index.signUpActions;
133
- exports.signUpReducers = auth_index.signUpReducers;
143
+ exports.signUpActions = auth_index.actions$11;
144
+ exports.signUpReducers = auth_index.reducers$10;
134
145
  exports.signUpState = auth_index.signUpState;
135
146
  exports.socialLoginState = auth_index.socialLoginState;
136
- exports.socialLoginsActions = auth_index.socialLoginsActions;
137
- exports.socialLoginsReducer = auth_index.socialLoginsReducer;
138
- exports.ssoActions = auth_index.ssoActions;
139
- exports.ssoReducers = auth_index.ssoReducers;
147
+ exports.socialLoginsActions = auth_index.actions$10;
148
+ exports.socialLoginsReducer = auth_index.reducers$9;
149
+ exports.ssoActions = auth_index.actions$6;
150
+ exports.ssoReducers = auth_index.reducers$5;
140
151
  exports.ssoState = auth_index.ssoState;
141
- exports.teamActions = auth_index.teamActions;
142
- exports.teamReducers = auth_index.teamReducers;
152
+ exports.teamActions = auth_index.actions$9;
153
+ exports.teamReducers = auth_index.reducers$8;
143
154
  exports.teamState = auth_index.teamState;
144
- exports.tenantsActions = auth_index.tenantsActions;
145
- exports.tenantsReducers = auth_index.tenantsReducers;
155
+ exports.tenantsActions = auth_index.actions$15;
156
+ exports.tenantsReducers = auth_index.reducers$14;
146
157
  exports.tenantsState = auth_index.tenantsState;
147
158
  exports.auditLogsActions = audits_index.auditLogsActions;
148
159
  exports.auditLogsReducers = audits_index.auditLogsReducers;
@@ -203,14 +214,17 @@ exports.subscriptionReducers = subscriptions_index.subscriptionReducers;
203
214
  exports.subscriptionSagas = subscriptions_index.subscriptionSagas;
204
215
  exports.subscriptionSagasMock = subscriptions_index.subscriptionSagasMock;
205
216
  exports.subscriptions = subscriptions_index['default'];
206
- exports.vendor = vendor_index['default'];
217
+ exports.vendor = vendor_index.vendorStore;
218
+ exports.vendorActions = vendor_index.actions;
219
+ exports.vendorInitialState = vendor_index.initialState;
220
+ exports.vendorReducers = vendor_index.reducer;
221
+ exports.vendorSagas = vendor_index.sagas;
207
222
  exports.actions = saga.actions;
208
223
  exports.defaultItemsPerPage = saga.defaultItemsPerPage;
209
224
  exports.initialState = saga.initialState;
210
225
  exports.reducer = saga.reducer;
211
226
  exports.sagas = saga.sagas;
212
227
  exports.storeName = saga.storeName;
213
- exports.createFronteggStore = toolkit_index.createFronteggStore;
214
228
  Object.defineProperty(exports, 'AuthStrategyEnum', {
215
229
  enumerable: true,
216
230
  get: function () {
@@ -222,10 +236,6 @@ exports.authStoreName = constants.authStoreName;
222
236
  exports.connectivityStoreName = constants.connectivityStoreName;
223
237
  exports.subscriptionsStoreName = constants.subscriptionsStoreName;
224
238
  exports.vendorStoreName = constants.vendorStoreName;
225
- exports.vendorActions = saga$1.actions;
226
- exports.vendorInitialState = saga$1.initialState;
227
- exports.vendorReducers = saga$1.reducer;
228
- exports.vendorSagas = saga$1.sagas;
229
239
  Object.defineProperty(exports, 'bindActionCreators', {
230
240
  enumerable: true,
231
241
  get: function () {
@@ -276,19 +276,23 @@ const subscriptionResponseMock = {
276
276
  cancellation: null,
277
277
  currentPeriodStart: '2021-09-20T08:08:51.000Z',
278
278
  currentPeriodEnd: '2021-10-20T08:08:51.000Z',
279
- items: [
280
- {
281
- id: 'si_KGE0p5himocPXH',
282
- externalId: 'prod_J60fUEvI7qV1eL',
283
- planId: 'prod_J60fUEvI7qV1eL',
284
- price: {
285
- id: 'price_1IToe8Ewsu4qiqnndAV76J69',
286
- externalId: 'price_1IToe8Ewsu4qiqnndAV76J69',
287
- currency: 'usd',
288
- amount: 10000,
289
- },
290
- },
291
- ],
279
+ plan: {
280
+ // TODO: fix dummy data
281
+ slug: 'test'
282
+ }
283
+ // items: [
284
+ // {
285
+ // id: 'si_KGE0p5himocPXH',
286
+ // externalId: 'prod_J60fUEvI7qV1eL',
287
+ // planId: 'prod_J60fUEvI7qV1eL',
288
+ // price: {
289
+ // id: 'price_1IToe8Ewsu4qiqnndAV76J69',
290
+ // externalId: 'price_1IToe8Ewsu4qiqnndAV76J69',
291
+ // currency: 'usd',
292
+ // amount: 10000,
293
+ // },
294
+ // },
295
+ // ],
292
296
  };
293
297
  const planResponseMock = [
294
298
  {
@@ -2,187 +2,108 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var auth_index = require('../auth/index.js');
5
+ var auth_index = require('../index-5c2d4101.js');
6
6
  var toolkit = require('@reduxjs/toolkit');
7
7
  var createSagaMiddleware = require('redux-saga');
8
8
  var effects = require('redux-saga/effects');
9
- var restApi = require('@frontegg/rest-api');
10
- var audits_index = require('../audits/index.js');
11
- var saga = require('../saga-b0d1a607.js');
12
- var connectivity_index = require('../connectivity/index.js');
13
- var subscriptions_index = require('../subscriptions/index.js');
14
- var vendor_index = require('../vendor/index.js');
9
+ require('@frontegg/rest-api');
10
+ require('../audits/index.js');
11
+ require('../saga-b0d1a607.js');
12
+ require('../connectivity/index.js');
13
+ require('../subscriptions/index.js');
14
+ require('../index-2ab7009b.js');
15
15
  require('../constants-52e37c08.js');
16
16
  require('tslib');
17
- require('../saga-633c17d2.js');
18
17
  require('uuid');
19
18
 
20
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
20
 
22
21
  var createSagaMiddleware__default = /*#__PURE__*/_interopDefaultLegacy(createSagaMiddleware);
23
22
 
24
- const initialState = {
25
- context: undefined,
26
- };
27
- const { reducer: rootReducer } = toolkit.createSlice({
28
- name: 'root',
29
- initialState,
30
- reducers: {
31
- setContext: {
32
- prepare: (context) => ({ payload: context }),
33
- reducer: (state, { payload }) => {
34
- restApi.ContextHolder.setContext(payload);
35
- return Object.assign(Object.assign({}, state), { context: payload });
36
- },
37
- },
38
- },
39
- });
40
- const createFronteggStore = (rootInitialState, storeHolder, previewMode = false, authInitialState, overrideInitialState, builderMode = false) => {
41
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
42
- const isSSR = typeof window === 'undefined';
43
- let holder = storeHolder;
44
- if (isSSR && storeHolder == null) {
45
- throw Error('createFronteggStore(initState, storeHolder) failed, storeHolder must not be null in Server-Side rendering');
46
- }
47
- if (!holder) {
48
- holder = window;
49
- }
50
- if (!holder.store) {
51
- if (!previewMode && !builderMode) {
52
- restApi.ContextHolder.setContext(rootInitialState.context);
53
- }
54
- const sagaMiddleware = createSagaMiddleware__default['default']();
55
- const middleware = [
56
- ...toolkit.getDefaultMiddleware({ thunk: false, immutableCheck: false, serializableCheck: false }),
57
- sagaMiddleware,
58
- ];
59
- holder.store = toolkit.configureStore({
60
- middleware,
61
- preloadedState: {
62
- root: Object.assign(Object.assign({}, rootInitialState), { previewMode }),
63
- [auth_index['default'].storeName]: Object.assign(Object.assign(Object.assign(Object.assign({}, auth_index['default'].initialState), authInitialState), ((_a = overrideInitialState === null || overrideInitialState === void 0 ? void 0 : overrideInitialState.auth) !== null && _a !== void 0 ? _a : {})), { routes: Object.assign(Object.assign(Object.assign({}, auth_index['default'].initialState.routes), ((_b = authInitialState === null || authInitialState === void 0 ? void 0 : authInitialState.routes) !== null && _b !== void 0 ? _b : {})), ((_d = (_c = overrideInitialState === null || overrideInitialState === void 0 ? void 0 : overrideInitialState.auth) === null || _c === void 0 ? void 0 : _c.routes) !== null && _d !== void 0 ? _d : {})) }),
64
- [audits_index['default'].storeName]: Object.assign(Object.assign(Object.assign({}, audits_index['default'].initialState), ((_e = overrideInitialState === null || overrideInitialState === void 0 ? void 0 : overrideInitialState.auditLogs) !== null && _e !== void 0 ? _e : {})), { auditLogsState: Object.assign(Object.assign({}, audits_index['default'].initialState.auditLogsState), ((_g = (_f = overrideInitialState === null || overrideInitialState === void 0 ? void 0 : overrideInitialState.auditLogs) === null || _f === void 0 ? void 0 : _f.auditLogsState) !== null && _g !== void 0 ? _g : {})), auditsMetadataState: Object.assign(Object.assign({}, audits_index['default'].initialState.auditsMetadataState), ((_j = (_h = overrideInitialState === null || overrideInitialState === void 0 ? void 0 : overrideInitialState.auditLogs) === null || _h === void 0 ? void 0 : _h.auditsMetadataState) !== null && _j !== void 0 ? _j : {})) }),
65
- [saga.storeName]: Object.assign(Object.assign({}, saga.initialState), ((_k = overrideInitialState === null || overrideInitialState === void 0 ? void 0 : overrideInitialState.audits) !== null && _k !== void 0 ? _k : {})),
66
- [connectivity_index['default'].storeName]: connectivity_index['default'].initialState,
67
- [subscriptions_index['default'].storeName]: subscriptions_index['default'].initialState,
68
- [vendor_index['default'].storeName]: vendor_index['default'].initialState,
69
- },
70
- reducer: toolkit.combineReducers({
71
- root: rootReducer,
72
- [auth_index['default'].storeName]: auth_index['default'].reducer,
73
- [audits_index['default'].storeName]: audits_index['default'].reducer,
74
- [saga.storeName]: saga.reducer,
75
- [connectivity_index['default'].storeName]: connectivity_index['default'].reducer,
76
- [subscriptions_index['default'].storeName]: subscriptions_index['default'].reducer,
77
- [vendor_index['default'].storeName]: vendor_index['default'].reducer,
78
- }),
79
- });
80
- const rootSaga = function* () {
81
- yield effects.all([
82
- effects.call(auth_index['default'].sagas),
83
- effects.call(audits_index['default'].sagas),
84
- effects.call(saga.sagas),
85
- effects.call(connectivity_index['default'].sagas),
86
- effects.call(subscriptions_index['default'].sagas),
87
- effects.call(vendor_index['default'].sagas),
88
- ]);
89
- };
90
- const rootMockSaga = function* () {
91
- yield effects.all([effects.call(auth_index['default'].mockSagas), effects.call(audits_index['default'].mockSagas), effects.call(subscriptions_index['default'].mockSagas)]);
92
- };
93
- if (previewMode) {
94
- holder.store.destroy = sagaMiddleware.run(rootMockSaga).cancel;
95
- holder.store.dispatch(auth_index.authActions.requestAuthorize(true));
96
- }
97
- else {
98
- holder.store.destroy = sagaMiddleware.run(rootSaga).cancel;
99
- }
100
- }
101
- return holder.store;
102
- };
103
23
 
24
+
25
+ exports.createFronteggStore = auth_index.createFronteggStore;
104
26
  Object.defineProperty(exports, 'bindActionCreators', {
105
- enumerable: true,
106
- get: function () {
107
- return toolkit.bindActionCreators;
108
- }
27
+ enumerable: true,
28
+ get: function () {
29
+ return toolkit.bindActionCreators;
30
+ }
109
31
  });
110
32
  Object.defineProperty(exports, 'combineReducers', {
111
- enumerable: true,
112
- get: function () {
113
- return toolkit.combineReducers;
114
- }
33
+ enumerable: true,
34
+ get: function () {
35
+ return toolkit.combineReducers;
36
+ }
115
37
  });
116
38
  Object.defineProperty(exports, 'configureStore', {
117
- enumerable: true,
118
- get: function () {
119
- return toolkit.configureStore;
120
- }
39
+ enumerable: true,
40
+ get: function () {
41
+ return toolkit.configureStore;
42
+ }
121
43
  });
122
44
  Object.defineProperty(exports, 'createSelector', {
123
- enumerable: true,
124
- get: function () {
125
- return toolkit.createSelector;
126
- }
45
+ enumerable: true,
46
+ get: function () {
47
+ return toolkit.createSelector;
48
+ }
127
49
  });
128
50
  Object.defineProperty(exports, 'createSlice', {
129
- enumerable: true,
130
- get: function () {
131
- return toolkit.createSlice;
132
- }
51
+ enumerable: true,
52
+ get: function () {
53
+ return toolkit.createSlice;
54
+ }
133
55
  });
134
56
  Object.defineProperty(exports, 'getDefaultMiddleware', {
135
- enumerable: true,
136
- get: function () {
137
- return toolkit.getDefaultMiddleware;
138
- }
57
+ enumerable: true,
58
+ get: function () {
59
+ return toolkit.getDefaultMiddleware;
60
+ }
139
61
  });
140
62
  Object.defineProperty(exports, 'createSagaMiddleware', {
141
- enumerable: true,
142
- get: function () {
143
- return createSagaMiddleware__default['default'];
144
- }
63
+ enumerable: true,
64
+ get: function () {
65
+ return createSagaMiddleware__default['default'];
66
+ }
145
67
  });
146
68
  Object.defineProperty(exports, 'all', {
147
- enumerable: true,
148
- get: function () {
149
- return effects.all;
150
- }
69
+ enumerable: true,
70
+ get: function () {
71
+ return effects.all;
72
+ }
151
73
  });
152
74
  Object.defineProperty(exports, 'call', {
153
- enumerable: true,
154
- get: function () {
155
- return effects.call;
156
- }
75
+ enumerable: true,
76
+ get: function () {
77
+ return effects.call;
78
+ }
157
79
  });
158
80
  Object.defineProperty(exports, 'delay', {
159
- enumerable: true,
160
- get: function () {
161
- return effects.delay;
162
- }
81
+ enumerable: true,
82
+ get: function () {
83
+ return effects.delay;
84
+ }
163
85
  });
164
86
  Object.defineProperty(exports, 'put', {
165
- enumerable: true,
166
- get: function () {
167
- return effects.put;
168
- }
87
+ enumerable: true,
88
+ get: function () {
89
+ return effects.put;
90
+ }
169
91
  });
170
92
  Object.defineProperty(exports, 'select', {
171
- enumerable: true,
172
- get: function () {
173
- return effects.select;
174
- }
93
+ enumerable: true,
94
+ get: function () {
95
+ return effects.select;
96
+ }
175
97
  });
176
98
  Object.defineProperty(exports, 'takeEvery', {
177
- enumerable: true,
178
- get: function () {
179
- return effects.takeEvery;
180
- }
99
+ enumerable: true,
100
+ get: function () {
101
+ return effects.takeEvery;
102
+ }
181
103
  });
182
104
  Object.defineProperty(exports, 'takeLatest', {
183
- enumerable: true,
184
- get: function () {
185
- return effects.takeLatest;
186
- }
105
+ enumerable: true,
106
+ get: function () {
107
+ return effects.takeLatest;
108
+ }
187
109
  });
188
- exports.createFronteggStore = createFronteggStore;
@@ -2,24 +2,17 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var saga = require('../saga-633c17d2.js');
5
+ var vendor_index = require('../index-2ab7009b.js');
6
6
  var constants = require('../constants-52e37c08.js');
7
+ require('@reduxjs/toolkit');
7
8
  require('redux-saga/effects');
8
9
  require('@frontegg/rest-api');
9
- require('@reduxjs/toolkit');
10
10
 
11
- // export store
12
- var vendorStore = {
13
- sagas: saga.sagas,
14
- storeName: constants.vendorStoreName,
15
- initialState: saga.initialState,
16
- reducer: saga.reducer,
17
- actions: saga.actions,
18
- };
19
11
 
20
- exports.vendorActions = saga.actions;
21
- exports.vendorInitialState = saga.initialState;
22
- exports.vendorReducers = saga.reducer;
23
- exports.vendorSagas = saga.sagas;
12
+
13
+ exports.default = vendor_index.vendorStore;
14
+ exports.vendorActions = vendor_index.actions;
15
+ exports.vendorInitialState = vendor_index.initialState;
16
+ exports.vendorReducers = vendor_index.reducer;
17
+ exports.vendorSagas = vendor_index.sagas;
24
18
  exports.vendorStoreName = constants.vendorStoreName;
25
- exports['default'] = vendorStore;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
3
  "libName": "FronteggReduxStore",
4
- "version": "5.39.1",
4
+ "version": "5.41.0",
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": "2.10.61",
10
+ "@frontegg/rest-api": "2.10.62",
11
11
  "@reduxjs/toolkit": "^1.5.0",
12
12
  "redux-saga": "^1.1.0",
13
13
  "tslib": "^2.3.1",
@@ -273,19 +273,23 @@ const subscriptionResponseMock = {
273
273
  cancellation: null,
274
274
  currentPeriodStart: '2021-09-20T08:08:51.000Z',
275
275
  currentPeriodEnd: '2021-10-20T08:08:51.000Z',
276
- items: [
277
- {
278
- id: 'si_KGE0p5himocPXH',
279
- externalId: 'prod_J60fUEvI7qV1eL',
280
- planId: 'prod_J60fUEvI7qV1eL',
281
- price: {
282
- id: 'price_1IToe8Ewsu4qiqnndAV76J69',
283
- externalId: 'price_1IToe8Ewsu4qiqnndAV76J69',
284
- currency: 'usd',
285
- amount: 10000,
286
- },
287
- },
288
- ],
276
+ plan: {
277
+ // TODO: fix dummy data
278
+ slug: 'test'
279
+ }
280
+ // items: [
281
+ // {
282
+ // id: 'si_KGE0p5himocPXH',
283
+ // externalId: 'prod_J60fUEvI7qV1eL',
284
+ // planId: 'prod_J60fUEvI7qV1eL',
285
+ // price: {
286
+ // id: 'price_1IToe8Ewsu4qiqnndAV76J69',
287
+ // externalId: 'price_1IToe8Ewsu4qiqnndAV76J69',
288
+ // currency: 'usd',
289
+ // amount: 10000,
290
+ // },
291
+ // },
292
+ // ],
289
293
  };
290
294
  const planResponseMock = [
291
295
  {