iptdevs-design-system 2.2.7 → 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.
@@ -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);
@@ -1287,6 +1301,34 @@ class ParameterService {
1287
1301
  let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1288
1302
  return this.http.get(serviceUrl);
1289
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
+ }
1290
1332
  }
1291
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 });
1292
1334
  ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
@@ -1326,6 +1368,227 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1326
1368
  }]
1327
1369
  }], ctorParameters: function () { return []; } });
1328
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
+
1329
1592
  class CoreModule {
1330
1593
  }
1331
1594
  CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1337,7 +1600,10 @@ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13
1337
1600
  UserService,
1338
1601
  SwitchService,
1339
1602
  RedirectGuard,
1340
- BaseService
1603
+ BaseService,
1604
+ TestService,
1605
+ MarketingService,
1606
+ BudgetService
1341
1607
  ] });
1342
1608
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
1343
1609
  type: NgModule,
@@ -1349,7 +1615,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1349
1615
  UserService,
1350
1616
  SwitchService,
1351
1617
  RedirectGuard,
1352
- BaseService
1618
+ BaseService,
1619
+ TestService,
1620
+ MarketingService,
1621
+ BudgetService
1353
1622
  ]
1354
1623
  }]
1355
1624
  }] });
@@ -1395,5 +1664,5 @@ class UserLoginRs {
1395
1664
  * Generated bundle index. Do not edit.
1396
1665
  */
1397
1666
 
1398
- 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 };
1399
1668
  //# sourceMappingURL=iptdevs-design-system.mjs.map