@fctc/interface-logic 4.1.10 → 4.2.1

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.
@@ -44,7 +44,7 @@ declare enum UriConstants {
44
44
  REPORT_PATH = "/report",
45
45
  RUN_ACTION_PATH = "/run_action",
46
46
  UPLOAD_FILE_EXCEL_PATH = "/upload/file",
47
- UPLOAD_FILE_PATH = "/web/binary/upload_attachment",
47
+ UPLOAD_FILE_PATH = "/file/upload",
48
48
  GET_MESSAGE = "/chatter/thread/messages",
49
49
  GET_THREAD_DATA = "/mail/thread/data",
50
50
  GET_THREAD_MESSAGES = "/mail/thread/messages",
@@ -44,7 +44,7 @@ declare enum UriConstants {
44
44
  REPORT_PATH = "/report",
45
45
  RUN_ACTION_PATH = "/run_action",
46
46
  UPLOAD_FILE_EXCEL_PATH = "/upload/file",
47
- UPLOAD_FILE_PATH = "/web/binary/upload_attachment",
47
+ UPLOAD_FILE_PATH = "/file/upload",
48
48
  GET_MESSAGE = "/chatter/thread/messages",
49
49
  GET_THREAD_DATA = "/mail/thread/data",
50
50
  GET_THREAD_MESSAGES = "/mail/thread/messages",
package/dist/constants.js CHANGED
@@ -87,7 +87,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
87
87
  UriConstants2["REPORT_PATH"] = `/report`;
88
88
  UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
89
89
  UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
90
- UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
90
+ UriConstants2["UPLOAD_FILE_PATH"] = `/file/upload`;
91
91
  UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
92
92
  UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
93
93
  UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
@@ -49,7 +49,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
49
49
  UriConstants2["REPORT_PATH"] = `/report`;
50
50
  UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
51
51
  UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
52
- UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
52
+ UriConstants2["UPLOAD_FILE_PATH"] = `/file/upload`;
53
53
  UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
54
54
  UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
55
55
  UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
package/dist/hooks.d.mts CHANGED
@@ -177,6 +177,7 @@ declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any,
177
177
  formData: any;
178
178
  service?: string;
179
179
  xNode?: string;
180
+ path?: string;
180
181
  }, unknown>;
181
182
 
182
183
  declare const useGetThreadData: ({ data, queryKey, enabled, service, xNode, }: {
package/dist/hooks.d.ts CHANGED
@@ -177,6 +177,7 @@ declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any,
177
177
  formData: any;
178
178
  service?: string;
179
179
  xNode?: string;
180
+ path?: string;
180
181
  }, unknown>;
181
182
 
182
183
  declare const useGetThreadData: ({ data, queryKey, enabled, service, xNode, }: {
package/dist/hooks.js CHANGED
@@ -161,7 +161,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
161
161
  UriConstants2["REPORT_PATH"] = `/report`;
162
162
  UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
163
163
  UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
164
- UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
164
+ UriConstants2["UPLOAD_FILE_PATH"] = `/file/upload`;
165
165
  UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
166
166
  UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
167
167
  UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
@@ -3935,10 +3935,11 @@ function useFormService() {
3935
3935
  async ({
3936
3936
  formData,
3937
3937
  service,
3938
- xNode
3938
+ xNode,
3939
+ path
3939
3940
  }) => {
3940
3941
  return env.requests.post(
3941
- "/web/binary/upload_attachment" /* UPLOAD_FILE_PATH */,
3942
+ path,
3942
3943
  formData,
3943
3944
  {
3944
3945
  headers: {
@@ -6490,11 +6491,13 @@ var useUploadFile = () => {
6490
6491
  mutationFn: ({
6491
6492
  formData,
6492
6493
  service,
6493
- xNode
6494
+ xNode,
6495
+ path
6494
6496
  }) => uploadFile({
6495
6497
  formData,
6496
6498
  service,
6497
- xNode
6499
+ xNode,
6500
+ path
6498
6501
  })
6499
6502
  });
6500
6503
  };
package/dist/hooks.mjs CHANGED
@@ -18,7 +18,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
18
18
  UriConstants2["REPORT_PATH"] = `/report`;
19
19
  UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
20
20
  UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
21
- UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
21
+ UriConstants2["UPLOAD_FILE_PATH"] = `/file/upload`;
22
22
  UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
23
23
  UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
24
24
  UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
@@ -3792,10 +3792,11 @@ function useFormService() {
3792
3792
  async ({
3793
3793
  formData,
3794
3794
  service,
3795
- xNode
3795
+ xNode,
3796
+ path
3796
3797
  }) => {
3797
3798
  return env.requests.post(
3798
- "/web/binary/upload_attachment" /* UPLOAD_FILE_PATH */,
3799
+ path,
3799
3800
  formData,
3800
3801
  {
3801
3802
  headers: {
@@ -6347,11 +6348,13 @@ var useUploadFile = () => {
6347
6348
  mutationFn: ({
6348
6349
  formData,
6349
6350
  service,
6350
- xNode
6351
+ xNode,
6352
+ path
6351
6353
  }) => uploadFile({
6352
6354
  formData,
6353
6355
  service,
6354
- xNode
6356
+ xNode,
6357
+ path
6355
6358
  })
6356
6359
  });
6357
6360
  };
package/dist/provider.js CHANGED
@@ -717,7 +717,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
717
717
  UriConstants2["REPORT_PATH"] = `/report`;
718
718
  UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
719
719
  UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
720
- UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
720
+ UriConstants2["UPLOAD_FILE_PATH"] = `/file/upload`;
721
721
  UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
722
722
  UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
723
723
  UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
@@ -3922,10 +3922,11 @@ function useFormService() {
3922
3922
  async ({
3923
3923
  formData,
3924
3924
  service,
3925
- xNode
3925
+ xNode,
3926
+ path
3926
3927
  }) => {
3927
3928
  return env.requests.post(
3928
- "/web/binary/upload_attachment" /* UPLOAD_FILE_PATH */,
3929
+ path,
3929
3930
  formData,
3930
3931
  {
3931
3932
  headers: {
@@ -6973,11 +6974,13 @@ var useUploadFile = () => {
6973
6974
  mutationFn: ({
6974
6975
  formData,
6975
6976
  service,
6976
- xNode
6977
+ xNode,
6978
+ path
6977
6979
  }) => uploadFile({
6978
6980
  formData,
6979
6981
  service,
6980
- xNode
6982
+ xNode,
6983
+ path
6981
6984
  })
6982
6985
  });
6983
6986
  };
package/dist/provider.mjs CHANGED
@@ -674,7 +674,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
674
674
  UriConstants2["REPORT_PATH"] = `/report`;
675
675
  UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
676
676
  UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
677
- UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
677
+ UriConstants2["UPLOAD_FILE_PATH"] = `/file/upload`;
678
678
  UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
679
679
  UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
680
680
  UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
@@ -3879,10 +3879,11 @@ function useFormService() {
3879
3879
  async ({
3880
3880
  formData,
3881
3881
  service,
3882
- xNode
3882
+ xNode,
3883
+ path
3883
3884
  }) => {
3884
3885
  return env.requests.post(
3885
- "/web/binary/upload_attachment" /* UPLOAD_FILE_PATH */,
3886
+ path,
3886
3887
  formData,
3887
3888
  {
3888
3889
  headers: {
@@ -6930,11 +6931,13 @@ var useUploadFile = () => {
6930
6931
  mutationFn: ({
6931
6932
  formData,
6932
6933
  service,
6933
- xNode
6934
+ xNode,
6935
+ path
6934
6936
  }) => uploadFile({
6935
6937
  formData,
6936
6938
  service,
6937
- xNode
6939
+ xNode,
6940
+ path
6938
6941
  })
6939
6942
  });
6940
6943
  };
@@ -183,10 +183,11 @@ declare function useFormService(): {
183
183
  data: TFormView;
184
184
  }) => Promise<any>;
185
185
  changeStatus: ({ data }: any) => Promise<any>;
186
- uploadFile: ({ formData, service, xNode, }: {
186
+ uploadFile: ({ formData, service, xNode, path, }: {
187
187
  formData: any;
188
188
  service?: string;
189
189
  xNode?: string;
190
+ path?: string;
190
191
  }) => Promise<any>;
191
192
  getThreadMessages: ({ data, xNode, service, }: {
192
193
  data: TThreadData;
@@ -183,10 +183,11 @@ declare function useFormService(): {
183
183
  data: TFormView;
184
184
  }) => Promise<any>;
185
185
  changeStatus: ({ data }: any) => Promise<any>;
186
- uploadFile: ({ formData, service, xNode, }: {
186
+ uploadFile: ({ formData, service, xNode, path, }: {
187
187
  formData: any;
188
188
  service?: string;
189
189
  xNode?: string;
190
+ path?: string;
190
191
  }) => Promise<any>;
191
192
  getThreadMessages: ({ data, xNode, service, }: {
192
193
  data: TThreadData;
package/dist/services.js CHANGED
@@ -60,7 +60,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
60
60
  UriConstants2["REPORT_PATH"] = `/report`;
61
61
  UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
62
62
  UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
63
- UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
63
+ UriConstants2["UPLOAD_FILE_PATH"] = `/file/upload`;
64
64
  UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
65
65
  UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
66
66
  UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
@@ -4135,10 +4135,11 @@ function useFormService() {
4135
4135
  async ({
4136
4136
  formData,
4137
4137
  service,
4138
- xNode
4138
+ xNode,
4139
+ path
4139
4140
  }) => {
4140
4141
  return env.requests.post(
4141
- "/web/binary/upload_attachment" /* UPLOAD_FILE_PATH */,
4142
+ path,
4142
4143
  formData,
4143
4144
  {
4144
4145
  headers: {
package/dist/services.mjs CHANGED
@@ -15,7 +15,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
15
15
  UriConstants2["REPORT_PATH"] = `/report`;
16
16
  UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
17
17
  UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
18
- UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
18
+ UriConstants2["UPLOAD_FILE_PATH"] = `/file/upload`;
19
19
  UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
20
20
  UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
21
21
  UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
@@ -4090,10 +4090,11 @@ function useFormService() {
4090
4090
  async ({
4091
4091
  formData,
4092
4092
  service,
4093
- xNode
4093
+ xNode,
4094
+ path
4094
4095
  }) => {
4095
4096
  return env.requests.post(
4096
- "/web/binary/upload_attachment" /* UPLOAD_FILE_PATH */,
4097
+ path,
4097
4098
  formData,
4098
4099
  {
4099
4100
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "4.1.10",
3
+ "version": "4.2.1",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",