complexqa_frontend_core 1.10.9 → 1.10.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "complexqa_frontend_core",
3
- "version": "1.10.9",
3
+ "version": "1.10.11",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -40,6 +40,7 @@ export class Api
40
40
  host_api = false;
41
41
  frontend_host = false;
42
42
  general_domain = false;
43
+ site_section = false;
43
44
 
44
45
 
45
46
  /**
@@ -88,6 +89,12 @@ export class Api
88
89
  this.dev_stage_config = init_options.dev_stage_config;
89
90
  }
90
91
 
92
+
93
+ if (init_options.site_section)
94
+ {
95
+ this.site_section = init_options.site_section;
96
+ }
97
+
91
98
  this.init_options = init_options;
92
99
  this.constructor._instance = this;
93
100
 
@@ -133,6 +140,6 @@ export class Api
133
140
  this.test_suite = new TestSuiteApi(payload);
134
141
  this.test_run = new TestRunApi(payload);
135
142
  this.test_run_result = new TestRunResultApi(payload);
136
- this.user_profile = new UserProfileApi(payload);
143
+ this.user_profile = new UserProfileApi(payload);
137
144
  }
138
145
  }
@@ -4,6 +4,7 @@ import { is_array } from "../utils/utils.js";
4
4
  import { typeTeam } from "../types/family_elements/typeTeam.js";
5
5
 
6
6
  /**
7
+ * Сервис данных по текущему пользователю
7
8
  *
8
9
  * @version v.1.1 (27/07/2025)
9
10
  */
@@ -19,10 +20,15 @@ export class UserService extends abstractService
19
20
 
20
21
  /**
21
22
  *
23
+ * @deprecated
22
24
  * @type {false|string}
23
25
  */
24
26
  static user_name = false;
25
27
 
28
+ static first_name = false;
29
+ static last_name = false;
30
+ static user_status = false;
31
+ static email = false;
26
32
 
27
33
  /**
28
34
  *
@@ -171,23 +177,87 @@ export class UserService extends abstractService
171
177
 
172
178
  /**
173
179
  *
174
- * @version v.1.1 (27/07/2025)
180
+ * @version v.1.0 (19/03/2026)
175
181
  * @returns {false|string}
176
182
  */
177
- static get_user_name()
183
+ static get_first_name()
178
184
  {
179
- return UserService.user_name;
185
+ return UserService.first_name;
180
186
  }
181
187
 
182
188
 
183
189
  /**
184
190
  *
185
- * @version v.1.1 (27/07/2025)
186
- * @param {string} user_name
191
+ * @version v.1.0 (19/03/2026)
192
+ * @param {string} first_name
193
+ */
194
+ static set_first_name(first_name)
195
+ {
196
+ UserService.first_name = first_name;
197
+ }
198
+
199
+
200
+ /**
201
+ *
202
+ * @version v.1.0 (19/03/2026)
203
+ * @returns {false|string}
204
+ */
205
+ static get_last_name()
206
+ {
207
+ return UserService.last_name;
208
+ }
209
+
210
+
211
+ /**
212
+ *
213
+ * @version v.1.0 (19/03/2026)
214
+ * @param {string} last_name
215
+ */
216
+ static set_last_name(last_name)
217
+ {
218
+ UserService.last_name = last_name;
219
+ }
220
+
221
+ /**
222
+ *
223
+ * @version v.1.0 (19/03/2026)
224
+ * @returns {false|string}
225
+ */
226
+ static get_user_status()
227
+ {
228
+ return UserService.user_status;
229
+ }
230
+
231
+
232
+ /**
233
+ *
234
+ * @version v.1.0 (19/03/2026)
235
+ * @param {string} user_status
236
+ */
237
+ static set_user_status(user_status)
238
+ {
239
+ UserService.user_status = user_status;
240
+ }
241
+
242
+ /**
243
+ *
244
+ * @version v.1.0 (19/03/2026)
245
+ * @returns {false|string}
246
+ */
247
+ static get_email()
248
+ {
249
+ return UserService.email;
250
+ }
251
+
252
+
253
+ /**
254
+ *
255
+ * @version v.1.0 (19/03/2026)
256
+ * @param {string} email
187
257
  */
188
- static set_user_name(user_name)
258
+ static set_email(email)
189
259
  {
190
- UserService.user_name = user_name;
260
+ UserService.email = email;
191
261
  }
192
262
 
193
263
 
@@ -311,4 +381,14 @@ export class UserService extends abstractService
311
381
  {
312
382
  UserService.start_page = start_page;
313
383
  }
384
+
385
+
386
+ /**
387
+ *
388
+ * @version v.1.2 (19/03/2026)
389
+ */
390
+ static get_start_page()
391
+ {
392
+ return UserService.start_page;
393
+ }
314
394
  }