@frontegg/redux-store 5.12.0 → 5.13.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.
|
@@ -26,8 +26,9 @@ export declare type createdByUserIdColumn = 'show' | 'hide' | undefined;
|
|
|
26
26
|
export interface IApiTokensData {
|
|
27
27
|
clientId: string;
|
|
28
28
|
createdAt: string;
|
|
29
|
-
secret
|
|
29
|
+
secret?: string;
|
|
30
30
|
description: string;
|
|
31
|
+
metadata?: {};
|
|
31
32
|
}
|
|
32
33
|
export declare type IUserApiTokensData = IApiTokensData;
|
|
33
34
|
export interface ITenantApiTokensData extends IApiTokensData {
|
package/connectivity/index.js
CHANGED
|
@@ -130,6 +130,7 @@ function* loadDataFunction({ payload = channels }) {
|
|
|
130
130
|
return res.reduce((acc, curr, idx) => (Object.assign(Object.assign({}, acc), { [`${payload[idx]}`]: curr })), {});
|
|
131
131
|
})(),
|
|
132
132
|
]);
|
|
133
|
+
const webhooks = yield loadFunction({ payload: { api: 'webhook' }, type: '' });
|
|
133
134
|
const data = values.reduce((acc, curr, idx) => payload[idx]
|
|
134
135
|
? values[values.length - 1][payload[idx]].length
|
|
135
136
|
? Object.assign(Object.assign({}, acc), { [`${payload[idx]}`]: curr, list: [
|
|
@@ -143,7 +144,7 @@ function* loadDataFunction({ payload = channels }) {
|
|
|
143
144
|
image: channels2Platform[payload[idx]].image,
|
|
144
145
|
},
|
|
145
146
|
] }) : acc
|
|
146
|
-
: Object.assign(Object.assign({}, acc), { [`${addApi[idx - payload.length]}`]: curr }), { list: [] });
|
|
147
|
+
: Object.assign(Object.assign({}, acc), { [`${addApi[idx - payload.length]}`]: curr }), { list: [], webhook: webhooks });
|
|
147
148
|
yield put(actions.setConnectivityState(Object.assign(Object.assign({}, data), { error: undefined, isSaving: false, isLoading: false })));
|
|
148
149
|
}
|
|
149
150
|
catch (e) {
|
|
@@ -133,6 +133,7 @@ function* loadDataFunction({ payload = channels }) {
|
|
|
133
133
|
return res.reduce((acc, curr, idx) => (Object.assign(Object.assign({}, acc), { [`${payload[idx]}`]: curr })), {});
|
|
134
134
|
})(),
|
|
135
135
|
]);
|
|
136
|
+
const webhooks = yield loadFunction({ payload: { api: 'webhook' }, type: '' });
|
|
136
137
|
const data = values.reduce((acc, curr, idx) => payload[idx]
|
|
137
138
|
? values[values.length - 1][payload[idx]].length
|
|
138
139
|
? Object.assign(Object.assign({}, acc), { [`${payload[idx]}`]: curr, list: [
|
|
@@ -146,7 +147,7 @@ function* loadDataFunction({ payload = channels }) {
|
|
|
146
147
|
image: channels2Platform[payload[idx]].image,
|
|
147
148
|
},
|
|
148
149
|
] }) : acc
|
|
149
|
-
: Object.assign(Object.assign({}, acc), { [`${addApi[idx - payload.length]}`]: curr }), { list: [] });
|
|
150
|
+
: Object.assign(Object.assign({}, acc), { [`${addApi[idx - payload.length]}`]: curr }), { list: [], webhook: webhooks });
|
|
150
151
|
yield effects.put(actions.setConnectivityState(Object.assign(Object.assign({}, data), { error: undefined, isSaving: false, isLoading: false })));
|
|
151
152
|
}
|
|
152
153
|
catch (e) {
|
|
@@ -52,7 +52,7 @@ const actions$7 = Object.assign({ loadPlans: toolkit.createAction(`${name$6}/loa
|
|
|
52
52
|
const configInitialState = {
|
|
53
53
|
loading: false,
|
|
54
54
|
error: null,
|
|
55
|
-
fetching:
|
|
55
|
+
fetching: true,
|
|
56
56
|
config: null,
|
|
57
57
|
};
|
|
58
58
|
const reducers$5 = Object.assign({}, createModuleCaseReducers());
|
package/package.json
CHANGED
package/subscriptions/index.js
CHANGED
|
@@ -49,7 +49,7 @@ const actions$7 = Object.assign({ loadPlans: createAction(`${name$6}/loadPlans`)
|
|
|
49
49
|
const configInitialState = {
|
|
50
50
|
loading: false,
|
|
51
51
|
error: null,
|
|
52
|
-
fetching:
|
|
52
|
+
fetching: true,
|
|
53
53
|
config: null,
|
|
54
54
|
};
|
|
55
55
|
const reducers$5 = Object.assign({}, createModuleCaseReducers());
|