@fctc/interface-logic 3.4.8 → 3.4.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.
package/dist/hooks.d.mts CHANGED
@@ -93,10 +93,11 @@ declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<a
93
93
  xNode?: string;
94
94
  }, unknown>;
95
95
 
96
- declare const useGetFileExcel: ({ model, service, xNode, }: {
96
+ declare const useGetFileExcel: ({ model, service, xNode, context, }: {
97
97
  model: string;
98
98
  service?: string;
99
99
  xNode?: string;
100
+ context: any;
100
101
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
101
102
 
102
103
  declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
package/dist/hooks.d.ts CHANGED
@@ -93,10 +93,11 @@ declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<a
93
93
  xNode?: string;
94
94
  }, unknown>;
95
95
 
96
- declare const useGetFileExcel: ({ model, service, xNode, }: {
96
+ declare const useGetFileExcel: ({ model, service, xNode, context, }: {
97
97
  model: string;
98
98
  service?: string;
99
99
  xNode?: string;
100
+ context: any;
100
101
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
101
102
 
102
103
  declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
package/dist/hooks.js CHANGED
@@ -3519,7 +3519,7 @@ function useExcelService() {
3519
3519
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3520
3520
  formData,
3521
3521
  {
3522
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3522
+ headers: { "X-Node": xNode }
3523
3523
  },
3524
3524
  service
3525
3525
  );
@@ -3536,7 +3536,7 @@ function useExcelService() {
3536
3536
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3537
3537
  formData,
3538
3538
  {
3539
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3539
+ headers: { "X-Node": xNode }
3540
3540
  },
3541
3541
  service
3542
3542
  );
@@ -3630,12 +3630,14 @@ function useExcelService() {
3630
3630
  async ({
3631
3631
  model,
3632
3632
  service,
3633
- xNode
3633
+ xNode,
3634
+ context
3634
3635
  }) => {
3635
3636
  const jsonData = {
3636
3637
  model,
3637
3638
  method: "get_import_templates" /* GET_IMPORT */,
3638
- args: []
3639
+ args: [],
3640
+ context
3639
3641
  };
3640
3642
  return env.requests.post(
3641
3643
  "/call" /* CALL_PATH */,
@@ -6005,7 +6007,8 @@ var import_react_query22 = require("@tanstack/react-query");
6005
6007
  var useGetFileExcel = ({
6006
6008
  model,
6007
6009
  service,
6008
- xNode
6010
+ xNode,
6011
+ context
6009
6012
  }) => {
6010
6013
  const { getFileExcel } = useExcelService();
6011
6014
  return (0, import_react_query22.useQuery)({
@@ -6013,7 +6016,8 @@ var useGetFileExcel = ({
6013
6016
  queryFn: () => getFileExcel({
6014
6017
  model,
6015
6018
  service,
6016
- xNode
6019
+ xNode,
6020
+ context
6017
6021
  }).then((res) => {
6018
6022
  if (res) {
6019
6023
  return res;
package/dist/hooks.mjs CHANGED
@@ -3384,7 +3384,7 @@ function useExcelService() {
3384
3384
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3385
3385
  formData,
3386
3386
  {
3387
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3387
+ headers: { "X-Node": xNode }
3388
3388
  },
3389
3389
  service
3390
3390
  );
@@ -3401,7 +3401,7 @@ function useExcelService() {
3401
3401
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3402
3402
  formData,
3403
3403
  {
3404
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3404
+ headers: { "X-Node": xNode }
3405
3405
  },
3406
3406
  service
3407
3407
  );
@@ -3495,12 +3495,14 @@ function useExcelService() {
3495
3495
  async ({
3496
3496
  model,
3497
3497
  service,
3498
- xNode
3498
+ xNode,
3499
+ context
3499
3500
  }) => {
3500
3501
  const jsonData = {
3501
3502
  model,
3502
3503
  method: "get_import_templates" /* GET_IMPORT */,
3503
- args: []
3504
+ args: [],
3505
+ context
3504
3506
  };
3505
3507
  return env.requests.post(
3506
3508
  "/call" /* CALL_PATH */,
@@ -5870,7 +5872,8 @@ import { useQuery as useQuery2 } from "@tanstack/react-query";
5870
5872
  var useGetFileExcel = ({
5871
5873
  model,
5872
5874
  service,
5873
- xNode
5875
+ xNode,
5876
+ context
5874
5877
  }) => {
5875
5878
  const { getFileExcel } = useExcelService();
5876
5879
  return useQuery2({
@@ -5878,7 +5881,8 @@ var useGetFileExcel = ({
5878
5881
  queryFn: () => getFileExcel({
5879
5882
  model,
5880
5883
  service,
5881
- xNode
5884
+ xNode,
5885
+ context
5882
5886
  }).then((res) => {
5883
5887
  if (res) {
5884
5888
  return res;
package/dist/provider.js CHANGED
@@ -3513,7 +3513,7 @@ function useExcelService() {
3513
3513
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3514
3514
  formData,
3515
3515
  {
3516
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3516
+ headers: { "X-Node": xNode }
3517
3517
  },
3518
3518
  service
3519
3519
  );
@@ -3530,7 +3530,7 @@ function useExcelService() {
3530
3530
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3531
3531
  formData,
3532
3532
  {
3533
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3533
+ headers: { "X-Node": xNode }
3534
3534
  },
3535
3535
  service
3536
3536
  );
@@ -3624,12 +3624,14 @@ function useExcelService() {
3624
3624
  async ({
3625
3625
  model,
3626
3626
  service,
3627
- xNode
3627
+ xNode,
3628
+ context
3628
3629
  }) => {
3629
3630
  const jsonData = {
3630
3631
  model,
3631
3632
  method: "get_import_templates" /* GET_IMPORT */,
3632
- args: []
3633
+ args: [],
3634
+ context
3633
3635
  };
3634
3636
  return env.requests.post(
3635
3637
  "/call" /* CALL_PATH */,
@@ -6382,7 +6384,8 @@ var import_react_query22 = require("@tanstack/react-query");
6382
6384
  var useGetFileExcel = ({
6383
6385
  model,
6384
6386
  service,
6385
- xNode
6387
+ xNode,
6388
+ context
6386
6389
  }) => {
6387
6390
  const { getFileExcel } = useExcelService();
6388
6391
  return (0, import_react_query22.useQuery)({
@@ -6390,7 +6393,8 @@ var useGetFileExcel = ({
6390
6393
  queryFn: () => getFileExcel({
6391
6394
  model,
6392
6395
  service,
6393
- xNode
6396
+ xNode,
6397
+ context
6394
6398
  }).then((res) => {
6395
6399
  if (res) {
6396
6400
  return res;
package/dist/provider.mjs CHANGED
@@ -3470,7 +3470,7 @@ function useExcelService() {
3470
3470
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3471
3471
  formData,
3472
3472
  {
3473
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3473
+ headers: { "X-Node": xNode }
3474
3474
  },
3475
3475
  service
3476
3476
  );
@@ -3487,7 +3487,7 @@ function useExcelService() {
3487
3487
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3488
3488
  formData,
3489
3489
  {
3490
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3490
+ headers: { "X-Node": xNode }
3491
3491
  },
3492
3492
  service
3493
3493
  );
@@ -3581,12 +3581,14 @@ function useExcelService() {
3581
3581
  async ({
3582
3582
  model,
3583
3583
  service,
3584
- xNode
3584
+ xNode,
3585
+ context
3585
3586
  }) => {
3586
3587
  const jsonData = {
3587
3588
  model,
3588
3589
  method: "get_import_templates" /* GET_IMPORT */,
3589
- args: []
3590
+ args: [],
3591
+ context
3590
3592
  };
3591
3593
  return env.requests.post(
3592
3594
  "/call" /* CALL_PATH */,
@@ -6339,7 +6341,8 @@ import { useQuery as useQuery2 } from "@tanstack/react-query";
6339
6341
  var useGetFileExcel = ({
6340
6342
  model,
6341
6343
  service,
6342
- xNode
6344
+ xNode,
6345
+ context
6343
6346
  }) => {
6344
6347
  const { getFileExcel } = useExcelService();
6345
6348
  return useQuery2({
@@ -6347,7 +6350,8 @@ var useGetFileExcel = ({
6347
6350
  queryFn: () => getFileExcel({
6348
6351
  model,
6349
6352
  service,
6350
- xNode
6353
+ xNode,
6354
+ context
6351
6355
  }).then((res) => {
6352
6356
  if (res) {
6353
6357
  return res;
@@ -122,10 +122,11 @@ declare function useExcelService(): {
122
122
  service?: string;
123
123
  xNode?: string;
124
124
  }) => Promise<any>;
125
- getFileExcel: ({ model, service, xNode, }: {
125
+ getFileExcel: ({ model, service, xNode, context, }: {
126
126
  model: string;
127
127
  service?: string;
128
128
  xNode?: string;
129
+ context: any;
129
130
  }) => Promise<any>;
130
131
  getFieldExport: ({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, service, xNode, }: {
131
132
  ids: any;
@@ -122,10 +122,11 @@ declare function useExcelService(): {
122
122
  service?: string;
123
123
  xNode?: string;
124
124
  }) => Promise<any>;
125
- getFileExcel: ({ model, service, xNode, }: {
125
+ getFileExcel: ({ model, service, xNode, context, }: {
126
126
  model: string;
127
127
  service?: string;
128
128
  xNode?: string;
129
+ context: any;
129
130
  }) => Promise<any>;
130
131
  getFieldExport: ({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, service, xNode, }: {
131
132
  ids: any;
package/dist/services.js CHANGED
@@ -3699,7 +3699,7 @@ function useExcelService() {
3699
3699
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3700
3700
  formData,
3701
3701
  {
3702
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3702
+ headers: { "X-Node": xNode }
3703
3703
  },
3704
3704
  service
3705
3705
  );
@@ -3716,7 +3716,7 @@ function useExcelService() {
3716
3716
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3717
3717
  formData,
3718
3718
  {
3719
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3719
+ headers: { "X-Node": xNode }
3720
3720
  },
3721
3721
  service
3722
3722
  );
@@ -3810,12 +3810,14 @@ function useExcelService() {
3810
3810
  async ({
3811
3811
  model,
3812
3812
  service,
3813
- xNode
3813
+ xNode,
3814
+ context
3814
3815
  }) => {
3815
3816
  const jsonData = {
3816
3817
  model,
3817
3818
  method: "get_import_templates" /* GET_IMPORT */,
3818
- args: []
3819
+ args: [],
3820
+ context
3819
3821
  };
3820
3822
  return env.requests.post(
3821
3823
  "/call" /* CALL_PATH */,
package/dist/services.mjs CHANGED
@@ -3655,7 +3655,7 @@ function useExcelService() {
3655
3655
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3656
3656
  formData,
3657
3657
  {
3658
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3658
+ headers: { "X-Node": xNode }
3659
3659
  },
3660
3660
  service
3661
3661
  );
@@ -3672,7 +3672,7 @@ function useExcelService() {
3672
3672
  "/upload/file" /* UPLOAD_FILE_EXCEL_PATH */,
3673
3673
  formData,
3674
3674
  {
3675
- headers: { "Content-Type": "application/json", "X-Node": xNode }
3675
+ headers: { "X-Node": xNode }
3676
3676
  },
3677
3677
  service
3678
3678
  );
@@ -3766,12 +3766,14 @@ function useExcelService() {
3766
3766
  async ({
3767
3767
  model,
3768
3768
  service,
3769
- xNode
3769
+ xNode,
3770
+ context
3770
3771
  }) => {
3771
3772
  const jsonData = {
3772
3773
  model,
3773
3774
  method: "get_import_templates" /* GET_IMPORT */,
3774
- args: []
3775
+ args: [],
3776
+ context
3775
3777
  };
3776
3778
  return env.requests.post(
3777
3779
  "/call" /* CALL_PATH */,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "3.4.8",
3
+ "version": "3.4.10",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",