@tomei/rental 0.4.3 → 0.4.4
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/.commitlintrc.json +22 -22
- package/.eslintrc +16 -16
- package/.eslintrc.js +35 -35
- package/.husky/commit-msg +15 -15
- package/.husky/pre-commit +7 -7
- package/.prettierrc +4 -4
- package/Jenkinsfile +51 -51
- package/README.md +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/src/components/rental/rental.d.ts +45 -39
- package/dist/src/components/rental/rental.js +338 -331
- package/dist/src/components/rental/rental.js.map +1 -1
- package/dist/src/components/rental/rental.repository.d.ts +8 -8
- package/dist/src/components/rental/rental.repository.js +66 -66
- package/dist/src/components/rental-price/rental-price.d.ts +18 -12
- package/dist/src/components/rental-price/rental-price.js +78 -71
- package/dist/src/components/rental-price/rental-price.js.map +1 -1
- package/dist/src/components/rental-price/rental-price.repository.d.ts +8 -8
- package/dist/src/components/rental-price/rental-price.repository.js +66 -66
- package/dist/src/database.d.ts +4 -4
- package/dist/src/database.js +19 -19
- package/dist/src/enum/index.d.ts +2 -2
- package/dist/src/enum/index.js +5 -5
- package/dist/src/enum/rental-status.enum.d.ts +7 -7
- package/dist/src/enum/rental-status.enum.js +11 -11
- package/dist/src/index.d.ts +9 -9
- package/dist/src/index.js +30 -30
- package/dist/src/interfaces/index.d.ts +4 -4
- package/dist/src/interfaces/index.js +2 -2
- package/dist/src/interfaces/rental-attr.interface.d.ts +20 -20
- package/dist/src/interfaces/rental-attr.interface.js +2 -2
- package/dist/src/interfaces/rental-find-all-search-attr.interface.d.ts +10 -10
- package/dist/src/interfaces/rental-find-all-search-attr.interface.js +2 -2
- package/dist/src/interfaces/rental-price-attr.interface.d.ts +7 -7
- package/dist/src/interfaces/rental-price-attr.interface.js +2 -2
- package/dist/src/models/index.d.ts +3 -3
- package/dist/src/models/index.js +7 -7
- package/dist/src/models/rental-price.entity.d.ts +8 -8
- package/dist/src/models/rental-price.entity.js +58 -58
- package/dist/src/models/rental.entity.d.ts +23 -23
- package/dist/src/models/rental.entity.js +140 -140
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/jest.config.js +10 -10
- package/migrations/rental-price-table-migration.js +32 -32
- package/migrations/rental-table-migrations.js +86 -86
- package/package.json +71 -71
- package/src/components/rental/rental.repository.ts +51 -51
- package/src/components/rental/rental.ts +511 -500
- package/src/components/rental-price/rental-price.repository.ts +54 -54
- package/src/components/rental-price/rental-price.ts +100 -89
- package/src/database.ts +21 -21
- package/src/enum/index.ts +3 -3
- package/src/enum/rental-status.enum.ts +29 -29
- package/src/index.ts +16 -16
- package/src/interfaces/index.ts +5 -5
- package/src/interfaces/rental-attr.interface.ts +21 -21
- package/src/interfaces/rental-find-all-search-attr.interface.ts +11 -11
- package/src/interfaces/rental-price-attr.interface.ts +7 -7
- package/src/models/index.ts +4 -4
- package/src/models/rental-price.entity.ts +38 -38
- package/src/models/rental.entity.ts +116 -116
- package/tsconfig.build.json +5 -5
- package/tsconfig.json +23 -23
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Column,
|
|
3
|
-
DataType,
|
|
4
|
-
Table,
|
|
5
|
-
Model,
|
|
6
|
-
ForeignKey,
|
|
7
|
-
BelongsTo,
|
|
8
|
-
CreatedAt,
|
|
9
|
-
UpdatedAt,
|
|
10
|
-
} from 'sequelize-typescript';
|
|
11
|
-
import { RentalPriceModel } from './rental-price.entity';
|
|
12
|
-
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
13
|
-
|
|
14
|
-
@Table({
|
|
15
|
-
tableName: 'rental_Rental',
|
|
16
|
-
})
|
|
17
|
-
export class RentalModel extends Model {
|
|
18
|
-
@Column({
|
|
19
|
-
primaryKey: true,
|
|
20
|
-
allowNull: false,
|
|
21
|
-
type: DataType.STRING(30),
|
|
22
|
-
})
|
|
23
|
-
RentalId: string;
|
|
24
|
-
|
|
25
|
-
@Column({
|
|
26
|
-
allowNull: false,
|
|
27
|
-
type: DataType.STRING(30),
|
|
28
|
-
})
|
|
29
|
-
CustomerId: string;
|
|
30
|
-
|
|
31
|
-
@Column({
|
|
32
|
-
allowNull: false,
|
|
33
|
-
type: DataType.STRING(30),
|
|
34
|
-
})
|
|
35
|
-
CustomerType: string;
|
|
36
|
-
|
|
37
|
-
@Column({
|
|
38
|
-
allowNull: false,
|
|
39
|
-
type: DataType.STRING(30),
|
|
40
|
-
})
|
|
41
|
-
ItemId: string;
|
|
42
|
-
|
|
43
|
-
@Column({
|
|
44
|
-
allowNull: false,
|
|
45
|
-
type: DataType.STRING(30),
|
|
46
|
-
})
|
|
47
|
-
ItemType: string;
|
|
48
|
-
|
|
49
|
-
@ForeignKey(() => RentalPriceModel)
|
|
50
|
-
@Column({
|
|
51
|
-
allowNull: false,
|
|
52
|
-
type: DataType.STRING(30),
|
|
53
|
-
})
|
|
54
|
-
PriceId: string;
|
|
55
|
-
|
|
56
|
-
@Column({
|
|
57
|
-
allowNull: false,
|
|
58
|
-
type: DataType.DATE,
|
|
59
|
-
})
|
|
60
|
-
StartDateTime: Date;
|
|
61
|
-
|
|
62
|
-
@Column({
|
|
63
|
-
allowNull: false,
|
|
64
|
-
type: DataType.DATE,
|
|
65
|
-
})
|
|
66
|
-
EndDateTime: Date;
|
|
67
|
-
|
|
68
|
-
@Column({
|
|
69
|
-
allowNull: false,
|
|
70
|
-
type: DataType.STRING(20),
|
|
71
|
-
})
|
|
72
|
-
Status: RentalStatusEnum;
|
|
73
|
-
|
|
74
|
-
@Column({
|
|
75
|
-
type: DataType.STRING(3000),
|
|
76
|
-
})
|
|
77
|
-
CancelRemarks: string;
|
|
78
|
-
|
|
79
|
-
@Column({
|
|
80
|
-
type: DataType.STRING(3000),
|
|
81
|
-
})
|
|
82
|
-
TerminateRemarks: string;
|
|
83
|
-
|
|
84
|
-
@Column({
|
|
85
|
-
type: DataType.CHAR(1),
|
|
86
|
-
})
|
|
87
|
-
EscheatmentYN: string;
|
|
88
|
-
|
|
89
|
-
@Column({
|
|
90
|
-
allowNull: false,
|
|
91
|
-
unique: true,
|
|
92
|
-
type: DataType.STRING(30),
|
|
93
|
-
})
|
|
94
|
-
AgreementNo: string;
|
|
95
|
-
|
|
96
|
-
@Column({
|
|
97
|
-
allowNull: false,
|
|
98
|
-
type: DataType.STRING(30),
|
|
99
|
-
})
|
|
100
|
-
CreatedById: string;
|
|
101
|
-
|
|
102
|
-
@CreatedAt
|
|
103
|
-
CreatedAt: Date;
|
|
104
|
-
|
|
105
|
-
@Column({
|
|
106
|
-
allowNull: false,
|
|
107
|
-
type: DataType.STRING(30),
|
|
108
|
-
})
|
|
109
|
-
UpdatedById: string;
|
|
110
|
-
|
|
111
|
-
@UpdatedAt
|
|
112
|
-
UpdatedAt: Date;
|
|
113
|
-
|
|
114
|
-
@BelongsTo(() => RentalPriceModel)
|
|
115
|
-
RentalPrice: RentalPriceModel;
|
|
116
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
Column,
|
|
3
|
+
DataType,
|
|
4
|
+
Table,
|
|
5
|
+
Model,
|
|
6
|
+
ForeignKey,
|
|
7
|
+
BelongsTo,
|
|
8
|
+
CreatedAt,
|
|
9
|
+
UpdatedAt,
|
|
10
|
+
} from 'sequelize-typescript';
|
|
11
|
+
import { RentalPriceModel } from './rental-price.entity';
|
|
12
|
+
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
13
|
+
|
|
14
|
+
@Table({
|
|
15
|
+
tableName: 'rental_Rental',
|
|
16
|
+
})
|
|
17
|
+
export class RentalModel extends Model {
|
|
18
|
+
@Column({
|
|
19
|
+
primaryKey: true,
|
|
20
|
+
allowNull: false,
|
|
21
|
+
type: DataType.STRING(30),
|
|
22
|
+
})
|
|
23
|
+
RentalId: string;
|
|
24
|
+
|
|
25
|
+
@Column({
|
|
26
|
+
allowNull: false,
|
|
27
|
+
type: DataType.STRING(30),
|
|
28
|
+
})
|
|
29
|
+
CustomerId: string;
|
|
30
|
+
|
|
31
|
+
@Column({
|
|
32
|
+
allowNull: false,
|
|
33
|
+
type: DataType.STRING(30),
|
|
34
|
+
})
|
|
35
|
+
CustomerType: string;
|
|
36
|
+
|
|
37
|
+
@Column({
|
|
38
|
+
allowNull: false,
|
|
39
|
+
type: DataType.STRING(30),
|
|
40
|
+
})
|
|
41
|
+
ItemId: string;
|
|
42
|
+
|
|
43
|
+
@Column({
|
|
44
|
+
allowNull: false,
|
|
45
|
+
type: DataType.STRING(30),
|
|
46
|
+
})
|
|
47
|
+
ItemType: string;
|
|
48
|
+
|
|
49
|
+
@ForeignKey(() => RentalPriceModel)
|
|
50
|
+
@Column({
|
|
51
|
+
allowNull: false,
|
|
52
|
+
type: DataType.STRING(30),
|
|
53
|
+
})
|
|
54
|
+
PriceId: string;
|
|
55
|
+
|
|
56
|
+
@Column({
|
|
57
|
+
allowNull: false,
|
|
58
|
+
type: DataType.DATE,
|
|
59
|
+
})
|
|
60
|
+
StartDateTime: Date;
|
|
61
|
+
|
|
62
|
+
@Column({
|
|
63
|
+
allowNull: false,
|
|
64
|
+
type: DataType.DATE,
|
|
65
|
+
})
|
|
66
|
+
EndDateTime: Date;
|
|
67
|
+
|
|
68
|
+
@Column({
|
|
69
|
+
allowNull: false,
|
|
70
|
+
type: DataType.STRING(20),
|
|
71
|
+
})
|
|
72
|
+
Status: RentalStatusEnum;
|
|
73
|
+
|
|
74
|
+
@Column({
|
|
75
|
+
type: DataType.STRING(3000),
|
|
76
|
+
})
|
|
77
|
+
CancelRemarks: string;
|
|
78
|
+
|
|
79
|
+
@Column({
|
|
80
|
+
type: DataType.STRING(3000),
|
|
81
|
+
})
|
|
82
|
+
TerminateRemarks: string;
|
|
83
|
+
|
|
84
|
+
@Column({
|
|
85
|
+
type: DataType.CHAR(1),
|
|
86
|
+
})
|
|
87
|
+
EscheatmentYN: string;
|
|
88
|
+
|
|
89
|
+
@Column({
|
|
90
|
+
allowNull: false,
|
|
91
|
+
unique: true,
|
|
92
|
+
type: DataType.STRING(30),
|
|
93
|
+
})
|
|
94
|
+
AgreementNo: string;
|
|
95
|
+
|
|
96
|
+
@Column({
|
|
97
|
+
allowNull: false,
|
|
98
|
+
type: DataType.STRING(30),
|
|
99
|
+
})
|
|
100
|
+
CreatedById: string;
|
|
101
|
+
|
|
102
|
+
@CreatedAt
|
|
103
|
+
CreatedAt: Date;
|
|
104
|
+
|
|
105
|
+
@Column({
|
|
106
|
+
allowNull: false,
|
|
107
|
+
type: DataType.STRING(30),
|
|
108
|
+
})
|
|
109
|
+
UpdatedById: string;
|
|
110
|
+
|
|
111
|
+
@UpdatedAt
|
|
112
|
+
UpdatedAt: Date;
|
|
113
|
+
|
|
114
|
+
@BelongsTo(() => RentalPriceModel)
|
|
115
|
+
RentalPrice: RentalPriceModel;
|
|
116
|
+
}
|
package/tsconfig.build.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"include": ["**/*.ts"],
|
|
4
|
-
"exclude": ["node_modules", "__tests__", "dist", "**/*spec.ts"]
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"include": ["**/*.ts"],
|
|
4
|
+
"exclude": ["node_modules", "__tests__", "dist", "**/*spec.ts"]
|
|
5
|
+
}
|
|
6
6
|
|
package/tsconfig.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "commonjs",
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"removeComments": true,
|
|
6
|
-
"emitDecoratorMetadata": true,
|
|
7
|
-
"experimentalDecorators": true,
|
|
8
|
-
"allowSyntheticDefaultImports": true,
|
|
9
|
-
"moduleResolution": "node",
|
|
10
|
-
"target": "es6",
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"outDir": "dist",
|
|
13
|
-
"baseUrl": "./src",
|
|
14
|
-
"rootDir": "./",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"skipLibCheck": true,
|
|
17
|
-
"noImplicitAny": false,
|
|
18
|
-
"strictBindCallApply": false,
|
|
19
|
-
"forceConsistentCasingInFileNames": false,
|
|
20
|
-
"noFallthroughCasesInSwitch": false,
|
|
21
|
-
"strictNullChecks": true
|
|
22
|
-
},
|
|
23
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"removeComments": true,
|
|
6
|
+
"emitDecoratorMetadata": true,
|
|
7
|
+
"experimentalDecorators": true,
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"target": "es6",
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"outDir": "dist",
|
|
13
|
+
"baseUrl": "./src",
|
|
14
|
+
"rootDir": "./",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"noImplicitAny": false,
|
|
18
|
+
"strictBindCallApply": false,
|
|
19
|
+
"forceConsistentCasingInFileNames": false,
|
|
20
|
+
"noFallthroughCasesInSwitch": false,
|
|
21
|
+
"strictNullChecks": true
|
|
22
|
+
},
|
|
23
|
+
}
|