@royalinvest/dto 0.71.8 → 0.71.9

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.
@@ -235,6 +235,7 @@ export interface ICreditCheckForDashboard {
235
235
  inquiries: number;
236
236
  trades: number;
237
237
  flags?: string[];
238
+ creditCheckOutput: ICreditCheckOutput;
238
239
  report_json_url?: string;
239
240
  raw_xml_url?: string;
240
241
  reason_codes?: TReason[];
@@ -284,3 +285,181 @@ export interface ICreditCheckError {
284
285
  error_message: string;
285
286
  bureau_reference_id?: string;
286
287
  }
288
+ export declare enum LegalTypeEnum {
289
+ judgment = "judgment",
290
+ tax = "tax",
291
+ garnishment = "garnishment",
292
+ foreclosure = "foreclosure",
293
+ marital = "marital",
294
+ other = "other"
295
+ }
296
+ export interface ICreditCheckOutput {
297
+ subject_id: string;
298
+ bureau_reference_id: string;
299
+ found: boolean;
300
+ score: number;
301
+ fileSinceDate?: Date | null;
302
+ dateOfLastActivity?: Date | null;
303
+ dateOfRequest?: Date | null;
304
+ hitCode?: string;
305
+ hitCodeDescription?: string;
306
+ hitStrengthIndicator?: {
307
+ code?: string;
308
+ description?: string;
309
+ };
310
+ subjectName?: {
311
+ firstName?: string;
312
+ lastName?: string;
313
+ };
314
+ dateOfBirth?: Date | null;
315
+ customerReferenceNumber?: string;
316
+ customerNumber?: string;
317
+ inquiryType?: string;
318
+ languageIndicator?: string;
319
+ outputFormatCode?: string;
320
+ protocol?: string;
321
+ addresses?: ICreditCheckAddress[];
322
+ employments?: ICreditCheckEmployment[];
323
+ otherNames?: ICreditCheckOtherName[];
324
+ trades?: ICreditCheckTrade[];
325
+ bankruptcies?: ICreditCheckBankruptcy[];
326
+ collections?: ICreditCheckCollection[];
327
+ inquiries?: ICreditCheckInquiry[];
328
+ legals?: ICreditCheckLegal[];
329
+ alerts?: ICreditCheckAlerts;
330
+ specialServices?: ICreditCheckSpecialService[];
331
+ scores?: ICreditCheckScore[];
332
+ disputes_count?: number;
333
+ locked?: boolean;
334
+ locked_reason?: string;
335
+ }
336
+ export interface ICreditCheckOtherName {
337
+ type: string;
338
+ firstName?: string;
339
+ lastName?: string;
340
+ }
341
+ export interface ICreditCheckScore {
342
+ productType?: string;
343
+ productId?: string;
344
+ description?: string;
345
+ versionNumber?: string;
346
+ modelId?: string;
347
+ scoreNumber?: string;
348
+ scoreIndicator?: string;
349
+ value?: number | null;
350
+ reasons?: ICreditCheckScoreReason[];
351
+ }
352
+ export interface ICreditCheckScoreReason {
353
+ code?: string;
354
+ description?: string;
355
+ }
356
+ export interface ICreditCheckSpecialService {
357
+ code?: string;
358
+ description?: string;
359
+ dateReported: Date | null;
360
+ memberCode?: string;
361
+ memberName?: string;
362
+ phone?: string;
363
+ }
364
+ export interface ICreditCheckAddress {
365
+ type: string;
366
+ street: string;
367
+ city: string;
368
+ province: string;
369
+ postal: string;
370
+ dateReported: Date | null;
371
+ updateSource?: {
372
+ code?: string;
373
+ description?: string;
374
+ };
375
+ }
376
+ export interface ICreditCheckTrade {
377
+ account: string;
378
+ type: string;
379
+ creditorName?: string;
380
+ creditorCode?: string;
381
+ creditorPhone?: string;
382
+ association?: string;
383
+ balance: number;
384
+ creditLimit?: number;
385
+ highCredit?: number;
386
+ paymentAmount?: number;
387
+ pastDue?: number;
388
+ monthsReviewed?: number;
389
+ dateReported?: Date | null;
390
+ dateOpened: Date | null;
391
+ dateOfLastActivity?: Date | null;
392
+ paymentRate?: {
393
+ code?: string;
394
+ description?: string;
395
+ };
396
+ paymentConsistencyPercentage?: number;
397
+ missedPaymentsCount?: number;
398
+ delinquency30Count?: number;
399
+ delinquency60Count?: number;
400
+ delinquency90Count?: number;
401
+ previousHighPaymentRates?: Array<{
402
+ code?: string;
403
+ description?: string;
404
+ date?: Date | null;
405
+ }>;
406
+ narratives?: string[];
407
+ updateSource?: {
408
+ code?: string;
409
+ description?: string;
410
+ };
411
+ }
412
+ export interface ICreditCheckEmployment {
413
+ type: string;
414
+ employer?: string;
415
+ occupation?: string;
416
+ }
417
+ export interface ICreditCheckBankruptcy {
418
+ dateReported: Date | null;
419
+ courtCode?: string;
420
+ courtName?: string;
421
+ caseNumberAndTrustee?: string;
422
+ type?: string;
423
+ intentOrDisposition?: string;
424
+ liabilityAmount?: number;
425
+ assetAmount?: number;
426
+ narratives?: string[];
427
+ }
428
+ export interface ICreditCheckCollection {
429
+ type?: string;
430
+ creditorName?: string;
431
+ agencyName?: string;
432
+ agencyCode?: string;
433
+ account?: string;
434
+ amount?: number;
435
+ balance?: number;
436
+ dateReported?: Date | null;
437
+ lastPaymentDate?: Date | null;
438
+ reason?: string;
439
+ narratives?: string[];
440
+ }
441
+ export interface ICreditCheckInquiry {
442
+ date: Date | null;
443
+ isSoft?: boolean;
444
+ memberCode?: string;
445
+ memberName?: string;
446
+ phone?: string;
447
+ inquiryType?: string;
448
+ impactOnScore?: string;
449
+ source?: string;
450
+ reference?: string;
451
+ }
452
+ export interface ICreditCheckLegal {
453
+ type: LegalTypeEnum;
454
+ dateReported: Date;
455
+ amount?: number;
456
+ court?: string;
457
+ }
458
+ export interface ICreditCheckAlerts {
459
+ idMismatchAlertsCount: number;
460
+ enhancedIdMismatchAlertsCount: number;
461
+ alertMessages: {
462
+ code: number;
463
+ message: string;
464
+ }[];
465
+ }
@@ -1,3 +1,14 @@
1
1
  "use strict";
2
2
  // Credit Check
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LegalTypeEnum = void 0;
5
+ // Credit check details
6
+ var LegalTypeEnum;
7
+ (function (LegalTypeEnum) {
8
+ LegalTypeEnum["judgment"] = "judgment";
9
+ LegalTypeEnum["tax"] = "tax";
10
+ LegalTypeEnum["garnishment"] = "garnishment";
11
+ LegalTypeEnum["foreclosure"] = "foreclosure";
12
+ LegalTypeEnum["marital"] = "marital";
13
+ LegalTypeEnum["other"] = "other";
14
+ })(LegalTypeEnum || (exports.LegalTypeEnum = LegalTypeEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalinvest/dto",
3
- "version": "0.71.8",
3
+ "version": "0.71.9",
4
4
  "description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",