@fctc/interface-logic 1.6.4 → 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 -17
- package/dist/environment.mjs +17 -17
- package/dist/hooks.js +17 -17
- package/dist/hooks.mjs +17 -17
- package/dist/provider.js +17 -17
- package/dist/provider.mjs +17 -17
- package/dist/services.js +17 -17
- package/dist/services.mjs +17 -17
- package/dist/store.js +1 -3
- package/dist/store.mjs +1 -3
- package/package.json +1 -1
package/dist/environment.js
CHANGED
|
@@ -255,9 +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 = { ...state, ...action.payload };
|
|
258
|
+
Object.assign(state, action.payload);
|
|
261
259
|
},
|
|
262
260
|
setUid: (state, action) => {
|
|
263
261
|
state.context.uid = action.payload;
|
|
@@ -3034,22 +3032,24 @@ var EnvStore = class {
|
|
|
3034
3032
|
const dispatch = envStore.dispatch;
|
|
3035
3033
|
let env2 = {
|
|
3036
3034
|
...envConfig,
|
|
3037
|
-
localStorageUtils: this.localStorageUtils,
|
|
3038
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3035
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3036
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3039
3037
|
};
|
|
3040
3038
|
const requests = axiosClient.init(env2);
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
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();
|
|
3053
3053
|
}
|
|
3054
3054
|
setUid(uid) {
|
|
3055
3055
|
const dispatch = envStore.dispatch;
|
package/dist/environment.mjs
CHANGED
|
@@ -216,9 +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 = { ...state, ...action.payload };
|
|
219
|
+
Object.assign(state, action.payload);
|
|
222
220
|
},
|
|
223
221
|
setUid: (state, action) => {
|
|
224
222
|
state.context.uid = action.payload;
|
|
@@ -2995,22 +2993,24 @@ var EnvStore = class {
|
|
|
2995
2993
|
const dispatch = envStore.dispatch;
|
|
2996
2994
|
let env2 = {
|
|
2997
2995
|
...envConfig,
|
|
2998
|
-
localStorageUtils: this.localStorageUtils,
|
|
2999
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
2996
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
2997
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3000
2998
|
};
|
|
3001
2999
|
const requests = axiosClient.init(env2);
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
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();
|
|
3014
3014
|
}
|
|
3015
3015
|
setUid(uid) {
|
|
3016
3016
|
const dispatch = envStore.dispatch;
|
package/dist/hooks.js
CHANGED
|
@@ -353,9 +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 = { ...state, ...action.payload };
|
|
356
|
+
Object.assign(state, action.payload);
|
|
359
357
|
},
|
|
360
358
|
setUid: (state, action) => {
|
|
361
359
|
state.context.uid = action.payload;
|
|
@@ -3159,22 +3157,24 @@ var EnvStore = class {
|
|
|
3159
3157
|
const dispatch = envStore.dispatch;
|
|
3160
3158
|
let env2 = {
|
|
3161
3159
|
...envConfig,
|
|
3162
|
-
localStorageUtils: this.localStorageUtils,
|
|
3163
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3160
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3161
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3164
3162
|
};
|
|
3165
3163
|
const requests = axiosClient.init(env2);
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
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();
|
|
3178
3178
|
}
|
|
3179
3179
|
setUid(uid) {
|
|
3180
3180
|
const dispatch = envStore.dispatch;
|
package/dist/hooks.mjs
CHANGED
|
@@ -249,9 +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 = { ...state, ...action.payload };
|
|
252
|
+
Object.assign(state, action.payload);
|
|
255
253
|
},
|
|
256
254
|
setUid: (state, action) => {
|
|
257
255
|
state.context.uid = action.payload;
|
|
@@ -3055,22 +3053,24 @@ var EnvStore = class {
|
|
|
3055
3053
|
const dispatch = envStore.dispatch;
|
|
3056
3054
|
let env2 = {
|
|
3057
3055
|
...envConfig,
|
|
3058
|
-
localStorageUtils: this.localStorageUtils,
|
|
3059
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3056
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3057
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3060
3058
|
};
|
|
3061
3059
|
const requests = axiosClient.init(env2);
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
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();
|
|
3074
3074
|
}
|
|
3075
3075
|
setUid(uid) {
|
|
3076
3076
|
const dispatch = envStore.dispatch;
|
package/dist/provider.js
CHANGED
|
@@ -106,9 +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 = { ...state, ...action.payload };
|
|
109
|
+
Object.assign(state, action.payload);
|
|
112
110
|
},
|
|
113
111
|
setUid: (state, action) => {
|
|
114
112
|
state.context.uid = action.payload;
|
|
@@ -3070,22 +3068,24 @@ var EnvStore = class {
|
|
|
3070
3068
|
const dispatch = envStore.dispatch;
|
|
3071
3069
|
let env2 = {
|
|
3072
3070
|
...envConfig,
|
|
3073
|
-
localStorageUtils: this.localStorageUtils,
|
|
3074
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3071
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3072
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3075
3073
|
};
|
|
3076
3074
|
const requests = axiosClient.init(env2);
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
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();
|
|
3089
3089
|
}
|
|
3090
3090
|
setUid(uid) {
|
|
3091
3091
|
const dispatch = envStore.dispatch;
|
package/dist/provider.mjs
CHANGED
|
@@ -68,9 +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 = { ...state, ...action.payload };
|
|
71
|
+
Object.assign(state, action.payload);
|
|
74
72
|
},
|
|
75
73
|
setUid: (state, action) => {
|
|
76
74
|
state.context.uid = action.payload;
|
|
@@ -3032,22 +3030,24 @@ var EnvStore = class {
|
|
|
3032
3030
|
const dispatch = envStore.dispatch;
|
|
3033
3031
|
let env2 = {
|
|
3034
3032
|
...envConfig,
|
|
3035
|
-
localStorageUtils: this.localStorageUtils,
|
|
3036
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3033
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3034
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3037
3035
|
};
|
|
3038
3036
|
const requests = axiosClient.init(env2);
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
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();
|
|
3051
3051
|
}
|
|
3052
3052
|
setUid(uid) {
|
|
3053
3053
|
const dispatch = envStore.dispatch;
|
package/dist/services.js
CHANGED
|
@@ -290,9 +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 = { ...state, ...action.payload };
|
|
293
|
+
Object.assign(state, action.payload);
|
|
296
294
|
},
|
|
297
295
|
setUid: (state, action) => {
|
|
298
296
|
state.context.uid = action.payload;
|
|
@@ -3074,22 +3072,24 @@ var EnvStore = class {
|
|
|
3074
3072
|
const dispatch = envStore.dispatch;
|
|
3075
3073
|
let env2 = {
|
|
3076
3074
|
...envConfig,
|
|
3077
|
-
localStorageUtils: this.localStorageUtils,
|
|
3078
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3075
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3076
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3079
3077
|
};
|
|
3080
3078
|
const requests = axiosClient.init(env2);
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
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();
|
|
3093
3093
|
}
|
|
3094
3094
|
setUid(uid) {
|
|
3095
3095
|
const dispatch = envStore.dispatch;
|
package/dist/services.mjs
CHANGED
|
@@ -246,9 +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 = { ...state, ...action.payload };
|
|
249
|
+
Object.assign(state, action.payload);
|
|
252
250
|
},
|
|
253
251
|
setUid: (state, action) => {
|
|
254
252
|
state.context.uid = action.payload;
|
|
@@ -3030,22 +3028,24 @@ var EnvStore = class {
|
|
|
3030
3028
|
const dispatch = envStore.dispatch;
|
|
3031
3029
|
let env2 = {
|
|
3032
3030
|
...envConfig,
|
|
3033
|
-
localStorageUtils: this.localStorageUtils,
|
|
3034
|
-
sessionStorageUtils: this.sessionStorageUtils
|
|
3031
|
+
localStorageUtils: { ...this.localStorageUtils },
|
|
3032
|
+
sessionStorageUtils: { ...this.sessionStorageUtils }
|
|
3035
3033
|
};
|
|
3036
3034
|
const requests = axiosClient.init(env2);
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
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();
|
|
3049
3049
|
}
|
|
3050
3050
|
setUid(uid) {
|
|
3051
3051
|
const dispatch = envStore.dispatch;
|
package/dist/store.js
CHANGED
|
@@ -152,9 +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 = { ...state, ...action.payload };
|
|
155
|
+
Object.assign(state, action.payload);
|
|
158
156
|
},
|
|
159
157
|
setUid: (state, action) => {
|
|
160
158
|
state.context.uid = action.payload;
|
package/dist/store.mjs
CHANGED
|
@@ -48,9 +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 = { ...state, ...action.payload };
|
|
51
|
+
Object.assign(state, action.payload);
|
|
54
52
|
},
|
|
55
53
|
setUid: (state, action) => {
|
|
56
54
|
state.context.uid = action.payload;
|