iptdevs-design-system 3.2.163 → 3.2.164
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/models/commercial/commercial.model.mjs +1 -1
- package/esm2020/lib/core/services/commercial-service/comercial.service.mjs +6 -1
- package/fesm2015/iptdevs-design-system.mjs +5 -0
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +5 -0
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/models/commercial/commercial.model.d.ts +88 -16
- package/lib/core/services/commercial-service/comercial.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ICodBystudentsRs } from "../cod/cod-rq.model";
|
|
2
|
-
import { Message } from "../parameters/parameters-rs.model";
|
|
2
|
+
import { Message, IAgreementRs, ICourseTypeRs, IGetCampusDetailRs, IAcademicPlanRs } from "../parameters/parameters-rs.model";
|
|
3
3
|
import { IIptUserFullDataRq } from "../user/user-rq.model";
|
|
4
4
|
import { IPaymentBillGraphRs } from "../budget/budget.model";
|
|
5
5
|
export interface CodPrices {
|
|
@@ -341,6 +341,8 @@ export interface ICreateTypePaymentRq {
|
|
|
341
341
|
export interface ICreateCommissionAreaRq {
|
|
342
342
|
token: string;
|
|
343
343
|
name: string;
|
|
344
|
+
campus?: number;
|
|
345
|
+
academic_plan?: number;
|
|
344
346
|
}
|
|
345
347
|
export interface IAssignCourseTypesToAreaRq {
|
|
346
348
|
token: string;
|
|
@@ -395,6 +397,7 @@ export interface ITokenRq {
|
|
|
395
397
|
export interface IUpdatePaymentAreaCommissionRq {
|
|
396
398
|
token: string;
|
|
397
399
|
amount: number;
|
|
400
|
+
type_payment_code?: number;
|
|
398
401
|
}
|
|
399
402
|
export interface ICommissionCondition {
|
|
400
403
|
code: number;
|
|
@@ -577,23 +580,24 @@ export interface IExistingCommissionDataRs {
|
|
|
577
580
|
payment_area_commission?: PaymentAreaCommission;
|
|
578
581
|
}
|
|
579
582
|
export interface PaymentAreaCommission {
|
|
580
|
-
code
|
|
581
|
-
type_payment
|
|
582
|
-
area_course
|
|
583
|
-
amount
|
|
584
|
-
status
|
|
585
|
-
created_at
|
|
586
|
-
updated_at
|
|
587
|
-
deleted_at
|
|
583
|
+
code?: number;
|
|
584
|
+
type_payment?: TypePayment;
|
|
585
|
+
area_course?: number;
|
|
586
|
+
amount?: string;
|
|
587
|
+
status?: number;
|
|
588
|
+
created_at?: Date;
|
|
589
|
+
updated_at?: Date;
|
|
590
|
+
deleted_at?: Date | null;
|
|
591
|
+
conditions?: IConditionRs[];
|
|
588
592
|
}
|
|
589
593
|
export interface TypePayment {
|
|
590
|
-
code
|
|
591
|
-
name
|
|
592
|
-
description
|
|
593
|
-
type
|
|
594
|
-
created_at
|
|
595
|
-
updated_at
|
|
596
|
-
deleted_at
|
|
594
|
+
code?: number;
|
|
595
|
+
name?: string;
|
|
596
|
+
description?: string;
|
|
597
|
+
type?: string;
|
|
598
|
+
created_at?: Date;
|
|
599
|
+
updated_at?: Date;
|
|
600
|
+
deleted_at?: Date | null;
|
|
597
601
|
}
|
|
598
602
|
export interface PaymentValidation {
|
|
599
603
|
enrollment_ok: boolean;
|
|
@@ -856,9 +860,77 @@ export interface IaddBonusRuleRq {
|
|
|
856
860
|
fee_one?: number;
|
|
857
861
|
cash_payment?: number;
|
|
858
862
|
status?: number;
|
|
863
|
+
type_user?: number;
|
|
859
864
|
}
|
|
860
865
|
export interface IremoveCommissionFromTransactionRq {
|
|
861
866
|
token: string;
|
|
862
867
|
transaction_code?: number;
|
|
863
868
|
commission_code?: number;
|
|
864
869
|
}
|
|
870
|
+
export interface ITokenCampusRq extends ITokenRq {
|
|
871
|
+
campus: number;
|
|
872
|
+
}
|
|
873
|
+
export interface ICommissionInitialConfigRs {
|
|
874
|
+
areas: IAreaRs[];
|
|
875
|
+
courses: ICourseTypeCommissionRs[];
|
|
876
|
+
agreements: IAgreementRs[];
|
|
877
|
+
paymentsForDialog: TypePayment[];
|
|
878
|
+
categories: ICategoryRs[];
|
|
879
|
+
contractTypes: IContractTypeRs[];
|
|
880
|
+
plans: IAcademicPlanRs[];
|
|
881
|
+
campus: IGetCampusDetailRs[];
|
|
882
|
+
}
|
|
883
|
+
export interface IAreaRs {
|
|
884
|
+
code?: number;
|
|
885
|
+
name?: string;
|
|
886
|
+
campus?: number;
|
|
887
|
+
academic_plan?: number;
|
|
888
|
+
created_at?: Date;
|
|
889
|
+
updated_at?: Date;
|
|
890
|
+
deleted_at?: Date;
|
|
891
|
+
course_types?: ICourseTypeCommissionRs[];
|
|
892
|
+
payment_area_commissions?: PaymentAreaCommission[];
|
|
893
|
+
}
|
|
894
|
+
export interface ICourseTypeCommissionRs extends ICourseTypeRs {
|
|
895
|
+
campus?: number;
|
|
896
|
+
category?: number;
|
|
897
|
+
pivot?: CoursePivot;
|
|
898
|
+
}
|
|
899
|
+
export interface CoursePivot {
|
|
900
|
+
commission_area_course_id: number;
|
|
901
|
+
course_type_id: number;
|
|
902
|
+
}
|
|
903
|
+
export interface IConditionRs {
|
|
904
|
+
code: number;
|
|
905
|
+
rule_id: number;
|
|
906
|
+
condition_id: number;
|
|
907
|
+
operator: string;
|
|
908
|
+
value: string;
|
|
909
|
+
created_at: Date;
|
|
910
|
+
updated_at: Date;
|
|
911
|
+
deleted_at: Date;
|
|
912
|
+
condition: ICommissionCondition;
|
|
913
|
+
}
|
|
914
|
+
export interface ICategoryRs {
|
|
915
|
+
code: number;
|
|
916
|
+
name: string;
|
|
917
|
+
}
|
|
918
|
+
export interface IContractTypeRs {
|
|
919
|
+
code: number;
|
|
920
|
+
name: string;
|
|
921
|
+
status: number;
|
|
922
|
+
created_at: Date;
|
|
923
|
+
updated_at: Date;
|
|
924
|
+
commission_concepts: ICommissionConceptRs[];
|
|
925
|
+
}
|
|
926
|
+
export interface ICommissionConceptRs {
|
|
927
|
+
code: number;
|
|
928
|
+
name: string;
|
|
929
|
+
key: string;
|
|
930
|
+
description: string;
|
|
931
|
+
pivot: ICommissionConceptPivotRs;
|
|
932
|
+
}
|
|
933
|
+
export interface ICommissionConceptPivotRs {
|
|
934
|
+
type_user_commission_code: number;
|
|
935
|
+
commission_concept_code: number;
|
|
936
|
+
}
|
|
@@ -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, IrejectTransactionCommissionRq, IApproveTransactionCommissionRq, IShowTransactionBillRq, IaddDevolutionCommissionRq, IobtainTransactionsByStatusRq, ICancellTransactionBillRq, IGetCommissionsByTransactionCodeRq, IaddBonusRuleRq, IremoveCommissionFromTransactionRq } 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, ICancellTransactionBillRq, IGetCommissionsByTransactionCodeRq, IaddBonusRuleRq, IremoveCommissionFromTransactionRq, ITokenCampusRq } 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';
|
|
@@ -112,7 +112,7 @@ export declare class CommercialService extends IPTGeneralService {
|
|
|
112
112
|
assignSubordinateToManager(params: IAssignSubordinateRq): Observable<any>;
|
|
113
113
|
removeSubordinateFromManager(params: IRemoveSubordinateRq): Observable<any>;
|
|
114
114
|
massAssignSubordinates(params: IAssignSubordinatesMassiveRq): Observable<any>;
|
|
115
|
-
getUsersForCommissionManagement(request:
|
|
115
|
+
getUsersForCommissionManagement(request: ITokenCampusRq): Observable<any>;
|
|
116
116
|
getAllCommissionConcepts(request: ITokenRq): Observable<any>;
|
|
117
117
|
updateTypeUserCommission(params: IUpdateTypeUserCommissionRq, code: number): Observable<any>;
|
|
118
118
|
getSubordinatesByManager(request: ITokenRq, managerCode: number): Observable<any>;
|
|
@@ -126,6 +126,7 @@ export declare class CommercialService extends IPTGeneralService {
|
|
|
126
126
|
deleteBonusRule(params: IaddBonusRuleRq): Observable<any>;
|
|
127
127
|
getBonusRules(): Observable<any>;
|
|
128
128
|
removeCommissionFromTransaction(params: IremoveCommissionFromTransactionRq): Observable<any>;
|
|
129
|
+
getAllConfigDataForCommission(params: ITokenCampusRq): Observable<any>;
|
|
129
130
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommercialService, never>;
|
|
130
131
|
static ɵprov: i0.ɵɵInjectableDeclaration<CommercialService>;
|
|
131
132
|
}
|