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.
@@ -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;
@@ -20,6 +20,7 @@ function convertNumberToString(obj) {
20
20
  return newObj;
21
21
  }
22
22
  class IQuickbooksUploadItem {
23
+ uiId = '';
23
24
  accountCode = '';
24
25
  fullName = '';
25
26
  description = '';
@@ -18,6 +18,7 @@ function convertNumberToString(obj: Object): Object {
18
18
 
19
19
  export class IQuickbooksUploadItem implements IQuickbooksAccount {
20
20
 
21
+ uiId: string = '';
21
22
  accountCode: string = '';
22
23
  fullName: string = '';
23
24
  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
  },
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.185",
3
+ "version": "1.4.187",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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, "items" | "borrower" | "fundingStatus"> | {
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 | Date | string[])[];
158
+ [x: string]: (string | number | string[] | Date)[];
159
159
  }[];
160
160
  }>;
161
161
  getBorrowerIdsForFile(transactionFileId: string): Promise<{