@intelact/driveup 1.4.37 → 1.4.39
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/lib/agent/client.model.d.ts +1 -0
- package/lib/agent/client.model.js +1 -0
- package/lib/agent/client.model.js.map +1 -1
- package/lib/agent/code.model.d.ts +4 -0
- package/lib/agent/code.model.js +4 -0
- package/lib/agent/code.model.js.map +1 -1
- package/lib/agent/earning.type.d.ts +2 -0
- package/lib/alert/alert.model.d.ts +1 -0
- package/lib/alert/alert.model.js +1 -0
- package/lib/alert/alert.model.js.map +1 -1
- package/lib/bill/bill-item.model.d.ts +19 -0
- package/lib/bill/bill-item.model.js +19 -0
- package/lib/bill/bill-item.model.js.map +1 -1
- package/lib/bill/bill.model.d.ts +15 -0
- package/lib/bill/bill.model.js +15 -0
- package/lib/bill/bill.model.js.map +1 -1
- package/lib/bill/bill.status.js +3 -0
- package/lib/bill/bill.status.js.map +1 -1
- package/lib/calendar/appointment.d.ts +40 -0
- package/lib/calendar/appointment.js +40 -0
- package/lib/calendar/appointment.js.map +1 -1
- package/lib/calendar/date.d.ts +7 -0
- package/lib/calendar/date.js +7 -0
- package/lib/calendar/date.js.map +1 -1
- package/lib/calendar/holiday.d.ts +3 -0
- package/lib/calendar/holiday.js +3 -0
- package/lib/calendar/holiday.js.map +1 -1
- package/lib/calendar/index.d.ts +1 -0
- package/lib/calendar/index.js +1 -0
- package/lib/calendar/index.js.map +1 -1
- package/lib/calendar/token.d.ts +19 -0
- package/lib/calendar/token.js +3 -0
- package/lib/calendar/token.js.map +1 -0
- package/lib/common/app-info.d.ts +1 -0
- package/lib/common/app-info.js +1 -0
- package/lib/common/app-info.js.map +1 -1
- package/lib/common/identity.d.ts +20 -0
- package/lib/company/company-widget.model.d.ts +4 -0
- package/lib/company/company-widget.model.js +4 -0
- package/lib/company/company-widget.model.js.map +1 -1
- package/lib/company/company.model.d.ts +16 -0
- package/lib/company/company.model.js +16 -0
- package/lib/company/company.model.js.map +1 -1
- package/lib/course/appointment.model.d.ts +4 -0
- package/lib/course/appointment.model.js +4 -0
- package/lib/course/appointment.model.js.map +1 -1
- package/lib/course/course.model.d.ts +12 -0
- package/lib/course/course.model.js +12 -0
- package/lib/course/course.model.js.map +1 -1
- package/lib/course/definition.model.d.ts +1 -0
- package/lib/course/definition.model.js +1 -0
- package/lib/course/definition.model.js.map +1 -1
- package/lib/course/dto.d.ts +5 -0
- package/lib/course/dto.js +5 -0
- package/lib/course/dto.js.map +1 -1
- package/lib/course/part.model.d.ts +5 -0
- package/lib/course/part.model.js +5 -0
- package/lib/course/part.model.js.map +1 -1
- package/lib/device/device.agent.d.ts +39 -0
- package/lib/discount/discount.model.d.ts +3 -0
- package/lib/discount/discount.model.js +3 -0
- package/lib/discount/discount.model.js.map +1 -1
- package/lib/driving/category/category.model.d.ts +9 -0
- package/lib/driving/category/category.model.js +9 -0
- package/lib/driving/category/category.model.js.map +1 -1
- package/lib/driving/lesson/topic.dto.js +2 -1
- package/lib/driving/lesson/topic.dto.js.map +1 -1
- package/lib/expense/category.model.d.ts +1 -0
- package/lib/expense/category.model.js +1 -0
- package/lib/expense/category.model.js.map +1 -1
- package/lib/finance/finance.dto.d.ts +1 -0
- package/lib/finance/finance.dto.js +1 -0
- package/lib/finance/finance.dto.js.map +1 -1
- package/lib/finance/finance.model.d.ts +5 -0
- package/lib/finance/finance.model.js +5 -0
- package/lib/finance/finance.model.js.map +1 -1
- package/lib/finance/finance.type.d.ts +2 -0
- package/lib/free-benefit/free-benefit.model.d.ts +1 -0
- package/lib/free-benefit/free-benefit.model.js +1 -0
- package/lib/free-benefit/free-benefit.model.js.map +1 -1
- package/lib/geo/address.dto.d.ts +3 -0
- package/lib/geo/address.dto.js +3 -0
- package/lib/geo/address.dto.js.map +1 -1
- package/lib/geo/address.model.d.ts +1 -0
- package/lib/geo/address.model.js +1 -0
- package/lib/geo/address.model.js.map +1 -1
- package/lib/giftcode/giftcode-group.model.d.ts +1 -0
- package/lib/giftcode/giftcode-group.model.js +1 -0
- package/lib/giftcode/giftcode-group.model.js.map +1 -1
- package/lib/giftcode/giftcode.dto.d.ts +12 -0
- package/lib/giftcode/giftcode.dto.js +12 -0
- package/lib/giftcode/giftcode.dto.js.map +1 -1
- package/lib/giftcode/giftcode.model.d.ts +1 -0
- package/lib/giftcode/giftcode.model.js +1 -0
- package/lib/giftcode/giftcode.model.js.map +1 -1
- package/lib/handover/handover.model.d.ts +1 -0
- package/lib/handover/handover.model.js +1 -0
- package/lib/handover/handover.model.js.map +1 -1
- package/lib/instructor/instructor.model.d.ts +8 -0
- package/lib/instructor/instructor.model.js +8 -0
- package/lib/instructor/instructor.model.js.map +1 -1
- package/lib/item/item.model.d.ts +42 -0
- package/lib/item/item.model.js +42 -0
- package/lib/item/item.model.js.map +1 -1
- package/lib/link/link.model.d.ts +40 -0
- package/lib/link/link.model.js +40 -0
- package/lib/link/link.model.js.map +1 -1
- package/lib/metric/metric.model.d.ts +29 -0
- package/lib/metric/metric.model.js +29 -0
- package/lib/metric/metric.model.js.map +1 -1
- package/lib/payment/company-payment.model.d.ts +1 -0
- package/lib/payment/company-payment.model.js +1 -0
- package/lib/payment/company-payment.model.js.map +1 -1
- package/lib/payment/payment-method.model.d.ts +4 -0
- package/lib/payment/payment-method.model.js +4 -0
- package/lib/payment/payment-method.model.js.map +1 -1
- package/lib/payment/payment.model.d.ts +3 -0
- package/lib/payment/payment.model.js +3 -0
- package/lib/payment/payment.model.js.map +1 -1
- package/lib/priceplan/plan.model.d.ts +6 -0
- package/lib/priceplan/plan.model.js +6 -0
- package/lib/priceplan/plan.model.js.map +1 -1
- package/lib/product/product.model.d.ts +1 -0
- package/lib/product/product.model.js +1 -0
- package/lib/product/product.model.js.map +1 -1
- package/lib/refund/refund.model.d.ts +3 -0
- package/lib/refund/refund.model.js +3 -0
- package/lib/refund/refund.model.js.map +1 -1
- package/lib/security/acl.d.ts +5 -0
- package/lib/security/acl.js +5 -0
- package/lib/security/acl.js.map +1 -1
- package/lib/security/permissions.d.ts +5 -0
- package/lib/security/permissions.js +5 -0
- package/lib/security/permissions.js.map +1 -1
- package/lib/security/role.types.d.ts +32 -0
- package/lib/security/role.types.js +32 -0
- package/lib/security/role.types.js.map +1 -1
- package/lib/security/token.d.ts +23 -0
- package/lib/session/driving/session.model.d.ts +2 -0
- package/lib/session/driving/session.model.js +2 -0
- package/lib/session/driving/session.model.js.map +1 -1
- package/lib/session/driving/session.topic.d.ts +1 -0
- package/lib/session/driving/session.topic.js +1 -0
- package/lib/session/driving/session.topic.js.map +1 -1
- package/lib/signature/signature.model.d.ts +2 -0
- package/lib/signature/signature.model.js +2 -0
- package/lib/signature/signature.model.js.map +1 -1
- package/lib/ticket/ticket.dto.d.ts +1 -0
- package/lib/ticket/ticket.dto.js +1 -0
- package/lib/ticket/ticket.dto.js.map +1 -1
- package/lib/ticket/ticket.model.d.ts +1 -0
- package/lib/ticket/ticket.model.js +1 -0
- package/lib/ticket/ticket.model.js.map +1 -1
- package/lib/training/course.model.d.ts +1 -0
- package/lib/training/course.model.js +1 -0
- package/lib/training/course.model.js.map +1 -1
- package/lib/training/driving.model.d.ts +2 -0
- package/lib/training/driving.model.js +2 -0
- package/lib/training/driving.model.js.map +1 -1
- package/lib/training/request.model.d.ts +4 -0
- package/lib/training/request.model.js +4 -0
- package/lib/training/request.model.js.map +1 -1
- package/lib/training/training.dto.js +2 -1
- package/lib/training/training.dto.js.map +1 -1
- package/lib/training/training.model.d.ts +37 -0
- package/lib/training/training.model.js +37 -0
- package/lib/training/training.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/profile.type.d.ts +5 -0
- package/lib/user/profile.type.js +5 -0
- package/lib/user/profile.type.js.map +1 -1
- package/lib/user/user.model.d.ts +11 -0
- package/lib/user/user.model.js +11 -0
- package/lib/user/user.model.js.map +1 -1
- package/lib/utils/array.helper.d.ts +16 -0
- package/lib/utils/array.helper.js +16 -0
- package/lib/utils/array.helper.js.map +1 -1
- package/lib/utils/date.helper.d.ts +79 -0
- package/lib/utils/date.helper.js +87 -2
- package/lib/utils/date.helper.js.map +1 -1
- package/lib/utils/phone.helper.d.ts +6 -0
- package/lib/utils/phone.helper.js +6 -0
- package/lib/utils/phone.helper.js.map +1 -1
- package/lib/validators/compare.validator.d.ts +4 -0
- package/lib/validators/compare.validator.js +6 -0
- package/lib/validators/compare.validator.js.map +1 -1
- package/lib/validators/required.validator.d.ts +10 -0
- package/lib/validators/required.validator.js +19 -4
- package/lib/validators/required.validator.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.model.js","sourceRoot":"","sources":["../../src/agent/client.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,4DAAmD;AAEnD,MAAa,WAAY,SAAQ,uBAAO;IAGvC,OAAO,CAAO;IAId,YAAY,CAAS;IAGrB,QAAQ,CAAS;
|
|
1
|
+
{"version":3,"file":"client.model.js","sourceRoot":"","sources":["../../src/agent/client.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,4DAAmD;AAEnD,MAAa,WAAY,SAAQ,uBAAO;IAGvC,OAAO,CAAO;IAId,YAAY,CAAS;IAGrB,QAAQ,CAAS;IAEjB,6DAA6D;IAE7D,YAAY,KAA4B;QACvC,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAlBD,kCAkBC;AAfA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;4CAAC;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iDACE;AAGrB;IADC,IAAA,0BAAM,GAAE;;6CACQ"}
|
|
@@ -3,6 +3,10 @@ export declare class AgentCode {
|
|
|
3
3
|
code: string;
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
|
+
/**
|
|
7
|
+
* The percentage of the agents income
|
|
8
|
+
*/
|
|
6
9
|
percentage: number;
|
|
10
|
+
/************************* methods *************************/
|
|
7
11
|
constructor(props?: Partial<AgentCode>);
|
|
8
12
|
}
|
package/lib/agent/code.model.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code.model.js","sourceRoot":"","sources":["../../src/agent/code.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,SAAS;IAGrB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;
|
|
1
|
+
{"version":3,"file":"code.model.js","sourceRoot":"","sources":["../../src/agent/code.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,SAAS;IAGrB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;IAEpB;;OAEG;IAGH,UAAU,CAAS;IAEnB,6DAA6D;IAE7D,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1BD,8BA0BC;AAvBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;wCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;8CACW;AAOpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACA"}
|
package/lib/alert/alert.model.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.model.js","sourceRoot":"","sources":["../../src/alert/alert.model.ts"],"names":[],"m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R,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;8BACX,yBAAQ;2CAAC"}
|
|
@@ -10,10 +10,29 @@ export declare class CompanyBillItem {
|
|
|
10
10
|
totalPrice: number;
|
|
11
11
|
freeBenefit: boolean;
|
|
12
12
|
outOfPlan: boolean;
|
|
13
|
+
/************************* Main fields shown in the UI *************************/
|
|
14
|
+
/**
|
|
15
|
+
* Driving Training / Course Trianing / Instructor Name / Enterprise Plan: 15 seats
|
|
16
|
+
*/
|
|
13
17
|
title: string;
|
|
18
|
+
/**
|
|
19
|
+
* Driving training's category name / Course training's course title
|
|
20
|
+
*/
|
|
14
21
|
subtitle: string;
|
|
22
|
+
/**
|
|
23
|
+
* Student name / Number of days subscribed / Used seats
|
|
24
|
+
*/
|
|
15
25
|
description: string;
|
|
26
|
+
/**
|
|
27
|
+
* Price and currency abbr (15 CHF)
|
|
28
|
+
*
|
|
29
|
+
* - UI must handle crossing line over the price if freeBenefit is true
|
|
30
|
+
*/
|
|
16
31
|
price: string;
|
|
32
|
+
/**
|
|
33
|
+
* For free benefit items
|
|
34
|
+
*/
|
|
17
35
|
priceDescription: string;
|
|
36
|
+
/************************* Methods *************************/
|
|
18
37
|
constructor(props?: Partial<CompanyBillItem>);
|
|
19
38
|
}
|
|
@@ -23,11 +23,30 @@ class CompanyBillItem {
|
|
|
23
23
|
totalPrice;
|
|
24
24
|
freeBenefit;
|
|
25
25
|
outOfPlan;
|
|
26
|
+
/************************* Main fields shown in the UI *************************/
|
|
27
|
+
/**
|
|
28
|
+
* Driving Training / Course Trianing / Instructor Name / Enterprise Plan: 15 seats
|
|
29
|
+
*/
|
|
26
30
|
title;
|
|
31
|
+
/**
|
|
32
|
+
* Driving training's category name / Course training's course title
|
|
33
|
+
*/
|
|
27
34
|
subtitle;
|
|
35
|
+
/**
|
|
36
|
+
* Student name / Number of days subscribed / Used seats
|
|
37
|
+
*/
|
|
28
38
|
description;
|
|
39
|
+
/**
|
|
40
|
+
* Price and currency abbr (15 CHF)
|
|
41
|
+
*
|
|
42
|
+
* - UI must handle crossing line over the price if freeBenefit is true
|
|
43
|
+
*/
|
|
29
44
|
price;
|
|
45
|
+
/**
|
|
46
|
+
* For free benefit items
|
|
47
|
+
*/
|
|
30
48
|
priceDescription;
|
|
49
|
+
/************************* Methods *************************/
|
|
31
50
|
constructor(props) {
|
|
32
51
|
Object.assign(this, props);
|
|
33
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bill-item.model.js","sourceRoot":"","sources":["../../src/bill/bill-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,+DAAsD;AACtD,qEAA4D;AAE5D,MAAa,eAAe;IAG3B,EAAE,CAAS;IAIX,SAAS,CAAO;IAIhB,QAAQ,CAAW;IAInB,UAAU,CAAa;IAIvB,YAAY,CAAS;IAIrB,GAAG,CAAS;IAIZ,UAAU,CAAS;IAInB,WAAW,CAAU;IAIrB,SAAS,CAAU;
|
|
1
|
+
{"version":3,"file":"bill-item.model.js","sourceRoot":"","sources":["../../src/bill/bill-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,+DAAsD;AACtD,qEAA4D;AAE5D,MAAa,eAAe;IAG3B,EAAE,CAAS;IAIX,SAAS,CAAO;IAIhB,QAAQ,CAAW;IAInB,UAAU,CAAa;IAIvB,YAAY,CAAS;IAIrB,GAAG,CAAS;IAIZ,UAAU,CAAS;IAInB,WAAW,CAAU;IAIrB,SAAS,CAAU;IAEnB,iFAAiF;IAEjF;;OAEG;IAEH,KAAK,CAAS;IAEd;;OAEG;IAEH,QAAQ,CAAS;IAEjB;;OAEG;IAEH,WAAW,CAAS;IAEpB;;;;OAIG;IAEH,KAAK,CAAS;IAEd;;OAEG;IAEH,gBAAgB,CAAS;IAEzB,6DAA6D;IAE7D,YAAY,KAAgC;QAC3C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;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|
status: BillStatus;
|
|
7
|
+
/************************* Date *************************/
|
|
7
8
|
startDate: Date;
|
|
8
9
|
endDate: Date;
|
|
9
10
|
year: number;
|
|
10
11
|
month: number;
|
|
11
12
|
monthLocalized: string;
|
|
13
|
+
/************************* Price *************************/
|
|
12
14
|
subTotalPrice: number;
|
|
13
15
|
totalPrice: number;
|
|
16
|
+
/**
|
|
17
|
+
* Total amount that was reducted from credit
|
|
18
|
+
*/
|
|
14
19
|
fromCredit: number;
|
|
20
|
+
/**
|
|
21
|
+
* Total number of trainings that were covered by free benefits
|
|
22
|
+
*/
|
|
15
23
|
freeBenefits: number;
|
|
24
|
+
/**
|
|
25
|
+
* Total amount of the trainings that was covered by free benefits
|
|
26
|
+
*/
|
|
16
27
|
fromFreeBenefits: number;
|
|
28
|
+
/**
|
|
29
|
+
* Total amount that was reducted from credit or was covered by free benefits
|
|
30
|
+
*/
|
|
17
31
|
fromCreditOrFreeBenefits: number;
|
|
18
32
|
taxAmount: number;
|
|
19
33
|
items: CompanyBillItem[];
|
|
34
|
+
/************************* Methods *************************/
|
|
20
35
|
constructor(props?: Partial<CompanyBill>);
|
|
21
36
|
}
|
package/lib/bill/bill.model.js
CHANGED
|
@@ -17,19 +17,34 @@ class CompanyBill {
|
|
|
17
17
|
id;
|
|
18
18
|
paid;
|
|
19
19
|
status;
|
|
20
|
+
/************************* Date *************************/
|
|
20
21
|
startDate;
|
|
21
22
|
endDate;
|
|
22
23
|
year;
|
|
23
24
|
month;
|
|
24
25
|
monthLocalized;
|
|
26
|
+
/************************* Price *************************/
|
|
25
27
|
subTotalPrice;
|
|
26
28
|
totalPrice;
|
|
29
|
+
/**
|
|
30
|
+
* Total amount that was reducted from credit
|
|
31
|
+
*/
|
|
27
32
|
fromCredit;
|
|
33
|
+
/**
|
|
34
|
+
* Total number of trainings that were covered by free benefits
|
|
35
|
+
*/
|
|
28
36
|
freeBenefits;
|
|
37
|
+
/**
|
|
38
|
+
* Total amount of the trainings that was covered by free benefits
|
|
39
|
+
*/
|
|
29
40
|
fromFreeBenefits;
|
|
41
|
+
/**
|
|
42
|
+
* Total amount that was reducted from credit or was covered by free benefits
|
|
43
|
+
*/
|
|
30
44
|
fromCreditOrFreeBenefits;
|
|
31
45
|
taxAmount;
|
|
32
46
|
items;
|
|
47
|
+
/************************* Methods *************************/
|
|
33
48
|
constructor(props) {
|
|
34
49
|
Object.assign(this, props);
|
|
35
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bill.model.js","sourceRoot":"","sources":["../../src/bill/bill.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,+CAA2C;AAC3C,uDAAoD;AAEpD,MAAa,WAAW;IAGvB,EAAE,CAAS;IAIX,IAAI,CAAU;IAGd,MAAM,CAAa;
|
|
1
|
+
{"version":3,"file":"bill.model.js","sourceRoot":"","sources":["../../src/bill/bill.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,+CAA2C;AAC3C,uDAAoD;AAEpD,MAAa,WAAW;IAGvB,EAAE,CAAS;IAIX,IAAI,CAAU;IAGd,MAAM,CAAa;IAEnB,0DAA0D;IAI1D,SAAS,CAAO;IAIhB,OAAO,CAAO;IAId,IAAI,CAAS;IAIb,KAAK,CAAS;IAGd,cAAc,CAAS;IAEvB,2DAA2D;IAI3D,aAAa,CAAS;IAItB,UAAU,CAAS;IAEnB;;OAEG;IAGH,UAAU,CAAS;IAEnB;;OAEG;IAGH,YAAY,CAAS;IAErB;;OAEG;IAGH,gBAAgB,CAAS;IAEzB;;OAEG;IAGH,wBAAwB,CAAS;IAIjC,SAAS,CAAS;IAIlB,KAAK,CAAoB;IAEzB,6DAA6D;IAE7D,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AApFD,kCAoFC;AAjFA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GA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C,MAAM,CAAC;;8CACD;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iCAAe,CAAC;;0CACH"}
|
package/lib/bill/bill.status.js
CHANGED
|
@@ -3,8 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BillStatus = void 0;
|
|
4
4
|
var BillStatus;
|
|
5
5
|
(function (BillStatus) {
|
|
6
|
+
// Current cycle
|
|
6
7
|
BillStatus["ACTIVE"] = "ACTIVE";
|
|
8
|
+
// Payment failed
|
|
7
9
|
BillStatus["UNPAID"] = "UNPAID";
|
|
10
|
+
// Payment completed
|
|
8
11
|
BillStatus["PAID"] = "PAID";
|
|
9
12
|
})(BillStatus || (exports.BillStatus = BillStatus = {}));
|
|
10
13
|
//# sourceMappingURL=bill.status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bill.status.js","sourceRoot":"","sources":["../../src/bill/bill.status.ts"],"names":[],"mappings":";;;AACA,IAAY,UAOX;AAPD,WAAY,UAAU;
|
|
1
|
+
{"version":3,"file":"bill.status.js","sourceRoot":"","sources":["../../src/bill/bill.status.ts"],"names":[],"mappings":";;;AACA,IAAY,UAOX;AAPD,WAAY,UAAU;IACrB,gBAAgB;IAChB,+BAAiB,CAAA;IACjB,iBAAiB;IACjB,+BAAiB,CAAA;IACjB,oBAAoB;IACpB,2BAAa,CAAA;AACd,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB"}
|
|
@@ -9,6 +9,9 @@ import { CoursePartDefinition } from '../course/definition.model';
|
|
|
9
9
|
export declare class Appointment {
|
|
10
10
|
id: number;
|
|
11
11
|
trainingId: number;
|
|
12
|
+
/**
|
|
13
|
+
* The global identifier of the appointment. can be used to search for the appointment by this number
|
|
14
|
+
*/
|
|
12
15
|
number: number;
|
|
13
16
|
type: AppointmentType;
|
|
14
17
|
student: Student;
|
|
@@ -18,27 +21,64 @@ export declare class Appointment {
|
|
|
18
21
|
description: string;
|
|
19
22
|
startDate: Date;
|
|
20
23
|
endDate: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Appointment is disabled for editing (belongs to someone else)
|
|
26
|
+
*/
|
|
21
27
|
disabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Canceled appointment
|
|
30
|
+
*/
|
|
22
31
|
cancelled: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* All day appointment (event - holiday)
|
|
34
|
+
*/
|
|
23
35
|
allday: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Busy time slot in the calendar (driving appointment, course appointment, event/task)
|
|
38
|
+
*/
|
|
24
39
|
busy: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Disabled slot in the calendar (holiday - non working hours)
|
|
42
|
+
*/
|
|
25
43
|
disabledSlot: boolean;
|
|
44
|
+
/********** trainings **********/
|
|
26
45
|
involvedInstructors: number[];
|
|
27
46
|
canSeeTrainingDetails: boolean;
|
|
47
|
+
/********** driving fields **********/
|
|
48
|
+
/**
|
|
49
|
+
* Whether the appointment is a driving exam
|
|
50
|
+
*/
|
|
28
51
|
isExam: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Pickup location for the driving session
|
|
54
|
+
*/
|
|
29
55
|
pickupLocation: PickupLocation;
|
|
56
|
+
/**
|
|
57
|
+
* Custom pickup location for the driving session
|
|
58
|
+
* If set, pickupLocation will be ignored
|
|
59
|
+
*/
|
|
30
60
|
customPickupLocation: string;
|
|
31
61
|
transmission: CarTransmission;
|
|
32
62
|
drivingCategory: DrivingCategory;
|
|
33
63
|
topics: DrivingSessionTopic[];
|
|
64
|
+
/************************* score *************************/
|
|
65
|
+
/**
|
|
66
|
+
* Average score of the topics touched in this appointment
|
|
67
|
+
*/
|
|
34
68
|
score: number;
|
|
69
|
+
/************************* obligation period *************************/
|
|
35
70
|
hoursBeforeObligationPeriod: number;
|
|
71
|
+
/************************* course *************************/
|
|
36
72
|
remainingSeats: number;
|
|
73
|
+
/**
|
|
74
|
+
* Whether or not the student has attended the appointment
|
|
75
|
+
*/
|
|
37
76
|
attended: boolean;
|
|
38
77
|
definition: CoursePartDefinition;
|
|
39
78
|
courseId: number;
|
|
40
79
|
takenSeats: number;
|
|
41
80
|
presentStudents: number;
|
|
81
|
+
/************************* methods *************************/
|
|
42
82
|
constructor(props?: Partial<Appointment>);
|
|
43
83
|
isDriving(): boolean;
|
|
44
84
|
isCourse(): boolean;
|
|
@@ -22,6 +22,9 @@ const definition_model_1 = require("../course/definition.model");
|
|
|
22
22
|
class Appointment {
|
|
23
23
|
id;
|
|
24
24
|
trainingId;
|
|
25
|
+
/**
|
|
26
|
+
* The global identifier of the appointment. can be used to search for the appointment by this number
|
|
27
|
+
*/
|
|
25
28
|
number;
|
|
26
29
|
type;
|
|
27
30
|
student;
|
|
@@ -31,27 +34,64 @@ class Appointment {
|
|
|
31
34
|
description;
|
|
32
35
|
startDate;
|
|
33
36
|
endDate;
|
|
37
|
+
/**
|
|
38
|
+
* Appointment is disabled for editing (belongs to someone else)
|
|
39
|
+
*/
|
|
34
40
|
disabled;
|
|
41
|
+
/**
|
|
42
|
+
* Canceled appointment
|
|
43
|
+
*/
|
|
35
44
|
cancelled;
|
|
45
|
+
/**
|
|
46
|
+
* All day appointment (event - holiday)
|
|
47
|
+
*/
|
|
36
48
|
allday;
|
|
49
|
+
/**
|
|
50
|
+
* Busy time slot in the calendar (driving appointment, course appointment, event/task)
|
|
51
|
+
*/
|
|
37
52
|
busy;
|
|
53
|
+
/**
|
|
54
|
+
* Disabled slot in the calendar (holiday - non working hours)
|
|
55
|
+
*/
|
|
38
56
|
disabledSlot;
|
|
57
|
+
/********** trainings **********/
|
|
39
58
|
involvedInstructors;
|
|
40
59
|
canSeeTrainingDetails;
|
|
60
|
+
/********** driving fields **********/
|
|
61
|
+
/**
|
|
62
|
+
* Whether the appointment is a driving exam
|
|
63
|
+
*/
|
|
41
64
|
isExam;
|
|
65
|
+
/**
|
|
66
|
+
* Pickup location for the driving session
|
|
67
|
+
*/
|
|
42
68
|
pickupLocation;
|
|
69
|
+
/**
|
|
70
|
+
* Custom pickup location for the driving session
|
|
71
|
+
* If set, pickupLocation will be ignored
|
|
72
|
+
*/
|
|
43
73
|
customPickupLocation;
|
|
44
74
|
transmission;
|
|
45
75
|
drivingCategory;
|
|
46
76
|
topics;
|
|
77
|
+
/************************* score *************************/
|
|
78
|
+
/**
|
|
79
|
+
* Average score of the topics touched in this appointment
|
|
80
|
+
*/
|
|
47
81
|
score;
|
|
82
|
+
/************************* obligation period *************************/
|
|
48
83
|
hoursBeforeObligationPeriod;
|
|
84
|
+
/************************* course *************************/
|
|
49
85
|
remainingSeats;
|
|
86
|
+
/**
|
|
87
|
+
* Whether or not the student has attended the appointment
|
|
88
|
+
*/
|
|
50
89
|
attended;
|
|
51
90
|
definition;
|
|
52
91
|
courseId;
|
|
53
92
|
takenSeats;
|
|
54
93
|
presentStudents;
|
|
94
|
+
/************************* methods *************************/
|
|
55
95
|
constructor(props) {
|
|
56
96
|
Object.assign(this, props);
|
|
57
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../src/calendar/appointment.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mCAA0C;AAC1C,sDAAqD;AACrD,4CAAmD;AACnD,uEAAqE;AACrE,4DAAmD;AACnD,qEAA4D;AAC5D,oEAAuE;AACvE,iEAAkE;AAElE,MAAa,WAAW;IAIvB,EAAE,CAAS;IAIX,UAAU,CAAS;
|
|
1
|
+
{"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../src/calendar/appointment.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mCAA0C;AAC1C,sDAAqD;AACrD,4CAAmD;AACnD,uEAAqE;AACrE,4DAAmD;AACnD,qEAA4D;AAC5D,oEAAuE;AACvE,iEAAkE;AAElE,MAAa,WAAW;IAIvB,EAAE,CAAS;IAIX,UAAU,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AAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mDACI;AAOvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;6CACF;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uCAAoB,CAAC;8BACrB,uCAAoB;+CAAC;AAIjC;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACF;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACA;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oDACK"}
|
package/lib/calendar/date.d.ts
CHANGED
|
@@ -5,6 +5,13 @@ export declare class Period {
|
|
|
5
5
|
startDate: Date;
|
|
6
6
|
endDate: Date;
|
|
7
7
|
constructor(props?: Partial<Period>);
|
|
8
|
+
/**
|
|
9
|
+
* Check if this period collides with another period. the other period's startDate can be empty
|
|
10
|
+
*
|
|
11
|
+
* Throws error if any of the dates are missing (for this date or the other date)
|
|
12
|
+
* @param Period other
|
|
13
|
+
* @returns currentPeriod.startDate < otherPeriod.endDate && currentPeriod.endDate > otherPeriod.startDate
|
|
14
|
+
*/
|
|
8
15
|
collidesWith(other: Period): boolean;
|
|
9
16
|
}
|
|
10
17
|
export declare class ObligationPeriodDto {
|
package/lib/calendar/date.js
CHANGED
|
@@ -28,6 +28,13 @@ class Period {
|
|
|
28
28
|
constructor(props) {
|
|
29
29
|
Object.assign(this, props);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if this period collides with another period. the other period's startDate can be empty
|
|
33
|
+
*
|
|
34
|
+
* Throws error if any of the dates are missing (for this date or the other date)
|
|
35
|
+
* @param Period other
|
|
36
|
+
* @returns currentPeriod.startDate < otherPeriod.endDate && currentPeriod.endDate > otherPeriod.startDate
|
|
37
|
+
*/
|
|
31
38
|
collidesWith(other) {
|
|
32
39
|
if (!this.startDate || !this.endDate || !other.startDate || !other.endDate) {
|
|
33
40
|
throw new Error("Cannot check collision with missing dates");
|
package/lib/calendar/date.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/calendar/date.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,qDAA+F;AAC/F,8CAAmD;AAEnD,MAAa,OAAO;IAGnB,IAAI,CAAO;CACX;AAJD,0BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACH,IAAI;qCAAC;AAGZ,MAAa,MAAM;IAQlB,SAAS,CAAO;IAOhB,OAAO,CAAO;IAEd,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/calendar/date.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,qDAA+F;AAC/F,8CAAmD;AAEnD,MAAa,OAAO;IAGnB,IAAI,CAAO;CACX;AAJD,0BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACH,IAAI;qCAAC;AAGZ,MAAa,MAAM;IAQlB,SAAS,CAAO;IAOhB,OAAO,CAAO;IAEd,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED;;;;;;OAMG;IACH,YAAY,CAAC,KAAa;QACzB,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,CAAC,KAAK,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K,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3D,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,EAAE,CAAC;;2CACO;AAMf;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3D,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,IAAI,CAAC;;0CACI"}
|
package/lib/calendar/holiday.js
CHANGED
|
@@ -13,6 +13,9 @@ exports.HolidaysDto = exports.Holiday = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const date_1 = require("./date");
|
|
16
|
+
/**
|
|
17
|
+
* Holiday Model
|
|
18
|
+
*/
|
|
16
19
|
class Holiday {
|
|
17
20
|
title;
|
|
18
21
|
period;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"holiday.js","sourceRoot":"","sources":["../../src/calendar/holiday.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAgF;AAChF,iCAAgC;
|
|
1
|
+
{"version":3,"file":"holiday.js","sourceRoot":"","sources":["../../src/calendar/holiday.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAgF;AAChF,iCAAgC;AAEhC;;GAEG;AACH,MAAa,OAAO;IAInB,KAAK,CAAS;IAMd,MAAM,CAAS;CACf;AAXD,0BAWC;AAPA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;sCACC;AAMd;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAM,CAAC;IAClB,IAAA,gCAAc,GAAE;8BACT,aAAM;uCAAC;AAGhB,MAAa,WAAW;IAKvB,QAAQ,CAAY;CACpB;AAND,kCAMC;AADA;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;IACnB,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6CACX"}
|
package/lib/calendar/index.d.ts
CHANGED
package/lib/calendar/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./appointment"), exports);
|
|
18
18
|
__exportStar(require("./date"), exports);
|
|
19
19
|
__exportStar(require("./holiday"), exports);
|
|
20
|
+
__exportStar(require("./token"), exports);
|
|
20
21
|
__exportStar(require("./types"), exports);
|
|
21
22
|
__exportStar(require("./working"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/calendar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yCAAuB;AACvB,4CAA0B;AAC1B,0CAAwB;AACxB,4CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/calendar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yCAAuB;AACvB,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ProfileType } from "../user/profile.type";
|
|
2
|
+
export interface ICalendarToken {
|
|
3
|
+
/**
|
|
4
|
+
* The profile ID
|
|
5
|
+
*/
|
|
6
|
+
sub: number;
|
|
7
|
+
/**
|
|
8
|
+
* The token scope
|
|
9
|
+
*/
|
|
10
|
+
scope: 'calendar';
|
|
11
|
+
/**
|
|
12
|
+
* Whether or not show only "busy" title without details about the calendar appointments and events
|
|
13
|
+
*/
|
|
14
|
+
busy: 'true' | 'false';
|
|
15
|
+
/**
|
|
16
|
+
* The profile type
|
|
17
|
+
*/
|
|
18
|
+
profileType: ProfileType;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/calendar/token.ts"],"names":[],"mappings":""}
|
package/lib/common/app-info.d.ts
CHANGED
package/lib/common/app-info.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-info.js","sourceRoot":"","sources":["../../src/common/app-info.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,OAAO;IAGnB,aAAa,CAAS;IAItB,oBAAoB,CAAS;IAG7B,YAAY,CAAS;IAGrB,cAAc,CAAS;
|
|
1
|
+
{"version":3,"file":"app-info.js","sourceRoot":"","sources":["../../src/common/app-info.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,OAAO;IAGnB,aAAa,CAAS;IAItB,oBAAoB,CAAS;IAG7B,YAAY,CAAS;IAGrB,cAAc,CAAS;IAEvB,6DAA6D;IAE7D,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AApBD,0BAoBC;AAjBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACG;AAItB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACU;AAG7B;IADC,IAAA,0BAAM,GAAE;;6CACY;AAGrB;IADC,IAAA,0BAAM,GAAE;;+CACc"}
|
package/lib/common/identity.d.ts
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* * Represents identity information for a user or entity.
|
|
3
|
+
* * This interface includes optional fields for name, image URL, description, phone number, and email.
|
|
4
|
+
* * It is used in notification systems to provide context about the initiator or target of a notification.
|
|
5
|
+
*/
|
|
1
6
|
export interface IdentityInfo {
|
|
7
|
+
/**
|
|
8
|
+
* * The name of the identity.
|
|
9
|
+
*/
|
|
2
10
|
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* * The URL of the identity's image (optional).
|
|
13
|
+
*/
|
|
3
14
|
imageUrl?: string;
|
|
15
|
+
/**
|
|
16
|
+
* * A brief description of the identity (optional).
|
|
17
|
+
*/
|
|
4
18
|
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* * The phone number associated with the identity (optional).
|
|
21
|
+
*/
|
|
5
22
|
phoneNumber?: string;
|
|
23
|
+
/**
|
|
24
|
+
* * The email address associated with the identity (optional).
|
|
25
|
+
*/
|
|
6
26
|
email?: string;
|
|
7
27
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export declare class CompanyDashboardWidgetModel {
|
|
2
2
|
title: string;
|
|
3
3
|
amount: number;
|
|
4
|
+
/**
|
|
5
|
+
* The difference between the current amount and the amount of last month
|
|
6
|
+
*/
|
|
4
7
|
performance: number;
|
|
8
|
+
/************************* methods *************************/
|
|
5
9
|
constructor(props?: Partial<CompanyDashboardWidgetModel>);
|
|
6
10
|
}
|
|
@@ -14,7 +14,11 @@ const class_transformer_1 = require("class-transformer");
|
|
|
14
14
|
class CompanyDashboardWidgetModel {
|
|
15
15
|
title;
|
|
16
16
|
amount;
|
|
17
|
+
/**
|
|
18
|
+
* The difference between the current amount and the amount of last month
|
|
19
|
+
*/
|
|
17
20
|
performance;
|
|
21
|
+
/************************* methods *************************/
|
|
18
22
|
constructor(props) {
|
|
19
23
|
Object.assign(this, props);
|
|
20
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company-widget.model.js","sourceRoot":"","sources":["../../src/company/company-widget.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,2BAA2B;IAEvC,KAAK,CAAS;IAId,MAAM,CAAS;
|
|
1
|
+
{"version":3,"file":"company-widget.model.js","sourceRoot":"","sources":["../../src/company/company-widget.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,2BAA2B;IAEvC,KAAK,CAAS;IAId,MAAM,CAAS;IAEf;;OAEG;IAGH,WAAW,CAAS;IAEpB,6DAA6D;IAE7D,YAAY,KAA4C;QACvD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AApBD,kEAoBC;AAlBA;IADC,IAAA,0BAAM,GAAE;;0DACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2DACJ;AAOf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gEACC"}
|