iptdevs-design-system 2.1.13 → 2.1.16

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.
@@ -1285,6 +1285,14 @@ class ParameterService {
1285
1285
  let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1286
1286
  return this.http.get(serviceUrl);
1287
1287
  }
1288
+ getAllTypeDiscount() {
1289
+ let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1290
+ return this.http.get(serviceUrl);
1291
+ }
1292
+ getTypePlanDiscount() {
1293
+ let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1294
+ return this.http.get(serviceUrl);
1295
+ }
1288
1296
  }
1289
1297
  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 });
1290
1298
  ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
@@ -1455,6 +1463,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1455
1463
  }]
1456
1464
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1457
1465
 
1466
+ class MarketingService {
1467
+ constructor(http) {
1468
+ this.http = http;
1469
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1470
+ }
1471
+ getStrategyByUserCommercial(user) {
1472
+ let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1473
+ this.generateRequestParams(user);
1474
+ return this.http.post(serviceUrl, this.httpOptions);
1475
+ }
1476
+ getObservationsContact(codeContact) {
1477
+ let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1478
+ return this.http.get(serviceUrl);
1479
+ }
1480
+ createObservations(params) {
1481
+ let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1482
+ this.generateRequestParams(params);
1483
+ return this.http.post(serviceUrl, this.httpOptions);
1484
+ }
1485
+ //Construye los headers y paramns
1486
+ generateRequestParams(param) {
1487
+ this.httpOptions = {
1488
+ header: new HttpHeaders(),
1489
+ params: param,
1490
+ };
1491
+ }
1492
+ }
1493
+ 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 });
1494
+ MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
1495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
1496
+ type: Injectable,
1497
+ args: [{
1498
+ providedIn: 'root'
1499
+ }]
1500
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1501
+
1502
+ class BudgetService {
1503
+ constructor(http) {
1504
+ this.http = http;
1505
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1506
+ }
1507
+ getAllDiscount(user) {
1508
+ let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
1509
+ this.generateRequestParams(user);
1510
+ return this.http.post(serviceUrl, this.httpOptions);
1511
+ }
1512
+ createDiscount(params) {
1513
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
1514
+ this.generateRequestParams(params);
1515
+ return this.http.post(serviceUrl, this.httpOptions);
1516
+ }
1517
+ updateDiscount(params) {
1518
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
1519
+ this.generateRequestParams(params);
1520
+ return this.http.post(serviceUrl, this.httpOptions);
1521
+ }
1522
+ //Construye los headers y paramns
1523
+ generateRequestParams(param) {
1524
+ this.httpOptions = {
1525
+ header: new HttpHeaders(),
1526
+ params: param,
1527
+ };
1528
+ }
1529
+ }
1530
+ 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 });
1531
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
1532
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
1533
+ type: Injectable,
1534
+ args: [{
1535
+ providedIn: 'root'
1536
+ }]
1537
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1538
+
1458
1539
  class CoreModule {
1459
1540
  }
1460
1541
  CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1467,7 +1548,9 @@ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13
1467
1548
  SwitchService,
1468
1549
  RedirectGuard,
1469
1550
  BaseService,
1470
- TestService
1551
+ TestService,
1552
+ MarketingService,
1553
+ BudgetService
1471
1554
  ] });
1472
1555
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
1473
1556
  type: NgModule,
@@ -1480,7 +1563,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1480
1563
  SwitchService,
1481
1564
  RedirectGuard,
1482
1565
  BaseService,
1483
- TestService
1566
+ TestService,
1567
+ MarketingService,
1568
+ BudgetService
1484
1569
  ]
1485
1570
  }]
1486
1571
  }] });
@@ -1526,5 +1611,5 @@ class UserLoginRs {
1526
1611
  * Generated bundle index. Do not edit.
1527
1612
  */
1528
1613
 
1529
- export { AsideButtonComponent, BaseService, ButtonComponent, CheckboxComponent, ComponentsModule, CoreModule, CourseService, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoginFormComponent, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };
1614
+ 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 };
1530
1615
  //# sourceMappingURL=iptdevs-design-system.mjs.map