iptdevs-design-system 2.2.5 → 2.2.8

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.
Files changed (26) hide show
  1. package/esm2020/lib/core/core.module.mjs +12 -3
  2. package/esm2020/lib/core/models/budget/budget.model.mjs +2 -0
  3. package/esm2020/lib/core/models/marketing/marketing.modal.mjs +2 -0
  4. package/esm2020/lib/core/models/test/test.model.mjs +2 -0
  5. package/esm2020/lib/core/services/budget-service/budget-service.mjs +41 -0
  6. package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +57 -0
  7. package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +29 -1
  8. package/esm2020/lib/core/services/test-service/test.service.mjs +135 -0
  9. package/esm2020/lib/core/services/user-service/user-service.mjs +15 -1
  10. package/esm2020/lib/core/utils/base-service/base.service.mjs +5 -1
  11. package/esm2020/public-api.mjs +7 -1
  12. package/fesm2015/iptdevs-design-system.mjs +277 -3
  13. package/fesm2015/iptdevs-design-system.mjs.map +1 -1
  14. package/fesm2020/iptdevs-design-system.mjs +276 -3
  15. package/fesm2020/iptdevs-design-system.mjs.map +1 -1
  16. package/lib/core/models/budget/budget.model.d.ts +69 -0
  17. package/lib/core/models/marketing/marketing.modal.d.ts +104 -0
  18. package/lib/core/models/test/test.model.d.ts +213 -0
  19. package/lib/core/services/budget-service/budget-service.d.ts +16 -0
  20. package/lib/core/services/marketing-service/marketing-service.d.ts +20 -0
  21. package/lib/core/services/parameters-service/parameters.service.d.ts +7 -0
  22. package/lib/core/services/test-service/test.service.d.ts +35 -0
  23. package/lib/core/services/user-service/user-service.d.ts +4 -0
  24. package/lib/core/utils/base-service/base.service.d.ts +1 -0
  25. package/package.json +1 -1
  26. package/public-api.d.ts +6 -0
@@ -636,6 +636,20 @@ class UserService {
636
636
  this.generateRequestParams(token);
637
637
  return this.http.post(serviceUrl, this.httpOptions);
638
638
  }
639
+ getAllAdvisor(userToken) {
640
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/all/usercommercial';
641
+ this.generateRequestParams(userToken);
642
+ return this.http.post(serviceUrl, this.httpOptions);
643
+ }
644
+ getByRoleUser(codeRole) {
645
+ let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
646
+ return this.http.get(serviceUrl);
647
+ }
648
+ getUserStatistics(userToken) {
649
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
650
+ this.generateRequestParams(userToken);
651
+ return this.http.post(serviceUrl, this.httpOptions);
652
+ }
639
653
  getRoutesForRole(token) {
640
654
  let serviceUrl = this.SERVICE_URL + 'post/routes/role';
641
655
  this.generateRequestParams(token);
@@ -766,6 +780,10 @@ class BaseService {
766
780
  let user = this.storageService.getCurrentUser()?.role;
767
781
  return user === undefined ? -1 : user;
768
782
  }
783
+ getUserToken() {
784
+ let token = this.storageService.getCurrentUser()?.token;
785
+ return token === undefined ? '-1' : token;
786
+ }
769
787
  getUserName() {
770
788
  let user = this.storageService.getCurrentUser();
771
789
  let response = user === null ? '' : user.name;
@@ -1283,6 +1301,34 @@ class ParameterService {
1283
1301
  let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1284
1302
  return this.http.get(serviceUrl);
1285
1303
  }
1304
+ getAcademicUnits() {
1305
+ let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1306
+ return this.http.get(serviceUrl);
1307
+ }
1308
+ getStatusContact() {
1309
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1310
+ return this.http.get(serviceUrl);
1311
+ }
1312
+ getTypePlan() {
1313
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1314
+ return this.http.get(serviceUrl);
1315
+ }
1316
+ getTypePlanDiscount() {
1317
+ let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1318
+ return this.http.get(serviceUrl);
1319
+ }
1320
+ getContactedType() {
1321
+ let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1322
+ return this.http.get(serviceUrl);
1323
+ }
1324
+ getStatusByCode(codeStatus) {
1325
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1326
+ return this.http.get(serviceUrl);
1327
+ }
1328
+ getAllTypeDiscount() {
1329
+ let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1330
+ return this.http.get(serviceUrl);
1331
+ }
1286
1332
  }
1287
1333
  ParameterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1288
1334
  ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
@@ -1322,6 +1368,227 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1322
1368
  }]
1323
1369
  }], ctorParameters: function () { return []; } });
1324
1370
 
