@intelact/driveup 1.6.0 → 1.7.0
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/auth/signin.dto.js +1 -1
- package/lib/auth/signin.dto.js.map +1 -1
- package/lib/geo/address.model.d.ts +6 -4
- package/lib/geo/address.model.js +13 -2
- package/lib/geo/address.model.js.map +1 -1
- package/lib/geo/pickup.model.d.ts +1 -1
- package/lib/geo/pickup.model.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/instructor/instructor.model.d.ts +3 -2
- package/lib/instructor/instructor.model.js +5 -4
- package/lib/instructor/instructor.model.js.map +1 -1
- package/lib/note/note.model.d.ts +1 -1
- package/lib/note/note.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/array.helper.d.ts +7 -0
- package/lib/utils/array.helper.js +9 -0
- package/lib/utils/array.helper.js.map +1 -1
- package/package.json +2 -2
- package/lib/agent/asset.type.d.ts +0 -5
- package/lib/agent/asset.type.js +0 -10
- package/lib/agent/asset.type.js.map +0 -1
- package/lib/agent/earning.type.d.ts +0 -6
- package/lib/agent/earning.type.js +0 -3
- package/lib/agent/earning.type.js.map +0 -1
- package/lib/alert/alert.content.d.ts +0 -4
- package/lib/alert/alert.content.js +0 -9
- package/lib/alert/alert.content.js.map +0 -1
- package/lib/bill/bill-item.type.d.ts +0 -5
- package/lib/bill/bill-item.type.js +0 -10
- package/lib/bill/bill-item.type.js.map +0 -1
- package/lib/bill/bill.status.d.ts +0 -5
- package/lib/bill/bill.status.js +0 -13
- package/lib/bill/bill.status.js.map +0 -1
- package/lib/calendar/types.d.ts +0 -19
- package/lib/calendar/types.js +0 -25
- package/lib/calendar/types.js.map +0 -1
- package/lib/common/context.d.ts +0 -6
- package/lib/common/context.js +0 -11
- package/lib/common/context.js.map +0 -1
- package/lib/course/types.d.ts +0 -15
- package/lib/course/types.js +0 -22
- package/lib/course/types.js.map +0 -1
- package/lib/driving/lesson/types.d.ts +0 -15
- package/lib/driving/lesson/types.js +0 -21
- package/lib/driving/lesson/types.js.map +0 -1
- package/lib/driving/types.d.ts +0 -9
- package/lib/driving/types.js +0 -15
- package/lib/driving/types.js.map +0 -1
- package/lib/event/event.dto.d.ts +0 -24
- package/lib/event/event.dto.js +0 -146
- package/lib/event/event.dto.js.map +0 -1
- package/lib/event/event.model.d.ts +0 -8
- package/lib/event/event.model.js +0 -49
- package/lib/event/event.model.js.map +0 -1
- package/lib/event/index.d.ts +0 -2
- package/lib/event/index.js +0 -19
- package/lib/event/index.js.map +0 -1
- package/lib/events/agent/account.events.d.ts +0 -27
- package/lib/events/agent/account.events.js +0 -32
- package/lib/events/agent/account.events.js.map +0 -1
- package/lib/events/agent/payout.events.d.ts +0 -29
- package/lib/events/agent/payout.events.js +0 -34
- package/lib/events/agent/payout.events.js.map +0 -1
- package/lib/events/agent/profile.events.d.ts +0 -18
- package/lib/events/agent/profile.events.js +0 -23
- package/lib/events/agent/profile.events.js.map +0 -1
- package/lib/events/agent/promotion.events.d.ts +0 -42
- package/lib/events/agent/promotion.events.js +0 -47
- package/lib/events/agent/promotion.events.js.map +0 -1
- package/lib/events/auth/auth.events.d.ts +0 -16
- package/lib/events/auth/auth.events.js +0 -21
- package/lib/events/auth/auth.events.js.map +0 -1
- package/lib/events/auth/token.events.d.ts +0 -23
- package/lib/events/auth/token.events.js +0 -28
- package/lib/events/auth/token.events.js.map +0 -1
- package/lib/events/auth/verify.events.d.ts +0 -17
- package/lib/events/auth/verify.events.js +0 -22
- package/lib/events/auth/verify.events.js.map +0 -1
- package/lib/events/company/account/account.events.d.ts +0 -64
- package/lib/events/company/account/account.events.js +0 -69
- package/lib/events/company/account/account.events.js.map +0 -1
- package/lib/events/company/account/profile.events.d.ts +0 -169
- package/lib/events/company/account/profile.events.js +0 -174
- package/lib/events/company/account/profile.events.js.map +0 -1
- package/lib/events/company/course/appointment.events.d.ts +0 -56
- package/lib/events/company/course/appointment.events.js +0 -61
- package/lib/events/company/course/appointment.events.js.map +0 -1
- package/lib/events/company/course/course.events.d.ts +0 -118
- package/lib/events/company/course/course.events.js +0 -123
- package/lib/events/company/course/course.events.js.map +0 -1
- package/lib/events/company/course/lesson.events.d.ts +0 -56
- package/lib/events/company/course/lesson.events.js +0 -61
- package/lib/events/company/course/lesson.events.js.map +0 -1
- package/lib/events/company/course/topic.events.d.ts +0 -76
- package/lib/events/company/course/topic.events.js +0 -81
- package/lib/events/company/course/topic.events.js.map +0 -1
- package/lib/events/company/product/addon.events.d.ts +0 -34
- package/lib/events/company/product/addon.events.js +0 -39
- package/lib/events/company/product/addon.events.js.map +0 -1
- package/lib/events/company/product/campaign.events.d.ts +0 -13
- package/lib/events/company/product/campaign.events.js +0 -18
- package/lib/events/company/product/campaign.events.js.map +0 -1
- package/lib/events/company/product/product.events.d.ts +0 -54
- package/lib/events/company/product/product.events.js +0 -59
- package/lib/events/company/product/product.events.js.map +0 -1
- package/lib/events/index.d.ts +0 -25
- package/lib/events/index.js +0 -42
- package/lib/events/index.js.map +0 -1
- package/lib/events/instructor/account/account.events.d.ts +0 -123
- package/lib/events/instructor/account/account.events.js +0 -128
- package/lib/events/instructor/account/account.events.js.map +0 -1
- package/lib/events/instructor/account/profile.events.d.ts +0 -31
- package/lib/events/instructor/account/profile.events.js +0 -36
- package/lib/events/instructor/account/profile.events.js.map +0 -1
- package/lib/events/instructor/task/task.events.d.ts +0 -24
- package/lib/events/instructor/task/task.events.js +0 -29
- package/lib/events/instructor/task/task.events.js.map +0 -1
- package/lib/events/student/account/account.events.d.ts +0 -36
- package/lib/events/student/account/account.events.js +0 -41
- package/lib/events/student/account/account.events.js.map +0 -1
- package/lib/events/user/account.events.d.ts +0 -84
- package/lib/events/user/account.events.js +0 -89
- package/lib/events/user/account.events.js.map +0 -1
- package/lib/events/user/alert.events.d.ts +0 -16
- package/lib/events/user/alert.events.js +0 -21
- package/lib/events/user/alert.events.js.map +0 -1
- package/lib/events/user/device.events.d.ts +0 -30
- package/lib/events/user/device.events.js +0 -35
- package/lib/events/user/device.events.js.map +0 -1
- package/lib/events/user/notification.events.d.ts +0 -30
- package/lib/events/user/notification.events.js +0 -35
- package/lib/events/user/notification.events.js.map +0 -1
- package/lib/events/user/profile.events.d.ts +0 -60
- package/lib/events/user/profile.events.js +0 -65
- package/lib/events/user/profile.events.js.map +0 -1
- package/lib/expense/expense.types.d.ts +0 -5
- package/lib/expense/expense.types.js +0 -10
- package/lib/expense/expense.types.js.map +0 -1
- package/lib/finance/finance.type.d.ts +0 -21
- package/lib/finance/finance.type.js +0 -21
- package/lib/finance/finance.type.js.map +0 -1
- package/lib/free-benefit/free-benefit.type.d.ts +0 -4
- package/lib/free-benefit/free-benefit.type.js +0 -9
- package/lib/free-benefit/free-benefit.type.js.map +0 -1
- package/lib/handover/handover.document.d.ts +0 -5
- package/lib/handover/handover.document.js +0 -3
- package/lib/handover/handover.document.js.map +0 -1
- package/lib/invoice/invoice.types.d.ts +0 -6
- package/lib/invoice/invoice.types.js +0 -11
- package/lib/invoice/invoice.types.js.map +0 -1
- package/lib/log/log.type.d.ts +0 -9
- package/lib/log/log.type.js +0 -14
- package/lib/log/log.type.js.map +0 -1
- package/lib/notification/notification.channel.d.ts +0 -6
- package/lib/notification/notification.channel.js +0 -11
- package/lib/notification/notification.channel.js.map +0 -1
- package/lib/payment/payment.types.d.ts +0 -13
- package/lib/payment/payment.types.js +0 -20
- package/lib/payment/payment.types.js.map +0 -1
- package/lib/payout/payout.types.d.ts +0 -4
- package/lib/payout/payout.types.js +0 -9
- package/lib/payout/payout.types.js.map +0 -1
- package/lib/priceplan/plan.enum.d.ts +0 -23
- package/lib/priceplan/plan.enum.js +0 -29
- package/lib/priceplan/plan.enum.js.map +0 -1
- package/lib/product/index.d.ts +0 -3
- package/lib/product/index.js +0 -20
- package/lib/product/index.js.map +0 -1
- package/lib/product/product.dto.d.ts +0 -12
- package/lib/product/product.dto.js +0 -69
- package/lib/product/product.dto.js.map +0 -1
- package/lib/product/product.model.d.ts +0 -12
- package/lib/product/product.model.js +0 -61
- package/lib/product/product.model.js.map +0 -1
- package/lib/product/product.type.d.ts +0 -4
- package/lib/product/product.type.js +0 -9
- package/lib/product/product.type.js.map +0 -1
- package/lib/security/account.types.d.ts +0 -8
- package/lib/security/account.types.js +0 -13
- package/lib/security/account.types.js.map +0 -1
- package/lib/security/acl.d.ts +0 -6
- package/lib/security/acl.js +0 -11
- package/lib/security/acl.js.map +0 -1
- package/lib/security/permissions.d.ts +0 -9
- package/lib/security/permissions.js +0 -14
- package/lib/security/permissions.js.map +0 -1
- package/lib/security/role.types.d.ts +0 -41
- package/lib/security/role.types.js +0 -46
- package/lib/security/role.types.js.map +0 -1
- package/lib/setting/setting.type.d.ts +0 -7
- package/lib/setting/setting.type.js +0 -12
- package/lib/setting/setting.type.js.map +0 -1
- package/lib/ticket/ticket.enum.d.ts +0 -5
- package/lib/ticket/ticket.enum.js +0 -10
- package/lib/ticket/ticket.enum.js.map +0 -1
- package/lib/training/training.types.d.ts +0 -15
- package/lib/training/training.types.js +0 -22
- package/lib/training/training.types.js.map +0 -1
- package/lib/types/activity.type.d.ts +0 -46
- package/lib/types/activity.type.js +0 -51
- package/lib/types/activity.type.js.map +0 -1
- package/lib/types/addon.type.d.ts +0 -66
- package/lib/types/addon.type.js +0 -71
- package/lib/types/addon.type.js.map +0 -1
- package/lib/types/calendar.type.d.ts +0 -24
- package/lib/types/calendar.type.js +0 -31
- package/lib/types/calendar.type.js.map +0 -1
- package/lib/types/driving.type.d.ts +0 -12
- package/lib/types/driving.type.js +0 -18
- package/lib/types/driving.type.js.map +0 -1
- package/lib/types/earning.type.d.ts +0 -6
- package/lib/types/earning.type.js +0 -3
- package/lib/types/earning.type.js.map +0 -1
- package/lib/types/finance.type.d.ts +0 -67
- package/lib/types/finance.type.js +0 -77
- package/lib/types/finance.type.js.map +0 -1
- package/lib/types/index.d.ts +0 -15
- package/lib/types/index.js +0 -32
- package/lib/types/index.js.map +0 -1
- package/lib/types/interface.d.ts +0 -79
- package/lib/types/interface.js +0 -4
- package/lib/types/interface.js.map +0 -1
- package/lib/types/metric.type.d.ts +0 -34
- package/lib/types/metric.type.js +0 -39
- package/lib/types/metric.type.js.map +0 -1
- package/lib/types/policy.type.d.ts +0 -27
- package/lib/types/policy.type.js +0 -32
- package/lib/types/policy.type.js.map +0 -1
- package/lib/types/priceplan.type.d.ts +0 -39
- package/lib/types/priceplan.type.js +0 -48
- package/lib/types/priceplan.type.js.map +0 -1
- package/lib/types/product.type.d.ts +0 -202
- package/lib/types/product.type.js +0 -209
- package/lib/types/product.type.js.map +0 -1
- package/lib/types/program.type.d.ts +0 -23
- package/lib/types/program.type.js +0 -28
- package/lib/types/program.type.js.map +0 -1
- package/lib/types/security.type.d.ts +0 -54
- package/lib/types/security.type.js +0 -60
- package/lib/types/security.type.js.map +0 -1
- package/lib/types/support.type.d.ts +0 -128
- package/lib/types/support.type.js +0 -145
- package/lib/types/support.type.js.map +0 -1
- package/lib/types/training.type.d.ts +0 -16
- package/lib/types/training.type.js +0 -22
- package/lib/types/training.type.js.map +0 -1
- package/lib/user/profile.type.d.ts +0 -10
- package/lib/user/profile.type.js +0 -15
- package/lib/user/profile.type.js.map +0 -1
- package/lib/validators/compare.validator.d.ts +0 -9
- package/lib/validators/compare.validator.js +0 -34
- package/lib/validators/compare.validator.js.map +0 -1
- package/lib/validators/index.d.ts +0 -2
- package/lib/validators/index.js +0 -19
- package/lib/validators/index.js.map +0 -1
- package/lib/validators/required.validator.d.ts +0 -21
- package/lib/validators/required.validator.js +0 -95
- package/lib/validators/required.validator.js.map +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProgramType = void 0;
|
|
4
|
-
var ProgramType;
|
|
5
|
-
(function (ProgramType) {
|
|
6
|
-
/**
|
|
7
|
-
* Student Driving Licence Program
|
|
8
|
-
* A program designed for individuals who are in the fully process of obtaining their driving licence.
|
|
9
|
-
* This program includes various stages such as medical examinations, theory training, practical lessons, and final assessments.
|
|
10
|
-
* It aims to provide comprehensive training and support to help students become safe and responsible drivers.
|
|
11
|
-
*/
|
|
12
|
-
ProgramType["Driving"] = "Driving";
|
|
13
|
-
/**
|
|
14
|
-
* Driving Control Program
|
|
15
|
-
* Foreign drivers must take in order to have their foreign driving licence officially recognized and exchanged for a country driving licence.
|
|
16
|
-
* This program typically includes assessments of driving skills, knowledge of local traffic laws, and may involve additional training sessions.
|
|
17
|
-
* The goal is to ensure that foreign drivers meet the required standards for safe driving within the country.
|
|
18
|
-
*/
|
|
19
|
-
ProgramType["DrivingControl"] = "DrivingControl";
|
|
20
|
-
/**
|
|
21
|
-
* Instructor Qualification Program
|
|
22
|
-
* A program aimed at individuals seeking to become certified driving instructors.
|
|
23
|
-
* This program covers the necessary training, assessments, and certifications required to qualify as a professional driving instructor.
|
|
24
|
-
* It focuses on developing teaching skills, driving techniques, and knowledge of traffic laws to effectively train new drivers.
|
|
25
|
-
*/
|
|
26
|
-
ProgramType["InstructorQualification"] = "InstructorQualification";
|
|
27
|
-
})(ProgramType || (exports.ProgramType = ProgramType = {}));
|
|
28
|
-
//# sourceMappingURL=program.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program.type.js","sourceRoot":"","sources":["../../src/types/program.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAyBX;AAzBD,WAAY,WAAW;IAEtB;;;;;OAKG;IACH,kCAAmB,CAAA;IAEnB;;;;;OAKG;IACH,gDAAiC,CAAA;IAEjC;;;;;OAKG;IACH,kEAAmD,CAAA;AACpD,CAAC,EAzBW,WAAW,2BAAX,WAAW,QAyBtB"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export declare enum CompanyRole {
|
|
2
|
-
/**
|
|
3
|
-
* Company Owner
|
|
4
|
-
* @description User with all rights in his company
|
|
5
|
-
*/
|
|
6
|
-
Owner = "owner",
|
|
7
|
-
/**
|
|
8
|
-
* Company Manager
|
|
9
|
-
* @description The company manager who administers the back office
|
|
10
|
-
*/
|
|
11
|
-
Manager = "manager",
|
|
12
|
-
/**
|
|
13
|
-
* Company Instructor
|
|
14
|
-
* @description The company instructor who trains the students
|
|
15
|
-
*/
|
|
16
|
-
Instructor = "instructor"
|
|
17
|
-
}
|
|
18
|
-
export declare enum StaffRole {
|
|
19
|
-
/**
|
|
20
|
-
* Product Owner
|
|
21
|
-
* @description User with all rights in the console
|
|
22
|
-
*/
|
|
23
|
-
ProductOwner = "product.owner",
|
|
24
|
-
/**
|
|
25
|
-
* Product Manager
|
|
26
|
-
* @description User who manages product features and releases
|
|
27
|
-
*/
|
|
28
|
-
ProductManager = "product.manager",
|
|
29
|
-
/**
|
|
30
|
-
* Business Manager
|
|
31
|
-
* @description User who manages business operations
|
|
32
|
-
*/
|
|
33
|
-
BusinessManager = "business.manager",
|
|
34
|
-
/**
|
|
35
|
-
* Customer Account Manager
|
|
36
|
-
* @description User who manages customer accounts
|
|
37
|
-
*/
|
|
38
|
-
CustomerAccountManager = "customer.account.manager",
|
|
39
|
-
/**
|
|
40
|
-
* Customer Support Manager
|
|
41
|
-
* @description User who provides support to customers
|
|
42
|
-
*/
|
|
43
|
-
CustomerSupportManager = "customer.support.manager",
|
|
44
|
-
/**
|
|
45
|
-
* Marketing Manager
|
|
46
|
-
* @description User who manages marketing activities
|
|
47
|
-
*/
|
|
48
|
-
MarketingManager = "marketing.manager",
|
|
49
|
-
/**
|
|
50
|
-
* Marketing Manager
|
|
51
|
-
* @description User who manages marketing activities
|
|
52
|
-
*/
|
|
53
|
-
MarketingService = "marketing.service"
|
|
54
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StaffRole = exports.CompanyRole = void 0;
|
|
4
|
-
var CompanyRole;
|
|
5
|
-
(function (CompanyRole) {
|
|
6
|
-
/**
|
|
7
|
-
* Company Owner
|
|
8
|
-
* @description User with all rights in his company
|
|
9
|
-
*/
|
|
10
|
-
CompanyRole["Owner"] = "owner";
|
|
11
|
-
/**
|
|
12
|
-
* Company Manager
|
|
13
|
-
* @description The company manager who administers the back office
|
|
14
|
-
*/
|
|
15
|
-
CompanyRole["Manager"] = "manager";
|
|
16
|
-
/**
|
|
17
|
-
* Company Instructor
|
|
18
|
-
* @description The company instructor who trains the students
|
|
19
|
-
*/
|
|
20
|
-
CompanyRole["Instructor"] = "instructor";
|
|
21
|
-
})(CompanyRole || (exports.CompanyRole = CompanyRole = {}));
|
|
22
|
-
var StaffRole;
|
|
23
|
-
(function (StaffRole) {
|
|
24
|
-
/**
|
|
25
|
-
* Product Owner
|
|
26
|
-
* @description User with all rights in the console
|
|
27
|
-
*/
|
|
28
|
-
StaffRole["ProductOwner"] = "product.owner";
|
|
29
|
-
/**
|
|
30
|
-
* Product Manager
|
|
31
|
-
* @description User who manages product features and releases
|
|
32
|
-
*/
|
|
33
|
-
StaffRole["ProductManager"] = "product.manager";
|
|
34
|
-
/**
|
|
35
|
-
* Business Manager
|
|
36
|
-
* @description User who manages business operations
|
|
37
|
-
*/
|
|
38
|
-
StaffRole["BusinessManager"] = "business.manager";
|
|
39
|
-
/**
|
|
40
|
-
* Customer Account Manager
|
|
41
|
-
* @description User who manages customer accounts
|
|
42
|
-
*/
|
|
43
|
-
StaffRole["CustomerAccountManager"] = "customer.account.manager";
|
|
44
|
-
/**
|
|
45
|
-
* Customer Support Manager
|
|
46
|
-
* @description User who provides support to customers
|
|
47
|
-
*/
|
|
48
|
-
StaffRole["CustomerSupportManager"] = "customer.support.manager";
|
|
49
|
-
/**
|
|
50
|
-
* Marketing Manager
|
|
51
|
-
* @description User who manages marketing activities
|
|
52
|
-
*/
|
|
53
|
-
StaffRole["MarketingManager"] = "marketing.manager";
|
|
54
|
-
/**
|
|
55
|
-
* Marketing Manager
|
|
56
|
-
* @description User who manages marketing activities
|
|
57
|
-
*/
|
|
58
|
-
StaffRole["MarketingService"] = "marketing.service";
|
|
59
|
-
})(StaffRole || (exports.StaffRole = StaffRole = {}));
|
|
60
|
-
//# sourceMappingURL=security.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"security.type.js","sourceRoot":"","sources":["../../src/types/security.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACtB;;;OAGG;IACH,8BAAe,CAAA;IAEf;;;OAGG;IACH,kCAAmB,CAAA;IAEnB;;;OAGG;IACH,wCAAyB,CAAA;AAC1B,CAAC,EAlBW,WAAW,2BAAX,WAAW,QAkBtB;AAED,IAAY,SA2CX;AA3CD,WAAY,SAAS;IAEpB;;;OAGG;IACH,2CAA8B,CAAA;IAE9B;;;OAGG;IACH,+CAAkC,CAAA;IAElC;;;OAGG;IACH,iDAAoC,CAAA;IAEpC;;;OAGG;IACH,gEAAmD,CAAA;IAEnD;;;OAGG;IACH,gEAAmD,CAAA;IAEnD;;;OAGG;IACH,mDAAsC,CAAA;IAEtC;;;OAGG;IACH,mDAAsC,CAAA;AACvC,CAAC,EA3CW,SAAS,yBAAT,SAAS,QA2CpB"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
export declare enum AccountStatus {
|
|
2
|
-
Invited = "invited",
|
|
3
|
-
Pending = "pending",
|
|
4
|
-
Active = "active",
|
|
5
|
-
Suspended = "suspended",
|
|
6
|
-
Blocked = "blocked",
|
|
7
|
-
Closed = "closed"
|
|
8
|
-
}
|
|
9
|
-
export declare enum ProfileType {
|
|
10
|
-
Student = "student",
|
|
11
|
-
Company = "company",
|
|
12
|
-
Agent = "agent",
|
|
13
|
-
Instructor = "instructor"
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Global language enumeration.
|
|
17
|
-
* Defines supported language codes.
|
|
18
|
-
* Only languages defined here should be used across the application.
|
|
19
|
-
* Add language code allway in small letters.
|
|
20
|
-
*/
|
|
21
|
-
export declare enum Language {
|
|
22
|
-
En = "en",
|
|
23
|
-
De = "de",
|
|
24
|
-
Fr = "fr",
|
|
25
|
-
It = "it"
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Global status types used across the application
|
|
29
|
-
* Members: Draft, Pending, Approved, Published, Complited, Canceled, Rejected, Skipped
|
|
30
|
-
*/
|
|
31
|
-
export declare enum StatusType {
|
|
32
|
-
Draft = "draft",
|
|
33
|
-
Planned = "planned",
|
|
34
|
-
Pending = "pending",
|
|
35
|
-
Progress = "progress",
|
|
36
|
-
Approved = "approved",
|
|
37
|
-
Published = "published",
|
|
38
|
-
Completed = "completed",
|
|
39
|
-
Terminated = "terminated",
|
|
40
|
-
Active = "active",
|
|
41
|
-
Inactive = "inactive",
|
|
42
|
-
Disabled = "disabled",
|
|
43
|
-
Ended = "ended",
|
|
44
|
-
Canceled = "canceled",
|
|
45
|
-
Generated = "generated",
|
|
46
|
-
Paid = "paid",
|
|
47
|
-
Rejected = "rejected",
|
|
48
|
-
Skipped = "skipped",
|
|
49
|
-
Passed = "passed",
|
|
50
|
-
Failed = "failed",
|
|
51
|
-
Overdate = "overdate",
|
|
52
|
-
Sent = "sent"
|
|
53
|
-
}
|
|
54
|
-
export declare enum PriorityType {
|
|
55
|
-
Low = "low",
|
|
56
|
-
Medium = "medium",
|
|
57
|
-
High = "high",
|
|
58
|
-
Urgent = "urgent"
|
|
59
|
-
}
|
|
60
|
-
export declare enum PreferenceScope {
|
|
61
|
-
Notification = "notification",
|
|
62
|
-
Settings = "settings",
|
|
63
|
-
Privacy = "privacy"
|
|
64
|
-
}
|
|
65
|
-
export declare enum NotificationChannel {
|
|
66
|
-
App = "app",
|
|
67
|
-
Push = "push",
|
|
68
|
-
SMS = "sms",
|
|
69
|
-
Email = "email"
|
|
70
|
-
}
|
|
71
|
-
export declare enum TicketType {
|
|
72
|
-
Recovery = "recovery",
|
|
73
|
-
Call = "call",
|
|
74
|
-
EnterprisePlan = "enterprise_plan"
|
|
75
|
-
}
|
|
76
|
-
export declare enum LogType {
|
|
77
|
-
System = "system",
|
|
78
|
-
Job = "job",
|
|
79
|
-
User = "user",
|
|
80
|
-
Company = "company",
|
|
81
|
-
Agent = "agent",
|
|
82
|
-
Student = "student",
|
|
83
|
-
Instructor = "instructor"
|
|
84
|
-
}
|
|
85
|
-
export declare enum AssetType {
|
|
86
|
-
Image = "image",
|
|
87
|
-
Video = "video",
|
|
88
|
-
Document = "document",
|
|
89
|
-
Audio = "audio",
|
|
90
|
-
Other = "other"
|
|
91
|
-
}
|
|
92
|
-
export declare enum AssetScope {
|
|
93
|
-
DriveupPromotion = "DriveupPromotion",
|
|
94
|
-
StudentPromotion = "StudentPromotion",
|
|
95
|
-
InstructorPromotion = "InstructorPromotion",
|
|
96
|
-
CompanyPromotion = "CompanyPromotion",
|
|
97
|
-
AgentPromotion = "AgentPromotion",
|
|
98
|
-
ProductMedicalPromotion = "ProductMedicalPromotion",
|
|
99
|
-
ProductPreperationPromotion = "ProductPreperationPromotion",
|
|
100
|
-
ProductDrivingPromotion = "ProductDrivingPromotion",
|
|
101
|
-
ProductCompletionPromotion = "ProductCompletionPromotion"
|
|
102
|
-
}
|
|
103
|
-
export declare enum Color {
|
|
104
|
-
Blue = "blue",
|
|
105
|
-
Green = "green",
|
|
106
|
-
Red = "red",
|
|
107
|
-
Yellow = "yellow",
|
|
108
|
-
Orange = "orange",
|
|
109
|
-
Purple = "purple",
|
|
110
|
-
Teal = "teal",
|
|
111
|
-
Gray = "gray",
|
|
112
|
-
Black = "black",
|
|
113
|
-
White = "white"
|
|
114
|
-
}
|
|
115
|
-
export declare enum ColorContext {
|
|
116
|
-
Primary = "primary",
|
|
117
|
-
Secondary = "secondary",
|
|
118
|
-
Tertiary = "tertiary",
|
|
119
|
-
Accent = "accent",
|
|
120
|
-
Error = "error",
|
|
121
|
-
Warning = "warning",
|
|
122
|
-
Success = "success",
|
|
123
|
-
Info = "info",
|
|
124
|
-
Disabled = "disabled",
|
|
125
|
-
Highlight = "highlight",
|
|
126
|
-
Dark = "dark",
|
|
127
|
-
Light = "light"
|
|
128
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ColorContext = exports.Color = exports.AssetScope = exports.AssetType = exports.LogType = exports.TicketType = exports.NotificationChannel = exports.PreferenceScope = exports.PriorityType = exports.StatusType = exports.Language = exports.ProfileType = exports.AccountStatus = void 0;
|
|
4
|
-
var AccountStatus;
|
|
5
|
-
(function (AccountStatus) {
|
|
6
|
-
AccountStatus["Invited"] = "invited";
|
|
7
|
-
AccountStatus["Pending"] = "pending";
|
|
8
|
-
AccountStatus["Active"] = "active";
|
|
9
|
-
AccountStatus["Suspended"] = "suspended";
|
|
10
|
-
AccountStatus["Blocked"] = "blocked";
|
|
11
|
-
AccountStatus["Closed"] = "closed";
|
|
12
|
-
})(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
|
|
13
|
-
var ProfileType;
|
|
14
|
-
(function (ProfileType) {
|
|
15
|
-
ProfileType["Student"] = "student";
|
|
16
|
-
ProfileType["Company"] = "company";
|
|
17
|
-
ProfileType["Agent"] = "agent";
|
|
18
|
-
ProfileType["Instructor"] = "instructor";
|
|
19
|
-
})(ProfileType || (exports.ProfileType = ProfileType = {}));
|
|
20
|
-
/**
|
|
21
|
-
* Global language enumeration.
|
|
22
|
-
* Defines supported language codes.
|
|
23
|
-
* Only languages defined here should be used across the application.
|
|
24
|
-
* Add language code allway in small letters.
|
|
25
|
-
*/
|
|
26
|
-
var Language;
|
|
27
|
-
(function (Language) {
|
|
28
|
-
Language["En"] = "en";
|
|
29
|
-
Language["De"] = "de";
|
|
30
|
-
Language["Fr"] = "fr";
|
|
31
|
-
Language["It"] = "it";
|
|
32
|
-
})(Language || (exports.Language = Language = {}));
|
|
33
|
-
/**
|
|
34
|
-
* Global status types used across the application
|
|
35
|
-
* Members: Draft, Pending, Approved, Published, Complited, Canceled, Rejected, Skipped
|
|
36
|
-
*/
|
|
37
|
-
var StatusType;
|
|
38
|
-
(function (StatusType) {
|
|
39
|
-
StatusType["Draft"] = "draft";
|
|
40
|
-
StatusType["Planned"] = "planned";
|
|
41
|
-
StatusType["Pending"] = "pending";
|
|
42
|
-
StatusType["Progress"] = "progress";
|
|
43
|
-
StatusType["Approved"] = "approved";
|
|
44
|
-
StatusType["Published"] = "published";
|
|
45
|
-
StatusType["Completed"] = "completed";
|
|
46
|
-
StatusType["Terminated"] = "terminated";
|
|
47
|
-
StatusType["Active"] = "active";
|
|
48
|
-
StatusType["Inactive"] = "inactive";
|
|
49
|
-
StatusType["Disabled"] = "disabled";
|
|
50
|
-
StatusType["Ended"] = "ended";
|
|
51
|
-
StatusType["Canceled"] = "canceled";
|
|
52
|
-
StatusType["Generated"] = "generated";
|
|
53
|
-
StatusType["Paid"] = "paid";
|
|
54
|
-
StatusType["Rejected"] = "rejected";
|
|
55
|
-
StatusType["Skipped"] = "skipped";
|
|
56
|
-
StatusType["Passed"] = "passed";
|
|
57
|
-
StatusType["Failed"] = "failed";
|
|
58
|
-
StatusType["Overdate"] = "overdate";
|
|
59
|
-
StatusType["Sent"] = "sent";
|
|
60
|
-
})(StatusType || (exports.StatusType = StatusType = {}));
|
|
61
|
-
var PriorityType;
|
|
62
|
-
(function (PriorityType) {
|
|
63
|
-
PriorityType["Low"] = "low";
|
|
64
|
-
PriorityType["Medium"] = "medium";
|
|
65
|
-
PriorityType["High"] = "high";
|
|
66
|
-
PriorityType["Urgent"] = "urgent";
|
|
67
|
-
})(PriorityType || (exports.PriorityType = PriorityType = {}));
|
|
68
|
-
var PreferenceScope;
|
|
69
|
-
(function (PreferenceScope) {
|
|
70
|
-
PreferenceScope["Notification"] = "notification";
|
|
71
|
-
PreferenceScope["Settings"] = "settings";
|
|
72
|
-
PreferenceScope["Privacy"] = "privacy";
|
|
73
|
-
})(PreferenceScope || (exports.PreferenceScope = PreferenceScope = {}));
|
|
74
|
-
var NotificationChannel;
|
|
75
|
-
(function (NotificationChannel) {
|
|
76
|
-
NotificationChannel["App"] = "app";
|
|
77
|
-
NotificationChannel["Push"] = "push";
|
|
78
|
-
NotificationChannel["SMS"] = "sms";
|
|
79
|
-
NotificationChannel["Email"] = "email";
|
|
80
|
-
})(NotificationChannel || (exports.NotificationChannel = NotificationChannel = {}));
|
|
81
|
-
var TicketType;
|
|
82
|
-
(function (TicketType) {
|
|
83
|
-
TicketType["Recovery"] = "recovery";
|
|
84
|
-
TicketType["Call"] = "call";
|
|
85
|
-
TicketType["EnterprisePlan"] = "enterprise_plan";
|
|
86
|
-
})(TicketType || (exports.TicketType = TicketType = {}));
|
|
87
|
-
var LogType;
|
|
88
|
-
(function (LogType) {
|
|
89
|
-
LogType["System"] = "system";
|
|
90
|
-
LogType["Job"] = "job";
|
|
91
|
-
LogType["User"] = "user";
|
|
92
|
-
LogType["Company"] = "company";
|
|
93
|
-
LogType["Agent"] = "agent";
|
|
94
|
-
LogType["Student"] = "student";
|
|
95
|
-
LogType["Instructor"] = "instructor";
|
|
96
|
-
})(LogType || (exports.LogType = LogType = {}));
|
|
97
|
-
var AssetType;
|
|
98
|
-
(function (AssetType) {
|
|
99
|
-
AssetType["Image"] = "image";
|
|
100
|
-
AssetType["Video"] = "video";
|
|
101
|
-
AssetType["Document"] = "document";
|
|
102
|
-
AssetType["Audio"] = "audio";
|
|
103
|
-
AssetType["Other"] = "other";
|
|
104
|
-
})(AssetType || (exports.AssetType = AssetType = {}));
|
|
105
|
-
var AssetScope;
|
|
106
|
-
(function (AssetScope) {
|
|
107
|
-
AssetScope["DriveupPromotion"] = "DriveupPromotion";
|
|
108
|
-
AssetScope["StudentPromotion"] = "StudentPromotion";
|
|
109
|
-
AssetScope["InstructorPromotion"] = "InstructorPromotion";
|
|
110
|
-
AssetScope["CompanyPromotion"] = "CompanyPromotion";
|
|
111
|
-
AssetScope["AgentPromotion"] = "AgentPromotion";
|
|
112
|
-
AssetScope["ProductMedicalPromotion"] = "ProductMedicalPromotion";
|
|
113
|
-
AssetScope["ProductPreperationPromotion"] = "ProductPreperationPromotion";
|
|
114
|
-
AssetScope["ProductDrivingPromotion"] = "ProductDrivingPromotion";
|
|
115
|
-
AssetScope["ProductCompletionPromotion"] = "ProductCompletionPromotion";
|
|
116
|
-
})(AssetScope || (exports.AssetScope = AssetScope = {}));
|
|
117
|
-
var Color;
|
|
118
|
-
(function (Color) {
|
|
119
|
-
Color["Blue"] = "blue";
|
|
120
|
-
Color["Green"] = "green";
|
|
121
|
-
Color["Red"] = "red";
|
|
122
|
-
Color["Yellow"] = "yellow";
|
|
123
|
-
Color["Orange"] = "orange";
|
|
124
|
-
Color["Purple"] = "purple";
|
|
125
|
-
Color["Teal"] = "teal";
|
|
126
|
-
Color["Gray"] = "gray";
|
|
127
|
-
Color["Black"] = "black";
|
|
128
|
-
Color["White"] = "white";
|
|
129
|
-
})(Color || (exports.Color = Color = {}));
|
|
130
|
-
var ColorContext;
|
|
131
|
-
(function (ColorContext) {
|
|
132
|
-
ColorContext["Primary"] = "primary";
|
|
133
|
-
ColorContext["Secondary"] = "secondary";
|
|
134
|
-
ColorContext["Tertiary"] = "tertiary";
|
|
135
|
-
ColorContext["Accent"] = "accent";
|
|
136
|
-
ColorContext["Error"] = "error";
|
|
137
|
-
ColorContext["Warning"] = "warning";
|
|
138
|
-
ColorContext["Success"] = "success";
|
|
139
|
-
ColorContext["Info"] = "info";
|
|
140
|
-
ColorContext["Disabled"] = "disabled";
|
|
141
|
-
ColorContext["Highlight"] = "highlight";
|
|
142
|
-
ColorContext["Dark"] = "dark";
|
|
143
|
-
ColorContext["Light"] = "light";
|
|
144
|
-
})(ColorContext || (exports.ColorContext = ColorContext = {}));
|
|
145
|
-
//# sourceMappingURL=support.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"support.type.js","sourceRoot":"","sources":["../../src/types/support.type.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Will be removeReceiptd in future versions.
|
|
3
|
-
* Use src/types/product.type.ts instead.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum TrainingType {
|
|
6
|
-
Driving = "DRIVING",
|
|
7
|
-
Course = "COURSE"
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @description Will be removeReceiptd in future versions.
|
|
11
|
-
* Use src/types/product.type.ts instead.
|
|
12
|
-
*/
|
|
13
|
-
export declare enum CourseType {
|
|
14
|
-
Flex = "FLEXIBLE",
|
|
15
|
-
Fix = "FIXED"
|
|
16
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CourseType = exports.TrainingType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @description Will be removeReceiptd in future versions.
|
|
6
|
-
* Use src/types/product.type.ts instead.
|
|
7
|
-
*/
|
|
8
|
-
var TrainingType;
|
|
9
|
-
(function (TrainingType) {
|
|
10
|
-
TrainingType["Driving"] = "DRIVING";
|
|
11
|
-
TrainingType["Course"] = "COURSE";
|
|
12
|
-
})(TrainingType || (exports.TrainingType = TrainingType = {}));
|
|
13
|
-
/**
|
|
14
|
-
* @description Will be removeReceiptd in future versions.
|
|
15
|
-
* Use src/types/product.type.ts instead.
|
|
16
|
-
*/
|
|
17
|
-
var CourseType;
|
|
18
|
-
(function (CourseType) {
|
|
19
|
-
CourseType["Flex"] = "FLEXIBLE";
|
|
20
|
-
CourseType["Fix"] = "FIXED";
|
|
21
|
-
})(CourseType || (exports.CourseType = CourseType = {}));
|
|
22
|
-
//# sourceMappingURL=training.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"training.type.js","sourceRoot":"","sources":["../../src/types/training.type.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,YAGX;AAHD,WAAY,YAAY;IACvB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;AAClB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED;;;GAGG;AACH,IAAY,UAGX;AAHD,WAAY,UAAU;IACrB,+BAAiB,CAAA;IACjB,2BAAa,CAAA;AACd,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB"}
|
package/lib/user/profile.type.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfileType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Driveup user profile types
|
|
6
|
-
*
|
|
7
|
-
* @copyright Intelact Ltd.
|
|
8
|
-
*/
|
|
9
|
-
var ProfileType;
|
|
10
|
-
(function (ProfileType) {
|
|
11
|
-
ProfileType["Student"] = "student";
|
|
12
|
-
ProfileType["Company"] = "company";
|
|
13
|
-
ProfileType["Agent"] = "agent";
|
|
14
|
-
})(ProfileType || (exports.ProfileType = ProfileType = {}));
|
|
15
|
-
//# sourceMappingURL=profile.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.type.js","sourceRoot":"","sources":["../../src/user/profile.type.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AAChB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ValidationArguments, ValidatorConstraintInterface } from "class-validator";
|
|
2
|
-
/**
|
|
3
|
-
* Checks if the start date is less than or equal to the end date
|
|
4
|
-
* If one of the does not have a valid value, returns true
|
|
5
|
-
*/
|
|
6
|
-
export declare class CompareWithEndDate implements ValidatorConstraintInterface {
|
|
7
|
-
validate(startDate: Date, args: ValidationArguments): boolean;
|
|
8
|
-
defaultMessage(args?: ValidationArguments): string;
|
|
9
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.CompareWithEndDate = void 0;
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
const luxon_1 = require("luxon");
|
|
12
|
-
/**
|
|
13
|
-
* Checks if the start date is less than or equal to the end date
|
|
14
|
-
* If one of the does not have a valid value, returns true
|
|
15
|
-
*/
|
|
16
|
-
let CompareWithEndDate = class CompareWithEndDate {
|
|
17
|
-
// startDate must be there before the args param, if it's not there the args will be treated as the startDate and we won't have access to the object
|
|
18
|
-
validate(startDate, args) {
|
|
19
|
-
const dto = args.object;
|
|
20
|
-
// no validation is performed if either is not provided
|
|
21
|
-
if (!luxon_1.DateTime.fromJSDate(dto.startDate).isValid ||
|
|
22
|
-
!luxon_1.DateTime.fromJSDate(dto.endDate).isValid)
|
|
23
|
-
return true;
|
|
24
|
-
return dto.startDate < dto.endDate;
|
|
25
|
-
}
|
|
26
|
-
defaultMessage(args) {
|
|
27
|
-
return 'start date cannot be greater than end date';
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.CompareWithEndDate = CompareWithEndDate;
|
|
31
|
-
exports.CompareWithEndDate = CompareWithEndDate = __decorate([
|
|
32
|
-
(0, class_validator_1.ValidatorConstraint)({ name: 'CompareWithEndDate', async: false })
|
|
33
|
-
], CompareWithEndDate);
|
|
34
|
-
//# sourceMappingURL=compare.validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compare.validator.js","sourceRoot":"","sources":["../../src/validators/compare.validator.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qDAAyG;AACzG,iCAAiC;AAGjC;;;GAGG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC9B,oJAAoJ;IACpJ,QAAQ,CAAC,SAAe,EAAE,IAAyB;QAClD,MAAM,GAAG,GAAG,IAAI,CAAC,MAAgB,CAAC;QAElC,uDAAuD;QACvD,IACC,CAAC,gBAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO;YAC3C,CAAC,gBAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO;YAEzC,OAAO,IAAI,CAAC;QAEb,OAAO,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC;IACpC,CAAC;IAED,cAAc,CAAC,IAA0B;QACxC,OAAO,4CAA4C,CAAC;IACrD,CAAC;CACD,CAAA;AAlBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,qCAAmB,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;GACrD,kBAAkB,CAkB9B"}
|
package/lib/validators/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./compare.validator"), exports);
|
|
18
|
-
__exportStar(require("./required.validator"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,uDAAqC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from "class-validator";
|
|
2
|
-
export declare class MutuallyRequiredConstraint implements ValidatorConstraintInterface {
|
|
3
|
-
validate(value: any, args: ValidationArguments): boolean;
|
|
4
|
-
defaultMessage(args: ValidationArguments): string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Checks if the two fields are mutually empty or with value.
|
|
8
|
-
*
|
|
9
|
-
* @param relatedField the field name that needs to be checked with the field the decorator has been applied to
|
|
10
|
-
*/
|
|
11
|
-
export declare function MutuallyRequired(relatedField: string, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
|
|
12
|
-
export declare class EitherRequiredConstraint implements ValidatorConstraintInterface {
|
|
13
|
-
validate(value: any, args: ValidationArguments): boolean;
|
|
14
|
-
defaultMessage(args: ValidationArguments): string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Checks if the two fields are mutually empty or with value.
|
|
18
|
-
*
|
|
19
|
-
* @param relatedField the field name that needs to be checked with the field the decorator has been applied to
|
|
20
|
-
*/
|
|
21
|
-
export declare function EitherRequired(relatedField: string, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
|