datastake-daf 0.6.651 → 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.
@@ -41319,7 +41319,6 @@ const createErrorHandler = (config = {}) => {
41319
41319
  window.globalServicesConfig = {
41320
41320
  application: null,
41321
41321
  mainApiUrl: null,
41322
- storeUrl: null,
41323
41322
  language: 'en',
41324
41323
  onError: null,
41325
41324
  messageHandler: null,
@@ -41402,7 +41401,6 @@ class BaseService extends BaseHTTPService {
41402
41401
  },
41403
41402
  getBaseURL: options => {
41404
41403
  const config = getServicesConfig();
41405
- if (options?.isStore) return config.storeUrl;
41406
41404
  return config.mainApiUrl;
41407
41405
  },
41408
41406
  onError: errorHandler,
@@ -41410,12 +41408,6 @@ class BaseService extends BaseHTTPService {
41410
41408
  });
41411
41409
  }
41412
41410
  apiGet(options) {
41413
- const config = getServicesConfig();
41414
-
41415
- // Add custom baseURL handling for isStore
41416
- if (options.isStore) {
41417
- options.baseURL = config.storeUrl;
41418
- }
41419
41411
 
41420
41412
  // Call parent's apiGet
41421
41413
  return super.apiGet(options);
@@ -41521,7 +41513,6 @@ class ChannelsService extends BaseService {
41521
41513
  return this.apiGet({
41522
41514
  url: `/api/channel/query`,
41523
41515
  params,
41524
- isStore: true,
41525
41516
  headers: token ? {
41526
41517
  Authorization: `Bearer ${token}`
41527
41518
  } : undefined
@@ -41537,14 +41528,12 @@ class ChannelsService extends BaseService {
41537
41528
  }
41538
41529
  getChannel(id) {
41539
41530
  return this.apiGet({
41540
- url: `/api/channel/${id}`,
41541
- isStore: true
41531
+ url: `/api/channel/${id}`
41542
41532
  });
41543
41533
  }
41544
41534
  acquire(id) {
41545
41535
  return this.apiPost({
41546
- url: `/api/subject/${id}/acquire`,
41547
- isStore: true
41536
+ url: `/api/subject/${id}/acquire`
41548
41537
  });
41549
41538
  }
41550
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.651",
3
+ "version": "0.6.652",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -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,