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.
- package/esm2020/lib/core/core.module.mjs +12 -3
- package/esm2020/lib/core/services/budget-service/budget-service.mjs +41 -0
- package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +57 -0
- package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +29 -1
- package/esm2020/lib/core/services/test-service/test.service.mjs +135 -0
- package/esm2020/lib/core/services/user-service/user-service.mjs +15 -1
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/iptdevs-design-system.mjs +272 -3
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +272 -3
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/services/budget-service/budget-service.d.ts +16 -0
- package/lib/core/services/marketing-service/marketing-service.d.ts +20 -0
- package/lib/core/services/parameters-service/parameters.service.d.ts +7 -0
- package/lib/core/services/test-service/test.service.d.ts +35 -0
- package/lib/core/services/user-service/user-service.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -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);
|
|
@@ -1290,6 +1304,34 @@ class ParameterService {
|
|
|
1290
1304
|
let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
|
|
1291
1305
|
return this.http.get(serviceUrl);
|
|
1292
1306
|
}
|
|
1307
|
+
getAcademicUnits() {
|
|
1308
|
+
let serviceUrl = this.SERVICE_URL + 'get/academic/units';
|
|
1309
|
+
return this.http.get(serviceUrl);
|
|
1310
|
+
}
|
|
1311
|
+
getStatusContact() {
|
|
1312
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
|
|
1313
|
+
return this.http.get(serviceUrl);
|
|
1314
|
+
}
|
|
1315
|
+
getTypePlan() {
|
|
1316
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/plans';
|
|
1317
|
+
return this.http.get(serviceUrl);
|
|
1318
|
+
}
|
|
1319
|
+
getTypePlanDiscount() {
|
|
1320
|
+
let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
|
|
1321
|
+
return this.http.get(serviceUrl);
|
|
1322
|
+
}
|
|
1323
|
+
getContactedType() {
|
|
1324
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
|
|
1325
|
+
return this.http.get(serviceUrl);
|
|
1326
|
+
}
|
|
1327
|
+
getStatusByCode(codeStatus) {
|
|
1328
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
|
|
1329
|
+
return this.http.get(serviceUrl);
|
|
1330
|
+
}
|
|
1331
|
+
getAllTypeDiscount() {
|
|
1332
|
+
let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
|
|
1333
|
+
return this.http.get(serviceUrl);
|
|
1334
|
+
}
|
|
1293
1335
|
}
|
|
1294
1336
|
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 });
|
|
1295
1337
|
ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
|
|
@@ -1329,6 +1371,227 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
1329
1371
|
}]
|
|
1330
1372
|
}], ctorParameters: function () { return []; } });
|
|
1331
1373
|
|
|
1374
|
+
class TestService {
|
|
1375
|
+
constructor(http) {
|
|
1376
|
+
this.http = http;
|
|
1377
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
|
|
1378
|
+
}
|
|
1379
|
+
// ---------------------- EXÁMENES ---------------------- //
|
|
1380
|
+
createExam(exam) {
|
|
1381
|
+
let serviceUrl = this.SERVICE_URL + 'post/exam';
|
|
1382
|
+
this.generateRequestParams(exam);
|
|
1383
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1384
|
+
}
|
|
1385
|
+
getAllExams(params) {
|
|
1386
|
+
let serviceUrl = this.SERVICE_URL + 'post/all/exam';
|
|
1387
|
+
this.generateRequestParams(params);
|
|
1388
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1389
|
+
}
|
|
1390
|
+
updateExam(params) {
|
|
1391
|
+
let serviceUrl = this.SERVICE_URL + 'update/exam';
|
|
1392
|
+
this.generateRequestParams(params);
|
|
1393
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1394
|
+
}
|
|
1395
|
+
updateExamStatus(params) {
|
|
1396
|
+
let serviceUrl = this.SERVICE_URL + 'update/exam/status';
|
|
1397
|
+
this.generateRequestParams(params);
|
|
1398
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1399
|
+
}
|
|
1400
|
+
copyExam(params) {
|
|
1401
|
+
let serviceUrl = this.SERVICE_URL + 'copy/exam';
|
|
1402
|
+
this.generateRequestParams(params);
|
|
1403
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1404
|
+
}
|
|
1405
|
+
getExamByCode(code) {
|
|
1406
|
+
let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
|
|
1407
|
+
return this.http.get(serviceUrl);
|
|
1408
|
+
}
|
|
1409
|
+
getExamByAuthor(code) {
|
|
1410
|
+
let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
|
|
1411
|
+
return this.http.get(serviceUrl);
|
|
1412
|
+
}
|
|
1413
|
+
// ---------------------- SECCIONES ---------------------- //
|
|
1414
|
+
createSectionWithAll(params) {
|
|
1415
|
+
let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
|
|
1416
|
+
this.generateRequestParams(params);
|
|
1417
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1418
|
+
}
|
|
1419
|
+
createSection(params) {
|
|
1420
|
+
let serviceUrl = this.SERVICE_URL + 'post/section';
|
|
1421
|
+
this.generateRequestParams(params);
|
|
1422
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1423
|
+
}
|
|
1424
|
+
getAllSections(params) {
|
|
1425
|
+
let serviceUrl = this.SERVICE_URL + 'post/all/sections';
|
|
1426
|
+
this.generateRequestParams(params);
|
|
1427
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1428
|
+
}
|
|
1429
|
+
updateSection(params) {
|
|
1430
|
+
let serviceUrl = this.SERVICE_URL + 'update/section';
|
|
1431
|
+
this.generateRequestParams(params);
|
|
1432
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1433
|
+
}
|
|
1434
|
+
updateSectionMedia(params) {
|
|
1435
|
+
let serviceUrl = this.SERVICE_URL + 'post/section/media';
|
|
1436
|
+
this.generateRequestParams(params);
|
|
1437
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1438
|
+
}
|
|
1439
|
+
updateSectionState(params) {
|
|
1440
|
+
let serviceUrl = this.SERVICE_URL + 'update/section/state';
|
|
1441
|
+
this.generateRequestParams(params);
|
|
1442
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1443
|
+
}
|
|
1444
|
+
getSectionsByExam(code) {
|
|
1445
|
+
let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
|
|
1446
|
+
return this.http.get(serviceUrl);
|
|
1447
|
+
}
|
|
1448
|
+
// ---------------------- PREGUNTAS ---------------------- //
|
|
1449
|
+
createQuestion(params) {
|
|
1450
|
+
let serviceUrl = this.SERVICE_URL + 'post/question';
|
|
1451
|
+
this.generateRequestParams(params);
|
|
1452
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1453
|
+
}
|
|
1454
|
+
updateQuestion(params) {
|
|
1455
|
+
let serviceUrl = this.SERVICE_URL + 'update/question';
|
|
1456
|
+
this.generateRequestParams(params);
|
|
1457
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1458
|
+
}
|
|
1459
|
+
getQuestionsBySections(params) {
|
|
1460
|
+
let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
|
|
1461
|
+
this.generateRequestParams(params);
|
|
1462
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1463
|
+
}
|
|
1464
|
+
getQuestionsBySection(code) {
|
|
1465
|
+
let serviceUrl = this.SERVICE_URL + 'get/questions/by/section/' + code;
|
|
1466
|
+
return this.http.get(serviceUrl, this.httpOptions);
|
|
1467
|
+
}
|
|
1468
|
+
// ---------------------- RESPUESTAS ---------------------- //
|
|
1469
|
+
createAnswer(params) {
|
|
1470
|
+
let serviceUrl = this.SERVICE_URL + 'post/answer';
|
|
1471
|
+
this.generateRequestParams(params);
|
|
1472
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1473
|
+
}
|
|
1474
|
+
updateAnswer(params) {
|
|
1475
|
+
let serviceUrl = this.SERVICE_URL + 'update/answer';
|
|
1476
|
+
this.generateRequestParams(params);
|
|
1477
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1478
|
+
}
|
|
1479
|
+
getAnswersByQuestion(code) {
|
|
1480
|
+
let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
|
|
1481
|
+
return this.http.get(serviceUrl, this.httpOptions);
|
|
1482
|
+
}
|
|
1483
|
+
updateQuestionState(params) {
|
|
1484
|
+
let serviceUrl = this.SERVICE_URL + 'update/question/state';
|
|
1485
|
+
this.generateRequestParams(params);
|
|
1486
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1487
|
+
}
|
|
1488
|
+
// construye los headers y params
|
|
1489
|
+
generateRequestParams(param) {
|
|
1490
|
+
this.httpOptions = {
|
|
1491
|
+
header: new HttpHeaders(),
|
|
1492
|
+
params: param,
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
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 });
|
|
1497
|
+
TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
|
|
1498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
|
|
1499
|
+
type: Injectable,
|
|
1500
|
+
args: [{
|
|
1501
|
+
providedIn: 'root',
|
|
1502
|
+
}]
|
|
1503
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1504
|
+
|
|
1505
|
+
class MarketingService {
|
|
1506
|
+
constructor(http) {
|
|
1507
|
+
this.http = http;
|
|
1508
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
|
|
1509
|
+
}
|
|
1510
|
+
getStrategyByUserCommercial(user) {
|
|
1511
|
+
let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
|
|
1512
|
+
this.generateRequestParams(user);
|
|
1513
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1514
|
+
}
|
|
1515
|
+
getObservationsContact(codeContact) {
|
|
1516
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
|
|
1517
|
+
return this.http.get(serviceUrl);
|
|
1518
|
+
}
|
|
1519
|
+
createObservations(params) {
|
|
1520
|
+
let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
|
|
1521
|
+
this.generateRequestParams(params);
|
|
1522
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1523
|
+
}
|
|
1524
|
+
getUserStatistics(userToken) {
|
|
1525
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
|
|
1526
|
+
this.generateRequestParams(userToken);
|
|
1527
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1528
|
+
}
|
|
1529
|
+
getTopAdviser() {
|
|
1530
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
|
|
1531
|
+
return this.http.get(serviceUrl, this.httpOptions);
|
|
1532
|
+
}
|
|
1533
|
+
getMovementStatus() {
|
|
1534
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
|
|
1535
|
+
return this.http.get(serviceUrl, this.httpOptions);
|
|
1536
|
+
}
|
|
1537
|
+
getgroupSignupStatus() {
|
|
1538
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
|
|
1539
|
+
return this.http.get(serviceUrl, this.httpOptions);
|
|
1540
|
+
}
|
|
1541
|
+
//Construye los headers y paramns
|
|
1542
|
+
generateRequestParams(param) {
|
|
1543
|
+
this.httpOptions = {
|
|
1544
|
+
header: new HttpHeaders(),
|
|
1545
|
+
params: param,
|
|
1546
|
+
};
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
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 });
|
|
1550
|
+
MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
|
|
1551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
|
|
1552
|
+
type: Injectable,
|
|
1553
|
+
args: [{
|
|
1554
|
+
providedIn: 'root'
|
|
1555
|
+
}]
|
|
1556
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1557
|
+
|
|
1558
|
+
class BudgetService {
|
|
1559
|
+
constructor(http) {
|
|
1560
|
+
this.http = http;
|
|
1561
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
|
|
1562
|
+
}
|
|
1563
|
+
getAllDiscount(user) {
|
|
1564
|
+
let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
|
|
1565
|
+
this.generateRequestParams(user);
|
|
1566
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1567
|
+
}
|
|
1568
|
+
createDiscount(params) {
|
|
1569
|
+
let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
|
|
1570
|
+
this.generateRequestParams(params);
|
|
1571
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1572
|
+
}
|
|
1573
|
+
updateDiscount(params) {
|
|
1574
|
+
let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
|
|
1575
|
+
this.generateRequestParams(params);
|
|
1576
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1577
|
+
}
|
|
1578
|
+
//Construye los headers y paramns
|
|
1579
|
+
generateRequestParams(param) {
|
|
1580
|
+
this.httpOptions = {
|
|
1581
|
+
header: new HttpHeaders(),
|
|
1582
|
+
params: param,
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
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 });
|
|
1587
|
+
BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
|
|
1588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
|
|
1589
|
+
type: Injectable,
|
|
1590
|
+
args: [{
|
|
1591
|
+
providedIn: 'root'
|
|
1592
|
+
}]
|
|
1593
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1594
|
+
|
|
1332
1595
|
class CoreModule {
|
|
1333
1596
|
}
|
|
1334
1597
|
CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1340,7 +1603,10 @@ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13
|
|
|
1340
1603
|
UserService,
|
|
1341
1604
|
SwitchService,
|
|
1342
1605
|
RedirectGuard,
|
|
1343
|
-
BaseService
|
|
1606
|
+
BaseService,
|
|
1607
|
+
TestService,
|
|
1608
|
+
MarketingService,
|
|
1609
|
+
BudgetService
|
|
1344
1610
|
] });
|
|
1345
1611
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
|
|
1346
1612
|
type: NgModule,
|
|
@@ -1352,7 +1618,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
1352
1618
|
UserService,
|
|
1353
1619
|
SwitchService,
|
|
1354
1620
|
RedirectGuard,
|
|
1355
|
-
BaseService
|
|
1621
|
+
BaseService,
|
|
1622
|
+
TestService,
|
|
1623
|
+
MarketingService,
|
|
1624
|
+
BudgetService
|
|
1356
1625
|
]
|
|
1357
1626
|
}]
|
|
1358
1627
|
}] });
|
|
@@ -1398,5 +1667,5 @@ class UserLoginRs {
|
|
|
1398
1667
|
* Generated bundle index. Do not edit.
|
|
1399
1668
|
*/
|
|
1400
1669
|
|
|
1401
|
-
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 };
|
|
1670
|
+
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 };
|
|
1402
1671
|
//# sourceMappingURL=iptdevs-design-system.mjs.map
|