iptdevs-design-system 3.2.156 → 3.2.159

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;
@@ -381,6 +382,7 @@ export interface IGetSummaryByCommercialAdvisorRq {
381
382
  token: string;
382
383
  start_date?: string;
383
384
  end_date?: string;
385
+ campus?: number;
384
386
  }
385
387
  export interface IGetCodStudentDetailsByAdviserRq {
386
388
  token: string;
@@ -545,9 +547,23 @@ export interface ICommissionListRs {
545
547
  payments_ok: boolean;
546
548
  existing_commission: boolean;
547
549
  student_id_card?: string | null;
550
+ commission_code: number;
551
+ transaction_code: number;
552
+ type: string;
548
553
  payment_validation: PaymentValidation;
549
554
  validation: Validation[];
550
555
  }
556
+ export interface IBonusListRs {
557
+ commission_status: number;
558
+ type: string;
559
+ motivo_detalle: string;
560
+ commission_amount: number;
561
+ configured_amount: number;
562
+ achieved_quantity: number;
563
+ target_quantity: number;
564
+ adviser_code: number;
565
+ bonus_rule: number | null;
566
+ }
551
567
  export interface IExistingCommissionDataRs {
552
568
  code: number;
553
569
  transaction_code: number;
@@ -604,27 +620,38 @@ export interface Validation {
604
620
  export interface ITransactionRs {
605
621
  code: number;
606
622
  payment_bill_code: number | null;
607
- generated_by: IUserTransactionRs | null;
608
- approved_by: IUserTransactionRs | null;
623
+ generated_by: IUserTransactionRs | number | null;
624
+ approved_by: IUserTransactionRs | number | null;
625
+ user_commission: number;
609
626
  transaction_status: number;
610
627
  observation: string;
611
628
  start_transaction: Date;
612
629
  end_transaction: Date | null;
613
630
  deleted_at: Date | null;
614
- updated_at: Date;
631
+ updated_at: Date | null;
632
+ created_at: Date | null;
633
+ managed_commissions?: IExistingCommissionDataRs[] | ICommissionListRs[];
634
+ managed_bonus?: IManagedBonusRs[];
635
+ payment_bill?: number | IPaymentBillGraphRs | null;
636
+ }
637
+ export interface IManagedBonusRs {
638
+ code: number;
639
+ user_bonus: number;
640
+ amount: number;
641
+ bonus_rule: number;
642
+ cod_reached: number;
643
+ transaction_status: number;
644
+ transaction_code: number;
645
+ period_month: number;
646
+ period_year: number;
647
+ deleted_at: Date | null;
615
648
  created_at: Date;
616
- managed_commissions?: IExistingCommissionDataRs[];
617
- payment_bill?: number | null;
649
+ updated_at: Date;
618
650
  }
619
651
  export interface IUserTransactionRs {
620
652
  code: number;
621
653
  name: string;
622
654
  }
623
- export interface IGetCommissionsByTransactionCodeRq {
624
- token: string;
625
- transaction_code: number;
626
- end_date?: string;
627
- }
628
655
  export interface IApproveTransactionCommissionRq {
629
656
  token: string;
630
657
  transaction_code: number;
@@ -693,18 +720,117 @@ export interface IShowTransactionBillRq {
693
720
  token: string;
694
721
  code: number;
695
722
  }
696
- export interface ICancellTransactionBillRq {
697
- token: string;
698
- code: number;
699
- observation: string;
700
- }
701
723
  export interface IaddDevolutionCommissionRq {
702
724
  token: string;
703
725
  commission_code: number;
704
726
  transaction_code: number;
727
+ commissions_to_devolve: Icommissions_to_devolveRq[];
728
+ }
729
+ export interface Icommissions_to_devolveRq {
730
+ commission_code: number;
705
731
  }
706
732
  export interface IobtainTransactionsByStatusRq {
707
733
  token: string;
708
734
  status: number;
709
735
  user_code: number;
710
736
  }
737
+ export interface IadviserResumeRs {
738
+ status: string;
739
+ message: string;
740
+ rango_fechas: IRangoFechasRs;
741
+ resumen: IResumenAdvisorRs;
742
+ asesores: IAvisorDetailtRs[];
743
+ }
744
+ export interface IRangoFechasRs {
745
+ fecha_inicio: Date;
746
+ fecha_fin: Date;
747
+ }
748
+ export interface IAvisorDetailtRs {
749
+ general: IAdvisorGeneralRs;
750
+ metricas: IMetricsRs;
751
+ comisiones: IBonosCommissionRs;
752
+ bonos: IBonosCommissionRs;
753
+ transacciones: ITransaccionesListRs;
754
+ advertencias: any[];
755
+ active_concepts: string[];
756
+ evaluations: ICommissionListRs[] | IBonusListRs[];
757
+ efectividad: IEfectividadRs;
758
+ }
759
+ export interface IAdvisorGeneralRs {
760
+ codigo_asesor: number;
761
+ nombre_asesor: string;
762
+ rol_asesor: IRolAsesorRs;
763
+ tipo_contrato_nombre: string;
764
+ tipo_contrato: ITipoContratoRs;
765
+ matriculados: number;
766
+ activos: number;
767
+ retirados: number;
768
+ pausados: number;
769
+ culminados: number;
770
+ suspendidos: number;
771
+ }
772
+ export interface IRolAsesorRs {
773
+ code: number;
774
+ role: string;
775
+ }
776
+ export interface ITipoContratoRs {
777
+ code: number;
778
+ name: string;
779
+ status: number;
780
+ created_at: Date;
781
+ updated_at: Date;
782
+ commission_concepts: ICommissionConceptRs[];
783
+ }
784
+ export interface ICommissionConceptRs {
785
+ code: number;
786
+ name: string;
787
+ key: string;
788
+ description: string;
789
+ pivot: IPivotTypeUserCommissionConceptRs;
790
+ }
791
+ export interface IPivotTypeUserCommissionConceptRs {
792
+ type_user_commission_code: number;
793
+ commission_concept_code: number;
794
+ }
795
+ export interface IResumenAdvisorRs {
796
+ general: IResumenGeneralRs;
797
+ metricas: IMetricsRs;
798
+ comisiones: IBonosCommissionRs;
799
+ bonos: IBonosCommissionRs;
800
+ transacciones: ITransaccionesListRs;
801
+ efectividad: IEfectividadRs;
802
+ advertencias: any[];
803
+ }
804
+ export interface IResumenGeneralRs {
805
+ total_asesores: number;
806
+ matriculados: number;
807
+ activos: number;
808
+ retirados: number;
809
+ pausados: number;
810
+ culminados: number;
811
+ suspendidos: number;
812
+ }
813
+ export interface IMetricsRs {
814
+ matricula_pagada_count: number;
815
+ matricula_pagada_percentage: number;
816
+ primera_cuota_pagada_count: number;
817
+ primera_cuota_pagada_percentage: number;
818
+ efectividad_count: number;
819
+ efectividad_percentage: number;
820
+ }
821
+ export interface ITransaccionesListRs {
822
+ total_transacciones: number;
823
+ todas: ITransactionRs[];
824
+ }
825
+ export interface IBonosCommissionRs {
826
+ pendientes_count: number;
827
+ monto_pendiente: number;
828
+ pagados_count: number;
829
+ monto_pagado: number;
830
+ }
831
+ export interface IEfectividadRs {
832
+ porcentaje: number;
833
+ categoria: string;
834
+ color: string;
835
+ mensaje: string;
836
+ }
@@ -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
+ }
@@ -349,3 +349,28 @@ export interface IPaginationSearchRs {
349
349
  next_page_url: null;
350
350
  prev_page_url: null;
351
351
  }
352
+ export interface IGetByRoleUserAndCampusRq {
353
+ token: string;
354
+ user_role: number;
355
+ campus_code: number;
356
+ }
357
+ export interface IGetByRoleUserAndCampusRqs {
358
+ code: number;
359
+ id_card: string;
360
+ name: string;
361
+ last_name: string;
362
+ nick_name: string;
363
+ email: string;
364
+ phone_number: string;
365
+ gender: number;
366
+ city: string;
367
+ birthdate: Date;
368
+ role: string;
369
+ service_hour: number;
370
+ email_ipt: string;
371
+ updated_at: Date;
372
+ id_card_type: string;
373
+ campus_enterprise: number;
374
+ campus_name: string;
375
+ campus_city_name: string;
376
+ }
@@ -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
  }
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { RegisterIndexRq, RegisterDashboardRq, UserTokenRq, ForgotPasswordRq, LoginRq, RegisterRq, getStudentRq, TeacherByCodeRq, userTokenRq, IUpdtaeUserValidatedRq, IObtainUserByEmailDocRq, IStudentOrUserEktByConceptRq, UserTokenRq2, ParamsUser, IusersRq, IDeleteTeacherRq, IUpdateDataTeacherRq, IObtainDataFromSuppliersStudentRq, IGeUsersFromDepartmentsRq, ISearchForStudentToEditRq } from '../../models/user/user-rq.model';
3
+ import { RegisterIndexRq, RegisterDashboardRq, UserTokenRq, ForgotPasswordRq, LoginRq, RegisterRq, getStudentRq, TeacherByCodeRq, userTokenRq, IUpdtaeUserValidatedRq, IObtainUserByEmailDocRq, IStudentOrUserEktByConceptRq, UserTokenRq2, ParamsUser, IusersRq, IDeleteTeacherRq, IUpdateDataTeacherRq, IObtainDataFromSuppliersStudentRq, IGeUsersFromDepartmentsRq, ISearchForStudentToEditRq, IGetByRoleUserAndCampusRq } from '../../models/user/user-rq.model';
4
4
  import { getStrategyByUserCommercialRq } from '../../models/marketing/marketing.model';
5
5
  import { IPTGeneralService } from '../service-enviroments';
6
6
  import { GetStudentByCodeRq, tokenAdministrativeRq } from '../../models/payment/payment-rq.model';
@@ -58,6 +58,7 @@ export declare class UserService extends IPTGeneralService {
58
58
  searchUsersForTeamAssignment(params: any): Observable<any>;
59
59
  getAllSystemUsers(): Observable<any>;
60
60
  obtainTeachersAvailableByCampus(code_campus: number): Observable<any>;
61
+ getByRoleUserAndCampus(params: IGetByRoleUserAndCampusRq): Observable<any>;
61
62
  static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
62
63
  static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
63
64
  }
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.159",
4
4
  "description": "Library common elements into IPT Plattform.",
5
5
  "keywords": [
6
6
  "IPT",