@fctc/interface-logic 2.1.2 → 2.1.3

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
@@ -134,7 +134,7 @@ declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any,
134
134
  }, unknown>;
135
135
 
136
136
  declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
137
- data: any;
137
+ formData: any;
138
138
  }, unknown>;
139
139
 
140
140
  declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
package/dist/hooks.d.ts CHANGED
@@ -134,7 +134,7 @@ declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any,
134
134
  }, unknown>;
135
135
 
136
136
  declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
137
- data: any;
137
+ formData: any;
138
138
  }, unknown>;
139
139
 
140
140
  declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
package/dist/hooks.js CHANGED
@@ -3586,8 +3586,8 @@ function useFormService() {
3586
3586
  [env]
3587
3587
  );
3588
3588
  const uploadImage = (0, import_react10.useCallback)(
3589
- async ({ data }) => {
3590
- return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, data);
3589
+ async ({ formData }) => {
3590
+ return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
3591
3591
  },
3592
3592
  [env]
3593
3593
  );
@@ -4991,8 +4991,8 @@ var import_react_query31 = require("@tanstack/react-query");
4991
4991
  var useUploadImage = () => {
4992
4992
  const { uploadImage } = useFormService();
4993
4993
  return (0, import_react_query31.useMutation)({
4994
- mutationFn: ({ data }) => uploadImage({
4995
- data
4994
+ mutationFn: ({ formData }) => uploadImage({
4995
+ formData
4996
4996
  })
4997
4997
  });
4998
4998
  };
package/dist/hooks.mjs CHANGED
@@ -3483,8 +3483,8 @@ function useFormService() {
3483
3483
  [env]
3484
3484
  );
3485
3485
  const uploadImage = useCallback6(
3486
- async ({ data }) => {
3487
- return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, data);
3486
+ async ({ formData }) => {
3487
+ return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
3488
3488
  },
3489
3489
  [env]
3490
3490
  );
@@ -4888,8 +4888,8 @@ import { useMutation as useMutation24 } from "@tanstack/react-query";
4888
4888
  var useUploadImage = () => {
4889
4889
  const { uploadImage } = useFormService();
4890
4890
  return useMutation24({
4891
- mutationFn: ({ data }) => uploadImage({
4892
- data
4891
+ mutationFn: ({ formData }) => uploadImage({
4892
+ formData
4893
4893
  })
4894
4894
  });
4895
4895
  };
package/dist/provider.js CHANGED
@@ -3535,8 +3535,8 @@ function useFormService() {
3535
3535
  [env]
3536
3536
  );
3537
3537
  const uploadImage = (0, import_react6.useCallback)(
3538
- async ({ data }) => {
3539
- return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, data);
3538
+ async ({ formData }) => {
3539
+ return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
3540
3540
  },
3541
3541
  [env]
3542
3542
  );
@@ -5322,8 +5322,8 @@ var import_react_query31 = require("@tanstack/react-query");
5322
5322
  var useUploadImage = () => {
5323
5323
  const { uploadImage } = useFormService();
5324
5324
  return (0, import_react_query31.useMutation)({
5325
- mutationFn: ({ data }) => uploadImage({
5326
- data
5325
+ mutationFn: ({ formData }) => uploadImage({
5326
+ formData
5327
5327
  })
5328
5328
  });
5329
5329
  };
package/dist/provider.mjs CHANGED
@@ -3492,8 +3492,8 @@ function useFormService() {
3492
3492
  [env]
3493
3493
  );
3494
3494
  const uploadImage = useCallback5(
3495
- async ({ data }) => {
3496
- return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, data);
3495
+ async ({ formData }) => {
3496
+ return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
3497
3497
  },
3498
3498
  [env]
3499
3499
  );
@@ -5279,8 +5279,8 @@ import { useMutation as useMutation24 } from "@tanstack/react-query";
5279
5279
  var useUploadImage = () => {
5280
5280
  const { uploadImage } = useFormService();
5281
5281
  return useMutation24({
5282
- mutationFn: ({ data }) => uploadImage({
5283
- data
5282
+ mutationFn: ({ formData }) => uploadImage({
5283
+ formData
5284
5284
  })
5285
5285
  });
5286
5286
  };
@@ -131,8 +131,8 @@ declare function useFormService(): {
131
131
  getImage: ({ data }: {
132
132
  data: any;
133
133
  }) => Promise<any>;
134
- uploadImage: ({ data }: {
135
- data: any;
134
+ uploadImage: ({ formData }: {
135
+ formData: any;
136
136
  }) => Promise<any>;
137
137
  getFormView: ({ data }: {
138
138
  data: TFormView;
@@ -131,8 +131,8 @@ declare function useFormService(): {
131
131
  getImage: ({ data }: {
132
132
  data: any;
133
133
  }) => Promise<any>;
134
- uploadImage: ({ data }: {
135
- data: any;
134
+ uploadImage: ({ formData }: {
135
+ formData: any;
136
136
  }) => Promise<any>;
137
137
  getFormView: ({ data }: {
138
138
  data: TFormView;
package/dist/services.js CHANGED
@@ -3702,8 +3702,8 @@ function useFormService() {
3702
3702
  [env]
3703
3703
  );
3704
3704
  const uploadImage = (0, import_react10.useCallback)(
3705
- async ({ data }) => {
3706
- return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, data);
3705
+ async ({ formData }) => {
3706
+ return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
3707
3707
  },
3708
3708
  [env]
3709
3709
  );
package/dist/services.mjs CHANGED
@@ -3658,8 +3658,8 @@ function useFormService() {
3658
3658
  [env]
3659
3659
  );
3660
3660
  const uploadImage = useCallback6(
3661
- async ({ data }) => {
3662
- return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, data);
3661
+ async ({ formData }) => {
3662
+ return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
3663
3663
  },
3664
3664
  [env]
3665
3665
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",