plac-micro-common 1.2.64 → 1.2.65
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/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +1 -0
- package/dist/models/quotation/index.d.ts +4 -0
- package/dist/models/quotation/index.js +11 -0
- package/dist/models/quotation/quotation.entity.d.ts +45 -0
- package/dist/models/quotation/quotation.entity.js +194 -0
- package/dist/models/quotation/quotation_calculation_log.entity.d.ts +21 -0
- package/dist/models/quotation/quotation_calculation_log.entity.js +92 -0
- package/package.json +1 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export * from "./_base_entity";
|
|
|
2
2
|
export * from "./_base_general_entity";
|
|
3
3
|
export * from "./_base_ownership_entity";
|
|
4
4
|
export * from "./core";
|
|
5
|
-
export * from
|
|
5
|
+
export * from "./application";
|
|
6
6
|
export * from "./customer";
|
|
7
|
+
export * from "./quotation";
|
package/dist/models/index.js
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { QuotationCalculationLogEntity } from "./quotation_calculation_log.entity";
|
|
2
|
+
import { QuotationEntity } from "./quotation.entity";
|
|
3
|
+
export declare const QUOTATION_ENTITIES: (typeof QuotationCalculationLogEntity | typeof QuotationEntity)[];
|
|
4
|
+
export { QuotationCalculationLogEntity, QuotationEntity };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuotationEntity = exports.QuotationCalculationLogEntity = exports.QUOTATION_ENTITIES = void 0;
|
|
4
|
+
const quotation_calculation_log_entity_1 = require("./quotation_calculation_log.entity");
|
|
5
|
+
Object.defineProperty(exports, "QuotationCalculationLogEntity", { enumerable: true, get: function () { return quotation_calculation_log_entity_1.QuotationCalculationLogEntity; } });
|
|
6
|
+
const quotation_entity_1 = require("./quotation.entity");
|
|
7
|
+
Object.defineProperty(exports, "QuotationEntity", { enumerable: true, get: function () { return quotation_entity_1.QuotationEntity; } });
|
|
8
|
+
exports.QUOTATION_ENTITIES = [
|
|
9
|
+
quotation_calculation_log_entity_1.QuotationCalculationLogEntity,
|
|
10
|
+
quotation_entity_1.QuotationEntity,
|
|
11
|
+
];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { _BaseEntity } from "../_base_entity";
|
|
2
|
+
import { Gender, QuotationStatus } from "../../types";
|
|
3
|
+
import { QuotationCalculationLogEntity } from "./quotation_calculation_log.entity";
|
|
4
|
+
import { CustomerEntity } from "../customer";
|
|
5
|
+
import { OrganizationEntity, OrganizationStaffEntity, PaymentModeEntity, ProductEntity, PromotionEntity, RiderEntity, TermEntity } from "../core";
|
|
6
|
+
export declare class QuotationEntity extends _BaseEntity {
|
|
7
|
+
id: string;
|
|
8
|
+
quotation_no?: string | null;
|
|
9
|
+
status: QuotationStatus;
|
|
10
|
+
calculation_log_id?: string | null;
|
|
11
|
+
product_id: string;
|
|
12
|
+
rider_id?: string | null;
|
|
13
|
+
promotion_id?: string | null;
|
|
14
|
+
payment_mode_id: string;
|
|
15
|
+
term_id: string;
|
|
16
|
+
sum_assured: number;
|
|
17
|
+
customer_id?: string;
|
|
18
|
+
date_of_birth: string;
|
|
19
|
+
gender: Gender;
|
|
20
|
+
ph_first_name: string;
|
|
21
|
+
ph_last_name: string;
|
|
22
|
+
insured_first_name: string;
|
|
23
|
+
insured_last_name: string;
|
|
24
|
+
annual_basic_premium: number;
|
|
25
|
+
annual_rider_premium: number;
|
|
26
|
+
annual_premium: number;
|
|
27
|
+
mode_premium: number;
|
|
28
|
+
premium_info?: Record<string, any>;
|
|
29
|
+
evaluate_at: Date;
|
|
30
|
+
expires_at?: Date | null;
|
|
31
|
+
remark?: string | null;
|
|
32
|
+
deleted_at?: Date | null;
|
|
33
|
+
org_id?: string;
|
|
34
|
+
org_staff_id?: string | null;
|
|
35
|
+
branch_id?: string | null;
|
|
36
|
+
calculation_log?: QuotationCalculationLogEntity | null;
|
|
37
|
+
customer?: CustomerEntity;
|
|
38
|
+
product: ProductEntity;
|
|
39
|
+
rider?: RiderEntity | null;
|
|
40
|
+
promotion?: PromotionEntity | null;
|
|
41
|
+
payment_mode: PaymentModeEntity;
|
|
42
|
+
term: TermEntity;
|
|
43
|
+
org?: OrganizationEntity;
|
|
44
|
+
org_staff?: OrganizationStaffEntity;
|
|
45
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
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.QuotationEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _base_entity_1 = require("../_base_entity");
|
|
15
|
+
const types_1 = require("../../types");
|
|
16
|
+
const utils_1 = require("../../utils");
|
|
17
|
+
const quotation_calculation_log_entity_1 = require("./quotation_calculation_log.entity");
|
|
18
|
+
const customer_1 = require("../customer");
|
|
19
|
+
const core_1 = require("../core");
|
|
20
|
+
let QuotationEntity = class QuotationEntity extends _base_entity_1._BaseEntity {
|
|
21
|
+
};
|
|
22
|
+
exports.QuotationEntity = QuotationEntity;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], QuotationEntity.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ length: 30, unique: true, nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], QuotationEntity.prototype, "quotation_no", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({
|
|
33
|
+
type: "varchar",
|
|
34
|
+
length: 20,
|
|
35
|
+
default: types_1.QuotationStatus.Draft,
|
|
36
|
+
comment: (0, utils_1.enumToCommentString)(types_1.QuotationStatus),
|
|
37
|
+
}),
|
|
38
|
+
(0, typeorm_1.Index)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], QuotationEntity.prototype, "status", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], QuotationEntity.prototype, "calculation_log_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], QuotationEntity.prototype, "product_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], QuotationEntity.prototype, "rider_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], QuotationEntity.prototype, "promotion_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], QuotationEntity.prototype, "payment_mode_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], QuotationEntity.prototype, "term_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "int" }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], QuotationEntity.prototype, "sum_assured", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
71
|
+
(0, typeorm_1.Index)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], QuotationEntity.prototype, "customer_id", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: "date" }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], QuotationEntity.prototype, "date_of_birth", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 1 }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], QuotationEntity.prototype, "gender", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 120 }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], QuotationEntity.prototype, "ph_first_name", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 120 }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], QuotationEntity.prototype, "ph_last_name", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 120 }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], QuotationEntity.prototype, "insured_first_name", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 120 }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], QuotationEntity.prototype, "insured_last_name", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: "numeric", precision: 18, scale: 2, default: 0 }),
|
|
100
|
+
__metadata("design:type", Number)
|
|
101
|
+
], QuotationEntity.prototype, "annual_basic_premium", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: "numeric", precision: 18, scale: 2, default: 0 }),
|
|
104
|
+
__metadata("design:type", Number)
|
|
105
|
+
], QuotationEntity.prototype, "annual_rider_premium", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: "numeric", precision: 18, scale: 2, default: 0 }),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], QuotationEntity.prototype, "annual_premium", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: "numeric", precision: 18, scale: 2, default: 0 }),
|
|
112
|
+
__metadata("design:type", Number)
|
|
113
|
+
], QuotationEntity.prototype, "mode_premium", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
116
|
+
__metadata("design:type", Object)
|
|
117
|
+
], QuotationEntity.prototype, "premium_info", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: "timestamptz", default: () => "now()" }),
|
|
120
|
+
__metadata("design:type", Date)
|
|
121
|
+
], QuotationEntity.prototype, "evaluate_at", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Index)(),
|
|
124
|
+
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
125
|
+
__metadata("design:type", Object)
|
|
126
|
+
], QuotationEntity.prototype, "expires_at", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
129
|
+
__metadata("design:type", Object)
|
|
130
|
+
], QuotationEntity.prototype, "remark", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], QuotationEntity.prototype, "deleted_at", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
137
|
+
__metadata("design:type", String)
|
|
138
|
+
], QuotationEntity.prototype, "org_id", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
141
|
+
__metadata("design:type", Object)
|
|
142
|
+
], QuotationEntity.prototype, "org_staff_id", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], QuotationEntity.prototype, "branch_id", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.ManyToOne)(() => quotation_calculation_log_entity_1.QuotationCalculationLogEntity, { nullable: true }),
|
|
149
|
+
(0, typeorm_1.JoinColumn)({ name: "calculation_log_id" }),
|
|
150
|
+
__metadata("design:type", Object)
|
|
151
|
+
], QuotationEntity.prototype, "calculation_log", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, typeorm_1.ManyToOne)(() => customer_1.CustomerEntity, { nullable: true }),
|
|
154
|
+
(0, typeorm_1.JoinColumn)({ name: "customer_id" }),
|
|
155
|
+
__metadata("design:type", customer_1.CustomerEntity)
|
|
156
|
+
], QuotationEntity.prototype, "customer", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.ManyToOne)(() => core_1.ProductEntity, { nullable: false }),
|
|
159
|
+
(0, typeorm_1.JoinColumn)({ name: "product_id" }),
|
|
160
|
+
__metadata("design:type", core_1.ProductEntity)
|
|
161
|
+
], QuotationEntity.prototype, "product", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, typeorm_1.ManyToOne)(() => core_1.RiderEntity, { nullable: true }),
|
|
164
|
+
(0, typeorm_1.JoinColumn)({ name: "rider_id" }),
|
|
165
|
+
__metadata("design:type", Object)
|
|
166
|
+
], QuotationEntity.prototype, "rider", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.ManyToOne)(() => core_1.PromotionEntity, { nullable: true }),
|
|
169
|
+
(0, typeorm_1.JoinColumn)({ name: "promotion_id" }),
|
|
170
|
+
__metadata("design:type", Object)
|
|
171
|
+
], QuotationEntity.prototype, "promotion", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, typeorm_1.ManyToOne)(() => core_1.PaymentModeEntity, { nullable: false }),
|
|
174
|
+
(0, typeorm_1.JoinColumn)({ name: "payment_mode_id" }),
|
|
175
|
+
__metadata("design:type", core_1.PaymentModeEntity)
|
|
176
|
+
], QuotationEntity.prototype, "payment_mode", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, typeorm_1.ManyToOne)(() => core_1.TermEntity, { nullable: false }),
|
|
179
|
+
(0, typeorm_1.JoinColumn)({ name: "term_id" }),
|
|
180
|
+
__metadata("design:type", core_1.TermEntity)
|
|
181
|
+
], QuotationEntity.prototype, "term", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, typeorm_1.ManyToOne)(() => core_1.OrganizationEntity, { nullable: true }),
|
|
184
|
+
(0, typeorm_1.JoinColumn)({ name: "org_id" }),
|
|
185
|
+
__metadata("design:type", core_1.OrganizationEntity)
|
|
186
|
+
], QuotationEntity.prototype, "org", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, typeorm_1.ManyToOne)(() => core_1.OrganizationStaffEntity, { nullable: true }),
|
|
189
|
+
(0, typeorm_1.JoinColumn)({ name: "org_staff_id" }),
|
|
190
|
+
__metadata("design:type", core_1.OrganizationStaffEntity)
|
|
191
|
+
], QuotationEntity.prototype, "org_staff", void 0);
|
|
192
|
+
exports.QuotationEntity = QuotationEntity = __decorate([
|
|
193
|
+
(0, typeorm_1.Entity)({ schema: "quotation", name: "quotations" })
|
|
194
|
+
], QuotationEntity);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { _BaseEntity } from "../_base_entity";
|
|
2
|
+
import { OrganizationEntity, OrganizationStaffEntity } from "../core";
|
|
3
|
+
export declare class QuotationCalculationLogEntity extends _BaseEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
org_id?: string;
|
|
6
|
+
org_staff_id?: string | null;
|
|
7
|
+
branch_id?: string | null;
|
|
8
|
+
product_id: string;
|
|
9
|
+
rider_id?: string | null;
|
|
10
|
+
is_success: boolean;
|
|
11
|
+
input_payload: Record<string, any>;
|
|
12
|
+
output_payload?: Record<string, any>;
|
|
13
|
+
info_payload?: Record<string, any>;
|
|
14
|
+
user_agent?: string | null;
|
|
15
|
+
client_ip?: string | null;
|
|
16
|
+
client_platform?: string | null;
|
|
17
|
+
app_version?: string | null;
|
|
18
|
+
request_id?: string | null;
|
|
19
|
+
org?: OrganizationEntity;
|
|
20
|
+
org_staff?: OrganizationStaffEntity;
|
|
21
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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.QuotationCalculationLogEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _base_entity_1 = require("../_base_entity");
|
|
15
|
+
const core_1 = require("../core");
|
|
16
|
+
let QuotationCalculationLogEntity = class QuotationCalculationLogEntity extends _base_entity_1._BaseEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.QuotationCalculationLogEntity = QuotationCalculationLogEntity;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], QuotationCalculationLogEntity.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], QuotationCalculationLogEntity.prototype, "org_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], QuotationCalculationLogEntity.prototype, "org_staff_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], QuotationCalculationLogEntity.prototype, "branch_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], QuotationCalculationLogEntity.prototype, "product_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], QuotationCalculationLogEntity.prototype, "rider_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], QuotationCalculationLogEntity.prototype, "is_success", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "jsonb" }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], QuotationCalculationLogEntity.prototype, "input_payload", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], QuotationCalculationLogEntity.prototype, "output_payload", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], QuotationCalculationLogEntity.prototype, "info_payload", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], QuotationCalculationLogEntity.prototype, "user_agent", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "inet", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], QuotationCalculationLogEntity.prototype, "client_ip", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 30, nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], QuotationCalculationLogEntity.prototype, "client_platform", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 30, nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], QuotationCalculationLogEntity.prototype, "app_version", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], QuotationCalculationLogEntity.prototype, "request_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.ManyToOne)(() => core_1.OrganizationEntity, { nullable: true }),
|
|
81
|
+
(0, typeorm_1.JoinColumn)({ name: "org_id" }),
|
|
82
|
+
__metadata("design:type", core_1.OrganizationEntity)
|
|
83
|
+
], QuotationCalculationLogEntity.prototype, "org", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.ManyToOne)(() => core_1.OrganizationStaffEntity, { nullable: true }),
|
|
86
|
+
(0, typeorm_1.JoinColumn)({ name: "org_staff_id" }),
|
|
87
|
+
__metadata("design:type", core_1.OrganizationStaffEntity)
|
|
88
|
+
], QuotationCalculationLogEntity.prototype, "org_staff", void 0);
|
|
89
|
+
exports.QuotationCalculationLogEntity = QuotationCalculationLogEntity = __decorate([
|
|
90
|
+
(0, typeorm_1.Entity)({ schema: "quotation", name: "quotation_calculation_logs" }),
|
|
91
|
+
(0, typeorm_1.Index)(["product_id", "created_at"])
|
|
92
|
+
], QuotationCalculationLogEntity);
|