@intelact/driveup 0.5.56 → 0.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/agent/agent.model.d.ts +1 -4
- package/lib/agent/agent.model.js +1 -16
- package/lib/agent/agent.model.js.map +1 -1
- package/lib/agent/code.model.js.map +1 -1
- package/lib/agent/index.d.ts +0 -1
- package/lib/agent/index.js +0 -1
- package/lib/agent/index.js.map +1 -1
- package/lib/auth/biometric.dto.d.ts +3 -0
- package/lib/auth/biometric.dto.js +25 -0
- package/lib/auth/biometric.dto.js.map +1 -0
- package/lib/auth/index.d.ts +3 -0
- package/lib/auth/index.js +20 -0
- package/lib/auth/index.js.map +1 -0
- package/lib/auth/signin.dto.d.ts +6 -0
- package/lib/auth/signin.dto.js +37 -0
- package/lib/auth/signin.dto.js.map +1 -0
- package/lib/auth/signup.dto.d.ts +5 -0
- package/lib/auth/signup.dto.js +38 -0
- package/lib/auth/signup.dto.js.map +1 -0
- package/lib/bank/account.model.d.ts +6 -0
- package/lib/bank/account.model.js +46 -0
- package/lib/bank/account.model.js.map +1 -0
- package/lib/bank/index.d.ts +1 -0
- package/lib/bank/index.js +18 -0
- package/lib/bank/index.js.map +1 -0
- package/lib/calendar/appointment.d.ts +29 -0
- package/lib/calendar/appointment.js +143 -0
- package/lib/calendar/appointment.js.map +1 -0
- package/lib/calendar/date.d.ts +11 -0
- package/lib/calendar/date.js +52 -0
- package/lib/calendar/date.js.map +1 -0
- package/lib/calendar/holiday.d.ts +5 -0
- package/lib/calendar/holiday.js +40 -0
- package/lib/calendar/holiday.js.map +1 -0
- package/lib/calendar/index.d.ts +5 -0
- package/lib/calendar/index.js +22 -0
- package/lib/calendar/index.js.map +1 -0
- package/lib/calendar/types.d.ts +14 -0
- package/lib/calendar/types.js +20 -0
- package/lib/calendar/types.js.map +1 -0
- package/lib/calendar/working.d.ts +9 -0
- package/lib/calendar/working.js +44 -0
- package/lib/calendar/working.js.map +1 -0
- package/lib/common/content.d.ts +9 -0
- package/lib/common/content.js +42 -0
- package/lib/common/content.js.map +1 -0
- package/lib/common/email.d.ts +7 -0
- package/lib/common/email.js +41 -0
- package/lib/common/email.js.map +1 -0
- package/lib/common/index.d.ts +8 -3
- package/lib/common/index.js +8 -3
- package/lib/common/index.js.map +1 -1
- package/lib/common/language.d.ts +9 -0
- package/lib/common/language.js +29 -0
- package/lib/common/language.js.map +1 -0
- package/lib/common/phone.d.ts +4 -0
- package/lib/common/phone.js +32 -0
- package/lib/common/phone.js.map +1 -0
- package/lib/common/promotion.d.ts +3 -0
- package/lib/common/promotion.js +23 -0
- package/lib/common/promotion.js.map +1 -0
- package/lib/common/social.d.ts +4 -0
- package/lib/common/social.js +30 -0
- package/lib/common/social.js.map +1 -0
- package/lib/common/sort.d.ts +3 -0
- package/lib/common/sort.js +23 -0
- package/lib/common/sort.js.map +1 -0
- package/lib/common/url.d.ts +3 -0
- package/lib/common/url.js +25 -0
- package/lib/common/url.js.map +1 -0
- package/lib/company/company.model.d.ts +18 -40
- package/lib/company/company.model.js +35 -36
- package/lib/company/company.model.js.map +1 -1
- package/lib/company/index.d.ts +1 -10
- package/lib/company/index.js +1 -10
- package/lib/company/index.js.map +1 -1
- package/lib/company/priceplan.model.d.ts +16 -0
- package/lib/company/priceplan.model.js +87 -0
- package/lib/company/priceplan.model.js.map +1 -0
- package/lib/country/country.model.d.ts +16 -0
- package/lib/country/country.model.js +80 -0
- package/lib/country/country.model.js.map +1 -0
- package/lib/country/index.d.ts +1 -0
- package/lib/country/index.js +18 -0
- package/lib/country/index.js.map +1 -0
- package/lib/course/appointment.model.d.ts +8 -0
- package/lib/course/appointment.model.js +36 -0
- package/lib/course/appointment.model.js.map +1 -0
- package/lib/course/course.model.d.ts +17 -0
- package/lib/course/course.model.js +94 -0
- package/lib/course/course.model.js.map +1 -0
- package/lib/course/definition.model.d.ts +11 -0
- package/lib/course/definition.model.js +57 -0
- package/lib/course/definition.model.js.map +1 -0
- package/lib/course/index.d.ts +5 -0
- package/lib/course/index.js +22 -0
- package/lib/course/index.js.map +1 -0
- package/lib/course/part.model.d.ts +12 -0
- package/lib/course/part.model.js +67 -0
- package/lib/course/part.model.js.map +1 -0
- package/lib/course/types.d.ts +15 -0
- package/lib/course/types.js +22 -0
- package/lib/course/types.js.map +1 -0
- package/lib/credit/credit.model.d.ts +9 -0
- package/lib/credit/credit.model.js +50 -0
- package/lib/credit/credit.model.js.map +1 -0
- package/lib/credit/index.d.ts +1 -0
- package/lib/credit/index.js +18 -0
- package/lib/credit/index.js.map +1 -0
- package/lib/currency/currency.model.d.ts +9 -0
- package/lib/currency/currency.model.js +53 -0
- package/lib/currency/currency.model.js.map +1 -0
- package/lib/currency/index.d.ts +1 -0
- package/lib/currency/index.js +18 -0
- package/lib/currency/index.js.map +1 -0
- package/lib/device/device.agent.d.ts +11 -0
- package/lib/device/device.agent.js +3 -0
- package/lib/device/device.agent.js.map +1 -0
- package/lib/device/device.model.d.ts +8 -0
- package/lib/device/device.model.js +46 -0
- package/lib/device/device.model.js.map +1 -0
- package/lib/device/index.d.ts +2 -0
- package/lib/device/index.js +19 -0
- package/lib/device/index.js.map +1 -0
- package/lib/discount/discount.model.d.ts +9 -0
- package/lib/discount/discount.model.js +50 -0
- package/lib/discount/discount.model.js.map +1 -0
- package/lib/discount/index.d.ts +1 -0
- package/lib/discount/index.js +18 -0
- package/lib/discount/index.js.map +1 -0
- package/lib/driving/category/category.dto.d.ts +5 -0
- package/lib/driving/category/category.dto.js +38 -0
- package/lib/driving/category/category.dto.js.map +1 -0
- package/lib/driving/category/category.model.d.ts +16 -0
- package/lib/driving/category/category.model.js +87 -0
- package/lib/driving/category/category.model.js.map +1 -0
- package/lib/driving/category/index.d.ts +2 -0
- package/lib/driving/category/index.js +19 -0
- package/lib/driving/category/index.js.map +1 -0
- package/lib/driving/index.d.ts +3 -0
- package/lib/driving/index.js +20 -0
- package/lib/driving/index.js.map +1 -0
- package/lib/driving/lesson/index.d.ts +3 -0
- package/lib/driving/lesson/index.js +20 -0
- package/lib/driving/lesson/index.js.map +1 -0
- package/lib/driving/lesson/skill.d.ts +6 -0
- package/lib/driving/lesson/skill.js +37 -0
- package/lib/driving/lesson/skill.js.map +1 -0
- package/lib/driving/lesson/topic.d.ts +10 -0
- package/lib/driving/lesson/topic.js +58 -0
- package/lib/driving/lesson/topic.js.map +1 -0
- package/lib/driving/lesson/types.d.ts +13 -0
- package/lib/driving/lesson/types.js +19 -0
- package/lib/driving/lesson/types.js.map +1 -0
- package/lib/driving/types.d.ts +8 -0
- package/lib/driving/types.js +14 -0
- package/lib/driving/types.js.map +1 -0
- package/lib/event/event.model.d.ts +8 -0
- package/lib/event/event.model.js +49 -0
- package/lib/event/event.model.js.map +1 -0
- package/lib/event/index.d.ts +1 -0
- package/lib/event/index.js +18 -0
- package/lib/event/index.js.map +1 -0
- package/lib/expense/category.model.d.ts +7 -0
- package/lib/expense/category.model.js +41 -0
- package/lib/expense/category.model.js.map +1 -0
- package/lib/expense/expense.model.d.ts +14 -0
- package/lib/expense/expense.model.js +68 -0
- package/lib/expense/expense.model.js.map +1 -0
- package/lib/expense/expense.types.d.ts +5 -0
- package/lib/expense/expense.types.js +10 -0
- package/lib/expense/expense.types.js.map +1 -0
- package/lib/expense/index.d.ts +3 -0
- package/lib/expense/index.js +20 -0
- package/lib/expense/index.js.map +1 -0
- package/lib/feedback/feedback.model.d.ts +9 -0
- package/lib/feedback/feedback.model.js +52 -0
- package/lib/feedback/feedback.model.js.map +1 -0
- package/lib/feedback/index.d.ts +1 -0
- package/lib/feedback/index.js +18 -0
- package/lib/feedback/index.js.map +1 -0
- package/lib/geo/address.dto.d.ts +12 -0
- package/lib/geo/address.dto.js +71 -0
- package/lib/geo/address.dto.js.map +1 -0
- package/lib/geo/coordinate.model.d.ts +4 -0
- package/lib/geo/coordinate.model.js +29 -0
- package/lib/geo/coordinate.model.js.map +1 -0
- package/lib/geo/index.d.ts +3 -0
- package/lib/geo/index.js +20 -0
- package/lib/geo/index.js.map +1 -0
- package/lib/geo/pickup.model.d.ts +8 -0
- package/lib/geo/pickup.model.js +49 -0
- package/lib/geo/pickup.model.js.map +1 -0
- package/lib/index.d.ts +29 -2
- package/lib/index.js +29 -2
- package/lib/index.js.map +1 -1
- package/lib/instructor/index.d.ts +2 -0
- package/lib/instructor/index.js +19 -0
- package/lib/instructor/index.js.map +1 -0
- package/lib/instructor/instructor.dto.d.ts +6 -0
- package/lib/instructor/instructor.dto.js +39 -0
- package/lib/instructor/instructor.dto.js.map +1 -0
- package/lib/instructor/instructor.model.d.ts +14 -0
- package/lib/instructor/instructor.model.js +63 -0
- package/lib/instructor/instructor.model.js.map +1 -0
- package/lib/invoice/index.d.ts +3 -0
- package/lib/invoice/index.js +20 -0
- package/lib/invoice/index.js.map +1 -0
- package/lib/invoice/invoice.model.d.ts +18 -0
- package/lib/invoice/invoice.model.js +88 -0
- package/lib/invoice/invoice.model.js.map +1 -0
- package/lib/invoice/invoice.types.d.ts +5 -0
- package/lib/invoice/invoice.types.js +10 -0
- package/lib/invoice/invoice.types.js.map +1 -0
- package/lib/invoice/item.model.d.ts +7 -0
- package/lib/invoice/item.model.js +43 -0
- package/lib/invoice/item.model.js.map +1 -0
- package/lib/item/index.d.ts +1 -0
- package/lib/item/index.js +18 -0
- package/lib/item/index.js.map +1 -0
- package/lib/item/item.model.d.ts +13 -0
- package/lib/item/item.model.js +38 -0
- package/lib/item/item.model.js.map +1 -0
- package/lib/language/language.enum.d.ts +4 -4
- package/lib/language/language.enum.js +4 -4
- package/lib/license/index.d.ts +1 -0
- package/lib/license/index.js +18 -0
- package/lib/license/index.js.map +1 -0
- package/lib/license/license.model.d.ts +5 -0
- package/lib/license/license.model.js +41 -0
- package/lib/license/license.model.js.map +1 -0
- package/lib/link/index.d.ts +1 -0
- package/lib/link/index.js +18 -0
- package/lib/link/index.js.map +1 -0
- package/lib/link/link.model.d.ts +15 -0
- package/lib/link/link.model.js +35 -0
- package/lib/link/link.model.js.map +1 -0
- package/lib/note/index.d.ts +1 -0
- package/lib/note/index.js +18 -0
- package/lib/note/index.js.map +1 -0
- package/lib/note/note.model.d.ts +9 -0
- package/lib/note/note.model.js +49 -0
- package/lib/note/note.model.js.map +1 -0
- package/lib/notification/index.d.ts +2 -2
- package/lib/notification/index.js +2 -2
- package/lib/notification/index.js.map +1 -1
- package/lib/notification/notification.model.d.ts +3 -3
- package/lib/notification/notification.model.js +10 -10
- package/lib/notification/notification.model.js.map +1 -1
- package/lib/notification/notification.types.d.ts +11 -0
- package/lib/notification/notification.types.js +17 -0
- package/lib/notification/notification.types.js.map +1 -0
- package/lib/notification/preference.model.d.ts +9 -0
- package/lib/notification/preference.model.js +47 -0
- package/lib/notification/preference.model.js.map +1 -0
- package/lib/payment/index.d.ts +2 -0
- package/lib/payment/index.js +19 -0
- package/lib/payment/index.js.map +1 -0
- package/lib/payment/payment.model.d.ts +14 -0
- package/lib/payment/payment.model.js +74 -0
- package/lib/payment/payment.model.js.map +1 -0
- package/lib/payment/payment.types.d.ts +13 -0
- package/lib/payment/payment.types.js +20 -0
- package/lib/payment/payment.types.js.map +1 -0
- package/lib/payout/index.d.ts +2 -0
- package/lib/payout/index.js +19 -0
- package/lib/payout/index.js.map +1 -0
- package/lib/payout/payout.model.d.ts +12 -0
- package/lib/payout/payout.model.js +58 -0
- package/lib/payout/payout.model.js.map +1 -0
- package/lib/payout/payout.types.d.ts +4 -0
- package/lib/payout/payout.types.js +9 -0
- package/lib/payout/payout.types.js.map +1 -0
- package/lib/priceplan/index.d.ts +2 -0
- package/lib/priceplan/index.js +19 -0
- package/lib/priceplan/index.js.map +1 -0
- package/lib/priceplan/plan.enum.d.ts +10 -0
- package/lib/priceplan/plan.enum.js +16 -0
- package/lib/priceplan/plan.enum.js.map +1 -0
- package/lib/priceplan/plan.model.d.ts +13 -0
- package/lib/priceplan/plan.model.js +70 -0
- package/lib/priceplan/plan.model.js.map +1 -0
- package/lib/refund/index.d.ts +1 -0
- package/lib/refund/index.js +18 -0
- package/lib/refund/index.js.map +1 -0
- package/lib/refund/refund.model.d.ts +11 -0
- package/lib/refund/refund.model.js +57 -0
- package/lib/refund/refund.model.js.map +1 -0
- package/lib/security/account.types.d.ts +8 -0
- package/lib/security/account.types.js +13 -0
- package/lib/security/account.types.js.map +1 -0
- package/lib/security/acl.js +2 -2
- package/lib/security/acl.js.map +1 -1
- package/lib/security/index.d.ts +4 -2
- package/lib/security/index.js +4 -2
- package/lib/security/index.js.map +1 -1
- package/lib/security/role.dto.d.ts +4 -0
- package/lib/security/role.dto.js +24 -0
- package/lib/security/role.dto.js.map +1 -0
- package/lib/security/role.types.d.ts +9 -0
- package/lib/security/role.types.js +14 -0
- package/lib/security/role.types.js.map +1 -0
- package/lib/security/token.d.ts +7 -0
- package/lib/security/token.js +3 -0
- package/lib/security/token.js.map +1 -0
- package/lib/session/course/index.d.ts +1 -0
- package/lib/session/course/index.js +18 -0
- package/lib/session/course/index.js.map +1 -0
- package/lib/session/course/session.model.d.ts +7 -0
- package/lib/session/course/session.model.js +35 -0
- package/lib/session/course/session.model.js.map +1 -0
- package/lib/session/driving/index.d.ts +3 -0
- package/lib/session/driving/index.js +20 -0
- package/lib/session/driving/index.js.map +1 -0
- package/lib/session/driving/session.model.d.ts +14 -0
- package/lib/session/driving/session.model.js +62 -0
- package/lib/session/driving/session.model.js.map +1 -0
- package/lib/session/driving/session.skill.d.ts +5 -0
- package/lib/session/driving/session.skill.js +27 -0
- package/lib/session/driving/session.skill.js.map +1 -0
- package/lib/session/driving/session.topic.d.ts +12 -0
- package/lib/session/driving/session.topic.js +58 -0
- package/lib/session/driving/session.topic.js.map +1 -0
- package/lib/session/index.d.ts +2 -0
- package/lib/session/index.js +19 -0
- package/lib/session/index.js.map +1 -0
- package/lib/setting/index.d.ts +2 -0
- package/lib/setting/index.js +19 -0
- package/lib/setting/index.js.map +1 -0
- package/lib/setting/setting.model.d.ts +10 -0
- package/lib/setting/setting.model.js +52 -0
- package/lib/setting/setting.model.js.map +1 -0
- package/lib/setting/setting.type.d.ts +7 -0
- package/lib/setting/setting.type.js +12 -0
- package/lib/setting/setting.type.js.map +1 -0
- package/lib/signature/index.d.ts +1 -0
- package/lib/signature/index.js +18 -0
- package/lib/signature/index.js.map +1 -0
- package/lib/signature/signature.model.d.ts +7 -0
- package/lib/signature/signature.model.js +42 -0
- package/lib/signature/signature.model.js.map +1 -0
- package/lib/student/index.d.ts +0 -3
- package/lib/student/index.js +0 -3
- package/lib/student/index.js.map +1 -1
- package/lib/student/student.model.d.ts +1 -8
- package/lib/student/student.model.js +1 -28
- package/lib/student/student.model.js.map +1 -1
- package/lib/training/course.model.d.ts +6 -0
- package/lib/training/course.model.js +29 -0
- package/lib/training/course.model.js.map +1 -0
- package/lib/training/driving.model.d.ts +13 -0
- package/lib/training/driving.model.js +59 -0
- package/lib/training/driving.model.js.map +1 -0
- package/lib/training/index.d.ts +5 -0
- package/lib/training/index.js +22 -0
- package/lib/training/index.js.map +1 -0
- package/lib/training/request.model.d.ts +20 -0
- package/lib/training/request.model.js +92 -0
- package/lib/training/request.model.js.map +1 -0
- package/lib/training/training.model.d.ts +31 -0
- package/lib/training/training.model.js +155 -0
- package/lib/training/training.model.js.map +1 -0
- package/lib/training/training.types.d.ts +15 -0
- package/lib/training/training.types.js +22 -0
- package/lib/training/training.types.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/index.d.ts +0 -5
- package/lib/user/index.js +0 -5
- package/lib/user/index.js.map +1 -1
- package/lib/user/profile.dto.d.ts +1 -1
- package/lib/user/profile.dto.js +2 -2
- package/lib/user/profile.dto.js.map +1 -1
- package/lib/user/user.model.d.ts +9 -9
- package/lib/user/user.model.js +28 -13
- package/lib/user/user.model.js.map +1 -1
- package/lib/validators/compare.validator.d.ts +5 -0
- package/lib/validators/compare.validator.js +28 -0
- package/lib/validators/compare.validator.js.map +1 -0
- package/lib/validators/index.d.ts +2 -0
- package/lib/validators/index.js +19 -0
- package/lib/validators/index.js.map +1 -0
- package/lib/validators/required.validator.d.ts +11 -0
- package/lib/validators/required.validator.js +80 -0
- package/lib/validators/required.validator.js.map +1 -0
- package/package.json +1 -3
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Note = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const user_1 = require("../user");
|
|
15
|
+
class Note {
|
|
16
|
+
id;
|
|
17
|
+
content;
|
|
18
|
+
imageUrl;
|
|
19
|
+
date;
|
|
20
|
+
user;
|
|
21
|
+
constructor(props) {
|
|
22
|
+
Object.assign(this, props);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Note = Note;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], Note.prototype, "id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Note.prototype, "content", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Note.prototype, "imageUrl", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], Note.prototype, "date", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
|
47
|
+
__metadata("design:type", user_1.User)
|
|
48
|
+
], Note.prototype, "user", void 0);
|
|
49
|
+
//# sourceMappingURL=note.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"note.model.js","sourceRoot":"","sources":["../../src/note/note.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAG/B,MAAa,IAAI;IAIhB,EAAE,CAAS;IAGX,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAIjB,IAAI,CAAO;IAIX,IAAI,CAAO;IAEX,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAvBD,oBAuBC;AAnBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;qCACO;AAGhB;IADC,IAAA,0BAAM,GAAE;;sCACQ;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACX,IAAI;kCAAC;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACX,WAAI;kCAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './notification.
|
|
1
|
+
export * from './preference.model';
|
|
2
|
+
export * from './notification.types';
|
|
3
3
|
export * from './notification.model';
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./notification.
|
|
17
|
+
__exportStar(require("./preference.model"), exports);
|
|
18
|
+
__exportStar(require("./notification.types"), exports);
|
|
19
19
|
__exportStar(require("./notification.model"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NotificationContext, NotificationType } from "./notification.
|
|
2
|
-
export declare class
|
|
1
|
+
import { NotificationContext, NotificationType } from "./notification.types";
|
|
2
|
+
export declare class Notification {
|
|
3
3
|
id: number;
|
|
4
4
|
message: string;
|
|
5
5
|
context: NotificationContext;
|
|
6
6
|
type: NotificationType;
|
|
7
7
|
seen: boolean;
|
|
8
8
|
link: string;
|
|
9
|
-
constructor(props?: Partial<
|
|
9
|
+
constructor(props?: Partial<Notification>);
|
|
10
10
|
}
|
|
@@ -9,10 +9,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.Notification = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const
|
|
15
|
-
class
|
|
14
|
+
const notification_types_1 = require("./notification.types");
|
|
15
|
+
class Notification {
|
|
16
16
|
id;
|
|
17
17
|
message;
|
|
18
18
|
context;
|
|
@@ -23,31 +23,31 @@ class UserNotification {
|
|
|
23
23
|
Object.assign(this, props);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
exports.
|
|
26
|
+
exports.Notification = Notification;
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, class_transformer_1.Expose)(),
|
|
29
29
|
(0, class_transformer_1.Type)(() => Number),
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
|
-
],
|
|
31
|
+
], Notification.prototype, "id", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, class_transformer_1.Expose)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
|
-
],
|
|
35
|
+
], Notification.prototype, "message", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, class_transformer_1.Expose)(),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
|
-
],
|
|
39
|
+
], Notification.prototype, "context", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, class_transformer_1.Expose)(),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
|
-
],
|
|
43
|
+
], Notification.prototype, "type", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, class_transformer_1.Expose)(),
|
|
46
46
|
(0, class_transformer_1.Type)(() => Boolean),
|
|
47
47
|
__metadata("design:type", Boolean)
|
|
48
|
-
],
|
|
48
|
+
], Notification.prototype, "seen", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, class_transformer_1.Expose)(),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
|
-
],
|
|
52
|
+
], Notification.prototype, "link", void 0);
|
|
53
53
|
//# sourceMappingURL=notification.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.model.js","sourceRoot":"","sources":["../../src/notification/notification.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"notification.model.js","sourceRoot":"","sources":["../../src/notification/notification.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,6DAA6E;AAE7E,MAAa,YAAY;IAIxB,EAAE,CAAS;IAGX,OAAO,CAAS;IAGhB,OAAO,CAAsB;IAG7B,IAAI,CAAmB;IAIvB,IAAI,CAAU;IAGd,IAAI,CAAS;IAIb,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA3BD,oCA2BC;AAvBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;6CACO;AAGhB;IADC,IAAA,0BAAM,GAAE;;6CACoB;AAG7B;IADC,IAAA,0BAAM,GAAE;;0CACc;AAIvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;0CACN;AAGd;IADC,IAAA,0BAAM,GAAE;;0CACI"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationContext = exports.NotificationType = void 0;
|
|
4
|
+
var NotificationType;
|
|
5
|
+
(function (NotificationType) {
|
|
6
|
+
NotificationType["Info"] = "info";
|
|
7
|
+
NotificationType["Error"] = "error";
|
|
8
|
+
NotificationType["Warning"] = "warning";
|
|
9
|
+
NotificationType["Success"] = "success";
|
|
10
|
+
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
11
|
+
var NotificationContext;
|
|
12
|
+
(function (NotificationContext) {
|
|
13
|
+
NotificationContext["Appointment"] = "appointment";
|
|
14
|
+
NotificationContext["Payment"] = "payment";
|
|
15
|
+
NotificationContext["Exspense"] = "expense";
|
|
16
|
+
})(NotificationContext || (exports.NotificationContext = NotificationContext = {}));
|
|
17
|
+
//# sourceMappingURL=notification.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.types.js","sourceRoot":"","sources":["../../src/notification/notification.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC3B,iCAAa,CAAA;IACb,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;AACpB,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,kDAA2B,CAAA;IAC3B,0CAAmB,CAAA;IACnB,2CAAoB,CAAA;AACrB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotificationPreference = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const notification_types_1 = require("./notification.types");
|
|
15
|
+
class NotificationPreference {
|
|
16
|
+
id;
|
|
17
|
+
context;
|
|
18
|
+
title;
|
|
19
|
+
description;
|
|
20
|
+
value;
|
|
21
|
+
constructor(props) {
|
|
22
|
+
Object.assign(this, props);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.NotificationPreference = NotificationPreference;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], NotificationPreference.prototype, "id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], NotificationPreference.prototype, "context", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], NotificationPreference.prototype, "title", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], NotificationPreference.prototype, "description", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], NotificationPreference.prototype, "value", void 0);
|
|
47
|
+
//# sourceMappingURL=preference.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference.model.js","sourceRoot":"","sources":["../../src/notification/preference.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,6DAA2D;AAE3D,MAAa,sBAAsB;IAIlC,EAAE,CAAS;IAGX,OAAO,CAAsB;IAG7B,KAAK,CAAM;IAGX,WAAW,CAAM;IAGjB,KAAK,CAAM;IAIX,YAAY,KAAuC;QAClD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAvBD,wDAuBC;AAnBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kDACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uDACoB;AAG7B;IADC,IAAA,0BAAM,GAAE;;qDACE;AAGX;IADC,IAAA,0BAAM,GAAE;;2DACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;qDACE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./payment.model"), exports);
|
|
18
|
+
__exportStar(require("./payment.types"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/payment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PaymentType } from "./payment.types";
|
|
2
|
+
import { User } from "../user";
|
|
3
|
+
export declare class Payment {
|
|
4
|
+
id: number;
|
|
5
|
+
amount: number;
|
|
6
|
+
type: PaymentType;
|
|
7
|
+
description: string;
|
|
8
|
+
approved: boolean;
|
|
9
|
+
createdBy: User;
|
|
10
|
+
createdOn: Date;
|
|
11
|
+
approvedBy: User;
|
|
12
|
+
approvedOn: Date;
|
|
13
|
+
constructor(props?: Partial<Payment>);
|
|
14
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Payment = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const payment_types_1 = require("./payment.types");
|
|
15
|
+
const user_1 = require("../user");
|
|
16
|
+
class Payment {
|
|
17
|
+
id;
|
|
18
|
+
amount;
|
|
19
|
+
type;
|
|
20
|
+
description;
|
|
21
|
+
approved;
|
|
22
|
+
createdBy;
|
|
23
|
+
createdOn;
|
|
24
|
+
approvedBy;
|
|
25
|
+
approvedOn;
|
|
26
|
+
constructor(props) {
|
|
27
|
+
Object.assign(this, props);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.Payment = Payment;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], Payment.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], Payment.prototype, "amount", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Payment.prototype, "type", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Payment.prototype, "description", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], Payment.prototype, "approved", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
|
57
|
+
__metadata("design:type", user_1.User)
|
|
58
|
+
], Payment.prototype, "createdBy", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
62
|
+
__metadata("design:type", Date)
|
|
63
|
+
], Payment.prototype, "createdOn", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
|
67
|
+
__metadata("design:type", user_1.User)
|
|
68
|
+
], Payment.prototype, "approvedBy", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], Payment.prototype, "approvedOn", void 0);
|
|
74
|
+
//# sourceMappingURL=payment.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.model.js","sourceRoot":"","sources":["../../src/payment/payment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mDAA8C;AAC9C,kCAA+B;AAE/B,MAAa,OAAO;IAInB,EAAE,CAAS;IAIX,MAAM,CAAS;IAGf,IAAI,CAAc;IAGlB,WAAW,CAAS;IAOpB,QAAQ,CAAU;IAIlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,UAAU,CAAO;IAIjB,UAAU,CAAO;IAEjB,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1CD,0BA0CC;AAtCA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mCACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;qCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;4CACW;AAOpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;yCACF;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;0CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;0CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACL,WAAI;2CAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;2CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum PaymentType {
|
|
2
|
+
Cash = "CASH",
|
|
3
|
+
Transaction = "TRANSACTION",
|
|
4
|
+
Invoice = "INVOICE"
|
|
5
|
+
}
|
|
6
|
+
export declare enum PaymentStatus {
|
|
7
|
+
Pending = "PENDING",
|
|
8
|
+
Paid = "PAID",
|
|
9
|
+
Faild = "FAILD"
|
|
10
|
+
}
|
|
11
|
+
export declare enum PaymentProviderType {
|
|
12
|
+
Stripe = "STRIPE"
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentProviderType = exports.PaymentStatus = exports.PaymentType = void 0;
|
|
4
|
+
var PaymentType;
|
|
5
|
+
(function (PaymentType) {
|
|
6
|
+
PaymentType["Cash"] = "CASH";
|
|
7
|
+
PaymentType["Transaction"] = "TRANSACTION";
|
|
8
|
+
PaymentType["Invoice"] = "INVOICE";
|
|
9
|
+
})(PaymentType || (exports.PaymentType = PaymentType = {}));
|
|
10
|
+
var PaymentStatus;
|
|
11
|
+
(function (PaymentStatus) {
|
|
12
|
+
PaymentStatus["Pending"] = "PENDING";
|
|
13
|
+
PaymentStatus["Paid"] = "PAID";
|
|
14
|
+
PaymentStatus["Faild"] = "FAILD";
|
|
15
|
+
})(PaymentStatus || (exports.PaymentStatus = PaymentStatus = {}));
|
|
16
|
+
var PaymentProviderType;
|
|
17
|
+
(function (PaymentProviderType) {
|
|
18
|
+
PaymentProviderType["Stripe"] = "STRIPE";
|
|
19
|
+
})(PaymentProviderType || (exports.PaymentProviderType = PaymentProviderType = {}));
|
|
20
|
+
//# sourceMappingURL=payment.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.types.js","sourceRoot":"","sources":["../../src/payment/payment.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,0CAA2B,CAAA;IAC3B,kCAAmB,CAAA;AACpB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACxB,oCAAmB,CAAA;IACnB,8BAAa,CAAA;IACb,gCAAe,CAAA;AAChB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;AAClB,CAAC,EAFW,mBAAmB,mCAAnB,mBAAmB,QAE9B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./payout.model"), exports);
|
|
18
|
+
__exportStar(require("./payout.types"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/payout/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PayoutStatus } from "./payout.types";
|
|
2
|
+
import { BankAccount } from "../bank";
|
|
3
|
+
import { User } from "../user";
|
|
4
|
+
export declare class AgentPayout {
|
|
5
|
+
id: number;
|
|
6
|
+
status: PayoutStatus;
|
|
7
|
+
bank: BankAccount;
|
|
8
|
+
amount: number;
|
|
9
|
+
createdBy: User;
|
|
10
|
+
createdOn: Date;
|
|
11
|
+
constructor(props?: Partial<AgentPayout>);
|
|
12
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgentPayout = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const payout_types_1 = require("./payout.types");
|
|
15
|
+
const bank_1 = require("../bank");
|
|
16
|
+
const user_1 = require("../user");
|
|
17
|
+
class AgentPayout {
|
|
18
|
+
id;
|
|
19
|
+
status;
|
|
20
|
+
bank;
|
|
21
|
+
amount;
|
|
22
|
+
createdBy;
|
|
23
|
+
createdOn;
|
|
24
|
+
constructor(props) {
|
|
25
|
+
Object.assign(this, props);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.AgentPayout = AgentPayout;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], AgentPayout.prototype, "id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AgentPayout.prototype, "status", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, class_transformer_1.Type)(() => bank_1.BankAccount),
|
|
41
|
+
__metadata("design:type", bank_1.BankAccount)
|
|
42
|
+
], AgentPayout.prototype, "bank", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], AgentPayout.prototype, "amount", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
|
51
|
+
__metadata("design:type", user_1.User)
|
|
52
|
+
], AgentPayout.prototype, "createdBy", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
56
|
+
__metadata("design:type", Date)
|
|
57
|
+
], AgentPayout.prototype, "createdOn", void 0);
|
|
58
|
+
//# sourceMappingURL=payout.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.model.js","sourceRoot":"","sources":["../../src/payout/payout.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iDAA8C;AAC9C,kCAAsC;AACtC,kCAA+B;AAE/B,MAAa,WAAW;IAIvB,EAAE,CAAS;IAGX,MAAM,CAAe;IAIrB,IAAI,CAAc;IAIlB,MAAM,CAAS;IAIf,SAAS,CAAO;IAIhB,SAAS,CAAO;IAEhB,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA5BD,kCA4BC;AAxBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;2CACY;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAW,CAAC;8BAClB,kBAAW;yCAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACJ;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;8CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;8CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayoutStatus = void 0;
|
|
4
|
+
var PayoutStatus;
|
|
5
|
+
(function (PayoutStatus) {
|
|
6
|
+
PayoutStatus["Pending"] = "PENDING";
|
|
7
|
+
PayoutStatus["Paid"] = "PAID";
|
|
8
|
+
})(PayoutStatus || (exports.PayoutStatus = PayoutStatus = {}));
|
|
9
|
+
//# sourceMappingURL=payout.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.types.js","sourceRoot":"","sources":["../../src/payout/payout.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACvB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;AACd,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./plan.enum"), exports);
|
|
18
|
+
__exportStar(require("./plan.model"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/priceplan/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricePlanType = exports.PricePlanRecurringType = void 0;
|
|
4
|
+
var PricePlanRecurringType;
|
|
5
|
+
(function (PricePlanRecurringType) {
|
|
6
|
+
PricePlanRecurringType["Monthly"] = "MONTHLY";
|
|
7
|
+
PricePlanRecurringType["Yearly"] = "YEARLY";
|
|
8
|
+
})(PricePlanRecurringType || (exports.PricePlanRecurringType = PricePlanRecurringType = {}));
|
|
9
|
+
var PricePlanType;
|
|
10
|
+
(function (PricePlanType) {
|
|
11
|
+
PricePlanType["Free"] = "FREE";
|
|
12
|
+
PricePlanType["Growth"] = "GROWTH";
|
|
13
|
+
PricePlanType["Business"] = "BUSINESS";
|
|
14
|
+
PricePlanType["Premium"] = "PREMIUM";
|
|
15
|
+
})(PricePlanType || (exports.PricePlanType = PricePlanType = {}));
|
|
16
|
+
//# sourceMappingURL=plan.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.enum.js","sourceRoot":"","sources":["../../src/priceplan/plan.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IACjC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AAClB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;AACpB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PricePlanType } from './plan.enum';
|
|
2
|
+
export declare class PricePlan {
|
|
3
|
+
id: number;
|
|
4
|
+
model: PricePlanType;
|
|
5
|
+
name: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
price: number;
|
|
10
|
+
startCredit: number;
|
|
11
|
+
active: boolean;
|
|
12
|
+
constructor(props?: Partial<PricePlan>);
|
|
13
|
+
}
|