iptdevs-design-system 3.2.156 → 3.2.158

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.
@@ -1,6 +1,7 @@
1
1
  import { ICodBystudentsRs } from "../cod/cod-rq.model";
2
2
  import { Message } from "../parameters/parameters-rs.model";
3
3
  import { IIptUserFullDataRq } from "../user/user-rq.model";
4
+ import { IPaymentBillGraphRs } from "../budget/budget.model";
4
5
  export interface CodPrices {
5
6
  code: number;
6
7
  name: string;
@@ -545,9 +546,23 @@ export interface ICommissionListRs {
545
546
  payments_ok: boolean;
546
547
  existing_commission: boolean;
547
548
  student_id_card?: string | null;
549
+ commission_code: number;
550
+ transaction_code: number;
551
+ type: string;
548
552
  payment_validation: PaymentValidation;
549
553
  validation: Validation[];
550
554
  }
555
+ export interface IBonusListRs {
556
+ commission_status: number;
557
+ type: string;
558
+ motivo_detalle: string;
559
+ commission_amount: number;
560
+ configured_amount: number;
561
+ achieved_quantity: number;
562
+ target_quantity: number;
563
+ adviser_code: number;
564
+ bonus_rule: number | null;
565
+ }
551
566
  export interface IExistingCommissionDataRs {
552
567
  code: number;
553
568
  transaction_code: number;
@@ -604,27 +619,38 @@ export interface Validation {
604
619
  export interface ITransactionRs {
605
620
  code: number;
606
621
  payment_bill_code: number | null;
607
- generated_by: IUserTransactionRs | null;
608
- approved_by: IUserTransactionRs | null;
622
+ generated_by: IUserTransactionRs | number | null;
623
+ approved_by: IUserTransactionRs | number | null;
624
+ user_commission: number;
609
625
  transaction_status: number;
610
626
  observation: string;
611
627
  start_transaction: Date;
612
628
  end_transaction: Date | null;
613
629
  deleted_at: Date | null;
614
- updated_at: Date;
630
+ updated_at: Date | null;
631
+ created_at: Date | null;
632
+ managed_commissions?: IExistingCommissionDataRs[] | ICommissionListRs[];
633
+ managed_bonus?: IManagedBonusRs[];
634
+ payment_bill?: number | IPaymentBillGraphRs | null;
635
+ }
636
+ export interface IManagedBonusRs {
637
+ code: number;
638
+ user_bonus: number;
639
+ amount: number;
640
+ bonus_rule: number;
641
+ cod_reached: number;
642
+ transaction_status: number;
643
+ transaction_code: number;
644
+ period_month: number;
645
+ period_year: number;
646
+ deleted_at: Date | null;
615
647
  created_at: Date;
616
- managed_commissions?: IExistingCommissionDataRs[];
617
- payment_bill?: number | null;
648
+ updated_at: Date;
618
649
  }
619
650
  export interface IUserTransactionRs {
620
651
  code: number;
621
652
  name: string;
622
653
  }
623
- export interface IGetCommissionsByTransactionCodeRq {
624
- token: string;
625
- transaction_code: number;
626
- end_date?: string;
627
- }
628
654
  export interface IApproveTransactionCommissionRq {
629
655
  token: string;
630
656
  transaction_code: number;
@@ -693,18 +719,117 @@ export interface IShowTransactionBillRq {
693
719
  token: string;
694
720
  code: number;
695
721
  }
696
- export interface ICancellTransactionBillRq {
697
- token: string;
698
- code: number;
699
- observation: string;
700
- }
701
722
  export interface IaddDevolutionCommissionRq {
702
723
  token: string;
703
724
  commission_code: number;
704
725
  transaction_code: number;
726
+ commissions_to_devolve: Icommissions_to_devolveRq[];
727
+ }
728
+ export interface Icommissions_to_devolveRq {
729
+ commission_code: number;
705
730
  }
706
731
  export interface IobtainTransactionsByStatusRq {
707
732
  token: string;
708
733
  status: number;
709
734
  user_code: number;
710
735
  }
736
+ export interface IadviserResumeRs {
737
+ status: string;
738
+ message: string;
739
+ rango_fechas: IRangoFechasRs;
740
+ resumen: IResumenAdvisorRs;
741
+ asesores: IAvisorDetailtRs[];
742
+ }
743
+ export interface IRangoFechasRs {
744
+ fecha_inicio: Date;
745
+ fecha_fin: Date;
746
+ }
747
+ export interface IAvisorDetailtRs {
748
+ general: IAdvisorGeneralRs;
749
+ metricas: IMetricsRs;
750
+ comisiones: IBonosCommissionRs;
751
+ bonos: IBonosCommissionRs;
752
+ transacciones: ITransaccionesListRs;
753
+ advertencias: any[];
754
+ active_concepts: string[];
755
+ evaluations: ICommissionListRs[] | IBonusListRs[];
756
+ efectividad: IEfectividadRs;
757
+ }
758
+ export interface IAdvisorGeneralRs {
759
+ codigo_asesor: number;
760
+ nombre_asesor: string;
761
+ rol_asesor: IRolAsesorRs;
762
+ tipo_contrato_nombre: string;
763
+ tipo_contrato: ITipoContratoRs;
764
+ matriculados: number;
765
+ activos: number;
766
+ retirados: number;
767
+ pausados: number;
768
+ culminados: number;
769
+ suspendidos: number;
770
+ }
771
+ export interface IRolAsesorRs {
772
+ code: number;
773
+ role: string;
774
+ }
775
+ export interface ITipoContratoRs {
776
+ code: number;
777
+ name: string;
778
+ status: number;
779
+ created_at: Date;
780
+ updated_at: Date;
781
+ commission_concepts: ICommissionConceptRs[];
782
+ }
783
+ export interface ICommissionConceptRs {
784
+ code: number;
785
+ name: string;
786
+ key: string;
787
+ description: string;
788
+ pivot: IPivotTypeUserCommissionConceptRs;
789
+ }
790
+ export interface IPivotTypeUserCommissionConceptRs {
791
+ type_user_commission_code: number;
792
+ commission_concept_code: number;
793
+ }
794
+ export interface IResumenAdvisorRs {
795
+ general: IResumenGeneralRs;
796
+ metricas: IMetricsRs;
797
+ comisiones: IBonosCommissionRs;
798
+ bonos: IBonosCommissionRs;
799
+ transacciones: ITransaccionesListRs;
800
+ efectividad: IEfectividadRs;
801
+ advertencias: any[];
802
+ }
803
+ export interface IResumenGeneralRs {
804
+ total_asesores: number;
805
+ matriculados: number;
806
+ activos: number;
807
+ retirados: number;
808
+ pausados: number;
809
+ culminados: number;
810
+ suspendidos: number;
811
+ }
812
+ export interface IMetricsRs {
813
+ matricula_pagada_count: number;
814
+ matricula_pagada_percentage: number;
815
+ primera_cuota_pagada_count: number;
816
+ primera_cuota_pagada_percentage: number;
817
+ efectividad_count: number;
818
+ efectividad_percentage: number;
819
+ }
820
+ export interface ITransaccionesListRs {
821
+ total_transacciones: number;
822
+ todas: ITransactionRs[];
823
+ }
824
+ export interface IBonosCommissionRs {
825
+ pendientes_count: number;
826
+ monto_pendiente: number;
827
+ pagados_count: number;
828
+ monto_pagado: number;
829
+ }
830
+ export interface IEfectividadRs {
831
+ porcentaje: number;
832
+ categoria: string;
833
+ color: string;
834
+ mensaje: string;
835
+ }
@@ -177,3 +177,22 @@ export interface IGetCampusDetailRs {
177
177
  enterprise_commercial_name?: string;
178
178
  state_name?: string;
179
179
  }
180
+ export interface IgetClassRoomByCampusAndModalityRq {
181
+ token: string;
182
+ course_modality: number;
183
+ campus_code: number;
184
+ }
185
+ export interface IgetClassRoomByCampusAndModalityRs {
186
+ code: number;
187
+ name: string;
188
+ course_modality: number;
189
+ capacity: number;
190
+ id_calendar: string;
191
+ adress: string;
192
+ classroom_status: number;
193
+ campus: number;
194
+ updated_at: Date;
195
+ created_at: Date;
196
+ campus_name: string;
197
+ city_name: string;
198
+ }
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
4
4
  import { GetDiscountCouponsRq } from '../../models/payment/payment-rq.model';
5
5
  import { CreateCODRq, FullDataCODRq, GetCodByCourseRq, IUpdateCODRq, IobtaincodCurrrentAndLevelFullDataRenovationsRq, ICodPaymentRq } from '../../models/cod/cod-rq.model';
6
6
  import { IPTGeneralService } from '../service-enviroments';
7
- import { AdicInfoByCodeRq, CodPricesRq, IGoalInterfaceRq, ParentByCodeRq, IObtainRefersByUserRq, IAssignPosibleStudentForValueRq, IGetContactsadviserRq, IObtainCodPricesRq, IAssigningAdvisorGoalsRq, IReportCodForAdviserRq, ICreateTicketReferralRq, IGetPosibleStudentByDateRq, IGetUserAdviserCommercialByTypeAssingContactsRq, AssingCustomersByTypeAssingContactForAdviserRq, ICreateTypePaymentRq, ICreateCommissionAreaRq, IAssignCourseTypesToAreaRq, ICreatePaymentAreaCommissionRq, ICreateTypeUserCommissionRq, IAssignCommissionModelToUserRq, ITokenRq, IGetSummaryByCommercialAdvisorRq, IGetCodStudentDetailsByAdviserRq, IUpdatePaymentAreaCommissionRq, IAddConditionToRuleRq, IEditConditionRuleRq, IUpdateTypePaymentRq, IAssignSubordinateRq, IRemoveSubordinateRq, IUpdateTypeUserCommissionRq, IPayAdvisorBonusesRq, IPaySelectedCommissionsRq, IAssignSubordinatesMassiveRq, IDeleteTypeUserCommissionRq, IGetCommissionsByTransactionCodeRq, IrejectTransactionCommissionRq, IApproveTransactionCommissionRq, IShowTransactionBillRq, ICancellTransactionBillRq, IaddDevolutionCommissionRq, IobtainTransactionsByStatusRq } from '../../models/commercial/commercial.model';
7
+ import { AdicInfoByCodeRq, CodPricesRq, IGoalInterfaceRq, ParentByCodeRq, IObtainRefersByUserRq, IAssignPosibleStudentForValueRq, IGetContactsadviserRq, IObtainCodPricesRq, IAssigningAdvisorGoalsRq, IReportCodForAdviserRq, ICreateTicketReferralRq, IGetPosibleStudentByDateRq, IGetUserAdviserCommercialByTypeAssingContactsRq, AssingCustomersByTypeAssingContactForAdviserRq, ICreateTypePaymentRq, ICreateCommissionAreaRq, IAssignCourseTypesToAreaRq, ICreatePaymentAreaCommissionRq, ICreateTypeUserCommissionRq, IAssignCommissionModelToUserRq, ITokenRq, IGetSummaryByCommercialAdvisorRq, IGetCodStudentDetailsByAdviserRq, IUpdatePaymentAreaCommissionRq, IAddConditionToRuleRq, IEditConditionRuleRq, IUpdateTypePaymentRq, IAssignSubordinateRq, IRemoveSubordinateRq, IUpdateTypeUserCommissionRq, IPayAdvisorBonusesRq, IPaySelectedCommissionsRq, IAssignSubordinatesMassiveRq, IDeleteTypeUserCommissionRq, IrejectTransactionCommissionRq, IApproveTransactionCommissionRq, IShowTransactionBillRq, IaddDevolutionCommissionRq, IobtainTransactionsByStatusRq } from '../../models/commercial/commercial.model';
8
8
  import { UserTokenRq } from '../../models/user/user-rq.model';
9
9
  import { ISocialNetworksRq } from '../../models/marketing/marketing.model';
10
10
  import { IObtainAllCoursewallet } from '../../models/budget/budget.model';
@@ -88,9 +88,7 @@ export declare class CommercialService extends IPTGeneralService {
88
88
  approveTransactionByCode(params: IApproveTransactionCommissionRq): Observable<any>;
89
89
  addDevolutionCommission(params: IaddDevolutionCommissionRq): Observable<any>;
90
90
  obtainTransactionsByStatus(request: IobtainTransactionsByStatusRq): Observable<any>;
91
- getTransactionCommissionsByCode(request: IGetCommissionsByTransactionCodeRq): Observable<any>;
92
91
  seeTransactionBill(request: IShowTransactionBillRq): Observable<any>;
93
- cancellTransactionBill(params: ICancellTransactionBillRq): Observable<any>;
94
92
  payAdvisorBonuses(params: IPayAdvisorBonusesRq): Observable<any>;
95
93
  updatePaymentAreaCommission(request: IUpdatePaymentAreaCommissionRq, ruleCode: number): Observable<any>;
96
94
  getAllAreasWithCommissionRules(request: ITokenRq): Observable<any>;
@@ -1,6 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { IPTGeneralService } from '../service-enviroments';
4
+ import { IgetClassRoomByCampusAndModalityRq } from '../../models/parameters/parameters-rs.model';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class ParameterService extends IPTGeneralService {
6
7
  private http;
@@ -58,6 +59,7 @@ export declare class ParameterService extends IPTGeneralService {
58
59
  getAllParametersCodForm(): Observable<any>;
59
60
  getAllCodStatus(): Observable<any>;
60
61
  obtainAllTypesOfDocuments(): Observable<any>;
62
+ getClassRoomByCampusAndModality(params: IgetClassRoomByCampusAndModalityRq): Observable<any>;
61
63
  static ɵfac: i0.ɵɵFactoryDeclaration<ParameterService, never>;
62
64
  static ɵprov: i0.ɵɵInjectableDeclaration<ParameterService>;
63
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iptdevs-design-system",
3
- "version": "3.2.156",
3
+ "version": "3.2.158",
4
4
  "description": "Library common elements into IPT Plattform.",
5
5
  "keywords": [
6
6
  "IPT",