gemcap-be-common 1.4.185 → 1.4.187
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/classes/quickbook-item.d.ts +1 -0
- package/classes/quickbook-item.js +1 -0
- package/classes/quickbook-item.ts +1 -0
- package/models/QuickbooksAccount.model.d.ts +1 -0
- package/models/QuickbooksAccount.model.js +5 -0
- package/models/QuickbooksAccount.model.ts +6 -0
- package/models/_index.d.ts +3 -3
- package/package.json +1 -1
- package/services/compliance-borrowers.service.d.ts +1 -1
- package/services/loan-transactions.service.d.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
import mongoose from 'mongoose';
|
|
26
26
|
import { IQuickbooksAccount } from '../models/QuickbooksAccount.model';
|
|
27
27
|
export declare class IQuickbooksUploadItem implements IQuickbooksAccount {
|
|
28
|
+
uiId: string;
|
|
28
29
|
accountCode: string;
|
|
29
30
|
fullName: string;
|
|
30
31
|
description: string;
|
|
@@ -26,6 +26,7 @@ import Joi from 'joi';
|
|
|
26
26
|
import mongoose, { Document, Model } from 'mongoose';
|
|
27
27
|
export declare const QuickbooksAccountValidationSchema: Joi.ObjectSchema<any>;
|
|
28
28
|
export interface IQuickbooksAccount {
|
|
29
|
+
uiId: string;
|
|
29
30
|
companyId: mongoose.Types.ObjectId;
|
|
30
31
|
order?: number;
|
|
31
32
|
accountCode: string;
|
|
@@ -9,6 +9,7 @@ const mongoose_1 = __importDefault(require("mongoose"));
|
|
|
9
9
|
const _models_1 = require("./_models");
|
|
10
10
|
exports.QuickbooksAccountValidationSchema = joi_1.default.object({
|
|
11
11
|
_id: joi_1.default.string(),
|
|
12
|
+
uiId: joi_1.default.string(),
|
|
12
13
|
companyId: joi_1.default.string(),
|
|
13
14
|
order: joi_1.default.number(),
|
|
14
15
|
accountCode: joi_1.default.string().required(),
|
|
@@ -21,6 +22,10 @@ exports.QuickbooksAccountSchema = new mongoose_1.default.Schema({
|
|
|
21
22
|
ref: _models_1.MODEL_NAMES.companies,
|
|
22
23
|
required: true,
|
|
23
24
|
},
|
|
25
|
+
uiId: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
24
29
|
order: {
|
|
25
30
|
type: Number,
|
|
26
31
|
},
|
|
@@ -5,6 +5,7 @@ import { MODEL_NAMES } from './_models';
|
|
|
5
5
|
|
|
6
6
|
export const QuickbooksAccountValidationSchema = Joi.object({
|
|
7
7
|
_id: Joi.string(),
|
|
8
|
+
uiId: Joi.string(),
|
|
8
9
|
companyId: Joi.string(),
|
|
9
10
|
order: Joi.number(),
|
|
10
11
|
accountCode: Joi.string().required(),
|
|
@@ -13,6 +14,7 @@ export const QuickbooksAccountValidationSchema = Joi.object({
|
|
|
13
14
|
});
|
|
14
15
|
|
|
15
16
|
export interface IQuickbooksAccount {
|
|
17
|
+
uiId: string;
|
|
16
18
|
companyId: mongoose.Types.ObjectId;
|
|
17
19
|
order?: number;
|
|
18
20
|
accountCode: string;
|
|
@@ -32,6 +34,10 @@ export const QuickbooksAccountSchema = new mongoose.Schema<IQuickbooksAccount, Q
|
|
|
32
34
|
ref: MODEL_NAMES.companies,
|
|
33
35
|
required: true,
|
|
34
36
|
},
|
|
37
|
+
uiId: {
|
|
38
|
+
type: String,
|
|
39
|
+
required: true,
|
|
40
|
+
},
|
|
35
41
|
order: {
|
|
36
42
|
type: Number,
|
|
37
43
|
},
|
package/models/_index.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare const allSchemas: {
|
|
|
31
31
|
createdAt: NativeDate;
|
|
32
32
|
updatedAt: NativeDate;
|
|
33
33
|
} & {
|
|
34
|
-
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
35
34
|
order: number;
|
|
35
|
+
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
36
36
|
apDate: Date;
|
|
37
37
|
amount: number;
|
|
38
38
|
__v?: number;
|
|
@@ -45,8 +45,8 @@ export declare const allSchemas: {
|
|
|
45
45
|
createdAt: NativeDate;
|
|
46
46
|
updatedAt: NativeDate;
|
|
47
47
|
} & {
|
|
48
|
-
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
49
48
|
order: number;
|
|
49
|
+
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
50
50
|
apDate: Date;
|
|
51
51
|
amount: number;
|
|
52
52
|
__v?: number;
|
|
@@ -59,8 +59,8 @@ export declare const allSchemas: {
|
|
|
59
59
|
createdAt: NativeDate;
|
|
60
60
|
updatedAt: NativeDate;
|
|
61
61
|
} & {
|
|
62
|
-
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
63
62
|
order: number;
|
|
63
|
+
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
64
64
|
apDate: Date;
|
|
65
65
|
amount: number;
|
|
66
66
|
__v?: number;
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ export declare class ComplianceBorrowersService {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
getFullComplianceBorrowerById(complianceBorrowerId: string): Promise<any>;
|
|
48
|
-
getAllBorrowersShortened(userAccess: IUserAccess): Promise<(Pick<IComplianceBorrowerDocument, "
|
|
48
|
+
getAllBorrowersShortened(userAccess: IUserAccess): Promise<(Pick<IComplianceBorrowerDocument, "borrower" | "fundingStatus" | "items"> | {
|
|
49
49
|
items: {
|
|
50
50
|
instances: any[];
|
|
51
51
|
item: import("../models/ComplianceItem.model").IComplianceItemDocument;
|
|
@@ -155,7 +155,7 @@ export declare class LoanTransactionsService {
|
|
|
155
155
|
getTransactionReport(transactionIds: string[], borrowerId: string, effectiveDate: Date): Promise<{
|
|
156
156
|
transactionIdsToMark: any[];
|
|
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<{
|