@fctc/interface-logic 4.9.5 → 4.9.7

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/configs.js CHANGED
@@ -2261,6 +2261,7 @@ var axiosClient = {
2261
2261
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils;
2262
2262
  const db = config?.db;
2263
2263
  const database = config?.config?.database;
2264
+ const isSupabaseMode = config?.isSupaMode;
2264
2265
  let isRefreshing = false;
2265
2266
  let failedQueue = [];
2266
2267
  const processQueue = (error, token = null) => {
@@ -2522,7 +2523,7 @@ var axiosClient = {
2522
2523
  return url + (db2 ? "?db=" + db2 : "");
2523
2524
  }
2524
2525
  const getBaseUrl = (baseUrl, hardService) => {
2525
- return `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
2526
+ return isSupabaseMode ? "" : `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
2526
2527
  };
2527
2528
  const getHeaders = (header) => {
2528
2529
  const headers = {
package/dist/configs.mjs CHANGED
@@ -2225,6 +2225,7 @@ var axiosClient = {
2225
2225
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils;
2226
2226
  const db = config?.db;
2227
2227
  const database = config?.config?.database;
2228
+ const isSupabaseMode = config?.isSupaMode;
2228
2229
  let isRefreshing = false;
2229
2230
  let failedQueue = [];
2230
2231
  const processQueue = (error, token = null) => {
@@ -2486,7 +2487,7 @@ var axiosClient = {
2486
2487
  return url + (db2 ? "?db=" + db2 : "");
2487
2488
  }
2488
2489
  const getBaseUrl = (baseUrl, hardService) => {
2489
- return `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
2490
+ return isSupabaseMode ? "" : `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
2490
2491
  };
2491
2492
  const getHeaders = (header) => {
2492
2493
  const headers = {
@@ -63,6 +63,7 @@ declare enum UriConstants {
63
63
  GRANT_ACCESS = "/grant-access",
64
64
  TOKEN_BY_CODE = "/token",
65
65
  LOGOUT = "/logout",
66
+ SUPABASE_LOGIN_PATH = "/api/v2/auth/login",
66
67
  CREATE_UPDATE = "/create_update",
67
68
  SEARCH_READ = "/search_read",
68
69
  CREATE_PATH = "/create",
@@ -63,6 +63,7 @@ declare enum UriConstants {
63
63
  GRANT_ACCESS = "/grant-access",
64
64
  TOKEN_BY_CODE = "/token",
65
65
  LOGOUT = "/logout",
66
+ SUPABASE_LOGIN_PATH = "/api/v2/auth/login",
66
67
  CREATE_UPDATE = "/create_update",
67
68
  SEARCH_READ = "/search_read",
68
69
  CREATE_PATH = "/create",
package/dist/constants.js CHANGED
@@ -109,6 +109,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
109
109
  UriConstants2["GRANT_ACCESS"] = "/grant-access";
110
110
  UriConstants2["TOKEN_BY_CODE"] = "/token";
111
111
  UriConstants2["LOGOUT"] = "/logout";
112
+ UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
112
113
  UriConstants2["CREATE_UPDATE"] = "/create_update";
113
114
  UriConstants2["SEARCH_READ"] = "/search_read";
114
115
  UriConstants2["CREATE_PATH"] = "/create";
@@ -68,6 +68,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
68
68
  UriConstants2["GRANT_ACCESS"] = "/grant-access";
69
69
  UriConstants2["TOKEN_BY_CODE"] = "/token";
70
70
  UriConstants2["LOGOUT"] = "/logout";
71
+ UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
71
72
  UriConstants2["CREATE_UPDATE"] = "/create_update";
72
73
  UriConstants2["SEARCH_READ"] = "/search_read";
73
74
  UriConstants2["CREATE_PATH"] = "/create";
@@ -2263,6 +2263,7 @@ var axiosClient = {
2263
2263
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils;
2264
2264
  const db = config?.db;
2265
2265
  const database = config?.config?.database;
2266
+ const isSupabaseMode = config?.isSupaMode;
2266
2267
  let isRefreshing = false;
2267
2268
  let failedQueue = [];
2268
2269
  const processQueue = (error, token = null) => {
@@ -2524,7 +2525,7 @@ var axiosClient = {
2524
2525
  return url + (db2 ? "?db=" + db2 : "");
2525
2526
  }
2526
2527
  const getBaseUrl = (baseUrl, hardService) => {
2527
- return `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
2528
+ return isSupabaseMode ? "" : `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
2528
2529
  };
2529
2530
  const getHeaders = (header) => {
2530
2531
  const headers = {
@@ -2225,6 +2225,7 @@ var axiosClient = {
2225
2225
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils;
2226
2226
  const db = config?.db;
2227
2227
  const database = config?.config?.database;
2228
+ const isSupabaseMode = config?.isSupaMode;
2228
2229
  let isRefreshing = false;
2229
2230
  let failedQueue = [];
2230
2231
  const processQueue = (error, token = null) => {
@@ -2486,7 +2487,7 @@ var axiosClient = {
2486
2487
  return url + (db2 ? "?db=" + db2 : "");
2487
2488
  }
2488
2489
  const getBaseUrl = (baseUrl, hardService) => {
2489
- return `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
2490
+ return isSupabaseMode ? "" : `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
2490
2491
  };
2491
2492
  const getHeaders = (header) => {
2492
2493
  const headers = {
package/dist/hooks.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, T as TThreadData, C as ContextApi, V as ViewData, c as GetSelectionType, f as GetViewParams } from './view-type-CfcWWR0w.mjs';
3
- import * as _supabase_auth_js from '@supabase/auth-js';
4
3
  import { B as BaseModelInit } from './base-model-type-DD8uZnDP.mjs';
5
4
  import { BaseModel } from './models.mjs';
6
5
 
@@ -26,24 +25,9 @@ declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any,
26
25
  type LoginTenantUserBody = {
27
26
  email: string;
28
27
  password: string;
28
+ tenantId: string;
29
29
  };
30
- declare const useLoginTenantUser: () => _tanstack_react_query.UseMutationResult<{
31
- data: null;
32
- error: {
33
- message: string;
34
- };
35
- } | {
36
- data: {
37
- user: _supabase_auth_js.User;
38
- session: _supabase_auth_js.Session;
39
- weakPassword?: _supabase_auth_js.WeakPassword;
40
- } | {
41
- user: null;
42
- session: null;
43
- weakPassword?: null | undefined;
44
- };
45
- error: _supabase_auth_js.AuthError | null;
46
- }, Error, LoginTenantUserBody, unknown>;
30
+ declare const useLoginTenantUser: () => _tanstack_react_query.UseMutationResult<any, Error, LoginTenantUserBody, unknown>;
47
31
 
48
32
  declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
49
33
 
@@ -517,10 +501,7 @@ declare const useGetPartnerTitle: () => _tanstack_react_query.UseMutationResult<
517
501
  withContext?: any;
518
502
  }, unknown>;
519
503
 
520
- declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error, {
521
- service?: string;
522
- extraHeaders?: any;
523
- }, unknown>;
504
+ declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
524
505
 
525
506
  declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
526
507
 
package/dist/hooks.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, T as TThreadData, C as ContextApi, V as ViewData, c as GetSelectionType, f as GetViewParams } from './view-type-CfcWWR0w.js';
3
- import * as _supabase_auth_js from '@supabase/auth-js';
4
3
  import { B as BaseModelInit } from './base-model-type-DD8uZnDP.js';
5
4
  import { BaseModel } from './models.js';
6
5
 
@@ -26,24 +25,9 @@ declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any,
26
25
  type LoginTenantUserBody = {
27
26
  email: string;
28
27
  password: string;
28
+ tenantId: string;
29
29
  };
30
- declare const useLoginTenantUser: () => _tanstack_react_query.UseMutationResult<{
31
- data: null;
32
- error: {
33
- message: string;
34
- };
35
- } | {
36
- data: {
37
- user: _supabase_auth_js.User;
38
- session: _supabase_auth_js.Session;
39
- weakPassword?: _supabase_auth_js.WeakPassword;
40
- } | {
41
- user: null;
42
- session: null;
43
- weakPassword?: null | undefined;
44
- };
45
- error: _supabase_auth_js.AuthError | null;
46
- }, Error, LoginTenantUserBody, unknown>;
30
+ declare const useLoginTenantUser: () => _tanstack_react_query.UseMutationResult<any, Error, LoginTenantUserBody, unknown>;
47
31
 
48
32
  declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
49
33
 
@@ -517,10 +501,7 @@ declare const useGetPartnerTitle: () => _tanstack_react_query.UseMutationResult<
517
501
  withContext?: any;
518
502
  }, unknown>;
519
503
 
520
- declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error, {
521
- service?: string;
522
- extraHeaders?: any;
523
- }, unknown>;
504
+ declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
524
505
 
525
506
  declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
526
507
 
package/dist/hooks.js CHANGED
@@ -208,6 +208,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
208
208
  UriConstants2["GRANT_ACCESS"] = "/grant-access";
209
209
  UriConstants2["TOKEN_BY_CODE"] = "/token";
210
210
  UriConstants2["LOGOUT"] = "/logout";
211
+ UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
211
212
  UriConstants2["CREATE_UPDATE"] = "/create_update";
212
213
  UriConstants2["SEARCH_READ"] = "/search_read";
213
214
  UriConstants2["CREATE_PATH"] = "/create";
@@ -3327,23 +3328,9 @@ function useActionService() {
3327
3328
  },
3328
3329
  [env]
3329
3330
  );
3330
- const actionServerHome = (0, import_react8.useCallback)(
3331
- async (service, extraHeaders) => {
3332
- return await env.requests.get(
3333
- "/action_server_home" /* ACTION_SERVER_HOME */,
3334
- {
3335
- headers: extraHeaders ? {
3336
- ...extraHeaders,
3337
- "Content-Type": "application/json"
3338
- } : {
3339
- "Content-Type": "application/json"
3340
- }
3341
- },
3342
- service
3343
- );
3344
- },
3345
- [env]
3346
- );
3331
+ const actionServerHome = (0, import_react8.useCallback)(async () => {
3332
+ return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
3333
+ }, [env]);
3347
3334
  return {
3348
3335
  loadAction,
3349
3336
  callButton,
@@ -3389,19 +3376,18 @@ function useAuthService() {
3389
3376
  );
3390
3377
  const loginTenantUser = (0, import_react9.useCallback)(
3391
3378
  async (body) => {
3392
- if (!supabase) {
3393
- return {
3394
- data: null,
3395
- error: { message: "Supabase client is not initialized" }
3396
- };
3397
- }
3398
- const { data, error } = await supabase.auth.signInWithPassword({
3379
+ const payload = {
3399
3380
  email: body.email,
3400
- password: body.password
3381
+ password: body.password,
3382
+ tenant_id: body.tenantId
3383
+ };
3384
+ return env?.requests?.post("/api/v2/auth/login" /* SUPABASE_LOGIN_PATH */, payload, {
3385
+ headers: {
3386
+ "Content-Type": "application/json"
3387
+ }
3401
3388
  });
3402
- return { data, error };
3403
3389
  },
3404
- [supabase]
3390
+ [env]
3405
3391
  );
3406
3392
  const forgotPassword = (0, import_react9.useCallback)(
3407
3393
  async (email) => {
@@ -7424,7 +7410,8 @@ var useLoginTenantUser = () => {
7424
7410
  mutationFn: (data) => {
7425
7411
  return loginTenantUser({
7426
7412
  email: data.email,
7427
- password: data.password
7413
+ password: data.password,
7414
+ tenantId: data.tenantId
7428
7415
  });
7429
7416
  }
7430
7417
  });
@@ -9009,10 +8996,7 @@ var import_react_query83 = require("@tanstack/react-query");
9009
8996
  var useActionServerHome = () => {
9010
8997
  const { actionServerHome } = useActionService();
9011
8998
  return (0, import_react_query83.useMutation)({
9012
- mutationFn: ({
9013
- service,
9014
- extraHeaders
9015
- }) => actionServerHome(service, extraHeaders)
8999
+ mutationFn: () => actionServerHome()
9016
9000
  });
9017
9001
  };
9018
9002
  var use_action_server_home_default = useActionServerHome;
package/dist/hooks.mjs CHANGED
@@ -35,6 +35,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
35
35
  UriConstants2["GRANT_ACCESS"] = "/grant-access";
36
36
  UriConstants2["TOKEN_BY_CODE"] = "/token";
37
37
  UriConstants2["LOGOUT"] = "/logout";
38
+ UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
38
39
  UriConstants2["CREATE_UPDATE"] = "/create_update";
39
40
  UriConstants2["SEARCH_READ"] = "/search_read";
40
41
  UriConstants2["CREATE_PATH"] = "/create";
@@ -3154,23 +3155,9 @@ function useActionService() {
3154
3155
  },
3155
3156
  [env]
3156
3157
  );
3157
- const actionServerHome = useCallback2(
3158
- async (service, extraHeaders) => {
3159
- return await env.requests.get(
3160
- "/action_server_home" /* ACTION_SERVER_HOME */,
3161
- {
3162
- headers: extraHeaders ? {
3163
- ...extraHeaders,
3164
- "Content-Type": "application/json"
3165
- } : {
3166
- "Content-Type": "application/json"
3167
- }
3168
- },
3169
- service
3170
- );
3171
- },
3172
- [env]
3173
- );
3158
+ const actionServerHome = useCallback2(async () => {
3159
+ return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
3160
+ }, [env]);
3174
3161
  return {
3175
3162
  loadAction,
3176
3163
  callButton,
@@ -3216,19 +3203,18 @@ function useAuthService() {
3216
3203
  );
3217
3204
  const loginTenantUser = useCallback3(
3218
3205
  async (body) => {
3219
- if (!supabase) {
3220
- return {
3221
- data: null,
3222
- error: { message: "Supabase client is not initialized" }
3223
- };
3224
- }
3225
- const { data, error } = await supabase.auth.signInWithPassword({
3206
+ const payload = {
3226
3207
  email: body.email,
3227
- password: body.password
3208
+ password: body.password,
3209
+ tenant_id: body.tenantId
3210
+ };
3211
+ return env?.requests?.post("/api/v2/auth/login" /* SUPABASE_LOGIN_PATH */, payload, {
3212
+ headers: {
3213
+ "Content-Type": "application/json"
3214
+ }
3228
3215
  });
3229
- return { data, error };
3230
3216
  },
3231
- [supabase]
3217
+ [env]
3232
3218
  );
3233
3219
  const forgotPassword = useCallback3(
3234
3220
  async (email) => {
@@ -7251,7 +7237,8 @@ var useLoginTenantUser = () => {
7251
7237
  mutationFn: (data) => {
7252
7238
  return loginTenantUser({
7253
7239
  email: data.email,
7254
- password: data.password
7240
+ password: data.password,
7241
+ tenantId: data.tenantId
7255
7242
  });
7256
7243
  }
7257
7244
  });
@@ -8836,10 +8823,7 @@ import { useMutation as useMutation58 } from "@tanstack/react-query";
8836
8823
  var useActionServerHome = () => {
8837
8824
  const { actionServerHome } = useActionService();
8838
8825
  return useMutation58({
8839
- mutationFn: ({
8840
- service,
8841
- extraHeaders
8842
- }) => actionServerHome(service, extraHeaders)
8826
+ mutationFn: () => actionServerHome()
8843
8827
  });
8844
8828
  };
8845
8829
  var use_action_server_home_default = useActionServerHome;
package/dist/index.d.mts CHANGED
@@ -12,7 +12,6 @@ export { B as BaseModelInit } from './base-model-type-DD8uZnDP.mjs';
12
12
  export { BaseModel } from './models.mjs';
13
13
  import './local-storage-BPvoMGYJ.mjs';
14
14
  import '@tanstack/react-query';
15
- import '@supabase/auth-js';
16
15
  import 'react/jsx-runtime';
17
16
  import 'react';
18
17
  import '@supabase/supabase-js';
package/dist/index.d.ts CHANGED
@@ -12,7 +12,6 @@ export { B as BaseModelInit } from './base-model-type-DD8uZnDP.js';
12
12
  export { BaseModel } from './models.js';
13
13
  import './local-storage-BPvoMGYJ.js';
14
14
  import '@tanstack/react-query';
15
- import '@supabase/auth-js';
16
15
  import 'react/jsx-runtime';
17
16
  import 'react';
18
17
  import '@supabase/supabase-js';
package/dist/index.js CHANGED
@@ -399,6 +399,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
399
399
  UriConstants2["GRANT_ACCESS"] = "/grant-access";
400
400
  UriConstants2["TOKEN_BY_CODE"] = "/token";
401
401
  UriConstants2["LOGOUT"] = "/logout";
402
+ UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
402
403
  UriConstants2["CREATE_UPDATE"] = "/create_update";
403
404
  UriConstants2["SEARCH_READ"] = "/search_read";
404
405
  UriConstants2["CREATE_PATH"] = "/create";
@@ -3654,6 +3655,7 @@ var axiosClient = {
3654
3655
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils;
3655
3656
  const db = config?.db;
3656
3657
  const database = config?.config?.database;
3658
+ const isSupabaseMode = config?.isSupaMode;
3657
3659
  let isRefreshing = false;
3658
3660
  let failedQueue = [];
3659
3661
  const processQueue = (error, token = null) => {
@@ -3915,7 +3917,7 @@ var axiosClient = {
3915
3917
  return url + (db2 ? "?db=" + db2 : "");
3916
3918
  }
3917
3919
  const getBaseUrl = (baseUrl, hardService) => {
3918
- return `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
3920
+ return isSupabaseMode ? "" : `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
3919
3921
  };
3920
3922
  const getHeaders = (header) => {
3921
3923
  const headers = {
@@ -5386,23 +5388,9 @@ function useActionService() {
5386
5388
  },
5387
5389
  [env2]
5388
5390
  );
5389
- const actionServerHome = (0, import_react8.useCallback)(
5390
- async (service, extraHeaders) => {
5391
- return await env2.requests.get(
5392
- "/action_server_home" /* ACTION_SERVER_HOME */,
5393
- {
5394
- headers: extraHeaders ? {
5395
- ...extraHeaders,
5396
- "Content-Type": "application/json"
5397
- } : {
5398
- "Content-Type": "application/json"
5399
- }
5400
- },
5401
- service
5402
- );
5403
- },
5404
- [env2]
5405
- );
5391
+ const actionServerHome = (0, import_react8.useCallback)(async () => {
5392
+ return env2?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
5393
+ }, [env2]);
5406
5394
  return {
5407
5395
  loadAction,
5408
5396
  callButton,
@@ -5448,19 +5436,18 @@ function useAuthService() {
5448
5436
  );
5449
5437
  const loginTenantUser = (0, import_react9.useCallback)(
5450
5438
  async (body) => {
5451
- if (!supabase) {
5452
- return {
5453
- data: null,
5454
- error: { message: "Supabase client is not initialized" }
5455
- };
5456
- }
5457
- const { data, error } = await supabase.auth.signInWithPassword({
5439
+ const payload = {
5458
5440
  email: body.email,
5459
- password: body.password
5441
+ password: body.password,
5442
+ tenant_id: body.tenantId
5443
+ };
5444
+ return env2?.requests?.post("/api/v2/auth/login" /* SUPABASE_LOGIN_PATH */, payload, {
5445
+ headers: {
5446
+ "Content-Type": "application/json"
5447
+ }
5460
5448
  });
5461
- return { data, error };
5462
5449
  },
5463
- [supabase]
5450
+ [env2]
5464
5451
  );
5465
5452
  const forgotPassword = (0, import_react9.useCallback)(
5466
5453
  async (email) => {
@@ -9483,7 +9470,8 @@ var useLoginTenantUser = () => {
9483
9470
  mutationFn: (data) => {
9484
9471
  return loginTenantUser({
9485
9472
  email: data.email,
9486
- password: data.password
9473
+ password: data.password,
9474
+ tenantId: data.tenantId
9487
9475
  });
9488
9476
  }
9489
9477
  });
@@ -11068,10 +11056,7 @@ var import_react_query83 = require("@tanstack/react-query");
11068
11056
  var useActionServerHome = () => {
11069
11057
  const { actionServerHome } = useActionService();
11070
11058
  return (0, import_react_query83.useMutation)({
11071
- mutationFn: ({
11072
- service,
11073
- extraHeaders
11074
- }) => actionServerHome(service, extraHeaders)
11059
+ mutationFn: () => actionServerHome()
11075
11060
  });
11076
11061
  };
11077
11062
  var use_action_server_home_default = useActionServerHome;
package/dist/index.mjs CHANGED
@@ -71,6 +71,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
71
71
  UriConstants2["GRANT_ACCESS"] = "/grant-access";
72
72
  UriConstants2["TOKEN_BY_CODE"] = "/token";
73
73
  UriConstants2["LOGOUT"] = "/logout";
74
+ UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
74
75
  UriConstants2["CREATE_UPDATE"] = "/create_update";
75
76
  UriConstants2["SEARCH_READ"] = "/search_read";
76
77
  UriConstants2["CREATE_PATH"] = "/create";
@@ -3326,6 +3327,7 @@ var axiosClient = {
3326
3327
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils;
3327
3328
  const db = config?.db;
3328
3329
  const database = config?.config?.database;
3330
+ const isSupabaseMode = config?.isSupaMode;
3329
3331
  let isRefreshing = false;
3330
3332
  let failedQueue = [];
3331
3333
  const processQueue = (error, token = null) => {
@@ -3587,7 +3589,7 @@ var axiosClient = {
3587
3589
  return url + (db2 ? "?db=" + db2 : "");
3588
3590
  }
3589
3591
  const getBaseUrl = (baseUrl, hardService) => {
3590
- return `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
3592
+ return isSupabaseMode ? "" : `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
3591
3593
  };
3592
3594
  const getHeaders = (header) => {
3593
3595
  const headers = {
@@ -5058,23 +5060,9 @@ function useActionService() {
5058
5060
  },
5059
5061
  [env2]
5060
5062
  );
5061
- const actionServerHome = useCallback2(
5062
- async (service, extraHeaders) => {
5063
- return await env2.requests.get(
5064
- "/action_server_home" /* ACTION_SERVER_HOME */,
5065
- {
5066
- headers: extraHeaders ? {
5067
- ...extraHeaders,
5068
- "Content-Type": "application/json"
5069
- } : {
5070
- "Content-Type": "application/json"
5071
- }
5072
- },
5073
- service
5074
- );
5075
- },
5076
- [env2]
5077
- );
5063
+ const actionServerHome = useCallback2(async () => {
5064
+ return env2?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
5065
+ }, [env2]);
5078
5066
  return {
5079
5067
  loadAction,
5080
5068
  callButton,
@@ -5120,19 +5108,18 @@ function useAuthService() {
5120
5108
  );
5121
5109
  const loginTenantUser = useCallback3(
5122
5110
  async (body) => {
5123
- if (!supabase) {
5124
- return {
5125
- data: null,
5126
- error: { message: "Supabase client is not initialized" }
5127
- };
5128
- }
5129
- const { data, error } = await supabase.auth.signInWithPassword({
5111
+ const payload = {
5130
5112
  email: body.email,
5131
- password: body.password
5113
+ password: body.password,
5114
+ tenant_id: body.tenantId
5115
+ };
5116
+ return env2?.requests?.post("/api/v2/auth/login" /* SUPABASE_LOGIN_PATH */, payload, {
5117
+ headers: {
5118
+ "Content-Type": "application/json"
5119
+ }
5132
5120
  });
5133
- return { data, error };
5134
5121
  },
5135
- [supabase]
5122
+ [env2]
5136
5123
  );
5137
5124
  const forgotPassword = useCallback3(
5138
5125
  async (email) => {
@@ -9155,7 +9142,8 @@ var useLoginTenantUser = () => {
9155
9142
  mutationFn: (data) => {
9156
9143
  return loginTenantUser({
9157
9144
  email: data.email,
9158
- password: data.password
9145
+ password: data.password,
9146
+ tenantId: data.tenantId
9159
9147
  });
9160
9148
  }
9161
9149
  });
@@ -10740,10 +10728,7 @@ import { useMutation as useMutation58 } from "@tanstack/react-query";
10740
10728
  var useActionServerHome = () => {
10741
10729
  const { actionServerHome } = useActionService();
10742
10730
  return useMutation58({
10743
- mutationFn: ({
10744
- service,
10745
- extraHeaders
10746
- }) => actionServerHome(service, extraHeaders)
10731
+ mutationFn: () => actionServerHome()
10747
10732
  });
10748
10733
  };
10749
10734
  var use_action_server_home_default = useActionServerHome;
@@ -5,7 +5,6 @@ import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToke
5
5
  import { SupabaseClient } from '@supabase/supabase-js';
6
6
  import '@tanstack/react-query';
7
7
  import './view-type-CfcWWR0w.mjs';
8
- import '@supabase/auth-js';
9
8
  import './base-model-type-DD8uZnDP.mjs';
10
9
  import './models.mjs';
11
10
 
@@ -5,7 +5,6 @@ import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToke
5
5
  import { SupabaseClient } from '@supabase/supabase-js';
6
6
  import '@tanstack/react-query';
7
7
  import './view-type-CfcWWR0w.js';
8
- import '@supabase/auth-js';
9
8
  import './base-model-type-DD8uZnDP.js';
10
9
  import './models.js';
11
10
 
package/dist/provider.js CHANGED
@@ -737,6 +737,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
737
737
  UriConstants2["GRANT_ACCESS"] = "/grant-access";
738
738
  UriConstants2["TOKEN_BY_CODE"] = "/token";
739
739
  UriConstants2["LOGOUT"] = "/logout";
740
+ UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
740
741
  UriConstants2["CREATE_UPDATE"] = "/create_update";
741
742
  UriConstants2["SEARCH_READ"] = "/search_read";
742
743
  UriConstants2["CREATE_PATH"] = "/create";
@@ -3277,23 +3278,9 @@ function useActionService() {
3277
3278
  },
3278
3279
  [env]
3279
3280
  );
3280
- const actionServerHome = (0, import_react3.useCallback)(
3281
- async (service, extraHeaders) => {
3282
- return await env.requests.get(
3283
- "/action_server_home" /* ACTION_SERVER_HOME */,
3284
- {
3285
- headers: extraHeaders ? {
3286
- ...extraHeaders,
3287
- "Content-Type": "application/json"
3288
- } : {
3289
- "Content-Type": "application/json"
3290
- }
3291
- },
3292
- service
3293
- );
3294
- },
3295
- [env]
3296
- );
3281
+ const actionServerHome = (0, import_react3.useCallback)(async () => {
3282
+ return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
3283
+ }, [env]);
3297
3284
  return {
3298
3285
  loadAction,
3299
3286
  callButton,
@@ -3377,19 +3364,18 @@ function useAuthService() {
3377
3364
  );
3378
3365
  const loginTenantUser = (0, import_react5.useCallback)(
3379
3366
  async (body) => {
3380
- if (!supabase) {
3381
- return {
3382
- data: null,
3383
- error: { message: "Supabase client is not initialized" }
3384
- };
3385
- }
3386
- const { data, error } = await supabase.auth.signInWithPassword({
3367
+ const payload = {
3387
3368
  email: body.email,
3388
- password: body.password
3369
+ password: body.password,
3370
+ tenant_id: body.tenantId
3371
+ };
3372
+ return env?.requests?.post("/api/v2/auth/login" /* SUPABASE_LOGIN_PATH */, payload, {
3373
+ headers: {
3374
+ "Content-Type": "application/json"
3375
+ }
3389
3376
  });
3390
- return { data, error };
3391
3377
  },
3392
- [supabase]
3378
+ [env]
3393
3379
  );
3394
3380
  const forgotPassword = (0, import_react5.useCallback)(
3395
3381
  async (email) => {
@@ -7379,6 +7365,7 @@ var axiosClient = {
7379
7365
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils;
7380
7366
  const db = config?.db;
7381
7367
  const database = config?.config?.database;
7368
+ const isSupabaseMode = config?.isSupaMode;
7382
7369
  let isRefreshing = false;
7383
7370
  let failedQueue = [];
7384
7371
  const processQueue = (error, token = null) => {
@@ -7640,7 +7627,7 @@ var axiosClient = {
7640
7627
  return url + (db2 ? "?db=" + db2 : "");
7641
7628
  }
7642
7629
  const getBaseUrl = (baseUrl, hardService) => {
7643
- return `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
7630
+ return isSupabaseMode ? "" : `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
7644
7631
  };
7645
7632
  const getHeaders = (header) => {
7646
7633
  const headers = {
@@ -7909,7 +7896,8 @@ var useLoginTenantUser = () => {
7909
7896
  mutationFn: (data) => {
7910
7897
  return loginTenantUser({
7911
7898
  email: data.email,
7912
- password: data.password
7899
+ password: data.password,
7900
+ tenantId: data.tenantId
7913
7901
  });
7914
7902
  }
7915
7903
  });
@@ -9494,10 +9482,7 @@ var import_react_query83 = require("@tanstack/react-query");
9494
9482
  var useActionServerHome = () => {
9495
9483
  const { actionServerHome } = useActionService();
9496
9484
  return (0, import_react_query83.useMutation)({
9497
- mutationFn: ({
9498
- service,
9499
- extraHeaders
9500
- }) => actionServerHome(service, extraHeaders)
9485
+ mutationFn: () => actionServerHome()
9501
9486
  });
9502
9487
  };
9503
9488
  var use_action_server_home_default = useActionServerHome;
package/dist/provider.mjs CHANGED
@@ -692,6 +692,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
692
692
  UriConstants2["GRANT_ACCESS"] = "/grant-access";
693
693
  UriConstants2["TOKEN_BY_CODE"] = "/token";
694
694
  UriConstants2["LOGOUT"] = "/logout";
695
+ UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
695
696
  UriConstants2["CREATE_UPDATE"] = "/create_update";
696
697
  UriConstants2["SEARCH_READ"] = "/search_read";
697
698
  UriConstants2["CREATE_PATH"] = "/create";
@@ -3232,23 +3233,9 @@ function useActionService() {
3232
3233
  },
3233
3234
  [env]
3234
3235
  );
3235
- const actionServerHome = useCallback(
3236
- async (service, extraHeaders) => {
3237
- return await env.requests.get(
3238
- "/action_server_home" /* ACTION_SERVER_HOME */,
3239
- {
3240
- headers: extraHeaders ? {
3241
- ...extraHeaders,
3242
- "Content-Type": "application/json"
3243
- } : {
3244
- "Content-Type": "application/json"
3245
- }
3246
- },
3247
- service
3248
- );
3249
- },
3250
- [env]
3251
- );
3236
+ const actionServerHome = useCallback(async () => {
3237
+ return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
3238
+ }, [env]);
3252
3239
  return {
3253
3240
  loadAction,
3254
3241
  callButton,
@@ -3332,19 +3319,18 @@ function useAuthService() {
3332
3319
  );
3333
3320
  const loginTenantUser = useCallback2(
3334
3321
  async (body) => {
3335
- if (!supabase) {
3336
- return {
3337
- data: null,
3338
- error: { message: "Supabase client is not initialized" }
3339
- };
3340
- }
3341
- const { data, error } = await supabase.auth.signInWithPassword({
3322
+ const payload = {
3342
3323
  email: body.email,
3343
- password: body.password
3324
+ password: body.password,
3325
+ tenant_id: body.tenantId
3326
+ };
3327
+ return env?.requests?.post("/api/v2/auth/login" /* SUPABASE_LOGIN_PATH */, payload, {
3328
+ headers: {
3329
+ "Content-Type": "application/json"
3330
+ }
3344
3331
  });
3345
- return { data, error };
3346
3332
  },
3347
- [supabase]
3333
+ [env]
3348
3334
  );
3349
3335
  const forgotPassword = useCallback2(
3350
3336
  async (email) => {
@@ -7334,6 +7320,7 @@ var axiosClient = {
7334
7320
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils;
7335
7321
  const db = config?.db;
7336
7322
  const database = config?.config?.database;
7323
+ const isSupabaseMode = config?.isSupaMode;
7337
7324
  let isRefreshing = false;
7338
7325
  let failedQueue = [];
7339
7326
  const processQueue = (error, token = null) => {
@@ -7595,7 +7582,7 @@ var axiosClient = {
7595
7582
  return url + (db2 ? "?db=" + db2 : "");
7596
7583
  }
7597
7584
  const getBaseUrl = (baseUrl, hardService) => {
7598
- return `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
7585
+ return isSupabaseMode ? "" : `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
7599
7586
  };
7600
7587
  const getHeaders = (header) => {
7601
7588
  const headers = {
@@ -7864,7 +7851,8 @@ var useLoginTenantUser = () => {
7864
7851
  mutationFn: (data) => {
7865
7852
  return loginTenantUser({
7866
7853
  email: data.email,
7867
- password: data.password
7854
+ password: data.password,
7855
+ tenantId: data.tenantId
7868
7856
  });
7869
7857
  }
7870
7858
  });
@@ -9449,10 +9437,7 @@ import { useMutation as useMutation58 } from "@tanstack/react-query";
9449
9437
  var useActionServerHome = () => {
9450
9438
  const { actionServerHome } = useActionService();
9451
9439
  return useMutation58({
9452
- mutationFn: ({
9453
- service,
9454
- extraHeaders
9455
- }) => actionServerHome(service, extraHeaders)
9440
+ mutationFn: () => actionServerHome()
9456
9441
  });
9457
9442
  };
9458
9443
  var use_action_server_home_default = useActionServerHome;
@@ -1,5 +1,4 @@
1
1
  import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, T as TThreadData, h as GetExternalTab, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-CfcWWR0w.mjs';
2
- import * as _supabase_auth_js from '@supabase/auth-js';
3
2
 
4
3
  declare function useActionService(): {
5
4
  loadAction: ({ idAction, context, service, xNode, searchParams, }: {
@@ -52,7 +51,7 @@ declare function useActionService(): {
52
51
  service?: string;
53
52
  xNode?: string;
54
53
  }) => Promise<any>;
55
- actionServerHome: (service?: string, extraHeaders?: any) => Promise<any>;
54
+ actionServerHome: () => Promise<any>;
56
55
  };
57
56
 
58
57
  declare function useAuthService(): {
@@ -60,23 +59,8 @@ declare function useAuthService(): {
60
59
  loginTenantUser: (body: {
61
60
  email: string;
62
61
  password: string;
63
- }) => Promise<{
64
- data: null;
65
- error: {
66
- message: string;
67
- };
68
- } | {
69
- data: {
70
- user: _supabase_auth_js.User;
71
- session: _supabase_auth_js.Session;
72
- weakPassword?: _supabase_auth_js.WeakPassword;
73
- } | {
74
- user: null;
75
- session: null;
76
- weakPassword?: null | undefined;
77
- };
78
- error: _supabase_auth_js.AuthError | null;
79
- }>;
62
+ tenantId: string;
63
+ }) => Promise<any>;
80
64
  forgotPassword: (email: string) => Promise<any>;
81
65
  forgotPasswordSSO: ({ email, with_context, method, }: {
82
66
  email: string;
@@ -1,5 +1,4 @@
1
1
  import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, T as TThreadData, h as GetExternalTab, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-CfcWWR0w.js';
2
- import * as _supabase_auth_js from '@supabase/auth-js';
3
2
 
4
3
  declare function useActionService(): {
5
4
  loadAction: ({ idAction, context, service, xNode, searchParams, }: {
@@ -52,7 +51,7 @@ declare function useActionService(): {
52
51
  service?: string;
53
52
  xNode?: string;
54
53
  }) => Promise<any>;
55
- actionServerHome: (service?: string, extraHeaders?: any) => Promise<any>;
54
+ actionServerHome: () => Promise<any>;
56
55
  };
57
56
 
58
57
  declare function useAuthService(): {
@@ -60,23 +59,8 @@ declare function useAuthService(): {
60
59
  loginTenantUser: (body: {
61
60
  email: string;
62
61
  password: string;
63
- }) => Promise<{
64
- data: null;
65
- error: {
66
- message: string;
67
- };
68
- } | {
69
- data: {
70
- user: _supabase_auth_js.User;
71
- session: _supabase_auth_js.Session;
72
- weakPassword?: _supabase_auth_js.WeakPassword;
73
- } | {
74
- user: null;
75
- session: null;
76
- weakPassword?: null | undefined;
77
- };
78
- error: _supabase_auth_js.AuthError | null;
79
- }>;
62
+ tenantId: string;
63
+ }) => Promise<any>;
80
64
  forgotPassword: (email: string) => Promise<any>;
81
65
  forgotPasswordSSO: ({ email, with_context, method, }: {
82
66
  email: string;
package/dist/services.js CHANGED
@@ -78,6 +78,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
78
78
  UriConstants2["GRANT_ACCESS"] = "/grant-access";
79
79
  UriConstants2["TOKEN_BY_CODE"] = "/token";
80
80
  UriConstants2["LOGOUT"] = "/logout";
81
+ UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
81
82
  UriConstants2["CREATE_UPDATE"] = "/create_update";
82
83
  UriConstants2["SEARCH_READ"] = "/search_read";
83
84
  UriConstants2["CREATE_PATH"] = "/create";
@@ -5618,23 +5619,9 @@ function useActionService() {
5618
5619
  },
5619
5620
  [env]
5620
5621
  );
5621
- const actionServerHome = (0, import_react62.useCallback)(
5622
- async (service, extraHeaders) => {
5623
- return await env.requests.get(
5624
- "/action_server_home" /* ACTION_SERVER_HOME */,
5625
- {
5626
- headers: extraHeaders ? {
5627
- ...extraHeaders,
5628
- "Content-Type": "application/json"
5629
- } : {
5630
- "Content-Type": "application/json"
5631
- }
5632
- },
5633
- service
5634
- );
5635
- },
5636
- [env]
5637
- );
5622
+ const actionServerHome = (0, import_react62.useCallback)(async () => {
5623
+ return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
5624
+ }, [env]);
5638
5625
  return {
5639
5626
  loadAction,
5640
5627
  callButton,
@@ -5680,19 +5667,18 @@ function useAuthService() {
5680
5667
  );
5681
5668
  const loginTenantUser = (0, import_react63.useCallback)(
5682
5669
  async (body) => {
5683
- if (!supabase) {
5684
- return {
5685
- data: null,
5686
- error: { message: "Supabase client is not initialized" }
5687
- };
5688
- }
5689
- const { data, error } = await supabase.auth.signInWithPassword({
5670
+ const payload = {
5690
5671
  email: body.email,
5691
- password: body.password
5672
+ password: body.password,
5673
+ tenant_id: body.tenantId
5674
+ };
5675
+ return env?.requests?.post("/api/v2/auth/login" /* SUPABASE_LOGIN_PATH */, payload, {
5676
+ headers: {
5677
+ "Content-Type": "application/json"
5678
+ }
5692
5679
  });
5693
- return { data, error };
5694
5680
  },
5695
- [supabase]
5681
+ [env]
5696
5682
  );
5697
5683
  const forgotPassword = (0, import_react63.useCallback)(
5698
5684
  async (email) => {
package/dist/services.mjs CHANGED
@@ -32,6 +32,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
32
32
  UriConstants2["GRANT_ACCESS"] = "/grant-access";
33
33
  UriConstants2["TOKEN_BY_CODE"] = "/token";
34
34
  UriConstants2["LOGOUT"] = "/logout";
35
+ UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
35
36
  UriConstants2["CREATE_UPDATE"] = "/create_update";
36
37
  UriConstants2["SEARCH_READ"] = "/search_read";
37
38
  UriConstants2["CREATE_PATH"] = "/create";
@@ -5572,23 +5573,9 @@ function useActionService() {
5572
5573
  },
5573
5574
  [env]
5574
5575
  );
5575
- const actionServerHome = useCallback56(
5576
- async (service, extraHeaders) => {
5577
- return await env.requests.get(
5578
- "/action_server_home" /* ACTION_SERVER_HOME */,
5579
- {
5580
- headers: extraHeaders ? {
5581
- ...extraHeaders,
5582
- "Content-Type": "application/json"
5583
- } : {
5584
- "Content-Type": "application/json"
5585
- }
5586
- },
5587
- service
5588
- );
5589
- },
5590
- [env]
5591
- );
5576
+ const actionServerHome = useCallback56(async () => {
5577
+ return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
5578
+ }, [env]);
5592
5579
  return {
5593
5580
  loadAction,
5594
5581
  callButton,
@@ -5634,19 +5621,18 @@ function useAuthService() {
5634
5621
  );
5635
5622
  const loginTenantUser = useCallback57(
5636
5623
  async (body) => {
5637
- if (!supabase) {
5638
- return {
5639
- data: null,
5640
- error: { message: "Supabase client is not initialized" }
5641
- };
5642
- }
5643
- const { data, error } = await supabase.auth.signInWithPassword({
5624
+ const payload = {
5644
5625
  email: body.email,
5645
- password: body.password
5626
+ password: body.password,
5627
+ tenant_id: body.tenantId
5628
+ };
5629
+ return env?.requests?.post("/api/v2/auth/login" /* SUPABASE_LOGIN_PATH */, payload, {
5630
+ headers: {
5631
+ "Content-Type": "application/json"
5632
+ }
5646
5633
  });
5647
- return { data, error };
5648
5634
  },
5649
- [supabase]
5635
+ [env]
5650
5636
  );
5651
5637
  const forgotPassword = useCallback57(
5652
5638
  async (email) => {
package/package.json CHANGED
@@ -1,92 +1,92 @@
1
- {
2
- "name": "@fctc/interface-logic",
3
- "version": "4.9.5",
4
- "types": "dist/index.d.ts",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.mjs",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "import": "./dist/index.mjs",
11
- "require": "./dist/index.cjs"
12
- },
13
- "./configs": {
14
- "types": "./dist/configs.d.ts",
15
- "import": "./dist/configs.mjs",
16
- "require": "./dist/configs.cjs"
17
- },
18
- "./constants": {
19
- "types": "./dist/constants.d.ts",
20
- "import": "./dist/constants.mjs",
21
- "require": "./dist/constants.cjs"
22
- },
23
- "./environment": {
24
- "types": "./dist/environment.d.ts",
25
- "import": "./dist/environment.mjs",
26
- "require": "./dist/environment.cjs"
27
- },
28
- "./hooks": {
29
- "types": "./dist/hooks.d.ts",
30
- "import": "./dist/hooks.mjs",
31
- "require": "./dist/hooks.cjs"
32
- },
33
- "./provider": {
34
- "types": "./dist/provider.d.ts",
35
- "import": "./dist/provider.mjs",
36
- "require": "./dist/provider.cjs"
37
- },
38
- "./services": {
39
- "types": "./dist/services.d.ts",
40
- "import": "./dist/services.mjs",
41
- "require": "./dist/services.cjs"
42
- },
43
- "./store": {
44
- "types": "./dist/store.d.ts",
45
- "import": "./dist/store.mjs",
46
- "require": "./dist/store.cjs"
47
- },
48
- "./utils": {
49
- "types": "./dist/utils.d.ts",
50
- "import": "./dist/utils.mjs",
51
- "require": "./dist/utils.cjs"
52
- },
53
- "./types": {
54
- "types": "./dist/types.d.ts",
55
- "import": "./dist/types.mjs",
56
- "require": "./dist/types.cjs"
57
- },
58
- "./models": {
59
- "types": "./dist/models.d.ts",
60
- "import": "./dist/models.mjs",
61
- "require": "./dist/models.cjs"
62
- }
63
- },
64
- "files": [
65
- "dist"
66
- ],
67
- "scripts": {
68
- "build": "tsup",
69
- "test": "jest"
70
- },
71
- "peerDependencies": {
72
- "@tanstack/react-query": "^5.83.0",
73
- "@supabase/supabase-js": "^2.90.1",
74
- "react": "18.0.0"
75
- },
76
- "dependencies": {
77
- "@reduxjs/toolkit": "^2.8.2",
78
- "@supabase/supabase-js": "^2.90.1",
79
- "@tanstack/react-query": "^5.83.0",
80
- "axios": "^1.11.0",
81
- "moment": "^2.30.1",
82
- "react-redux": "^9.2.0"
83
- },
84
- "devDependencies": {
85
- "@types/react": "^18.3.1",
86
- "jest": "^29.7.0",
87
- "react": "18.0.0",
88
- "tsup": "^8.0.0",
89
- "typescript": "^5.8.2"
90
- },
91
- "packageManager": "yarn@1.22.0"
92
- }
1
+ {
2
+ "name": "@fctc/interface-logic",
3
+ "version": "4.9.7",
4
+ "types": "dist/index.d.ts",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.mjs",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.cjs"
12
+ },
13
+ "./configs": {
14
+ "types": "./dist/configs.d.ts",
15
+ "import": "./dist/configs.mjs",
16
+ "require": "./dist/configs.cjs"
17
+ },
18
+ "./constants": {
19
+ "types": "./dist/constants.d.ts",
20
+ "import": "./dist/constants.mjs",
21
+ "require": "./dist/constants.cjs"
22
+ },
23
+ "./environment": {
24
+ "types": "./dist/environment.d.ts",
25
+ "import": "./dist/environment.mjs",
26
+ "require": "./dist/environment.cjs"
27
+ },
28
+ "./hooks": {
29
+ "types": "./dist/hooks.d.ts",
30
+ "import": "./dist/hooks.mjs",
31
+ "require": "./dist/hooks.cjs"
32
+ },
33
+ "./provider": {
34
+ "types": "./dist/provider.d.ts",
35
+ "import": "./dist/provider.mjs",
36
+ "require": "./dist/provider.cjs"
37
+ },
38
+ "./services": {
39
+ "types": "./dist/services.d.ts",
40
+ "import": "./dist/services.mjs",
41
+ "require": "./dist/services.cjs"
42
+ },
43
+ "./store": {
44
+ "types": "./dist/store.d.ts",
45
+ "import": "./dist/store.mjs",
46
+ "require": "./dist/store.cjs"
47
+ },
48
+ "./utils": {
49
+ "types": "./dist/utils.d.ts",
50
+ "import": "./dist/utils.mjs",
51
+ "require": "./dist/utils.cjs"
52
+ },
53
+ "./types": {
54
+ "types": "./dist/types.d.ts",
55
+ "import": "./dist/types.mjs",
56
+ "require": "./dist/types.cjs"
57
+ },
58
+ "./models": {
59
+ "types": "./dist/models.d.ts",
60
+ "import": "./dist/models.mjs",
61
+ "require": "./dist/models.cjs"
62
+ }
63
+ },
64
+ "files": [
65
+ "dist"
66
+ ],
67
+ "scripts": {
68
+ "build": "tsup",
69
+ "test": "jest"
70
+ },
71
+ "peerDependencies": {
72
+ "@tanstack/react-query": "^5.83.0",
73
+ "@supabase/supabase-js": "^2.90.1",
74
+ "react": "18.0.0"
75
+ },
76
+ "dependencies": {
77
+ "@reduxjs/toolkit": "^2.8.2",
78
+ "@supabase/supabase-js": "^2.90.1",
79
+ "@tanstack/react-query": "^5.83.0",
80
+ "axios": "^1.11.0",
81
+ "moment": "^2.30.1",
82
+ "react-redux": "^9.2.0"
83
+ },
84
+ "devDependencies": {
85
+ "@types/react": "^18.3.1",
86
+ "jest": "^29.7.0",
87
+ "react": "18.0.0",
88
+ "tsup": "^8.0.0",
89
+ "typescript": "^5.8.2"
90
+ },
91
+ "packageManager": "yarn@1.22.0"
92
+ }