datastake-daf 0.6.716 → 0.6.718

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.
@@ -580,12 +580,9 @@ class BaseHTTPService {
580
580
  this._axiosInitialized = false;
581
581
  }
582
582
  _ensureAxiosInitialized() {
583
- console.log('[BaseHTTPService] Checking axios initialization:', this._axiosInitialized);
584
583
  if (!this._axiosInitialized) {
585
- console.log('[BaseHTTPService] Setting up axios...');
586
584
  this.setupAxios();
587
585
  this._axiosInitialized = true;
588
- console.log('[BaseHTTPService] Axios setup complete!');
589
586
  }
590
587
  }
591
588
  setupAxios() {
@@ -910,7 +907,7 @@ class BaseService extends BaseHTTPService {
910
907
  getHeaders: () => {
911
908
  const config = getServicesConfig();
912
909
  return {
913
- Language: config.language || StorageManager$1.get('datastakeLng') || 'en',
910
+ Language: StorageManager$1.get('datastakeLng') || 'en',
914
911
  'ngrok-skip-browser-warning': true,
915
912
  Application: config.application
916
913
  };
@@ -972,7 +969,7 @@ function createLazyService(ServiceClass) {
972
969
  class AuthenticationService extends BaseService {
973
970
  register(form) {
974
971
  return this.apiPost({
975
- url: '/auth/sign-up',
972
+ url: '/register',
976
973
  data: form
977
974
  });
978
975
  }
@@ -1025,10 +1022,10 @@ class AuthenticationService extends BaseService {
1025
1022
  });
1026
1023
  }
1027
1024
  verify(code) {
1028
- return this.apiPost({
1025
+ return this.apiGet({
1029
1026
  url: '/register/confirm',
1030
- data: {
1031
- code
1027
+ params: {
1028
+ token: code
1032
1029
  },
1033
1030
  isDaf: true
1034
1031
  });
@@ -1150,13 +1147,19 @@ class AuthenticationService extends BaseService {
1150
1147
  });
1151
1148
  }
1152
1149
  getFormOptions({
1153
- references = ['countries', 'categoriesOptions', 'subCategoriesOptions', 'locationCategoriesOptions', 'documentationTypesOptions']
1150
+ references = ['countries', 'categoriesOptions', 'subCategoriesOptions', 'locationCategoriesOptions', 'documentationTypesOptions'],
1151
+ language,
1152
+ ...params
1154
1153
  }) {
1154
+ console.log({
1155
+ language
1156
+ });
1155
1157
  return this.apiPost({
1156
1158
  url: '/query/form-options',
1157
1159
  isDaf: true,
1158
1160
  data: {
1159
- references
1161
+ references,
1162
+ language
1160
1163
  }
1161
1164
  });
1162
1165
  }