1371
+ class TestService {
1372
+ constructor(http) {
1373
+ this.http = http;
1374
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1375
+ }
1376
+ // ---------------------- EXÁMENES ---------------------- //
1377
+ createExam(exam) {
1378
+ let serviceUrl = this.SERVICE_URL + 'post/exam';
1379
+ this.generateRequestParams(exam);
1380
+ return this.http.post(serviceUrl, this.httpOptions);
1381
+ }
1382
+ getAllExams(params) {
1383
+ let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1384
+ this.generateRequestParams(params);
1385
+ return this.http.post(serviceUrl, this.httpOptions);
1386
+ }
1387
+ updateExam(params) {
1388
+ let serviceUrl = this.SERVICE_URL + 'update/exam';
1389
+ this.generateRequestParams(params);
1390
+ return this.http.put(serviceUrl, this.httpOptions);
1391
+ }
1392
+ updateExamStatus(params) {
1393
+ let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1394
+ this.generateRequestParams(params);
1395
+ return this.http.put(serviceUrl, this.httpOptions);
1396
+ }
1397
+ copyExam(params) {
1398
+ let serviceUrl = this.SERVICE_URL + 'copy/exam';
1399
+ this.generateRequestParams(params);
1400
+ return this.http.put(serviceUrl, this.httpOptions);
1401
+ }
1402
+ getExamByCode(code) {
1403
+ let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1404
+ return this.http.get(serviceUrl);
1405
+ }
1406
+ getExamByAuthor(code) {
1407
+ let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1408
+ return this.http.get(serviceUrl);
1409
+ }
1410
+ // ---------------------- SECCIONES ---------------------- //
1411
+ createSectionWithAll(params) {
1412
+ let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1413
+ this.generateRequestParams(params);
1414
+ return this.http.post(serviceUrl, this.httpOptions);
1415
+ }
1416
+ createSection(params) {
1417
+ let serviceUrl = this.SERVICE_URL + 'post/section';
1418
+ this.generateRequestParams(params);
1419
+ return this.http.post(serviceUrl, this.httpOptions);
1420
+ }
1421
+ getAllSections(params) {
1422
+ let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1423
+ this.generateRequestParams(params);
1424
+ return this.http.post(serviceUrl, this.httpOptions);
1425
+ }
1426
+ updateSection(params) {
1427
+ let serviceUrl = this.SERVICE_URL + 'update/section';
1428
+ this.generateRequestParams(params);
1429
+ return this.http.put(serviceUrl, this.httpOptions);
1430
+ }
1431
+ updateSectionMedia(params) {
1432
+ let serviceUrl = this.SERVICE_URL + 'post/section/media';
1433
+ this.generateRequestParams(params);
1434
+ return this.http.post(serviceUrl, this.httpOptions);
1435
+ }
1436
+ updateSectionState(params) {
1437
+ let serviceUrl = this.SERVICE_URL + 'update/section/state';
1438
+ this.generateRequestParams(params);
1439
+ return this.http.put(serviceUrl, this.httpOptions);
1440
+ }
1441
+ getSectionsByExam(code) {
1442
+ let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1443
+ return this.http.get(serviceUrl);
1444
+ }
1445
+ // ---------------------- PREGUNTAS ---------------------- //
1446
+ createQuestion(params) {
1447
+ let serviceUrl = this.SERVICE_URL + 'post/question';
1448
+ this.generateRequestParams(params);
1449
+ return this.http.post(serviceUrl, this.httpOptions);
1450
+ }
1451
+ updateQuestion(params) {
1452
+ let serviceUrl = this.SERVICE_URL + 'update/question';
1453
+ this.generateRequestParams(params);
1454
+ return this.http.put(serviceUrl, this.httpOptions);
1455
+ }
1456
+ getQuestionsBySections(params) {
1457
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1458
+ this.generateRequestParams(params);
1459
+ return this.http.post(serviceUrl, this.httpOptions);
1460
+ }
1461
+ getQuestionsBySection(code) {
1462
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/section/' + code;
1463
+ return this.http.get(serviceUrl, this.httpOptions);
1464
+ }
1465
+ // ---------------------- RESPUESTAS ---------------------- //
1466
+ createAnswer(params) {
1467
+ let serviceUrl = this.SERVICE_URL + 'post/answer';
1468
+ this.generateRequestParams(params);
1469
+ return this.http.post(serviceUrl, this.httpOptions);
1470
+ }
1471
+ updateAnswer(params) {
1472
+ let serviceUrl = this.SERVICE_URL + 'update/answer';
1473
+ this.generateRequestParams(params);
1474
+ return this.http.put(serviceUrl, this.httpOptions);
1475
+ }
1476
+ getAnswersByQuestion(code) {
1477
+ let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1478
+ return this.http.get(serviceUrl, this.httpOptions);
1479
+ }
1480
+ updateQuestionState(params) {
1481
+ let serviceUrl = this.SERVICE_URL + 'update/question/state';
1482
+ this.generateRequestParams(params);
1483
+ return this.http.put(serviceUrl, this.httpOptions);
1484
+ }
1485
+ // construye los headers y params
1486
+ generateRequestParams(param) {
1487
+ this.httpOptions = {
1488
+ header: new HttpHeaders(),
1489
+ params: param,
1490
+ };
1491
+ }
1492
+ }
1493
+ TestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1494
+ TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1496
+ type: Injectable,
1497
+ args: [{
1498
+ providedIn: 'root',
1499
+ }]
1500
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1501
+
1502
+ class MarketingService {
1503
+ constructor(http) {
1504
+ this.http = http;
1505
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1506
+ }
1507
+ getStrategyByUserCommercial(user) {
1508
+ let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1509
+ this.generateRequestParams(user);
1510
+ return this.http.post(serviceUrl, this.httpOptions);
1511
+ }
1512
+ getObservationsContact(codeContact) {
1513
+ let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1514
+ return this.http.get(serviceUrl);
1515
+ }
1516
+ createObservations(params) {
1517
+ let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1518
+ this.generateRequestParams(params);
1519
+ return this.http.post(serviceUrl, this.httpOptions);
1520
+ }
1521
+ getUserStatistics(userToken) {
1522
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1523
+ this.generateRequestParams(userToken);
1524
+ return this.http.post(serviceUrl, this.httpOptions);
1525
+ }
1526
+ getTopAdviser() {
1527
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1528
+ return this.http.get(serviceUrl, this.httpOptions);
1529
+ }
1530
+ getMovementStatus() {
1531
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1532
+ return this.http.get(serviceUrl, this.httpOptions);
1533
+ }
1534
+ getgroupSignupStatus() {
1535
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1536
+ return this.http.get(serviceUrl, this.httpOptions);
1537
+ }
1538
+ //Construye los headers y paramns
1539
+ generateRequestParams(param) {
1540
+ this.httpOptions = {
1541
+ header: new HttpHeaders(),
1542
+ params: param,
1543
+ };
1544
+ }
1545
+ }
1546
+ MarketingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1547
+ MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
1548
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
1549
+ type: Injectable,
1550
+ args: [{
1551
+ providedIn: 'root'
1552
+ }]
1553
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1554
+
1555
+ class BudgetService {
1556
+ constructor(http) {
1557
+ this.http = http;
1558
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1559
+ }
1560
+ getAllDiscount(user) {
1561
+ let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
1562
+ this.generateRequestParams(user);
1563
+ return this.http.post(serviceUrl, this.httpOptions);
1564
+ }
1565
+ createDiscount(params) {
1566
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
1567
+ this.generateRequestParams(params);
1568
+ return this.http.post(serviceUrl, this.httpOptions);
1569
+ }
1570
+ updateDiscount(params) {
1571
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
1572
+ this.generateRequestParams(params);
1573
+ return this.http.post(serviceUrl, this.httpOptions);
1574
+ }
1575
+ //Construye los headers y paramns
1576
+ generateRequestParams(param) {
1577
+ this.httpOptions = {
1578
+ header: new HttpHeaders(),
1579
+ params: param,
1580
+ };
1581
+ }
1582
+ }
1583
+ BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1584
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
1585
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
1586
+ type: Injectable,
1587
+ args: [{
1588
+ providedIn: 'root'
1589
+ }]
1590
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1591
+
1325
1592
  class CoreModule {
1326
1593
  }
