@fctc/interface-logic 1.2.9 → 1.2.10

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.
Files changed (47) hide show
  1. package/dist/{hook.js → hooks.js} +14 -16
  2. package/dist/{hook.mjs → hooks.mjs} +10 -12
  3. package/dist/index.d.mts +1709 -24
  4. package/dist/index.d.ts +1709 -24
  5. package/dist/index.js +14 -16
  6. package/dist/index.mjs +14 -16
  7. package/dist/model.js +2 -2
  8. package/dist/model.mjs +2 -2
  9. package/dist/provider.js +2 -2
  10. package/dist/provider.mjs +2 -2
  11. package/dist/services.js +6 -7
  12. package/dist/services.mjs +6 -7
  13. package/dist/store.js +4 -4
  14. package/dist/store.mjs +4 -4
  15. package/package.json +87 -87
  16. package/dist/base-model-type-DvO53Lwi.d.mts +0 -7
  17. package/dist/base-model-type-DvO53Lwi.d.ts +0 -7
  18. package/dist/config.d.mts +0 -16
  19. package/dist/config.d.ts +0 -16
  20. package/dist/constants.d.mts +0 -131
  21. package/dist/constants.d.ts +0 -131
  22. package/dist/context-type-D5XefoL-.d.mts +0 -8
  23. package/dist/context-type-D5XefoL-.d.ts +0 -8
  24. package/dist/environment.d.mts +0 -42
  25. package/dist/environment.d.ts +0 -42
  26. package/dist/hook.d.mts +0 -340
  27. package/dist/hook.d.ts +0 -340
  28. package/dist/index-C_nK1Mii.d.mts +0 -19
  29. package/dist/index-C_nK1Mii.d.ts +0 -19
  30. package/dist/model.d.mts +0 -35
  31. package/dist/model.d.ts +0 -35
  32. package/dist/provider.d.mts +0 -16
  33. package/dist/provider.d.ts +0 -16
  34. package/dist/services.d.mts +0 -258
  35. package/dist/services.d.ts +0 -258
  36. package/dist/session-storage-CxkkEmQh.d.mts +0 -15
  37. package/dist/session-storage-CxkkEmQh.d.ts +0 -15
  38. package/dist/store.d.mts +0 -643
  39. package/dist/store.d.ts +0 -643
  40. package/dist/types.d.mts +0 -12
  41. package/dist/types.d.ts +0 -12
  42. package/dist/use-get-selection-QZu1jKqa.d.mts +0 -15
  43. package/dist/use-get-selection-QZu1jKqa.d.ts +0 -15
  44. package/dist/utils.d.mts +0 -96
  45. package/dist/utils.d.ts +0 -96
  46. package/dist/view-type-DodWYWDH.d.mts +0 -107
  47. package/dist/view-type-DodWYWDH.d.ts +0 -107
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
- // src/hook.ts
31
- var hook_exports = {};
32
- __export(hook_exports, {
30
+ // src/hooks.ts
31
+ var hooks_exports = {};
32
+ __export(hooks_exports, {
33
33
  useButton: () => use_button_default,
34
34
  useChangeStatus: () => use_change_status_default,
35
35
  useDelete: () => use_delete_default,
@@ -99,7 +99,7 @@ __export(hook_exports, {
99
99
  useVerify2FA: () => use_verify_2FA_default,
100
100
  useVerifyTotp: () => use_verify_totp_default
101
101
  });
102
- module.exports = __toCommonJS(hook_exports);
102
+ module.exports = __toCommonJS(hooks_exports);
103
103
 
104
104
  // src/hooks/auth/use-forgot-password.ts
105
105
  var import_react_query = require("@tanstack/react-query");
@@ -4095,8 +4095,7 @@ var ModelService = {
4095
4095
  ids = [],
4096
4096
  data = {},
4097
4097
  specification = {},
4098
- context = {},
4099
- path
4098
+ context = {}
4100
4099
  }) {
4101
4100
  const env2 = getEnv();
4102
4101
  const jsonData = {
@@ -4109,7 +4108,7 @@ var ModelService = {
4109
4108
  specification
4110
4109
  }
4111
4110
  };
4112
- return env2?.requests?.post(path ?? "/call" /* CALL_PATH */, jsonData, {
4111
+ return env2?.requests?.post("/call" /* CALL_PATH */, jsonData, {
4113
4112
  headers: {
4114
4113
  "Content-Type": "application/json"
4115
4114
  }
@@ -4227,9 +4226,9 @@ var model_service_default = ModelService;
4227
4226
 
4228
4227
  // src/services/user-service/index.ts
4229
4228
  var UserService = {
4230
- async getProfile(path) {
4229
+ async getProfile() {
4231
4230
  const env2 = getEnv();
4232
- return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4231
+ return env2.requests.get("/userinfo" /* PROFILE_PATH */, {
4233
4232
  headers: {
4234
4233
  "Content-Type": "application/x-www-form-urlencoded"
4235
4234
  }
@@ -4611,10 +4610,10 @@ var ViewService = {
4611
4610
  });
4612
4611
  const url = `${path}?${params.toString()}`;
4613
4612
  return env2?.requests.get(url, {
4613
+ credentials: "include",
4614
4614
  headers: {
4615
4615
  "Content-Type": "application/json"
4616
- },
4617
- withCredentials: true
4616
+ }
4618
4617
  });
4619
4618
  },
4620
4619
  async grantAccess({
@@ -5428,18 +5427,17 @@ var useSave = () => {
5428
5427
  model,
5429
5428
  data,
5430
5429
  specification,
5431
- context,
5432
- path
5433
- }) => model_service_default.save({ ids, model, data, specification, context, path })
5430
+ context
5431
+ }) => model_service_default.save({ ids, model, data, specification, context })
5434
5432
  });
5435
5433
  };
5436
5434
  var use_save_default = useSave;
5437
5435
 
5438
5436
  // src/hooks/user/use-get-profile.ts
5439
5437
  var import_react_query38 = require("@tanstack/react-query");
5440
- var useGetProfile = (path) => {
5438
+ var useGetProfile = () => {
5441
5439
  return (0, import_react_query38.useMutation)({
5442
- mutationFn: () => user_service_default.getProfile(path)
5440
+ mutationFn: () => user_service_default.getProfile()
5443
5441
  });
5444
5442
  };
5445
5443
  var use_get_profile_default = useGetProfile;
@@ -3992,8 +3992,7 @@ var ModelService = {
3992
3992
  ids = [],
3993
3993
  data = {},
3994
3994
  specification = {},
3995
- context = {},
3996
- path
3995
+ context = {}
3997
3996
  }) {
3998
3997
  const env2 = getEnv();
3999
3998
  const jsonData = {
@@ -4006,7 +4005,7 @@ var ModelService = {
4006
4005
  specification
4007
4006
  }
4008
4007
  };
4009
- return env2?.requests?.post(path ?? "/call" /* CALL_PATH */, jsonData, {
4008
+ return env2?.requests?.post("/call" /* CALL_PATH */, jsonData, {
4010
4009
  headers: {
4011
4010
  "Content-Type": "application/json"
4012
4011
  }
@@ -4124,9 +4123,9 @@ var model_service_default = ModelService;
4124
4123
 
4125
4124
  // src/services/user-service/index.ts
4126
4125
  var UserService = {
4127
- async getProfile(path) {
4126
+ async getProfile() {
4128
4127
  const env2 = getEnv();
4129
- return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4128
+ return env2.requests.get("/userinfo" /* PROFILE_PATH */, {
4130
4129
  headers: {
4131
4130
  "Content-Type": "application/x-www-form-urlencoded"
4132
4131
  }
@@ -4508,10 +4507,10 @@ var ViewService = {
4508
4507
  });
4509
4508
  const url = `${path}?${params.toString()}`;
4510
4509
  return env2?.requests.get(url, {
4510
+ credentials: "include",
4511
4511
  headers: {
4512
4512
  "Content-Type": "application/json"
4513
- },
4514
- withCredentials: true
4513
+ }
4515
4514
  });
4516
4515
  },
4517
4516
  async grantAccess({
@@ -5325,18 +5324,17 @@ var useSave = () => {
5325
5324
  model,
5326
5325
  data,
5327
5326
  specification,
5328
- context,
5329
- path
5330
- }) => model_service_default.save({ ids, model, data, specification, context, path })
5327
+ context
5328
+ }) => model_service_default.save({ ids, model, data, specification, context })
5331
5329
  });
5332
5330
  };
5333
5331
  var use_save_default = useSave;
5334
5332
 
5335
5333
  // src/hooks/user/use-get-profile.ts
5336
5334
  import { useMutation as useMutation28 } from "@tanstack/react-query";
5337
- var useGetProfile = (path) => {
5335
+ var useGetProfile = () => {
5338
5336
  return useMutation28({
5339
- mutationFn: () => user_service_default.getProfile(path)
5337
+ mutationFn: () => user_service_default.getProfile()
5340
5338
  });
5341
5339
  };
5342
5340
  var use_get_profile_default = useGetProfile;