gemcap-be-common 1.5.50 → 1.5.51
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/models/BBCDate.model.d.ts +3 -3
- package/models/BBCSheet.model.d.ts +6 -6
- package/models/InventoryAvailabilityItem.model.d.ts +3 -3
- package/models/InventoryItem.model.d.ts +19 -6
- package/models/InventoryItem.model.ts +17 -1
- package/models/ReceivableItem.model.d.ts +3 -3
- package/package.json +1 -1
- package/services/loan-transactions.service.d.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -60,22 +60,22 @@ export declare const BBCDateSchema: mongoose.Schema<any, mongoose.Model<any, any
|
|
|
60
60
|
createdAt: NativeDate;
|
|
61
61
|
updatedAt: NativeDate;
|
|
62
62
|
} & {
|
|
63
|
-
bbcDate: Date;
|
|
64
63
|
borrowerId: mongoose.Types.ObjectId;
|
|
64
|
+
bbcDate: Date;
|
|
65
65
|
__v?: number;
|
|
66
66
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
67
67
|
createdAt: NativeDate;
|
|
68
68
|
updatedAt: NativeDate;
|
|
69
69
|
} & {
|
|
70
|
-
bbcDate: Date;
|
|
71
70
|
borrowerId: mongoose.Types.ObjectId;
|
|
71
|
+
bbcDate: Date;
|
|
72
72
|
__v?: number;
|
|
73
73
|
}>> & mongoose.FlatRecord<{
|
|
74
74
|
createdAt: NativeDate;
|
|
75
75
|
updatedAt: NativeDate;
|
|
76
76
|
} & {
|
|
77
|
-
bbcDate: Date;
|
|
78
77
|
borrowerId: mongoose.Types.ObjectId;
|
|
78
|
+
bbcDate: Date;
|
|
79
79
|
__v?: number;
|
|
80
80
|
}> & {
|
|
81
81
|
_id: mongoose.Types.ObjectId;
|
|
@@ -57,36 +57,36 @@ export declare const BBCSheetSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
57
57
|
} & {
|
|
58
58
|
bbcDateId: mongoose.Types.ObjectId;
|
|
59
59
|
dataType: string;
|
|
60
|
+
__v?: number;
|
|
61
|
+
comment?: string;
|
|
60
62
|
uploadUser?: string;
|
|
61
63
|
fileHash?: string;
|
|
62
64
|
fileName?: string;
|
|
63
65
|
sheetName?: string;
|
|
64
|
-
comment?: string;
|
|
65
|
-
__v?: number;
|
|
66
66
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
67
67
|
createdAt: NativeDate;
|
|
68
68
|
updatedAt: NativeDate;
|
|
69
69
|
} & {
|
|
70
70
|
bbcDateId: mongoose.Types.ObjectId;
|
|
71
71
|
dataType: string;
|
|
72
|
+
__v?: number;
|
|
73
|
+
comment?: string;
|
|
72
74
|
uploadUser?: string;
|
|
73
75
|
fileHash?: string;
|
|
74
76
|
fileName?: string;
|
|
75
77
|
sheetName?: string;
|
|
76
|
-
comment?: string;
|
|
77
|
-
__v?: number;
|
|
78
78
|
}>> & mongoose.FlatRecord<{
|
|
79
79
|
createdAt: NativeDate;
|
|
80
80
|
updatedAt: NativeDate;
|
|
81
81
|
} & {
|
|
82
82
|
bbcDateId: mongoose.Types.ObjectId;
|
|
83
83
|
dataType: string;
|
|
84
|
+
__v?: number;
|
|
85
|
+
comment?: string;
|
|
84
86
|
uploadUser?: string;
|
|
85
87
|
fileHash?: string;
|
|
86
88
|
fileName?: string;
|
|
87
89
|
sheetName?: string;
|
|
88
|
-
comment?: string;
|
|
89
|
-
__v?: number;
|
|
90
90
|
}> & {
|
|
91
91
|
_id: mongoose.Types.ObjectId;
|
|
92
92
|
}>;
|
|
@@ -48,8 +48,8 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
|
|
|
48
48
|
createdAt: NativeDate;
|
|
49
49
|
updatedAt: NativeDate;
|
|
50
50
|
} & {
|
|
51
|
-
unique: boolean;
|
|
52
51
|
order: number;
|
|
52
|
+
unique: boolean;
|
|
53
53
|
inventoryAvailabilityId: mongoose.Types.ObjectId;
|
|
54
54
|
inventoryId: mongoose.Types.ObjectId;
|
|
55
55
|
matched: boolean;
|
|
@@ -64,8 +64,8 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
|
|
|
64
64
|
createdAt: NativeDate;
|
|
65
65
|
updatedAt: NativeDate;
|
|
66
66
|
} & {
|
|
67
|
-
unique: boolean;
|
|
68
67
|
order: number;
|
|
68
|
+
unique: boolean;
|
|
69
69
|
inventoryAvailabilityId: mongoose.Types.ObjectId;
|
|
70
70
|
inventoryId: mongoose.Types.ObjectId;
|
|
71
71
|
matched: boolean;
|
|
@@ -80,8 +80,8 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
|
|
|
80
80
|
createdAt: NativeDate;
|
|
81
81
|
updatedAt: NativeDate;
|
|
82
82
|
} & {
|
|
83
|
-
unique: boolean;
|
|
84
83
|
order: number;
|
|
84
|
+
unique: boolean;
|
|
85
85
|
inventoryAvailabilityId: mongoose.Types.ObjectId;
|
|
86
86
|
inventoryId: mongoose.Types.ObjectId;
|
|
87
87
|
matched: boolean;
|
|
@@ -45,6 +45,19 @@ export interface IInventoryItem extends ICollateralItem {
|
|
|
45
45
|
}
|
|
46
46
|
export interface IInventoryItemDoc extends Document, IInventoryItem {
|
|
47
47
|
}
|
|
48
|
+
export type ЕInventoryItemDoc = mongoose.HydratedDocument<IInventoryItem>;
|
|
49
|
+
export interface IInventoryItemLean extends IInventoryItem {
|
|
50
|
+
_id: mongoose.Types.ObjectId;
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
updatedAt: Date;
|
|
53
|
+
}
|
|
54
|
+
export interface IInventoryItemPlain extends Omit<IInventoryItem, 'bbcSheetId'> {
|
|
55
|
+
_id: string;
|
|
56
|
+
bbcSheetId: string;
|
|
57
|
+
createdAt: Date;
|
|
58
|
+
updatedAt: Date;
|
|
59
|
+
}
|
|
60
|
+
export type TIInventoryItemModel = mongoose.Model<IInventoryItem>;
|
|
48
61
|
export interface IInventoryItemDocWithCalculation extends IInventoryItemDoc {
|
|
49
62
|
bbcSheet: IBBCSheetDoc;
|
|
50
63
|
bbc: IBBCDateDoc;
|
|
@@ -71,14 +84,13 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
71
84
|
createdAt: NativeDate;
|
|
72
85
|
updatedAt: NativeDate;
|
|
73
86
|
} & {
|
|
74
|
-
value: number;
|
|
75
87
|
skuDate: Date;
|
|
76
88
|
category: string;
|
|
77
89
|
sku: string;
|
|
78
90
|
qty: number;
|
|
91
|
+
value: number;
|
|
79
92
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
80
93
|
order: number;
|
|
81
|
-
__v?: number;
|
|
82
94
|
expiryDate?: Date;
|
|
83
95
|
location?: string;
|
|
84
96
|
unitCost?: number;
|
|
@@ -88,19 +100,19 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
88
100
|
detail1?: string;
|
|
89
101
|
detail2?: string;
|
|
90
102
|
detail3?: string;
|
|
103
|
+
__v?: number;
|
|
91
104
|
lotNumber?: string;
|
|
92
105
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
93
106
|
createdAt: NativeDate;
|
|
94
107
|
updatedAt: NativeDate;
|
|
95
108
|
} & {
|
|
96
|
-
value: number;
|
|
97
109
|
skuDate: Date;
|
|
98
110
|
category: string;
|
|
99
111
|
sku: string;
|
|
100
112
|
qty: number;
|
|
113
|
+
value: number;
|
|
101
114
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
102
115
|
order: number;
|
|
103
|
-
__v?: number;
|
|
104
116
|
expiryDate?: Date;
|
|
105
117
|
location?: string;
|
|
106
118
|
unitCost?: number;
|
|
@@ -110,19 +122,19 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
110
122
|
detail1?: string;
|
|
111
123
|
detail2?: string;
|
|
112
124
|
detail3?: string;
|
|
125
|
+
__v?: number;
|
|
113
126
|
lotNumber?: string;
|
|
114
127
|
}>> & mongoose.FlatRecord<{
|
|
115
128
|
createdAt: NativeDate;
|
|
116
129
|
updatedAt: NativeDate;
|
|
117
130
|
} & {
|
|
118
|
-
value: number;
|
|
119
131
|
skuDate: Date;
|
|
120
132
|
category: string;
|
|
121
133
|
sku: string;
|
|
122
134
|
qty: number;
|
|
135
|
+
value: number;
|
|
123
136
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
124
137
|
order: number;
|
|
125
|
-
__v?: number;
|
|
126
138
|
expiryDate?: Date;
|
|
127
139
|
location?: string;
|
|
128
140
|
unitCost?: number;
|
|
@@ -132,6 +144,7 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
132
144
|
detail1?: string;
|
|
133
145
|
detail2?: string;
|
|
134
146
|
detail3?: string;
|
|
147
|
+
__v?: number;
|
|
135
148
|
lotNumber?: string;
|
|
136
149
|
}> & {
|
|
137
150
|
_id: mongoose.Types.ObjectId;
|
|
@@ -25,7 +25,6 @@ export const INVENTORY_FIELDS = [
|
|
|
25
25
|
'detail3',
|
|
26
26
|
];
|
|
27
27
|
|
|
28
|
-
|
|
29
28
|
export interface IInventoryItem extends ICollateralItem {
|
|
30
29
|
skuDate: Date;
|
|
31
30
|
category: string;
|
|
@@ -46,6 +45,23 @@ export interface IInventoryItem extends ICollateralItem {
|
|
|
46
45
|
export interface IInventoryItemDoc extends Document, IInventoryItem {
|
|
47
46
|
}
|
|
48
47
|
|
|
48
|
+
export type ЕInventoryItemDoc = mongoose.HydratedDocument<IInventoryItem>
|
|
49
|
+
|
|
50
|
+
export interface IInventoryItemLean extends IInventoryItem {
|
|
51
|
+
_id: mongoose.Types.ObjectId;
|
|
52
|
+
createdAt: Date;
|
|
53
|
+
updatedAt: Date;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface IInventoryItemPlain extends Omit<IInventoryItem, 'bbcSheetId'> {
|
|
57
|
+
_id: string;
|
|
58
|
+
bbcSheetId: string;
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
updatedAt: Date;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type TIInventoryItemModel = mongoose.Model<IInventoryItem>;
|
|
64
|
+
|
|
49
65
|
export interface IInventoryItemDocWithCalculation extends IInventoryItemDoc {
|
|
50
66
|
bbcSheet: IBBCSheetDoc;
|
|
51
67
|
bbc: IBBCDateDoc;
|
|
@@ -52,8 +52,8 @@ export declare const ReceivableItemSchema: mongoose.Schema<any, mongoose.Model<a
|
|
|
52
52
|
} & {
|
|
53
53
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
54
54
|
order: number;
|
|
55
|
-
invoiceDate: Date;
|
|
56
55
|
invoiceNumber: string;
|
|
56
|
+
invoiceDate: Date;
|
|
57
57
|
customerTitle: string;
|
|
58
58
|
invoiceAmount: number;
|
|
59
59
|
__v?: number;
|
|
@@ -68,8 +68,8 @@ export declare const ReceivableItemSchema: mongoose.Schema<any, mongoose.Model<a
|
|
|
68
68
|
} & {
|
|
69
69
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
70
70
|
order: number;
|
|
71
|
-
invoiceDate: Date;
|
|
72
71
|
invoiceNumber: string;
|
|
72
|
+
invoiceDate: Date;
|
|
73
73
|
customerTitle: string;
|
|
74
74
|
invoiceAmount: number;
|
|
75
75
|
__v?: number;
|
|
@@ -84,8 +84,8 @@ export declare const ReceivableItemSchema: mongoose.Schema<any, mongoose.Model<a
|
|
|
84
84
|
} & {
|
|
85
85
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
86
86
|
order: number;
|
|
87
|
-
invoiceDate: Date;
|
|
88
87
|
invoiceNumber: string;
|
|
88
|
+
invoiceDate: Date;
|
|
89
89
|
customerTitle: string;
|
|
90
90
|
invoiceAmount: number;
|
|
91
91
|
__v?: number;
|
package/package.json
CHANGED
|
@@ -155,7 +155,7 @@ export declare class LoanTransactionsService {
|
|
|
155
155
|
getTransactionReport(transactionIds: string[], borrowerId: string, effectiveDate: Date): Promise<{
|
|
156
156
|
transactionIdsToMark: string[];
|
|
157
157
|
transactions: {
|
|
158
|
-
[x: string]: (string | number |
|
|
158
|
+
[x: string]: (string | number | string[] | Date)[];
|
|
159
159
|
}[];
|
|
160
160
|
}>;
|
|
161
161
|
getBorrowerIdsForFile(transactionFileId: string): Promise<{
|