@fctc/interface-logic 1.6.5 → 1.6.6
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/environment.js +17 -26
- package/dist/environment.mjs +17 -26
- package/dist/hooks.js +17 -26
- package/dist/hooks.mjs +17 -26
- package/dist/provider.js +17 -26
- package/dist/provider.mjs +17 -26
- package/dist/services.js +17 -26
- package/dist/services.mjs +17 -26
- package/dist/store.js +1 -12
- package/dist/store.mjs +1 -12
- package/package.json +1 -1
package/dist/environment.js
CHANGED
|
@@ -255,18 +255,7 @@ var envSlice = (0, import_toolkit2.createSlice)({
|
|
|
255
255
|
initialState: initialState2,
|
|
256
256
|
reducers: {
|
|
257
257
|
setEnv: (state, action) => {
|
|
258
|
-
|
|
259
|
-
console.log("env in slice", action.payload);
|
|
260
|
-
state.baseUrl = action.payload.baseUrl;
|
|
261
|
-
state.requests = action.payload.requests;
|
|
262
|
-
state.companies = action.payload.companies;
|
|
263
|
-
state.user = action.payload.user;
|
|
264
|
-
state.db = action.payload.db;
|
|
265
|
-
state.refreshTokenEndpoint = action.payload.refreshTokenEndpoint;
|
|
266
|
-
state.config = action.payload.config;
|
|
267
|
-
state.envFile = action.payload.envFile;
|
|
268
|
-
state.defaultCompany = action.payload.defaultCompany;
|
|
269
|
-
state.context = action.payload.context;
|
|
258
|
+
Object.assign(state, action.payload);
|
|
270
259
|
},
|
|
271
260
|
setUid: (state, action) => {
|
|
272
261
|
state.context.uid = action.payload;
|
|
@@ -3043,22 +3032,24 @@ var EnvStore = class {
|
|
|
3043
3032
|
const dispatch = envStore.dispatch;
|
|
3044
3033
|
let env2 = {
|
|
3045
3034
|
...envConfig,
|
|
3046
|
-
localStorageUtils: this.localStorageUtils,
|
|
3047
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3035
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3036
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3048
3037
|
};
|
|
3049
3038
|
const requests = axiosClient.init(env2);
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3039
|
+
dispatch(
|
|
3040
|
+
setEnv({
|
|
3041
|
+
baseUrl: envConfig?.baseUrl ?? "",
|
|
3042
|
+
context: envConfig?.context ?? {},
|
|
3043
|
+
defaultCompany: envConfig?.defaultCompany ?? {},
|
|
3044
|
+
config: envConfig?.config ?? null,
|
|
3045
|
+
companies: envConfig?.companies ?? [],
|
|
3046
|
+
user: envConfig?.user ?? {},
|
|
3047
|
+
db: envConfig?.db ?? "",
|
|
3048
|
+
refreshTokenEndpoint: envConfig?.refreshTokenEndpoint ?? "",
|
|
3049
|
+
requests: requests ?? null
|
|
3050
|
+
})
|
|
3051
|
+
);
|
|
3052
|
+
this.setup();
|
|
3062
3053
|
}
|
|
3063
3054
|
setUid(uid) {
|
|
3064
3055
|
const dispatch = envStore.dispatch;
|
package/dist/environment.mjs
CHANGED
|
@@ -216,18 +216,7 @@ var envSlice = createSlice2({
|
|
|
216
216
|
initialState: initialState2,
|
|
217
217
|
reducers: {
|
|
218
218
|
setEnv: (state, action) => {
|
|
219
|
-
|
|
220
|
-
console.log("env in slice", action.payload);
|
|
221
|
-
state.baseUrl = action.payload.baseUrl;
|
|
222
|
-
state.requests = action.payload.requests;
|
|
223
|
-
state.companies = action.payload.companies;
|
|
224
|
-
state.user = action.payload.user;
|
|
225
|
-
state.db = action.payload.db;
|
|
226
|
-
state.refreshTokenEndpoint = action.payload.refreshTokenEndpoint;
|
|
227
|
-
state.config = action.payload.config;
|
|
228
|
-
state.envFile = action.payload.envFile;
|
|
229
|
-
state.defaultCompany = action.payload.defaultCompany;
|
|
230
|
-
state.context = action.payload.context;
|
|
219
|
+
Object.assign(state, action.payload);
|
|
231
220
|
},
|
|
232
221
|
setUid: (state, action) => {
|
|
233
222
|
state.context.uid = action.payload;
|
|
@@ -3004,22 +2993,24 @@ var EnvStore = class {
|
|
|
3004
2993
|
const dispatch = envStore.dispatch;
|
|
3005
2994
|
let env2 = {
|
|
3006
2995
|
...envConfig,
|
|
3007
|
-
localStorageUtils: this.localStorageUtils,
|
|
3008
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
2996
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
2997
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3009
2998
|
};
|
|
3010
2999
|
const requests = axiosClient.init(env2);
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3000
|
+
dispatch(
|
|
3001
|
+
setEnv({
|
|
3002
|
+
baseUrl: envConfig?.baseUrl ?? "",
|
|
3003
|
+
context: envConfig?.context ?? {},
|
|
3004
|
+
defaultCompany: envConfig?.defaultCompany ?? {},
|
|
3005
|
+
config: envConfig?.config ?? null,
|
|
3006
|
+
companies: envConfig?.companies ?? [],
|
|
3007
|
+
user: envConfig?.user ?? {},
|
|
3008
|
+
db: envConfig?.db ?? "",
|
|
3009
|
+
refreshTokenEndpoint: envConfig?.refreshTokenEndpoint ?? "",
|
|
3010
|
+
requests: requests ?? null
|
|
3011
|
+
})
|
|
3012
|
+
);
|
|
3013
|
+
this.setup();
|
|
3023
3014
|
}
|
|
3024
3015
|
setUid(uid) {
|
|
3025
3016
|
const dispatch = envStore.dispatch;
|
package/dist/hooks.js
CHANGED
|
@@ -353,18 +353,7 @@ var envSlice = (0, import_toolkit2.createSlice)({
|
|
|
353
353
|
initialState: initialState2,
|
|
354
354
|
reducers: {
|
|
355
355
|
setEnv: (state, action) => {
|
|
356
|
-
|
|
357
|
-
console.log("env in slice", action.payload);
|
|
358
|
-
state.baseUrl = action.payload.baseUrl;
|
|
359
|
-
state.requests = action.payload.requests;
|
|
360
|
-
state.companies = action.payload.companies;
|
|
361
|
-
state.user = action.payload.user;
|
|
362
|
-
state.db = action.payload.db;
|
|
363
|
-
state.refreshTokenEndpoint = action.payload.refreshTokenEndpoint;
|
|
364
|
-
state.config = action.payload.config;
|
|
365
|
-
state.envFile = action.payload.envFile;
|
|
366
|
-
state.defaultCompany = action.payload.defaultCompany;
|
|
367
|
-
state.context = action.payload.context;
|
|
356
|
+
Object.assign(state, action.payload);
|
|
368
357
|
},
|
|
369
358
|
setUid: (state, action) => {
|
|
370
359
|
state.context.uid = action.payload;
|
|
@@ -3168,22 +3157,24 @@ var EnvStore = class {
|
|
|
3168
3157
|
const dispatch = envStore.dispatch;
|
|
3169
3158
|
let env2 = {
|
|
3170
3159
|
...envConfig,
|
|
3171
|
-
localStorageUtils: this.localStorageUtils,
|
|
3172
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3160
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3161
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3173
3162
|
};
|
|
3174
3163
|
const requests = axiosClient.init(env2);
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3164
|
+
dispatch(
|
|
3165
|
+
setEnv({
|
|
3166
|
+
baseUrl: envConfig?.baseUrl ?? "",
|
|
3167
|
+
context: envConfig?.context ?? {},
|
|
3168
|
+
defaultCompany: envConfig?.defaultCompany ?? {},
|
|
3169
|
+
config: envConfig?.config ?? null,
|
|
3170
|
+
companies: envConfig?.companies ?? [],
|
|
3171
|
+
user: envConfig?.user ?? {},
|
|
3172
|
+
db: envConfig?.db ?? "",
|
|
3173
|
+
refreshTokenEndpoint: envConfig?.refreshTokenEndpoint ?? "",
|
|
3174
|
+
requests: requests ?? null
|
|
3175
|
+
})
|
|
3176
|
+
);
|
|
3177
|
+
this.setup();
|
|
3187
3178
|
}
|
|
3188
3179
|
setUid(uid) {
|
|
3189
3180
|
const dispatch = envStore.dispatch;
|
package/dist/hooks.mjs
CHANGED
|
@@ -249,18 +249,7 @@ var envSlice = createSlice2({
|
|
|
249
249
|
initialState: initialState2,
|
|
250
250
|
reducers: {
|
|
251
251
|
setEnv: (state, action) => {
|
|
252
|
-
|
|
253
|
-
console.log("env in slice", action.payload);
|
|
254
|
-
state.baseUrl = action.payload.baseUrl;
|
|
255
|
-
state.requests = action.payload.requests;
|
|
256
|
-
state.companies = action.payload.companies;
|
|
257
|
-
state.user = action.payload.user;
|
|
258
|
-
state.db = action.payload.db;
|
|
259
|
-
state.refreshTokenEndpoint = action.payload.refreshTokenEndpoint;
|
|
260
|
-
state.config = action.payload.config;
|
|
261
|
-
state.envFile = action.payload.envFile;
|
|
262
|
-
state.defaultCompany = action.payload.defaultCompany;
|
|
263
|
-
state.context = action.payload.context;
|
|
252
|
+
Object.assign(state, action.payload);
|
|
264
253
|
},
|
|
265
254
|
setUid: (state, action) => {
|
|
266
255
|
state.context.uid = action.payload;
|
|
@@ -3064,22 +3053,24 @@ var EnvStore = class {
|
|
|
3064
3053
|
const dispatch = envStore.dispatch;
|
|
3065
3054
|
let env2 = {
|
|
3066
3055
|
...envConfig,
|
|
3067
|
-
localStorageUtils: this.localStorageUtils,
|
|
3068
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3056
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3057
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3069
3058
|
};
|
|
3070
3059
|
const requests = axiosClient.init(env2);
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3060
|
+
dispatch(
|
|
3061
|
+
setEnv({
|
|
3062
|
+
baseUrl: envConfig?.baseUrl ?? "",
|
|
3063
|
+
context: envConfig?.context ?? {},
|
|
3064
|
+
defaultCompany: envConfig?.defaultCompany ?? {},
|
|
3065
|
+
config: envConfig?.config ?? null,
|
|
3066
|
+
companies: envConfig?.companies ?? [],
|
|
3067
|
+
user: envConfig?.user ?? {},
|
|
3068
|
+
db: envConfig?.db ?? "",
|
|
3069
|
+
refreshTokenEndpoint: envConfig?.refreshTokenEndpoint ?? "",
|
|
3070
|
+
requests: requests ?? null
|
|
3071
|
+
})
|
|
3072
|
+
);
|
|
3073
|
+
this.setup();
|
|
3083
3074
|
}
|
|
3084
3075
|
setUid(uid) {
|
|
3085
3076
|
const dispatch = envStore.dispatch;
|
package/dist/provider.js
CHANGED
|
@@ -106,18 +106,7 @@ var envSlice = (0, import_toolkit2.createSlice)({
|
|
|
106
106
|
initialState: initialState2,
|
|
107
107
|
reducers: {
|
|
108
108
|
setEnv: (state, action) => {
|
|
109
|
-
|
|
110
|
-
console.log("env in slice", action.payload);
|
|
111
|
-
state.baseUrl = action.payload.baseUrl;
|
|
112
|
-
state.requests = action.payload.requests;
|
|
113
|
-
state.companies = action.payload.companies;
|
|
114
|
-
state.user = action.payload.user;
|
|
115
|
-
state.db = action.payload.db;
|
|
116
|
-
state.refreshTokenEndpoint = action.payload.refreshTokenEndpoint;
|
|
117
|
-
state.config = action.payload.config;
|
|
118
|
-
state.envFile = action.payload.envFile;
|
|
119
|
-
state.defaultCompany = action.payload.defaultCompany;
|
|
120
|
-
state.context = action.payload.context;
|
|
109
|
+
Object.assign(state, action.payload);
|
|
121
110
|
},
|
|
122
111
|
setUid: (state, action) => {
|
|
123
112
|
state.context.uid = action.payload;
|
|
@@ -3079,22 +3068,24 @@ var EnvStore = class {
|
|
|
3079
3068
|
const dispatch = envStore.dispatch;
|
|
3080
3069
|
let env2 = {
|
|
3081
3070
|
...envConfig,
|
|
3082
|
-
localStorageUtils: this.localStorageUtils,
|
|
3083
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3071
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3072
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3084
3073
|
};
|
|
3085
3074
|
const requests = axiosClient.init(env2);
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3075
|
+
dispatch(
|
|
3076
|
+
setEnv({
|
|
3077
|
+
baseUrl: envConfig?.baseUrl ?? "",
|
|
3078
|
+
context: envConfig?.context ?? {},
|
|
3079
|
+
defaultCompany: envConfig?.defaultCompany ?? {},
|
|
3080
|
+
config: envConfig?.config ?? null,
|
|
3081
|
+
companies: envConfig?.companies ?? [],
|
|
3082
|
+
user: envConfig?.user ?? {},
|
|
3083
|
+
db: envConfig?.db ?? "",
|
|
3084
|
+
refreshTokenEndpoint: envConfig?.refreshTokenEndpoint ?? "",
|
|
3085
|
+
requests: requests ?? null
|
|
3086
|
+
})
|
|
3087
|
+
);
|
|
3088
|
+
this.setup();
|
|
3098
3089
|
}
|
|
3099
3090
|
setUid(uid) {
|
|
3100
3091
|
const dispatch = envStore.dispatch;
|
package/dist/provider.mjs
CHANGED
|
@@ -68,18 +68,7 @@ var envSlice = createSlice2({
|
|
|
68
68
|
initialState: initialState2,
|
|
69
69
|
reducers: {
|
|
70
70
|
setEnv: (state, action) => {
|
|
71
|
-
|
|
72
|
-
console.log("env in slice", action.payload);
|
|
73
|
-
state.baseUrl = action.payload.baseUrl;
|
|
74
|
-
state.requests = action.payload.requests;
|
|
75
|
-
state.companies = action.payload.companies;
|
|
76
|
-
state.user = action.payload.user;
|
|
77
|
-
state.db = action.payload.db;
|
|
78
|
-
state.refreshTokenEndpoint = action.payload.refreshTokenEndpoint;
|
|
79
|
-
state.config = action.payload.config;
|
|
80
|
-
state.envFile = action.payload.envFile;
|
|
81
|
-
state.defaultCompany = action.payload.defaultCompany;
|
|
82
|
-
state.context = action.payload.context;
|
|
71
|
+
Object.assign(state, action.payload);
|
|
83
72
|
},
|
|
84
73
|
setUid: (state, action) => {
|
|
85
74
|
state.context.uid = action.payload;
|
|
@@ -3041,22 +3030,24 @@ var EnvStore = class {
|
|
|
3041
3030
|
const dispatch = envStore.dispatch;
|
|
3042
3031
|
let env2 = {
|
|
3043
3032
|
...envConfig,
|
|
3044
|
-
localStorageUtils: this.localStorageUtils,
|
|
3045
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3033
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3034
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3046
3035
|
};
|
|
3047
3036
|
const requests = axiosClient.init(env2);
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3037
|
+
dispatch(
|
|
3038
|
+
setEnv({
|
|
3039
|
+
baseUrl: envConfig?.baseUrl ?? "",
|
|
3040
|
+
context: envConfig?.context ?? {},
|
|
3041
|
+
defaultCompany: envConfig?.defaultCompany ?? {},
|
|
3042
|
+
config: envConfig?.config ?? null,
|
|
3043
|
+
companies: envConfig?.companies ?? [],
|
|
3044
|
+
user: envConfig?.user ?? {},
|
|
3045
|
+
db: envConfig?.db ?? "",
|
|
3046
|
+
refreshTokenEndpoint: envConfig?.refreshTokenEndpoint ?? "",
|
|
3047
|
+
requests: requests ?? null
|
|
3048
|
+
})
|
|
3049
|
+
);
|
|
3050
|
+
this.setup();
|
|
3060
3051
|
}
|
|
3061
3052
|
setUid(uid) {
|
|
3062
3053
|
const dispatch = envStore.dispatch;
|
package/dist/services.js
CHANGED
|
@@ -290,18 +290,7 @@ var envSlice = (0, import_toolkit2.createSlice)({
|
|
|
290
290
|
initialState: initialState2,
|
|
291
291
|
reducers: {
|
|
292
292
|
setEnv: (state, action) => {
|
|
293
|
-
|
|
294
|
-
console.log("env in slice", action.payload);
|
|
295
|
-
state.baseUrl = action.payload.baseUrl;
|
|
296
|
-
state.requests = action.payload.requests;
|
|
297
|
-
state.companies = action.payload.companies;
|
|
298
|
-
state.user = action.payload.user;
|
|
299
|
-
state.db = action.payload.db;
|
|
300
|
-
state.refreshTokenEndpoint = action.payload.refreshTokenEndpoint;
|
|
301
|
-
state.config = action.payload.config;
|
|
302
|
-
state.envFile = action.payload.envFile;
|
|
303
|
-
state.defaultCompany = action.payload.defaultCompany;
|
|
304
|
-
state.context = action.payload.context;
|
|
293
|
+
Object.assign(state, action.payload);
|
|
305
294
|
},
|
|
306
295
|
setUid: (state, action) => {
|
|
307
296
|
state.context.uid = action.payload;
|
|
@@ -3083,22 +3072,24 @@ var EnvStore = class {
|
|
|
3083
3072
|
const dispatch = envStore.dispatch;
|
|
3084
3073
|
let env2 = {
|
|
3085
3074
|
...envConfig,
|
|
3086
|
-
localStorageUtils: this.localStorageUtils,
|
|
3087
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3075
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3076
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3088
3077
|
};
|
|
3089
3078
|
const requests = axiosClient.init(env2);
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3079
|
+
dispatch(
|
|
3080
|
+
setEnv({
|
|
3081
|
+
baseUrl: envConfig?.baseUrl ?? "",
|
|
3082
|
+
context: envConfig?.context ?? {},
|
|
3083
|
+
defaultCompany: envConfig?.defaultCompany ?? {},
|
|
3084
|
+
config: envConfig?.config ?? null,
|
|
3085
|
+
companies: envConfig?.companies ?? [],
|
|
3086
|
+
user: envConfig?.user ?? {},
|
|
3087
|
+
db: envConfig?.db ?? "",
|
|
3088
|
+
refreshTokenEndpoint: envConfig?.refreshTokenEndpoint ?? "",
|
|
3089
|
+
requests: requests ?? null
|
|
3090
|
+
})
|
|
3091
|
+
);
|
|
3092
|
+
this.setup();
|
|
3102
3093
|
}
|
|
3103
3094
|
setUid(uid) {
|
|
3104
3095
|
const dispatch = envStore.dispatch;
|
package/dist/services.mjs
CHANGED
|
@@ -246,18 +246,7 @@ var envSlice = createSlice2({
|
|
|
246
246
|
initialState: initialState2,
|
|
247
247
|
reducers: {
|
|
248
248
|
setEnv: (state, action) => {
|
|
249
|
-
|
|
250
|
-
console.log("env in slice", action.payload);
|
|
251
|
-
state.baseUrl = action.payload.baseUrl;
|
|
252
|
-
state.requests = action.payload.requests;
|
|
253
|
-
state.companies = action.payload.companies;
|
|
254
|
-
state.user = action.payload.user;
|
|
255
|
-
state.db = action.payload.db;
|
|
256
|
-
state.refreshTokenEndpoint = action.payload.refreshTokenEndpoint;
|
|
257
|
-
state.config = action.payload.config;
|
|
258
|
-
state.envFile = action.payload.envFile;
|
|
259
|
-
state.defaultCompany = action.payload.defaultCompany;
|
|
260
|
-
state.context = action.payload.context;
|
|
249
|
+
Object.assign(state, action.payload);
|
|
261
250
|
},
|
|
262
251
|
setUid: (state, action) => {
|
|
263
252
|
state.context.uid = action.payload;
|
|
@@ -3039,22 +3028,24 @@ var EnvStore = class {
|
|
|
3039
3028
|
const dispatch = envStore.dispatch;
|
|
3040
3029
|
let env2 = {
|
|
3041
3030
|
...envConfig,
|
|
3042
|
-
localStorageUtils: this.localStorageUtils,
|
|
3043
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3031
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3032
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3044
3033
|
};
|
|
3045
3034
|
const requests = axiosClient.init(env2);
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3035
|
+
dispatch(
|
|
3036
|
+
setEnv({
|
|
3037
|
+
baseUrl: envConfig?.baseUrl ?? "",
|
|
3038
|
+
context: envConfig?.context ?? {},
|
|
3039
|
+
defaultCompany: envConfig?.defaultCompany ?? {},
|
|
3040
|
+
config: envConfig?.config ?? null,
|
|
3041
|
+
companies: envConfig?.companies ?? [],
|
|
3042
|
+
user: envConfig?.user ?? {},
|
|
3043
|
+
db: envConfig?.db ?? "",
|
|
3044
|
+
refreshTokenEndpoint: envConfig?.refreshTokenEndpoint ?? "",
|
|
3045
|
+
requests: requests ?? null
|
|
3046
|
+
})
|
|
3047
|
+
);
|
|
3048
|
+
this.setup();
|
|
3058
3049
|
}
|
|
3059
3050
|
setUid(uid) {
|
|
3060
3051
|
const dispatch = envStore.dispatch;
|
package/dist/store.js
CHANGED
|
@@ -152,18 +152,7 @@ var envSlice = (0, import_toolkit2.createSlice)({
|
|
|
152
152
|
initialState: initialState2,
|
|
153
153
|
reducers: {
|
|
154
154
|
setEnv: (state, action) => {
|
|
155
|
-
|
|
156
|
-
console.log("env in slice", action.payload);
|
|
157
|
-
state.baseUrl = action.payload.baseUrl;
|
|
158
|
-
state.requests = action.payload.requests;
|
|
159
|
-
state.companies = action.payload.companies;
|
|
160
|
-
state.user = action.payload.user;
|
|
161
|
-
state.db = action.payload.db;
|
|
162
|
-
state.refreshTokenEndpoint = action.payload.refreshTokenEndpoint;
|
|
163
|
-
state.config = action.payload.config;
|
|
164
|
-
state.envFile = action.payload.envFile;
|
|
165
|
-
state.defaultCompany = action.payload.defaultCompany;
|
|
166
|
-
state.context = action.payload.context;
|
|
155
|
+
Object.assign(state, action.payload);
|
|
167
156
|
},
|
|
168
157
|
setUid: (state, action) => {
|
|
169
158
|
state.context.uid = action.payload;
|
package/dist/store.mjs
CHANGED
|
@@ -48,18 +48,7 @@ var envSlice = createSlice2({
|
|
|
48
48
|
initialState: initialState2,
|
|
49
49
|
reducers: {
|
|
50
50
|
setEnv: (state, action) => {
|
|
51
|
-
|
|
52
|
-
console.log("env in slice", action.payload);
|
|
53
|
-
state.baseUrl = action.payload.baseUrl;
|
|
54
|
-
state.requests = action.payload.requests;
|
|
55
|
-
state.companies = action.payload.companies;
|
|
56
|
-
state.user = action.payload.user;
|
|
57
|
-
state.db = action.payload.db;
|
|
58
|
-
state.refreshTokenEndpoint = action.payload.refreshTokenEndpoint;
|
|
59
|
-
state.config = action.payload.config;
|
|
60
|
-
state.envFile = action.payload.envFile;
|
|
61
|
-
state.defaultCompany = action.payload.defaultCompany;
|
|
62
|
-
state.context = action.payload.context;
|
|
51
|
+
Object.assign(state, action.payload);
|
|
63
52
|
},
|
|
64
53
|
setUid: (state, action) => {
|
|
65
54
|
state.context.uid = action.payload;
|