@fctc/interface-logic 2.0.7 → 2.0.8

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/hooks.d.mts CHANGED
@@ -157,8 +157,9 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
157
157
  service?: string;
158
158
  }, unknown>;
159
159
 
160
- declare const useGetFieldOnChange: ({ model }: {
160
+ declare const useGetFieldOnChange: ({ model, service, }: {
161
161
  model: string;
162
+ service?: string;
162
163
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
163
164
 
164
165
  declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
package/dist/hooks.d.ts CHANGED
@@ -157,8 +157,9 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
157
157
  service?: string;
158
158
  }, unknown>;
159
159
 
160
- declare const useGetFieldOnChange: ({ model }: {
160
+ declare const useGetFieldOnChange: ({ model, service, }: {
161
161
  model: string;
162
+ service?: string;
162
163
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
163
164
 
164
165
  declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
package/dist/hooks.js CHANGED
@@ -4021,16 +4021,21 @@ function useModelService() {
4021
4021
  [env]
4022
4022
  );
4023
4023
  const getListFieldsOnchange = (0, import_react12.useCallback)(
4024
- async ({ model }) => {
4024
+ async ({ model, service }) => {
4025
4025
  const jsonData = {
4026
4026
  model,
4027
4027
  method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
4028
4028
  };
4029
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
4030
- headers: {
4031
- "Content-Type": "application/json"
4032
- }
4033
- });
4029
+ return env.requests.post(
4030
+ "/call" /* CALL_PATH */,
4031
+ jsonData,
4032
+ {
4033
+ headers: {
4034
+ "Content-Type": "application/json"
4035
+ }
4036
+ },
4037
+ service
4038
+ );
4034
4039
  },
4035
4040
  [env]
4036
4041
  );
@@ -5075,12 +5080,16 @@ var use_get_detail_default = useGetDetail;
5075
5080
 
5076
5081
  // src/hooks/model/use-get-field-onchange.ts
5077
5082
  var import_react_query37 = require("@tanstack/react-query");
5078
- var useGetFieldOnChange = ({ model }) => {
5083
+ var useGetFieldOnChange = ({
5084
+ model,
5085
+ service
5086
+ }) => {
5079
5087
  const { getListFieldsOnchange } = useModelService();
5080
5088
  return (0, import_react_query37.useQuery)({
5081
5089
  queryKey: [`field-onchange-${model}`, model],
5082
5090
  queryFn: () => getListFieldsOnchange({
5083
- model
5091
+ model,
5092
+ service
5084
5093
  }).then((res) => {
5085
5094
  if (res) {
5086
5095
  return res;
package/dist/hooks.mjs CHANGED
@@ -3918,16 +3918,21 @@ function useModelService() {
3918
3918
  [env]
3919
3919
  );
3920
3920
  const getListFieldsOnchange = useCallback8(
3921
- async ({ model }) => {
3921
+ async ({ model, service }) => {
3922
3922
  const jsonData = {
3923
3923
  model,
3924
3924
  method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
3925
3925
  };
3926
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3927
- headers: {
3928
- "Content-Type": "application/json"
3929
- }
3930
- });
3926
+ return env.requests.post(
3927
+ "/call" /* CALL_PATH */,
3928
+ jsonData,
3929
+ {
3930
+ headers: {
3931
+ "Content-Type": "application/json"
3932
+ }
3933
+ },
3934
+ service
3935
+ );
3931
3936
  },
3932
3937
  [env]
3933
3938
  );
@@ -4972,12 +4977,16 @@ var use_get_detail_default = useGetDetail;
4972
4977
 
4973
4978
  // src/hooks/model/use-get-field-onchange.ts
4974
4979
  import { useQuery as useQuery9 } from "@tanstack/react-query";
4975
- var useGetFieldOnChange = ({ model }) => {
4980
+ var useGetFieldOnChange = ({
4981
+ model,
4982
+ service
4983
+ }) => {
4976
4984
  const { getListFieldsOnchange } = useModelService();
4977
4985
  return useQuery9({
4978
4986
  queryKey: [`field-onchange-${model}`, model],
4979
4987
  queryFn: () => getListFieldsOnchange({
4980
- model
4988
+ model,
4989
+ service
4981
4990
  }).then((res) => {
4982
4991
  if (res) {
4983
4992
  return res;
package/dist/provider.js CHANGED
@@ -3970,16 +3970,21 @@ function useModelService() {
3970
3970
  [env]
3971
3971
  );
3972
3972
  const getListFieldsOnchange = (0, import_react8.useCallback)(
3973
- async ({ model }) => {
3973
+ async ({ model, service }) => {
3974
3974
  const jsonData = {
3975
3975
  model,
3976
3976
  method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
3977
3977
  };
3978
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3979
- headers: {
3980
- "Content-Type": "application/json"
3981
- }
3982
- });
3978
+ return env.requests.post(
3979
+ "/call" /* CALL_PATH */,
3980
+ jsonData,
3981
+ {
3982
+ headers: {
3983
+ "Content-Type": "application/json"
3984
+ }
3985
+ },
3986
+ service
3987
+ );
3983
3988
  },
3984
3989
  [env]
3985
3990
  );
@@ -5437,12 +5442,16 @@ var use_get_detail_default = useGetDetail;
5437
5442
 
5438
5443
  // src/hooks/model/use-get-field-onchange.ts
5439
5444
  var import_react_query37 = require("@tanstack/react-query");
5440
- var useGetFieldOnChange = ({ model }) => {
5445
+ var useGetFieldOnChange = ({
5446
+ model,
5447
+ service
5448
+ }) => {
5441
5449
  const { getListFieldsOnchange } = useModelService();
5442
5450
  return (0, import_react_query37.useQuery)({
5443
5451
  queryKey: [`field-onchange-${model}`, model],
5444
5452
  queryFn: () => getListFieldsOnchange({
5445
- model
5453
+ model,
5454
+ service
5446
5455
  }).then((res) => {
5447
5456
  if (res) {
5448
5457
  return res;
package/dist/provider.mjs CHANGED
@@ -3927,16 +3927,21 @@ function useModelService() {
3927
3927
  [env]
3928
3928
  );
3929
3929
  const getListFieldsOnchange = useCallback7(
3930
- async ({ model }) => {
3930
+ async ({ model, service }) => {
3931
3931
  const jsonData = {
3932
3932
  model,
3933
3933
  method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
3934
3934
  };
3935
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3936
- headers: {
3937
- "Content-Type": "application/json"
3938
- }
3939
- });
3935
+ return env.requests.post(
3936
+ "/call" /* CALL_PATH */,
3937
+ jsonData,
3938
+ {
3939
+ headers: {
3940
+ "Content-Type": "application/json"
3941
+ }
3942
+ },
3943
+ service
3944
+ );
3940
3945
  },
3941
3946
  [env]
3942
3947
  );
@@ -5394,12 +5399,16 @@ var use_get_detail_default = useGetDetail;
5394
5399
 
5395
5400
  // src/hooks/model/use-get-field-onchange.ts
5396
5401
  import { useQuery as useQuery9 } from "@tanstack/react-query";
5397
- var useGetFieldOnChange = ({ model }) => {
5402
+ var useGetFieldOnChange = ({
5403
+ model,
5404
+ service
5405
+ }) => {
5398
5406
  const { getListFieldsOnchange } = useModelService();
5399
5407
  return useQuery9({
5400
5408
  queryKey: [`field-onchange-${model}`, model],
5401
5409
  queryFn: () => getListFieldsOnchange({
5402
- model
5410
+ model,
5411
+ service
5403
5412
  }).then((res) => {
5404
5413
  if (res) {
5405
5414
  return res;
@@ -180,8 +180,9 @@ declare function useModelService(): {
180
180
  save: ({ model, ids, data, specification, context, path, service, }: SaveParams) => Promise<any>;
181
181
  deleteApi: ({ ids, model, service }: DeleteParams) => Promise<any>;
182
182
  onChange: ({ ids, model, object, specification, context, fieldChange, service, }: OnChangeParams) => Promise<any>;
183
- getListFieldsOnchange: ({ model }: {
183
+ getListFieldsOnchange: ({ model, service }: {
184
184
  model: string;
185
+ service?: string;
185
186
  }) => Promise<any>;
186
187
  parseORMOdoo: (data: Record<string, any>) => {
187
188
  [x: string]: any;
@@ -180,8 +180,9 @@ declare function useModelService(): {
180
180
  save: ({ model, ids, data, specification, context, path, service, }: SaveParams) => Promise<any>;
181
181
  deleteApi: ({ ids, model, service }: DeleteParams) => Promise<any>;
182
182
  onChange: ({ ids, model, object, specification, context, fieldChange, service, }: OnChangeParams) => Promise<any>;
183
- getListFieldsOnchange: ({ model }: {
183
+ getListFieldsOnchange: ({ model, service }: {
184
184
  model: string;
185
+ service?: string;
185
186
  }) => Promise<any>;
186
187
  parseORMOdoo: (data: Record<string, any>) => {
187
188
  [x: string]: any;
package/dist/services.js CHANGED
@@ -4137,16 +4137,21 @@ function useModelService() {
4137
4137
  [env]
4138
4138
  );
4139
4139
  const getListFieldsOnchange = (0, import_react12.useCallback)(
4140
- async ({ model }) => {
4140
+ async ({ model, service }) => {
4141
4141
  const jsonData = {
4142
4142
  model,
4143
4143
  method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
4144
4144
  };
4145
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
4146
- headers: {
4147
- "Content-Type": "application/json"
4148
- }
4149
- });
4145
+ return env.requests.post(
4146
+ "/call" /* CALL_PATH */,
4147
+ jsonData,
4148
+ {
4149
+ headers: {
4150
+ "Content-Type": "application/json"
4151
+ }
4152
+ },
4153
+ service
4154
+ );
4150
4155
  },
4151
4156
  [env]
4152
4157
  );
package/dist/services.mjs CHANGED
@@ -4093,16 +4093,21 @@ function useModelService() {
4093
4093
  [env]
4094
4094
  );
4095
4095
  const getListFieldsOnchange = useCallback8(
4096
- async ({ model }) => {
4096
+ async ({ model, service }) => {
4097
4097
  const jsonData = {
4098
4098
  model,
4099
4099
  method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
4100
4100
  };
4101
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
4102
- headers: {
4103
- "Content-Type": "application/json"
4104
- }
4105
- });
4101
+ return env.requests.post(
4102
+ "/call" /* CALL_PATH */,
4103
+ jsonData,
4104
+ {
4105
+ headers: {
4106
+ "Content-Type": "application/json"
4107
+ }
4108
+ },
4109
+ service
4110
+ );
4106
4111
  },
4107
4112
  [env]
4108
4113
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",