@fctc/interface-logic 3.7.4 → 3.7.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/hooks.js CHANGED
@@ -5855,13 +5855,27 @@ function useDashboardService() {
5855
5855
  service,
5856
5856
  xNode,
5857
5857
  body,
5858
- path
5858
+ path,
5859
+ method = "POST"
5859
5860
  }) => {
5861
+ const headers = {
5862
+ "Content-Type": "application/json",
5863
+ "X-Node": xNode
5864
+ };
5865
+ if (method === "GET") {
5866
+ return env.requests.get(
5867
+ path,
5868
+ {
5869
+ headers
5870
+ },
5871
+ service
5872
+ );
5873
+ }
5860
5874
  return env.requests.post(
5861
5875
  path,
5862
5876
  body,
5863
5877
  {
5864
- headers: { "Content-Type": "application/json", "X-Node": xNode }
5878
+ headers
5865
5879
  },
5866
5880
  service
5867
5881
  );
package/dist/hooks.mjs CHANGED
@@ -5715,13 +5715,27 @@ function useDashboardService() {
5715
5715
  service,
5716
5716
  xNode,
5717
5717
  body,
5718
- path
5718
+ path,
5719
+ method = "POST"
5719
5720
  }) => {
5721
+ const headers = {
5722
+ "Content-Type": "application/json",
5723
+ "X-Node": xNode
5724
+ };
5725
+ if (method === "GET") {
5726
+ return env.requests.get(
5727
+ path,
5728
+ {
5729
+ headers
5730
+ },
5731
+ service
5732
+ );
5733
+ }
5720
5734
  return env.requests.post(
5721
5735
  path,
5722
5736
  body,
5723
5737
  {
5724
- headers: { "Content-Type": "application/json", "X-Node": xNode }
5738
+ headers
5725
5739
  },
5726
5740
  service
5727
5741
  );
package/dist/provider.js CHANGED
@@ -5844,13 +5844,27 @@ function useDashboardService() {
5844
5844
  service,
5845
5845
  xNode,
5846
5846
  body,
5847
- path
5847
+ path,
5848
+ method = "POST"
5848
5849
  }) => {
5850
+ const headers = {
5851
+ "Content-Type": "application/json",
5852
+ "X-Node": xNode
5853
+ };
5854
+ if (method === "GET") {
5855
+ return env.requests.get(
5856
+ path,
5857
+ {
5858
+ headers
5859
+ },
5860
+ service
5861
+ );
5862
+ }
5849
5863
  return env.requests.post(
5850
5864
  path,
5851
5865
  body,
5852
5866
  {
5853
- headers: { "Content-Type": "application/json", "X-Node": xNode }
5867
+ headers
5854
5868
  },
5855
5869
  service
5856
5870
  );
package/dist/provider.mjs CHANGED
@@ -5801,13 +5801,27 @@ function useDashboardService() {
5801
5801
  service,
5802
5802
  xNode,
5803
5803
  body,
5804
- path
5804
+ path,
5805
+ method = "POST"
5805
5806
  }) => {
5807
+ const headers = {
5808
+ "Content-Type": "application/json",
5809
+ "X-Node": xNode
5810
+ };
5811
+ if (method === "GET") {
5812
+ return env.requests.get(
5813
+ path,
5814
+ {
5815
+ headers
5816
+ },
5817
+ service
5818
+ );
5819
+ }
5806
5820
  return env.requests.post(
5807
5821
  path,
5808
5822
  body,
5809
5823
  {
5810
- headers: { "Content-Type": "application/json", "X-Node": xNode }
5824
+ headers
5811
5825
  },
5812
5826
  service
5813
5827
  );
@@ -519,11 +519,12 @@ declare function useDashboardService(): {
519
519
  xNode?: string;
520
520
  body?: any;
521
521
  }) => Promise<any>;
522
- getDataChart: ({ service, xNode, body, path, }: {
522
+ getDataChart: ({ service, xNode, body, path, method, }: {
523
523
  service?: string;
524
524
  xNode?: string;
525
525
  body?: any;
526
526
  path?: string;
527
+ method?: "GET" | "POST";
527
528
  }) => Promise<any>;
528
529
  };
529
530
 
@@ -519,11 +519,12 @@ declare function useDashboardService(): {
519
519
  xNode?: string;
520
520
  body?: any;
521
521
  }) => Promise<any>;
522
- getDataChart: ({ service, xNode, body, path, }: {
522
+ getDataChart: ({ service, xNode, body, path, method, }: {
523
523
  service?: string;
524
524
  xNode?: string;
525
525
  body?: any;
526
526
  path?: string;
527
+ method?: "GET" | "POST";
527
528
  }) => Promise<any>;
528
529
  };
529
530
 
package/dist/services.js CHANGED
@@ -6046,13 +6046,27 @@ function useDashboardService() {
6046
6046
  service,
6047
6047
  xNode,
6048
6048
  body,
6049
- path
6049
+ path,
6050
+ method = "POST"
6050
6051
  }) => {
6052
+ const headers = {
6053
+ "Content-Type": "application/json",
6054
+ "X-Node": xNode
6055
+ };
6056
+ if (method === "GET") {
6057
+ return env.requests.get(
6058
+ path,
6059
+ {
6060
+ headers
6061
+ },
6062
+ service
6063
+ );
6064
+ }
6051
6065
  return env.requests.post(
6052
6066
  path,
6053
6067
  body,
6054
6068
  {
6055
- headers: { "Content-Type": "application/json", "X-Node": xNode }
6069
+ headers
6056
6070
  },
6057
6071
  service
6058
6072
  );
package/dist/services.mjs CHANGED
@@ -6001,13 +6001,27 @@ function useDashboardService() {
6001
6001
  service,
6002
6002
  xNode,
6003
6003
  body,
6004
- path
6004
+ path,
6005
+ method = "POST"
6005
6006
  }) => {
6007
+ const headers = {
6008
+ "Content-Type": "application/json",
6009
+ "X-Node": xNode
6010
+ };
6011
+ if (method === "GET") {
6012
+ return env.requests.get(
6013
+ path,
6014
+ {
6015
+ headers
6016
+ },
6017
+ service
6018
+ );
6019
+ }
6006
6020
  return env.requests.post(
6007
6021
  path,
6008
6022
  body,
6009
6023
  {
6010
- headers: { "Content-Type": "application/json", "X-Node": xNode }
6024
+ headers
6011
6025
  },
6012
6026
  service
6013
6027
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "3.7.4",
3
+ "version": "3.7.5",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",