@fctc/interface-logic 4.9.3 → 4.9.5
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/constants.d.mts +0 -1
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -1
- package/dist/constants.mjs +0 -1
- package/dist/hooks.d.mts +22 -3
- package/dist/hooks.d.ts +22 -3
- package/dist/hooks.js +34 -23
- package/dist/hooks.mjs +34 -23
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +34 -23
- package/dist/index.mjs +34 -23
- package/dist/provider.d.mts +1 -0
- package/dist/provider.d.ts +1 -0
- package/dist/provider.js +34 -23
- package/dist/provider.mjs +34 -23
- package/dist/services.d.mts +19 -3
- package/dist/services.d.ts +19 -3
- package/dist/services.js +29 -20
- package/dist/services.mjs +29 -20
- package/package.json +92 -92
package/dist/constants.d.mts
CHANGED
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
|
@@ -109,7 +109,6 @@ 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["LOGIN_PATH"] = "/login";
|
|
113
112
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
114
113
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
115
114
|
UriConstants2["CREATE_PATH"] = "/create";
|
package/dist/constants.mjs
CHANGED
|
@@ -68,7 +68,6 @@ 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["LOGIN_PATH"] = "/login";
|
|
72
71
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
73
72
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
74
73
|
UriConstants2["CREATE_PATH"] = "/create";
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import { B as BaseModelInit } from './base-model-type-DD8uZnDP.mjs';
|
|
4
5
|
import { BaseModel } from './models.mjs';
|
|
5
6
|
|
|
@@ -25,9 +26,24 @@ declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any,
|
|
|
25
26
|
type LoginTenantUserBody = {
|
|
26
27
|
email: string;
|
|
27
28
|
password: string;
|
|
28
|
-
tenantId: string;
|
|
29
29
|
};
|
|
30
|
-
declare const useLoginTenantUser: () => _tanstack_react_query.UseMutationResult<
|
|
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>;
|
|
31
47
|
|
|
32
48
|
declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
|
|
33
49
|
|
|
@@ -501,7 +517,10 @@ declare const useGetPartnerTitle: () => _tanstack_react_query.UseMutationResult<
|
|
|
501
517
|
withContext?: any;
|
|
502
518
|
}, unknown>;
|
|
503
519
|
|
|
504
|
-
declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error,
|
|
520
|
+
declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
521
|
+
service?: string;
|
|
522
|
+
extraHeaders?: any;
|
|
523
|
+
}, unknown>;
|
|
505
524
|
|
|
506
525
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
507
526
|
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import { B as BaseModelInit } from './base-model-type-DD8uZnDP.js';
|
|
4
5
|
import { BaseModel } from './models.js';
|
|
5
6
|
|
|
@@ -25,9 +26,24 @@ declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any,
|
|
|
25
26
|
type LoginTenantUserBody = {
|
|
26
27
|
email: string;
|
|
27
28
|
password: string;
|
|
28
|
-
tenantId: string;
|
|
29
29
|
};
|
|
30
|
-
declare const useLoginTenantUser: () => _tanstack_react_query.UseMutationResult<
|
|
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>;
|
|
31
47
|
|
|
32
48
|
declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
|
|
33
49
|
|
|
@@ -501,7 +517,10 @@ declare const useGetPartnerTitle: () => _tanstack_react_query.UseMutationResult<
|
|
|
501
517
|
withContext?: any;
|
|
502
518
|
}, unknown>;
|
|
503
519
|
|
|
504
|
-
declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error,
|
|
520
|
+
declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
521
|
+
service?: string;
|
|
522
|
+
extraHeaders?: any;
|
|
523
|
+
}, unknown>;
|
|
505
524
|
|
|
506
525
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
507
526
|
|
package/dist/hooks.js
CHANGED
|
@@ -208,7 +208,6 @@ 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["LOGIN_PATH"] = "/login";
|
|
212
211
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
213
212
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
214
213
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
@@ -3328,9 +3327,23 @@ function useActionService() {
|
|
|
3328
3327
|
},
|
|
3329
3328
|
[env]
|
|
3330
3329
|
);
|
|
3331
|
-
const actionServerHome = (0, import_react8.useCallback)(
|
|
3332
|
-
|
|
3333
|
-
|
|
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
|
+
);
|
|
3334
3347
|
return {
|
|
3335
3348
|
loadAction,
|
|
3336
3349
|
callButton,
|
|
@@ -3376,23 +3389,19 @@ function useAuthService() {
|
|
|
3376
3389
|
);
|
|
3377
3390
|
const loginTenantUser = (0, import_react9.useCallback)(
|
|
3378
3391
|
async (body) => {
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
}
|
|
3391
|
-
},
|
|
3392
|
-
"id"
|
|
3393
|
-
);
|
|
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({
|
|
3399
|
+
email: body.email,
|
|
3400
|
+
password: body.password
|
|
3401
|
+
});
|
|
3402
|
+
return { data, error };
|
|
3394
3403
|
},
|
|
3395
|
-
[
|
|
3404
|
+
[supabase]
|
|
3396
3405
|
);
|
|
3397
3406
|
const forgotPassword = (0, import_react9.useCallback)(
|
|
3398
3407
|
async (email) => {
|
|
@@ -7415,8 +7424,7 @@ var useLoginTenantUser = () => {
|
|
|
7415
7424
|
mutationFn: (data) => {
|
|
7416
7425
|
return loginTenantUser({
|
|
7417
7426
|
email: data.email,
|
|
7418
|
-
password: data.password
|
|
7419
|
-
tenantId: data.tenantId
|
|
7427
|
+
password: data.password
|
|
7420
7428
|
});
|
|
7421
7429
|
}
|
|
7422
7430
|
});
|
|
@@ -9001,7 +9009,10 @@ var import_react_query83 = require("@tanstack/react-query");
|
|
|
9001
9009
|
var useActionServerHome = () => {
|
|
9002
9010
|
const { actionServerHome } = useActionService();
|
|
9003
9011
|
return (0, import_react_query83.useMutation)({
|
|
9004
|
-
mutationFn: (
|
|
9012
|
+
mutationFn: ({
|
|
9013
|
+
service,
|
|
9014
|
+
extraHeaders
|
|
9015
|
+
}) => actionServerHome(service, extraHeaders)
|
|
9005
9016
|
});
|
|
9006
9017
|
};
|
|
9007
9018
|
var use_action_server_home_default = useActionServerHome;
|
package/dist/hooks.mjs
CHANGED
|
@@ -35,7 +35,6 @@ 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["LOGIN_PATH"] = "/login";
|
|
39
38
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
40
39
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
41
40
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
@@ -3155,9 +3154,23 @@ function useActionService() {
|
|
|
3155
3154
|
},
|
|
3156
3155
|
[env]
|
|
3157
3156
|
);
|
|
3158
|
-
const actionServerHome = useCallback2(
|
|
3159
|
-
|
|
3160
|
-
|
|
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
|
+
);
|
|
3161
3174
|
return {
|
|
3162
3175
|
loadAction,
|
|
3163
3176
|
callButton,
|
|
@@ -3203,23 +3216,19 @@ function useAuthService() {
|
|
|
3203
3216
|
);
|
|
3204
3217
|
const loginTenantUser = useCallback3(
|
|
3205
3218
|
async (body) => {
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
}
|
|
3218
|
-
},
|
|
3219
|
-
"id"
|
|
3220
|
-
);
|
|
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({
|
|
3226
|
+
email: body.email,
|
|
3227
|
+
password: body.password
|
|
3228
|
+
});
|
|
3229
|
+
return { data, error };
|
|
3221
3230
|
},
|
|
3222
|
-
[
|
|
3231
|
+
[supabase]
|
|
3223
3232
|
);
|
|
3224
3233
|
const forgotPassword = useCallback3(
|
|
3225
3234
|
async (email) => {
|
|
@@ -7242,8 +7251,7 @@ var useLoginTenantUser = () => {
|
|
|
7242
7251
|
mutationFn: (data) => {
|
|
7243
7252
|
return loginTenantUser({
|
|
7244
7253
|
email: data.email,
|
|
7245
|
-
password: data.password
|
|
7246
|
-
tenantId: data.tenantId
|
|
7254
|
+
password: data.password
|
|
7247
7255
|
});
|
|
7248
7256
|
}
|
|
7249
7257
|
});
|
|
@@ -8828,7 +8836,10 @@ import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
|
8828
8836
|
var useActionServerHome = () => {
|
|
8829
8837
|
const { actionServerHome } = useActionService();
|
|
8830
8838
|
return useMutation58({
|
|
8831
|
-
mutationFn: (
|
|
8839
|
+
mutationFn: ({
|
|
8840
|
+
service,
|
|
8841
|
+
extraHeaders
|
|
8842
|
+
}) => actionServerHome(service, extraHeaders)
|
|
8832
8843
|
});
|
|
8833
8844
|
};
|
|
8834
8845
|
var use_action_server_home_default = useActionServerHome;
|
package/dist/index.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ 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';
|
|
15
16
|
import 'react/jsx-runtime';
|
|
16
17
|
import 'react';
|
|
17
18
|
import '@supabase/supabase-js';
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ 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';
|
|
15
16
|
import 'react/jsx-runtime';
|
|
16
17
|
import 'react';
|
|
17
18
|
import '@supabase/supabase-js';
|
package/dist/index.js
CHANGED
|
@@ -399,7 +399,6 @@ 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["LOGIN_PATH"] = "/login";
|
|
403
402
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
404
403
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
405
404
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
@@ -5387,9 +5386,23 @@ function useActionService() {
|
|
|
5387
5386
|
},
|
|
5388
5387
|
[env2]
|
|
5389
5388
|
);
|
|
5390
|
-
const actionServerHome = (0, import_react8.useCallback)(
|
|
5391
|
-
|
|
5392
|
-
|
|
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
|
+
);
|
|
5393
5406
|
return {
|
|
5394
5407
|
loadAction,
|
|
5395
5408
|
callButton,
|
|
@@ -5435,23 +5448,19 @@ function useAuthService() {
|
|
|
5435
5448
|
);
|
|
5436
5449
|
const loginTenantUser = (0, import_react9.useCallback)(
|
|
5437
5450
|
async (body) => {
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
}
|
|
5450
|
-
},
|
|
5451
|
-
"id"
|
|
5452
|
-
);
|
|
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({
|
|
5458
|
+
email: body.email,
|
|
5459
|
+
password: body.password
|
|
5460
|
+
});
|
|
5461
|
+
return { data, error };
|
|
5453
5462
|
},
|
|
5454
|
-
[
|
|
5463
|
+
[supabase]
|
|
5455
5464
|
);
|
|
5456
5465
|
const forgotPassword = (0, import_react9.useCallback)(
|
|
5457
5466
|
async (email) => {
|
|
@@ -9474,8 +9483,7 @@ var useLoginTenantUser = () => {
|
|
|
9474
9483
|
mutationFn: (data) => {
|
|
9475
9484
|
return loginTenantUser({
|
|
9476
9485
|
email: data.email,
|
|
9477
|
-
password: data.password
|
|
9478
|
-
tenantId: data.tenantId
|
|
9486
|
+
password: data.password
|
|
9479
9487
|
});
|
|
9480
9488
|
}
|
|
9481
9489
|
});
|
|
@@ -11060,7 +11068,10 @@ var import_react_query83 = require("@tanstack/react-query");
|
|
|
11060
11068
|
var useActionServerHome = () => {
|
|
11061
11069
|
const { actionServerHome } = useActionService();
|
|
11062
11070
|
return (0, import_react_query83.useMutation)({
|
|
11063
|
-
mutationFn: (
|
|
11071
|
+
mutationFn: ({
|
|
11072
|
+
service,
|
|
11073
|
+
extraHeaders
|
|
11074
|
+
}) => actionServerHome(service, extraHeaders)
|
|
11064
11075
|
});
|
|
11065
11076
|
};
|
|
11066
11077
|
var use_action_server_home_default = useActionServerHome;
|
package/dist/index.mjs
CHANGED
|
@@ -71,7 +71,6 @@ 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["LOGIN_PATH"] = "/login";
|
|
75
74
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
76
75
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
77
76
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
@@ -5059,9 +5058,23 @@ function useActionService() {
|
|
|
5059
5058
|
},
|
|
5060
5059
|
[env2]
|
|
5061
5060
|
);
|
|
5062
|
-
const actionServerHome = useCallback2(
|
|
5063
|
-
|
|
5064
|
-
|
|
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
|
+
);
|
|
5065
5078
|
return {
|
|
5066
5079
|
loadAction,
|
|
5067
5080
|
callButton,
|
|
@@ -5107,23 +5120,19 @@ function useAuthService() {
|
|
|
5107
5120
|
);
|
|
5108
5121
|
const loginTenantUser = useCallback3(
|
|
5109
5122
|
async (body) => {
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
}
|
|
5122
|
-
},
|
|
5123
|
-
"id"
|
|
5124
|
-
);
|
|
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({
|
|
5130
|
+
email: body.email,
|
|
5131
|
+
password: body.password
|
|
5132
|
+
});
|
|
5133
|
+
return { data, error };
|
|
5125
5134
|
},
|
|
5126
|
-
[
|
|
5135
|
+
[supabase]
|
|
5127
5136
|
);
|
|
5128
5137
|
const forgotPassword = useCallback3(
|
|
5129
5138
|
async (email) => {
|
|
@@ -9146,8 +9155,7 @@ var useLoginTenantUser = () => {
|
|
|
9146
9155
|
mutationFn: (data) => {
|
|
9147
9156
|
return loginTenantUser({
|
|
9148
9157
|
email: data.email,
|
|
9149
|
-
password: data.password
|
|
9150
|
-
tenantId: data.tenantId
|
|
9158
|
+
password: data.password
|
|
9151
9159
|
});
|
|
9152
9160
|
}
|
|
9153
9161
|
});
|
|
@@ -10732,7 +10740,10 @@ import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
|
10732
10740
|
var useActionServerHome = () => {
|
|
10733
10741
|
const { actionServerHome } = useActionService();
|
|
10734
10742
|
return useMutation58({
|
|
10735
|
-
mutationFn: (
|
|
10743
|
+
mutationFn: ({
|
|
10744
|
+
service,
|
|
10745
|
+
extraHeaders
|
|
10746
|
+
}) => actionServerHome(service, extraHeaders)
|
|
10736
10747
|
});
|
|
10737
10748
|
};
|
|
10738
10749
|
var use_action_server_home_default = useActionServerHome;
|
package/dist/provider.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ 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';
|
|
8
9
|
import './base-model-type-DD8uZnDP.mjs';
|
|
9
10
|
import './models.mjs';
|
|
10
11
|
|
package/dist/provider.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ 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';
|
|
8
9
|
import './base-model-type-DD8uZnDP.js';
|
|
9
10
|
import './models.js';
|
|
10
11
|
|
package/dist/provider.js
CHANGED
|
@@ -737,7 +737,6 @@ 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["LOGIN_PATH"] = "/login";
|
|
741
740
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
742
741
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
743
742
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
@@ -3278,9 +3277,23 @@ function useActionService() {
|
|
|
3278
3277
|
},
|
|
3279
3278
|
[env]
|
|
3280
3279
|
);
|
|
3281
|
-
const actionServerHome = (0, import_react3.useCallback)(
|
|
3282
|
-
|
|
3283
|
-
|
|
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
|
+
);
|
|
3284
3297
|
return {
|
|
3285
3298
|
loadAction,
|
|
3286
3299
|
callButton,
|
|
@@ -3364,23 +3377,19 @@ function useAuthService() {
|
|
|
3364
3377
|
);
|
|
3365
3378
|
const loginTenantUser = (0, import_react5.useCallback)(
|
|
3366
3379
|
async (body) => {
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
}
|
|
3379
|
-
},
|
|
3380
|
-
"id"
|
|
3381
|
-
);
|
|
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({
|
|
3387
|
+
email: body.email,
|
|
3388
|
+
password: body.password
|
|
3389
|
+
});
|
|
3390
|
+
return { data, error };
|
|
3382
3391
|
},
|
|
3383
|
-
[
|
|
3392
|
+
[supabase]
|
|
3384
3393
|
);
|
|
3385
3394
|
const forgotPassword = (0, import_react5.useCallback)(
|
|
3386
3395
|
async (email) => {
|
|
@@ -7900,8 +7909,7 @@ var useLoginTenantUser = () => {
|
|
|
7900
7909
|
mutationFn: (data) => {
|
|
7901
7910
|
return loginTenantUser({
|
|
7902
7911
|
email: data.email,
|
|
7903
|
-
password: data.password
|
|
7904
|
-
tenantId: data.tenantId
|
|
7912
|
+
password: data.password
|
|
7905
7913
|
});
|
|
7906
7914
|
}
|
|
7907
7915
|
});
|
|
@@ -9486,7 +9494,10 @@ var import_react_query83 = require("@tanstack/react-query");
|
|
|
9486
9494
|
var useActionServerHome = () => {
|
|
9487
9495
|
const { actionServerHome } = useActionService();
|
|
9488
9496
|
return (0, import_react_query83.useMutation)({
|
|
9489
|
-
mutationFn: (
|
|
9497
|
+
mutationFn: ({
|
|
9498
|
+
service,
|
|
9499
|
+
extraHeaders
|
|
9500
|
+
}) => actionServerHome(service, extraHeaders)
|
|
9490
9501
|
});
|
|
9491
9502
|
};
|
|
9492
9503
|
var use_action_server_home_default = useActionServerHome;
|
package/dist/provider.mjs
CHANGED
|
@@ -692,7 +692,6 @@ 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["LOGIN_PATH"] = "/login";
|
|
696
695
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
697
696
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
698
697
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
@@ -3233,9 +3232,23 @@ function useActionService() {
|
|
|
3233
3232
|
},
|
|
3234
3233
|
[env]
|
|
3235
3234
|
);
|
|
3236
|
-
const actionServerHome = useCallback(
|
|
3237
|
-
|
|
3238
|
-
|
|
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
|
+
);
|
|
3239
3252
|
return {
|
|
3240
3253
|
loadAction,
|
|
3241
3254
|
callButton,
|
|
@@ -3319,23 +3332,19 @@ function useAuthService() {
|
|
|
3319
3332
|
);
|
|
3320
3333
|
const loginTenantUser = useCallback2(
|
|
3321
3334
|
async (body) => {
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
}
|
|
3334
|
-
},
|
|
3335
|
-
"id"
|
|
3336
|
-
);
|
|
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({
|
|
3342
|
+
email: body.email,
|
|
3343
|
+
password: body.password
|
|
3344
|
+
});
|
|
3345
|
+
return { data, error };
|
|
3337
3346
|
},
|
|
3338
|
-
[
|
|
3347
|
+
[supabase]
|
|
3339
3348
|
);
|
|
3340
3349
|
const forgotPassword = useCallback2(
|
|
3341
3350
|
async (email) => {
|
|
@@ -7855,8 +7864,7 @@ var useLoginTenantUser = () => {
|
|
|
7855
7864
|
mutationFn: (data) => {
|
|
7856
7865
|
return loginTenantUser({
|
|
7857
7866
|
email: data.email,
|
|
7858
|
-
password: data.password
|
|
7859
|
-
tenantId: data.tenantId
|
|
7867
|
+
password: data.password
|
|
7860
7868
|
});
|
|
7861
7869
|
}
|
|
7862
7870
|
});
|
|
@@ -9441,7 +9449,10 @@ import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
|
9441
9449
|
var useActionServerHome = () => {
|
|
9442
9450
|
const { actionServerHome } = useActionService();
|
|
9443
9451
|
return useMutation58({
|
|
9444
|
-
mutationFn: (
|
|
9452
|
+
mutationFn: ({
|
|
9453
|
+
service,
|
|
9454
|
+
extraHeaders
|
|
9455
|
+
}) => actionServerHome(service, extraHeaders)
|
|
9445
9456
|
});
|
|
9446
9457
|
};
|
|
9447
9458
|
var use_action_server_home_default = useActionServerHome;
|
package/dist/services.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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';
|
|
2
3
|
|
|
3
4
|
declare function useActionService(): {
|
|
4
5
|
loadAction: ({ idAction, context, service, xNode, searchParams, }: {
|
|
@@ -51,7 +52,7 @@ declare function useActionService(): {
|
|
|
51
52
|
service?: string;
|
|
52
53
|
xNode?: string;
|
|
53
54
|
}) => Promise<any>;
|
|
54
|
-
actionServerHome: () => Promise<any>;
|
|
55
|
+
actionServerHome: (service?: string, extraHeaders?: any) => Promise<any>;
|
|
55
56
|
};
|
|
56
57
|
|
|
57
58
|
declare function useAuthService(): {
|
|
@@ -59,8 +60,23 @@ declare function useAuthService(): {
|
|
|
59
60
|
loginTenantUser: (body: {
|
|
60
61
|
email: string;
|
|
61
62
|
password: string;
|
|
62
|
-
|
|
63
|
-
|
|
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
|
+
}>;
|
|
64
80
|
forgotPassword: (email: string) => Promise<any>;
|
|
65
81
|
forgotPasswordSSO: ({ email, with_context, method, }: {
|
|
66
82
|
email: string;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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';
|
|
2
3
|
|
|
3
4
|
declare function useActionService(): {
|
|
4
5
|
loadAction: ({ idAction, context, service, xNode, searchParams, }: {
|
|
@@ -51,7 +52,7 @@ declare function useActionService(): {
|
|
|
51
52
|
service?: string;
|
|
52
53
|
xNode?: string;
|
|
53
54
|
}) => Promise<any>;
|
|
54
|
-
actionServerHome: () => Promise<any>;
|
|
55
|
+
actionServerHome: (service?: string, extraHeaders?: any) => Promise<any>;
|
|
55
56
|
};
|
|
56
57
|
|
|
57
58
|
declare function useAuthService(): {
|
|
@@ -59,8 +60,23 @@ declare function useAuthService(): {
|
|
|
59
60
|
loginTenantUser: (body: {
|
|
60
61
|
email: string;
|
|
61
62
|
password: string;
|
|
62
|
-
|
|
63
|
-
|
|
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
|
+
}>;
|
|
64
80
|
forgotPassword: (email: string) => Promise<any>;
|
|
65
81
|
forgotPasswordSSO: ({ email, with_context, method, }: {
|
|
66
82
|
email: string;
|
package/dist/services.js
CHANGED
|
@@ -78,7 +78,6 @@ 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["LOGIN_PATH"] = "/login";
|
|
82
81
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
83
82
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
84
83
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
@@ -5619,9 +5618,23 @@ function useActionService() {
|
|
|
5619
5618
|
},
|
|
5620
5619
|
[env]
|
|
5621
5620
|
);
|
|
5622
|
-
const actionServerHome = (0, import_react62.useCallback)(
|
|
5623
|
-
|
|
5624
|
-
|
|
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
|
+
);
|
|
5625
5638
|
return {
|
|
5626
5639
|
loadAction,
|
|
5627
5640
|
callButton,
|
|
@@ -5667,23 +5680,19 @@ function useAuthService() {
|
|
|
5667
5680
|
);
|
|
5668
5681
|
const loginTenantUser = (0, import_react63.useCallback)(
|
|
5669
5682
|
async (body) => {
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
}
|
|
5682
|
-
},
|
|
5683
|
-
"id"
|
|
5684
|
-
);
|
|
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({
|
|
5690
|
+
email: body.email,
|
|
5691
|
+
password: body.password
|
|
5692
|
+
});
|
|
5693
|
+
return { data, error };
|
|
5685
5694
|
},
|
|
5686
|
-
[
|
|
5695
|
+
[supabase]
|
|
5687
5696
|
);
|
|
5688
5697
|
const forgotPassword = (0, import_react63.useCallback)(
|
|
5689
5698
|
async (email) => {
|
package/dist/services.mjs
CHANGED
|
@@ -32,7 +32,6 @@ 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["LOGIN_PATH"] = "/login";
|
|
36
35
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
37
36
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
38
37
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
@@ -5573,9 +5572,23 @@ function useActionService() {
|
|
|
5573
5572
|
},
|
|
5574
5573
|
[env]
|
|
5575
5574
|
);
|
|
5576
|
-
const actionServerHome = useCallback56(
|
|
5577
|
-
|
|
5578
|
-
|
|
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
|
+
);
|
|
5579
5592
|
return {
|
|
5580
5593
|
loadAction,
|
|
5581
5594
|
callButton,
|
|
@@ -5621,23 +5634,19 @@ function useAuthService() {
|
|
|
5621
5634
|
);
|
|
5622
5635
|
const loginTenantUser = useCallback57(
|
|
5623
5636
|
async (body) => {
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
}
|
|
5636
|
-
},
|
|
5637
|
-
"id"
|
|
5638
|
-
);
|
|
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({
|
|
5644
|
+
email: body.email,
|
|
5645
|
+
password: body.password
|
|
5646
|
+
});
|
|
5647
|
+
return { data, error };
|
|
5639
5648
|
},
|
|
5640
|
-
[
|
|
5649
|
+
[supabase]
|
|
5641
5650
|
);
|
|
5642
5651
|
const forgotPassword = useCallback57(
|
|
5643
5652
|
async (email) => {
|
package/package.json
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "4.9.
|
|
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.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
|
+
}
|