iptdevs-design-system 2.2.6 → 2.2.9

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 (25) hide show
  1. package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +5 -5
  2. package/esm2020/lib/core/core.module.mjs +12 -3
  3. package/esm2020/lib/core/models/budget/budget.model.mjs +2 -0
  4. package/esm2020/lib/core/models/marketing/marketing.modal.mjs +2 -0
  5. package/esm2020/lib/core/models/test/test.model.mjs +2 -0
  6. package/esm2020/lib/core/services/budget-service/budget-service.mjs +41 -0
  7. package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +57 -0
  8. package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +29 -1
  9. package/esm2020/lib/core/services/test-service/test.service.mjs +135 -0
  10. package/esm2020/lib/core/services/user-service/user-service.mjs +15 -1
  11. package/esm2020/public-api.mjs +7 -1
  12. package/fesm2015/iptdevs-design-system.mjs +276 -7
  13. package/fesm2015/iptdevs-design-system.mjs.map +1 -1
  14. package/fesm2020/iptdevs-design-system.mjs +276 -7
  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/package.json +1 -1
  25. 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);
@@ -995,7 +1009,7 @@ SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
995
1009
  <div class="menu-icon"></div>
996
1010
  </div>
997
1011
 
998
- <img class="img-logo" src="https://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1012
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
999
1013
 
1000
1014
  <div class="text-container">
1001
1015
  <span class="p1">{{ currentDay }}</span>
@@ -1015,7 +1029,7 @@ SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
1015
1029
  <div class="photo-logout"></div>
1016
1030
  </div>
1017
1031
  </mat-toolbar>
1018
- `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(https://qa.iptdev.com.co/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(https://qa.iptdev.com.co/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(https://qa.iptdev.com.co/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"], components: [{ type: i3.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i5.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: AsideButtonComponent, selector: "ipt-aside-button", inputs: ["icon", "text", "buttonActive"], outputs: ["isClicked"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1032
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"], components: [{ type: i3.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i5.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: AsideButtonComponent, selector: "ipt-aside-button", inputs: ["icon", "text", "buttonActive"], outputs: ["isClicked"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1019
1033
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1020
1034
  type: Component,
1021
1035
  args: [{ selector: 'ipt-sidenav', template: `
@@ -1045,7 +1059,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1045
1059
  <div class="menu-icon"></div>
1046
1060
  </div>
1047
1061
 
1048
- <img class="img-logo" src="https://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1062
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1049
1063
 
1050
1064
  <div class="text-container">
1051
1065
  <span class="p1">{{ currentDay }}</span>
@@ -1065,7 +1079,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1065
1079
  <div class="photo-logout"></div>
1066
1080
  </div>
1067
1081
  </mat-toolbar>
1068
- `, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(https://qa.iptdev.com.co/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(https://qa.iptdev.com.co/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(https://qa.iptdev.com.co/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"] }]
1082
+ `, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"] }]
1069
1083
  }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; }, propDecorators: { department: [{
1070
1084
  type: Input
1071
1085
  }], setPage: [{
@@ -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