1327
1594
  CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1333,7 +1600,10 @@ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13
1333
1600
  UserService,
1334
1601
  SwitchService,
1335
1602
  RedirectGuard,
1336
- BaseService
1603
+ BaseService,
1604
+ TestService,
1605
+ MarketingService,
1606
+ BudgetService
1337
1607
  ] });
1338
1608
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
1339
1609
  type: NgModule,
@@ -1345,7 +1615,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1345
1615
  UserService,
1346
1616
  SwitchService,
1347
1617
  RedirectGuard,
1348
- BaseService
1618
+ BaseService,
1619
+ TestService,
1620
+ MarketingService,
1621
+ BudgetService
1349
1622
  ]
1350
1623
  }]
1351
1624
  }] });
@@ -1391,5 +1664,5 @@ class UserLoginRs {
1391
1664
  * Generated bundle index. Do not edit.
1392
1665
  */
1393
1666
 
1394
- export { AsideButtonComponent, BaseService, ButtonComponent, CheckboxComponent, ComponentsModule, CoreModule, CourseService, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoginFormComponent, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, SwitchService, TextLinkComponent, UserLoginRs, UserRs, UserService };
1667
+ export { AsideButtonComponent, BaseService, BudgetService, ButtonComponent, CheckboxComponent, ComponentsModule, CoreModule, CourseService, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoginFormComponent, MarketingService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };
1395
1668
  //# sourceMappingURL=iptdevs-design-system.mjs.map