datastake-daf 0.6.650 → 0.6.652

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.
@@ -40569,8 +40569,9 @@ function AuthForm(_ref) {
40569
40569
  }, [executeRecaptcha]);
40570
40570
  const next = async () => {
40571
40571
  try {
40572
- await formInstance.validateFields(currentFields.map(f => f.name));
40573
- const currentValues = formInstance.getFieldsValue();
40572
+ const fieldNames = currentFields.map(f => f.name);
40573
+ await formInstance.validateFields(fieldNames);
40574
+ const currentValues = formInstance.getFieldsValue(fieldNames);
40574
40575
  setAllFormValues(prev => _objectSpread2(_objectSpread2({}, prev), currentValues));
40575
40576
  setCurrentStep(prev => prev + 1);
40576
40577
  } catch (err) {
@@ -41318,7 +41319,6 @@ const createErrorHandler = (config = {}) => {
41318
41319
  window.globalServicesConfig = {
41319
41320
  application: null,
41320
41321
  mainApiUrl: null,
41321
- storeUrl: null,
41322
41322
  language: 'en',
41323
41323
  onError: null,
41324
41324
  messageHandler: null,
@@ -41401,7 +41401,6 @@ class BaseService extends BaseHTTPService {
41401
41401
  },
41402
41402
  getBaseURL: options => {
41403
41403
  const config = getServicesConfig();
41404
- if (options?.isStore) return config.storeUrl;
41405
41404
  return config.mainApiUrl;
41406
41405
  },
41407
41406
  onError: errorHandler,
@@ -41409,12 +41408,6 @@ class BaseService extends BaseHTTPService {
41409
41408
  });
41410
41409
  }
41411
41410
  apiGet(options) {
41412
- const config = getServicesConfig();
41413
-
41414
- // Add custom baseURL handling for isStore
41415
- if (options.isStore) {
41416
- options.baseURL = config.storeUrl;
41417
- }
41418
41411
 
41419
41412
  // Call parent's apiGet
41420
41413
  return super.apiGet(options);
@@ -41520,7 +41513,6 @@ class ChannelsService extends BaseService {
41520
41513
  return this.apiGet({
41521
41514
  url: `/api/channel/query`,
41522
41515
  params,
41523
- isStore: true,
41524
41516
  headers: token ? {
41525
41517
  Authorization: `Bearer ${token}`
41526
41518
  } : undefined
@@ -41536,14 +41528,12 @@ class ChannelsService extends BaseService {
41536
41528
  }
41537
41529
  getChannel(id) {
41538
41530
  return this.apiGet({
41539
- url: `/api/channel/${id}`,
41540
- isStore: true
41531
+ url: `/api/channel/${id}`
41541
41532
  });
41542
41533
  }
41543
41534
  acquire(id) {
41544
41535
  return this.apiPost({
41545
- url: `/api/subject/${id}/acquire`,
41546
- isStore: true
41536
+ url: `/api/subject/${id}/acquire`
41547
41537
  });
41548
41538
  }
41549
41539
  }
@@ -833,7 +833,6 @@ const createErrorHandler = (config = {}) => {
833
833
  window.globalServicesConfig = {
834
834
  application: null,
835
835
  mainApiUrl: null,
836
- storeUrl: null,
837
836
  language: 'en',
838
837
  onError: null,
839
838
  messageHandler: null,
@@ -916,7 +915,6 @@ class BaseService extends BaseHTTPService {
916
915
  },
917
916
  getBaseURL: options => {
918
917
  const config = getServicesConfig();
919
- if (options?.isStore) return config.storeUrl;
920
918
  return config.mainApiUrl;
921
919
  },
922
920
  onError: errorHandler,
@@ -924,12 +922,6 @@ class BaseService extends BaseHTTPService {
924
922
  });
925
923
  }
926
924
  apiGet(options) {
927
- const config = getServicesConfig();
928
-
929
- // Add custom baseURL handling for isStore
930
- if (options.isStore) {
931
- options.baseURL = config.storeUrl;
932
- }
933
925
 
934
926
  // Call parent's apiGet
935
927
  return super.apiGet(options);
@@ -473,7 +473,6 @@ class ErrorHandler {
473
473
  window.globalServicesConfig = {
474
474
  application: null,
475
475
  mainApiUrl: null,
476
- storeUrl: null,
477
476
  language: 'en',
478
477
  onError: null,
479
478
  messageHandler: null,
@@ -671,7 +670,6 @@ class BaseService extends BaseHTTPService {
671
670
  },
672
671
  getBaseURL: options => {
673
672
  const config = getServicesConfig();
674
- if (options?.isStore) return config.storeUrl;
675
673
  return config.mainApiUrl;
676
674
  },
677
675
  onError: errorHandler,
@@ -679,12 +677,6 @@ class BaseService extends BaseHTTPService {
679
677
  });
680
678
  }
681
679
  apiGet(options) {
682
- const config = getServicesConfig();
683
-
684
- // Add custom baseURL handling for isStore
685
- if (options.isStore) {
686
- options.baseURL = config.storeUrl;
687
- }
688
680
 
689
681
  // Call parent's apiGet
690
682
  return super.apiGet(options);
@@ -971,7 +963,6 @@ class ChannelsService extends BaseService {
971
963
  return this.apiGet({
972
964
  url: `/api/channel/query`,
973
965
  params,
974
- isStore: true,
975
966
  headers: token ? {
976
967
  Authorization: `Bearer ${token}`
977
968
  } : undefined
@@ -987,14 +978,12 @@ class ChannelsService extends BaseService {
987
978
  }
988
979
  getChannel(id) {
989
980
  return this.apiGet({
990
- url: `/api/channel/${id}`,
991
- isStore: true
981
+ url: `/api/channel/${id}`
992
982
  });
993
983
  }
994
984
  acquire(id) {
995
985
  return this.apiPost({
996
- url: `/api/subject/${id}/acquire`,
997
- isStore: true
986
+ url: `/api/subject/${id}/acquire`
998
987
  });
999
988
  }
1000
989
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.650",
3
+ "version": "0.6.652",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -45,10 +45,9 @@ function AuthForm ({
45
45
 
46
46
  const next = async () => {
47
47
  try {
48
- await formInstance.validateFields(
49
- currentFields.map((f) => f.name)
50
- );
51
- const currentValues = formInstance.getFieldsValue();
48
+ const fieldNames = currentFields.map((f) => f.name);
49
+ await formInstance.validateFields(fieldNames);
50
+ const currentValues = formInstance.getFieldsValue(fieldNames);
52
51
  setAllFormValues((prev) => ({ ...prev, ...currentValues }));
53
52
  setCurrentStep((prev) => prev + 1);
54
53
  } catch (err) {
@@ -43,7 +43,6 @@ export class BaseService extends BaseHTTPService {
43
43
  },
44
44
  getBaseURL: (options) => {
45
45
  const config = getServicesConfig();
46
- if (options?.isStore) return config.storeUrl;
47
46
  return config.mainApiUrl;
48
47
  },
49
48
  onError: errorHandler,
@@ -54,11 +53,6 @@ export class BaseService extends BaseHTTPService {
54
53
  apiGet(options) {
55
54
  const config = getServicesConfig();
56
55
 
57
- // Add custom baseURL handling for isStore
58
- if (options.isStore) {
59
- options.baseURL = config.storeUrl;
60
- }
61
-
62
56
  // Call parent's apiGet
63
57
  return super.apiGet(options);
64
58
  }
@@ -8,7 +8,6 @@ class ChannelsService extends BaseService {
8
8
  return this.apiGet({
9
9
  url: `/api/channel/query`,
10
10
  params,
11
- isStore: true,
12
11
  headers: token ? {
13
12
  Authorization: `Bearer ${token}`,
14
13
  } : undefined,
@@ -27,14 +26,12 @@ class ChannelsService extends BaseService {
27
26
  getChannel(id) {
28
27
  return this.apiGet({
29
28
  url: `/api/channel/${id}`,
30
- isStore: true
31
29
  });
32
30
  }
33
31
 
34
32
  acquire(id) {
35
33
  return this.apiPost({
36
34
  url: `/api/subject/${id}/acquire`,
37
- isStore: true
38
35
  });
39
36
  }
40
37
  }
@@ -1,7 +1,6 @@
1
1
  window.globalServicesConfig = {
2
2
  application: null,
3
3
  mainApiUrl: null,
4
- storeUrl: null,
5
4
  language: 'en',
6
5
  onError: null,
7
6
  messageHandler: null,