@tudopz/model 3.2.1 → 3.2.2
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/package.json +1 -1
- package/src/constant/refund.d.ts +1 -0
- package/src/constant/refund.js +8 -0
- package/src/constant/refund.js.map +1 -0
- package/src/constants.d.ts +1 -0
- package/src/constants.js +1 -0
- package/src/constants.js.map +1 -1
- package/src/model/refund.d.ts +23 -0
- package/src/model/refund.js +81 -0
- package/src/model/refund.js.map +1 -0
- package/src/models.d.ts +1 -0
- package/src/models.js +1 -0
- package/src/models.js.map +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const REFUND_STATUS_VALUES: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund.js","sourceRoot":"","sources":["../../../../../libs/model/src/constant/refund.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC,YAAY;IACZ,QAAQ;CACT,CAAC"}
|
package/src/constants.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './constant/nationality';
|
|
|
10
10
|
export * from './constant/lead-form';
|
|
11
11
|
export * from './constant/lead';
|
|
12
12
|
export * from './constant/location';
|
|
13
|
+
export * from './constant/refund';
|
|
13
14
|
export * from './constant/sale';
|
|
14
15
|
export * from './constant/school';
|
|
15
16
|
export * from './constant/service-course';
|
package/src/constants.js
CHANGED
|
@@ -13,6 +13,7 @@ tslib_1.__exportStar(require("./constant/nationality"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./constant/lead-form"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./constant/lead"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./constant/location"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./constant/refund"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./constant/sale"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./constant/school"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./constant/service-course"), exports);
|
package/src/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../libs/model/src/constants.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,8DAAoC;AACpC,sEAA4C;AAC5C,6DAAmC;AACnC,+DAAqC;AACrC,2DAAiC;AACjC,8EAAoD;AACpD,8DAAoC;AACpC,iEAAuC;AACvC,+DAAqC;AACrC,0DAAgC;AAChC,8DAAoC;AACpC,0DAAgC;AAChC,4DAAkC;AAClC,oEAA0C;AAC1C,wEAA8C;AAC9C,qEAA2C;AAC3C,6DAAmC;AACnC,2EAAiD;AACjD,0DAAgC;AAChC,8DAAoC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../libs/model/src/constants.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,8DAAoC;AACpC,sEAA4C;AAC5C,6DAAmC;AACnC,+DAAqC;AACrC,2DAAiC;AACjC,8EAAoD;AACpD,8DAAoC;AACpC,iEAAuC;AACvC,+DAAqC;AACrC,0DAAgC;AAChC,8DAAoC;AACpC,4DAAkC;AAClC,0DAAgC;AAChC,4DAAkC;AAClC,oEAA0C;AAC1C,wEAA8C;AAC9C,qEAA2C;AAC3C,6DAAmC;AACnC,2EAAiD;AACjD,0DAAgC;AAChC,8DAAoC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Sale } from './sale';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
export declare enum REFUND_STATUS {
|
|
4
|
+
NOT_ISSUED = 1,
|
|
5
|
+
ISSUED = 2
|
|
6
|
+
}
|
|
7
|
+
export declare class Refund {
|
|
8
|
+
id: number;
|
|
9
|
+
refundDate: Date;
|
|
10
|
+
lastPaymentYear: number;
|
|
11
|
+
refundAmount: number;
|
|
12
|
+
refundHours: number;
|
|
13
|
+
includesGST: boolean;
|
|
14
|
+
gstPercentage: number;
|
|
15
|
+
refundReason: string;
|
|
16
|
+
status: REFUND_STATUS;
|
|
17
|
+
saleId: number;
|
|
18
|
+
sale: Sale;
|
|
19
|
+
requesterId: number;
|
|
20
|
+
requester: User;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Refund = exports.REFUND_STATUS = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const sale_1 = require("./sale");
|
|
7
|
+
const user_1 = require("./user");
|
|
8
|
+
var REFUND_STATUS;
|
|
9
|
+
(function (REFUND_STATUS) {
|
|
10
|
+
REFUND_STATUS[REFUND_STATUS["NOT_ISSUED"] = 1] = "NOT_ISSUED";
|
|
11
|
+
REFUND_STATUS[REFUND_STATUS["ISSUED"] = 2] = "ISSUED";
|
|
12
|
+
})(REFUND_STATUS || (exports.REFUND_STATUS = REFUND_STATUS = {}));
|
|
13
|
+
let Refund = class Refund {
|
|
14
|
+
};
|
|
15
|
+
exports.Refund = Refund;
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
18
|
+
tslib_1.__metadata("design:type", Number)
|
|
19
|
+
], Refund.prototype, "id", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ type: 'date' }),
|
|
22
|
+
tslib_1.__metadata("design:type", Date)
|
|
23
|
+
], Refund.prototype, "refundDate", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
26
|
+
tslib_1.__metadata("design:type", Number)
|
|
27
|
+
], Refund.prototype, "lastPaymentYear", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'double' }),
|
|
30
|
+
tslib_1.__metadata("design:type", Number)
|
|
31
|
+
], Refund.prototype, "refundAmount", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'double' }),
|
|
34
|
+
tslib_1.__metadata("design:type", Number)
|
|
35
|
+
], Refund.prototype, "refundHours", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
38
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
39
|
+
], Refund.prototype, "includesGST", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'double', default: 9.0 }),
|
|
42
|
+
tslib_1.__metadata("design:type", Number)
|
|
43
|
+
], Refund.prototype, "gstPercentage", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
46
|
+
tslib_1.__metadata("design:type", String)
|
|
47
|
+
], Refund.prototype, "refundReason", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'int', default: REFUND_STATUS.NOT_ISSUED }),
|
|
50
|
+
tslib_1.__metadata("design:type", Number)
|
|
51
|
+
], Refund.prototype, "status", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
54
|
+
tslib_1.__metadata("design:type", Number)
|
|
55
|
+
], Refund.prototype, "saleId", void 0);
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, typeorm_1.ManyToOne)(() => sale_1.Sale),
|
|
58
|
+
(0, typeorm_1.JoinColumn)(),
|
|
59
|
+
tslib_1.__metadata("design:type", sale_1.Sale)
|
|
60
|
+
], Refund.prototype, "sale", void 0);
|
|
61
|
+
tslib_1.__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
63
|
+
tslib_1.__metadata("design:type", Number)
|
|
64
|
+
], Refund.prototype, "requesterId", void 0);
|
|
65
|
+
tslib_1.__decorate([
|
|
66
|
+
(0, typeorm_1.ManyToOne)(() => user_1.User),
|
|
67
|
+
(0, typeorm_1.JoinColumn)({ name: 'requesterId' }),
|
|
68
|
+
tslib_1.__metadata("design:type", user_1.User)
|
|
69
|
+
], Refund.prototype, "requester", void 0);
|
|
70
|
+
tslib_1.__decorate([
|
|
71
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
72
|
+
tslib_1.__metadata("design:type", Date)
|
|
73
|
+
], Refund.prototype, "createdAt", void 0);
|
|
74
|
+
tslib_1.__decorate([
|
|
75
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
76
|
+
tslib_1.__metadata("design:type", Date)
|
|
77
|
+
], Refund.prototype, "updatedAt", void 0);
|
|
78
|
+
exports.Refund = Refund = tslib_1.__decorate([
|
|
79
|
+
(0, typeorm_1.Entity)({ name: 'refunds' })
|
|
80
|
+
], Refund);
|
|
81
|
+
//# sourceMappingURL=refund.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/refund.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AAEjB,iCAA8B;AAC9B,iCAA8B;AAE9B,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,6DAAc,CAAA;IACd,qDAAM,CAAA;AACR,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAGM,IAAM,MAAM,GAAZ,MAAM,MAAM;CA+ClB,CAAA;AA/CY,wBAAM;AAEjB;IADC,IAAA,gCAAsB,GAAE;;kCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sCACb,IAAI;0CAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;+CACA;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;4CACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;2CACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CACvB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;;6CACnB;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACpB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,UAAU,EAAE,CAAC;;sCACrC;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;sCACT;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;IACrB,IAAA,oBAAU,GAAE;sCACP,WAAI;oCAAC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;2CACJ;AAIpB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;IACrB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;sCACzB,WAAI;yCAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;yCAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;yCAAC;iBA9CL,MAAM;IADlB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;GACf,MAAM,CA+ClB"}
|
package/src/models.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export * from './model/pd-pipeline';
|
|
|
47
47
|
export * from './model/pd-user';
|
|
48
48
|
export * from './model/profile';
|
|
49
49
|
export * from './model/pup-lead';
|
|
50
|
+
export * from './model/refund';
|
|
50
51
|
export * from './model/sale-payment';
|
|
51
52
|
export * from './model/sale-split';
|
|
52
53
|
export * from './model/sale-sub-type-to-service';
|
package/src/models.js
CHANGED
|
@@ -50,6 +50,7 @@ tslib_1.__exportStar(require("./model/pd-pipeline"), exports);
|
|
|
50
50
|
tslib_1.__exportStar(require("./model/pd-user"), exports);
|
|
51
51
|
tslib_1.__exportStar(require("./model/profile"), exports);
|
|
52
52
|
tslib_1.__exportStar(require("./model/pup-lead"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./model/refund"), exports);
|
|
53
54
|
tslib_1.__exportStar(require("./model/sale-payment"), exports);
|
|
54
55
|
tslib_1.__exportStar(require("./model/sale-split"), exports);
|
|
55
56
|
tslib_1.__exportStar(require("./model/sale-sub-type-to-service"), exports);
|
package/src/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../libs/model/src/models.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,4DAAkC;AAClC,gEAAsC;AACtC,qEAA2C;AAC3C,2DAAiC;AACjC,6DAAmC;AACnC,6DAAmC;AACnC,mEAAyC;AACzC,wEAA8C;AAC9C,kEAAwC;AACxC,4DAAkC;AAClC,mEAAyC;AACzC,4DAAkC;AAClC,qEAA2C;AAC3C,gEAAsC;AACtC,wDAA8B;AAC9B,2EAAiD;AACjD,8DAAoC;AACpC,gEAAsC;AACtC,uDAA6B;AAC7B,4EAAkD;AAClD,gEAAsC;AACtC,8DAAoC;AACpC,sDAA4B;AAC5B,2DAAiC;AACjC,qEAA2C;AAC3C,0DAAgC;AAChC,0DAAgC;AAChC,gEAAsC;AACtC,qEAA2C;AAC3C,0DAAgC;AAChC,kEAAwC;AACxC,kEAAwC;AACxC,4DAAkC;AAClC,8DAAoC;AACpC,6DAAmC;AACnC,uDAA6B;AAC7B,0DAAgC;AAChC,gEAAsC;AACtC,2EAAiD;AACjD,6EAAmD;AACnD,oEAA0C;AAC1C,+EAAqD;AACrD,mEAAyC;AACzC,2DAAiC;AACjC,8DAAoC;AACpC,0DAAgC;AAChC,0DAAgC;AAChC,2DAAiC;AACjC,+DAAqC;AACrC,6DAAmC;AACnC,2EAAiD;AACjD,gEAAsC;AACtC,gEAAsC;AACtC,uDAA6B;AAC7B,yDAA+B;AAC/B,yEAA+C;AAC/C,iEAAuC;AACvC,+DAAqC;AACrC,qEAA2C;AAC3C,6DAAmC;AACnC,oEAA0C;AAC1C,iEAAuC;AACvC,iEAAuC;AACvC,qEAA2C;AAC3C,gEAAsC;AACtC,+DAAqC;AACrC,8EAAoD;AACpD,+DAAqC;AACrC,2EAAiD;AACjD,iFAAuD;AACvD,6EAAmD;AACnD,kEAAwC;AACxC,6EAAmD;AACnD,iEAAuC;AACvC,+DAAqC;AACrC,gEAAsC;AACtC,gEAAsC;AACtC,8DAAoC;AACpC,6DAAmC;AACnC,+DAAqC;AACrC,uDAA6B;AAC7B,2DAAiC;AACjC,wEAA8C;AAC9C,kEAAwC;AACxC,mEAAyC;AACzC,uDAA6B;AAC7B,6DAAmC;AACnC,4DAAkC"}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../libs/model/src/models.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,4DAAkC;AAClC,gEAAsC;AACtC,qEAA2C;AAC3C,2DAAiC;AACjC,6DAAmC;AACnC,6DAAmC;AACnC,mEAAyC;AACzC,wEAA8C;AAC9C,kEAAwC;AACxC,4DAAkC;AAClC,mEAAyC;AACzC,4DAAkC;AAClC,qEAA2C;AAC3C,gEAAsC;AACtC,wDAA8B;AAC9B,2EAAiD;AACjD,8DAAoC;AACpC,gEAAsC;AACtC,uDAA6B;AAC7B,4EAAkD;AAClD,gEAAsC;AACtC,8DAAoC;AACpC,sDAA4B;AAC5B,2DAAiC;AACjC,qEAA2C;AAC3C,0DAAgC;AAChC,0DAAgC;AAChC,gEAAsC;AACtC,qEAA2C;AAC3C,0DAAgC;AAChC,kEAAwC;AACxC,kEAAwC;AACxC,4DAAkC;AAClC,8DAAoC;AACpC,6DAAmC;AACnC,uDAA6B;AAC7B,0DAAgC;AAChC,gEAAsC;AACtC,2EAAiD;AACjD,6EAAmD;AACnD,oEAA0C;AAC1C,+EAAqD;AACrD,mEAAyC;AACzC,2DAAiC;AACjC,8DAAoC;AACpC,0DAAgC;AAChC,0DAAgC;AAChC,2DAAiC;AACjC,yDAA+B;AAC/B,+DAAqC;AACrC,6DAAmC;AACnC,2EAAiD;AACjD,gEAAsC;AACtC,gEAAsC;AACtC,uDAA6B;AAC7B,yDAA+B;AAC/B,yEAA+C;AAC/C,iEAAuC;AACvC,+DAAqC;AACrC,qEAA2C;AAC3C,6DAAmC;AACnC,oEAA0C;AAC1C,iEAAuC;AACvC,iEAAuC;AACvC,qEAA2C;AAC3C,gEAAsC;AACtC,+DAAqC;AACrC,8EAAoD;AACpD,+DAAqC;AACrC,2EAAiD;AACjD,iFAAuD;AACvD,6EAAmD;AACnD,kEAAwC;AACxC,6EAAmD;AACnD,iEAAuC;AACvC,+DAAqC;AACrC,gEAAsC;AACtC,gEAAsC;AACtC,8DAAoC;AACpC,6DAAmC;AACnC,+DAAqC;AACrC,uDAA6B;AAC7B,2DAAiC;AACjC,wEAA8C;AAC9C,kEAAwC;AACxC,mEAAyC;AACzC,uDAA6B;AAC7B,6DAAmC;AACnC,4DAAkC"}
|