@lendi/act-credit-decisions-transform 1.9.5 → 1.9.7

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/lib/logger.d.ts CHANGED
@@ -1 +1,4 @@
1
- export declare const logger: import("@lendi/logging").Logger;
1
+ export declare const logger: import("pino").Logger<{
2
+ name: string;
3
+ messageKey: string;
4
+ }>;
package/lib/logger.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.logger = void 0;
4
- const logging_1 = require("@lendi/logging");
5
- exports.logger = (0, logging_1.createLogger)({ name: 'integrations-transform', messageKey: 'message' });
4
+ const pino_1 = require("pino");
5
+ exports.logger = (0, pino_1.default)({ name: 'integrations-transform', messageKey: 'message' });
@@ -8,8 +8,8 @@ var ActionedByRole;
8
8
  (function (ActionedByRole) {
9
9
  ActionedByRole["Customer"] = "customer";
10
10
  ActionedByRole["Team"] = "team";
11
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
11
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
12
12
  var Type;
13
13
  (function (Type) {
14
14
  Type["DeleteApplicant"] = "DeleteApplicant";
15
- })(Type = exports.Type || (exports.Type = {}));
15
+ })(Type || (exports.Type = Type = {}));
@@ -13,7 +13,7 @@ var ApplicationStage;
13
13
  ApplicationStage["Settlement"] = "SETTLEMENT";
14
14
  ApplicationStage["SubmissionReview"] = "SUBMISSION_REVIEW";
15
15
  ApplicationStage["SubmittedToLender"] = "SUBMITTED_TO_LENDER";
16
- })(ApplicationStage = exports.ApplicationStage || (exports.ApplicationStage = {}));
16
+ })(ApplicationStage || (exports.ApplicationStage = ApplicationStage = {}));
17
17
  /**
18
18
  * Application status in Lendi Group Salesforce
19
19
  */
@@ -45,7 +45,7 @@ var ApplicationStatus;
45
45
  ApplicationStatus["UnconditionallyApproved"] = "UNCONDITIONALLY_APPROVED";
46
46
  ApplicationStatus["UnderReview"] = "UNDER_REVIEW";
47
47
  ApplicationStatus["WaitingOnException"] = "WAITING_ON_EXCEPTION";
48
- })(ApplicationStatus = exports.ApplicationStatus || (exports.ApplicationStatus = {}));
48
+ })(ApplicationStatus || (exports.ApplicationStatus = ApplicationStatus = {}));
49
49
  /**
50
50
  * Intention for applying a loan
51
51
  */
@@ -69,7 +69,7 @@ var ConfirmedPrimaryPurpose;
69
69
  ConfirmedPrimaryPurpose["TopUp"] = "TOP_UP";
70
70
  ConfirmedPrimaryPurpose["Unknown"] = "UNKNOWN";
71
71
  ConfirmedPrimaryPurpose["Variation"] = "VARIATION";
72
- })(ConfirmedPrimaryPurpose = exports.ConfirmedPrimaryPurpose || (exports.ConfirmedPrimaryPurpose = {}));
72
+ })(ConfirmedPrimaryPurpose || (exports.ConfirmedPrimaryPurpose = ConfirmedPrimaryPurpose = {}));
73
73
  /**
74
74
  * Opportunity stage name. This is a legacy field and will be deprecated after Lendi Group
75
75
  * salesforce goes live
@@ -99,7 +99,7 @@ var Stage;
99
99
  Stage["Settlement"] = "SETTLEMENT";
100
100
  Stage["Submitted"] = "SUBMITTED";
101
101
  Stage["Unknown"] = "UNKNOWN";
102
- })(Stage = exports.Stage || (exports.Stage = {}));
102
+ })(Stage || (exports.Stage = Stage = {}));
103
103
  /**
104
104
  * Opportunity status. This is a legacy field and will be deprecated after Lendi Group
105
105
  * salesforce goes live
@@ -165,8 +165,8 @@ var Status;
165
165
  Status["SubmittedToLender"] = "SUBMITTED_TO_LENDER";
166
166
  Status["UnconditionalApproval"] = "UNCONDITIONAL_APPROVAL";
167
167
  Status["Unknown"] = "UNKNOWN";
168
- })(Status = exports.Status || (exports.Status = {}));
168
+ })(Status || (exports.Status = Status = {}));
169
169
  var Type;
170
170
  (function (Type) {
171
171
  Type["ApplicationWorkflowUpdated"] = "ApplicationWorkflowUpdated";
172
- })(Type = exports.Type || (exports.Type = {}));
172
+ })(Type || (exports.Type = Type = {}));
@@ -8,8 +8,8 @@ var ActionedByRole;
8
8
  (function (ActionedByRole) {
9
9
  ActionedByRole["Customer"] = "customer";
10
10
  ActionedByRole["Team"] = "team";
11
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
11
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
12
12
  var Type;
13
13
  (function (Type) {
14
14
  Type["AssetDeleted"] = "AssetDeleted";
15
- })(Type = exports.Type || (exports.Type = {}));
15
+ })(Type || (exports.Type = Type = {}));
@@ -8,8 +8,8 @@ var ActionedByRole;
8
8
  (function (ActionedByRole) {
9
9
  ActionedByRole["Customer"] = "customer";
10
10
  ActionedByRole["Team"] = "team";
11
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
11
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
12
12
  var Type;
13
13
  (function (Type) {
14
14
  Type["AssetAndLiabilityRelationDeleted"] = "AssetAndLiabilityRelationDeleted";
15
- })(Type = exports.Type || (exports.Type = {}));
15
+ })(Type || (exports.Type = Type = {}));
@@ -7,9 +7,9 @@ exports.Type = exports.Source = void 0;
7
7
  var Source;
8
8
  (function (Source) {
9
9
  Source["Equifax"] = "equifax";
10
- })(Source = exports.Source || (exports.Source = {}));
10
+ })(Source || (exports.Source = Source = {}));
11
11
  var Type;
12
12
  (function (Type) {
13
13
  Type["CreditReportNoMatch"] = "CreditReportNoMatch";
14
14
  Type["CreditReportRetrieved"] = "CreditReportRetrieved";
15
- })(Type = exports.Type || (exports.Type = {}));
15
+ })(Type || (exports.Type = Type = {}));
@@ -4,4 +4,4 @@ exports.Type = void 0;
4
4
  var Type;
5
5
  (function (Type) {
6
6
  Type["EmploymentDeleted"] = "EmploymentDeleted";
7
- })(Type = exports.Type || (exports.Type = {}));
7
+ })(Type || (exports.Type = Type = {}));
@@ -4,4 +4,4 @@ exports.Type = void 0;
4
4
  var Type;
5
5
  (function (Type) {
6
6
  Type["ExpenseDeleted"] = "ExpenseDeleted";
7
- })(Type = exports.Type || (exports.Type = {}));
7
+ })(Type || (exports.Type = Type = {}));
@@ -9,7 +9,7 @@ var Category;
9
9
  Category["Fee"] = "Fee";
10
10
  Category["Other"] = "Other";
11
11
  Category["Purchase"] = "Purchase";
12
- })(Category = exports.Category || (exports.Category = {}));
12
+ })(Category || (exports.Category = Category = {}));
13
13
  /**
14
14
  * Detail type
15
15
  */
@@ -25,10 +25,10 @@ var DetailType;
25
25
  DetailType["PurchaseStampDuty"] = "Purchase Stamp Duty";
26
26
  DetailType["RegistrationFee"] = "Registration Fee";
27
27
  DetailType["TransferFee"] = "Transfer Fee";
28
- })(DetailType = exports.DetailType || (exports.DetailType = {}));
28
+ })(DetailType || (exports.DetailType = DetailType = {}));
29
29
  var Type;
30
30
  (function (Type) {
31
31
  Type["FundingPositionCreated"] = "FundingPositionCreated";
32
32
  Type["FundingPositionMigrated"] = "FundingPositionMigrated";
33
33
  Type["FundingPositionUpdated"] = "FundingPositionUpdated";
34
- })(Type = exports.Type || (exports.Type = {}));
34
+ })(Type || (exports.Type = Type = {}));
@@ -8,8 +8,8 @@ var ActionedByRole;
8
8
  (function (ActionedByRole) {
9
9
  ActionedByRole["Customer"] = "customer";
10
10
  ActionedByRole["Team"] = "team";
11
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
11
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
12
12
  var Type;
13
13
  (function (Type) {
14
14
  Type["IncomeDeleted"] = "IncomeDeleted";
15
- })(Type = exports.Type || (exports.Type = {}));
15
+ })(Type || (exports.Type = Type = {}));
@@ -4,4 +4,4 @@ exports.Type = void 0;
4
4
  var Type;
5
5
  (function (Type) {
6
6
  Type["LiabilityDeleted"] = "LiabilityDeleted";
7
- })(Type = exports.Type || (exports.Type = {}));
7
+ })(Type || (exports.Type = Type = {}));
@@ -10,7 +10,7 @@ var Brand;
10
10
  Brand["DomainVariation"] = "domain variation";
11
11
  Brand["Lendi"] = "lendi";
12
12
  Brand["LendiVariation"] = "lendi variation";
13
- })(Brand = exports.Brand || (exports.Brand = {}));
13
+ })(Brand || (exports.Brand = Brand = {}));
14
14
  /**
15
15
  * Opportunity Stage Name
16
16
  */
@@ -38,10 +38,10 @@ var Stage;
38
38
  Stage["Settled"] = "Settled";
39
39
  Stage["Settlement"] = "Settlement";
40
40
  Stage["Submitted"] = "Submitted";
41
- })(Stage = exports.Stage || (exports.Stage = {}));
41
+ })(Stage || (exports.Stage = Stage = {}));
42
42
  var Type;
43
43
  (function (Type) {
44
44
  Type["OpportunityCreated"] = "OpportunityCreated";
45
45
  Type["OpportunityMigrated"] = "OpportunityMigrated";
46
46
  Type["OpportunityUpdated"] = "OpportunityUpdated";
47
- })(Type = exports.Type || (exports.Type = {}));
47
+ })(Type || (exports.Type = Type = {}));
@@ -6,7 +6,7 @@ var ApplicantType;
6
6
  ApplicantType["Borrower"] = "BORROWER";
7
7
  ApplicantType["BorrowerAndGuarantor"] = "BORROWER_AND_GUARANTOR";
8
8
  ApplicantType["Guarantor"] = "GUARANTOR";
9
- })(ApplicantType = exports.ApplicantType || (exports.ApplicantType = {}));
9
+ })(ApplicantType || (exports.ApplicantType = ApplicantType = {}));
10
10
  var Countries;
11
11
  (function (Countries) {
12
12
  Countries["Afghanistan"] = "Afghanistan";
@@ -248,21 +248,21 @@ var Countries;
248
248
  Countries["Yemen"] = "Yemen";
249
249
  Countries["Zambia"] = "Zambia";
250
250
  Countries["Zimbabwe"] = "Zimbabwe";
251
- })(Countries = exports.Countries || (exports.Countries = {}));
251
+ })(Countries || (exports.Countries = Countries = {}));
252
252
  var CompanyStructure;
253
253
  (function (CompanyStructure) {
254
254
  CompanyStructure["Corporation"] = "CORPORATION";
255
255
  CompanyStructure["Partnership"] = "PARTNERSHIP";
256
256
  CompanyStructure["SoleTrader"] = "SOLE_TRADER";
257
257
  CompanyStructure["Trust"] = "TRUST";
258
- })(CompanyStructure = exports.CompanyStructure || (exports.CompanyStructure = {}));
258
+ })(CompanyStructure || (exports.CompanyStructure = CompanyStructure = {}));
259
259
  var CompanyType;
260
260
  (function (CompanyType) {
261
261
  CompanyType["Incorporated"] = "INCORPORATED";
262
262
  CompanyType["Ltd"] = "LTD";
263
263
  CompanyType["Nl"] = "NL";
264
264
  CompanyType["PtyLtd"] = "PTY_LTD";
265
- })(CompanyType = exports.CompanyType || (exports.CompanyType = {}));
265
+ })(CompanyType || (exports.CompanyType = CompanyType = {}));
266
266
  var HousingStatusList;
267
267
  (function (HousingStatusList) {
268
268
  HousingStatusList["Boarding"] = "Boarding";
@@ -273,7 +273,7 @@ var HousingStatusList;
273
273
  HousingStatusList["Renting"] = "Renting";
274
274
  HousingStatusList["SuppliedByEmployer"] = "Supplied by Employer";
275
275
  HousingStatusList["WithParents"] = "With Parents";
276
- })(HousingStatusList = exports.HousingStatusList || (exports.HousingStatusList = {}));
276
+ })(HousingStatusList || (exports.HousingStatusList = HousingStatusList = {}));
277
277
  /**
278
278
  * current credit status of the applicant (Customer declared value)
279
279
  */
@@ -283,7 +283,7 @@ var CreditStatus;
283
283
  CreditStatus["Excellent"] = "EXCELLENT";
284
284
  CreditStatus["Fair"] = "FAIR";
285
285
  CreditStatus["Unknown"] = "UNKNOWN";
286
- })(CreditStatus = exports.CreditStatus || (exports.CreditStatus = {}));
286
+ })(CreditStatus || (exports.CreditStatus = CreditStatus = {}));
287
287
  /**
288
288
  * applicant's employment type
289
289
  */
@@ -292,7 +292,7 @@ var EmploymentType;
292
292
  EmploymentType["Employee"] = "EMPLOYEE";
293
293
  EmploymentType["SelfEmployed"] = "SELF_EMPLOYED";
294
294
  EmploymentType["Unknown"] = "UNKNOWN";
295
- })(EmploymentType = exports.EmploymentType || (exports.EmploymentType = {}));
295
+ })(EmploymentType || (exports.EmploymentType = EmploymentType = {}));
296
296
  /**
297
297
  * applicant's entity. For a person applicant this is 'PERSON'
298
298
  */
@@ -301,14 +301,14 @@ var Entity;
301
301
  Entity["Company"] = "COMPANY";
302
302
  Entity["Person"] = "PERSON";
303
303
  Entity["Trust"] = "TRUST";
304
- })(Entity = exports.Entity || (exports.Entity = {}));
304
+ })(Entity || (exports.Entity = Entity = {}));
305
305
  var Gender;
306
306
  (function (Gender) {
307
307
  Gender["Female"] = "FEMALE";
308
308
  Gender["Male"] = "MALE";
309
309
  Gender["Undisclosed"] = "UNDISCLOSED";
310
310
  Gender["Unknown"] = "UNKNOWN";
311
- })(Gender = exports.Gender || (exports.Gender = {}));
311
+ })(Gender || (exports.Gender = Gender = {}));
312
312
  /**
313
313
  * The relationship between borrower and guarantor.
314
314
  */
@@ -323,7 +323,7 @@ var GuarantorRelationshipToBorrowerType;
323
323
  GuarantorRelationshipToBorrowerType["Sister"] = "Sister";
324
324
  GuarantorRelationshipToBorrowerType["Son"] = "Son";
325
325
  GuarantorRelationshipToBorrowerType["Spouse"] = "Spouse";
326
- })(GuarantorRelationshipToBorrowerType = exports.GuarantorRelationshipToBorrowerType || (exports.GuarantorRelationshipToBorrowerType = {}));
326
+ })(GuarantorRelationshipToBorrowerType || (exports.GuarantorRelationshipToBorrowerType = GuarantorRelationshipToBorrowerType = {}));
327
327
  /**
328
328
  * different invitation statuses an applicant can have
329
329
  */
@@ -333,13 +333,13 @@ var InvitationStatus;
333
333
  InvitationStatus["Cancelled"] = "CANCELLED";
334
334
  InvitationStatus["Expired"] = "EXPIRED";
335
335
  InvitationStatus["Pending"] = "PENDING";
336
- })(InvitationStatus = exports.InvitationStatus || (exports.InvitationStatus = {}));
336
+ })(InvitationStatus || (exports.InvitationStatus = InvitationStatus = {}));
337
337
  var YesNoIntend;
338
338
  (function (YesNoIntend) {
339
339
  YesNoIntend["Intend"] = "Intend";
340
340
  YesNoIntend["No"] = "No";
341
341
  YesNoIntend["Yes"] = "Yes";
342
- })(YesNoIntend = exports.YesNoIntend || (exports.YesNoIntend = {}));
342
+ })(YesNoIntend || (exports.YesNoIntend = YesNoIntend = {}));
343
343
  var MaritalStatus;
344
344
  (function (MaritalStatus) {
345
345
  MaritalStatus["DeFacto"] = "DE_FACTO";
@@ -347,7 +347,7 @@ var MaritalStatus;
347
347
  MaritalStatus["Married"] = "MARRIED";
348
348
  MaritalStatus["Single"] = "SINGLE";
349
349
  MaritalStatus["Unknown"] = "UNKNOWN";
350
- })(MaritalStatus = exports.MaritalStatus || (exports.MaritalStatus = {}));
350
+ })(MaritalStatus || (exports.MaritalStatus = MaritalStatus = {}));
351
351
  /**
352
352
  * role of the user that made the action
353
353
  */
@@ -355,7 +355,7 @@ var ActionedByRole;
355
355
  (function (ActionedByRole) {
356
356
  ActionedByRole["Customer"] = "customer";
357
357
  ActionedByRole["Team"] = "team";
358
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
358
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
359
359
  var AustralianStates;
360
360
  (function (AustralianStates) {
361
361
  AustralianStates["Act"] = "ACT";
@@ -366,14 +366,14 @@ var AustralianStates;
366
366
  AustralianStates["Tas"] = "TAS";
367
367
  AustralianStates["Vic"] = "VIC";
368
368
  AustralianStates["Wa"] = "WA";
369
- })(AustralianStates = exports.AustralianStates || (exports.AustralianStates = {}));
369
+ })(AustralianStates || (exports.AustralianStates = AustralianStates = {}));
370
370
  var ResidencyStatus;
371
371
  (function (ResidencyStatus) {
372
372
  ResidencyStatus["AustralianCitizen"] = "AUSTRALIAN_CITIZEN";
373
373
  ResidencyStatus["PermanentResident"] = "PERMANENT_RESIDENT";
374
374
  ResidencyStatus["TemporaryResident"] = "TEMPORARY_RESIDENT";
375
375
  ResidencyStatus["Unknown"] = "UNKNOWN";
376
- })(ResidencyStatus = exports.ResidencyStatus || (exports.ResidencyStatus = {}));
376
+ })(ResidencyStatus || (exports.ResidencyStatus = ResidencyStatus = {}));
377
377
  var Title;
378
378
  (function (Title) {
379
379
  Title["DR"] = "DR";
@@ -382,7 +382,7 @@ var Title;
382
382
  Title["Mr"] = "MR";
383
383
  Title["Mrs"] = "MRS";
384
384
  Title["Unknown"] = "UNKNOWN";
385
- })(Title = exports.Title || (exports.Title = {}));
385
+ })(Title || (exports.Title = Title = {}));
386
386
  var TrustType;
387
387
  (function (TrustType) {
388
388
  TrustType["CashManagementTrust"] = "CASH_MANAGEMENT_TRUST";
@@ -393,7 +393,7 @@ var TrustType;
393
393
  TrustType["SimpleOrBare"] = "SIMPLE_OR_BARE";
394
394
  TrustType["SuperannuationTrusts"] = "SUPERANNUATION_TRUSTS";
395
395
  TrustType["Unit"] = "UNIT";
396
- })(TrustType = exports.TrustType || (exports.TrustType = {}));
396
+ })(TrustType || (exports.TrustType = TrustType = {}));
397
397
  var YearsOfTrading;
398
398
  (function (YearsOfTrading) {
399
399
  YearsOfTrading["The1"] = "1";
@@ -403,9 +403,9 @@ var YearsOfTrading;
403
403
  YearsOfTrading["The4"] = "4";
404
404
  YearsOfTrading["The5"] = "5";
405
405
  YearsOfTrading["The510"] = "5-10";
406
- })(YearsOfTrading = exports.YearsOfTrading || (exports.YearsOfTrading = {}));
406
+ })(YearsOfTrading || (exports.YearsOfTrading = YearsOfTrading = {}));
407
407
  var Type;
408
408
  (function (Type) {
409
409
  Type["CreateApplicant"] = "CreateApplicant";
410
410
  Type["UpdateApplicant"] = "UpdateApplicant";
411
- })(Type = exports.Type || (exports.Type = {}));
411
+ })(Type || (exports.Type = Type = {}));
@@ -8,7 +8,7 @@ var Brand;
8
8
  Brand["DomainVariation"] = "domain variation";
9
9
  Brand["Lendi"] = "lendi";
10
10
  Brand["LendiVariation"] = "lendi variation";
11
- })(Brand = exports.Brand || (exports.Brand = {}));
11
+ })(Brand || (exports.Brand = Brand = {}));
12
12
  /**
13
13
  * Additional data point for broker to capture primary purpose, other than the preliminary
14
14
  * primary purpose associated with current user journey for new purchase or refinance
@@ -30,7 +30,7 @@ var BrokerPrimaryPurpose;
30
30
  BrokerPrimaryPurpose["Variation"] = "VARIATION";
31
31
  BrokerPrimaryPurpose["VariationCreditCritical"] = "VARIATION_CREDIT_CRITICAL";
32
32
  BrokerPrimaryPurpose["VariationNonCreditCritical"] = "VARIATION_NON_CREDIT_CRITICAL";
33
- })(BrokerPrimaryPurpose = exports.BrokerPrimaryPurpose || (exports.BrokerPrimaryPurpose = {}));
33
+ })(BrokerPrimaryPurpose || (exports.BrokerPrimaryPurpose = BrokerPrimaryPurpose = {}));
34
34
  /**
35
35
  * role of the user that made the action
36
36
  */
@@ -38,18 +38,18 @@ var ActionedByRole;
38
38
  (function (ActionedByRole) {
39
39
  ActionedByRole["Customer"] = "customer";
40
40
  ActionedByRole["Team"] = "team";
41
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
41
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
42
42
  var ContributionType;
43
43
  (function (ContributionType) {
44
44
  ContributionType["Deposit"] = "DEPOSIT";
45
- })(ContributionType = exports.ContributionType || (exports.ContributionType = {}));
45
+ })(ContributionType || (exports.ContributionType = ContributionType = {}));
46
46
  var DesiredFeature;
47
47
  (function (DesiredFeature) {
48
48
  DesiredFeature["FixedRate"] = "FIXED_RATE";
49
49
  DesiredFeature["MajorLender"] = "MAJOR_LENDER";
50
50
  DesiredFeature["MobileApp"] = "MOBILE_APP";
51
51
  DesiredFeature["OffsetOrRedraw"] = "OFFSET_OR_REDRAW";
52
- })(DesiredFeature = exports.DesiredFeature || (exports.DesiredFeature = {}));
52
+ })(DesiredFeature || (exports.DesiredFeature = DesiredFeature = {}));
53
53
  /**
54
54
  * First Home Owner Grant
55
55
  */
@@ -58,46 +58,46 @@ var EligibleForFHOG;
58
58
  EligibleForFHOG["No"] = "NO";
59
59
  EligibleForFHOG["NotSure"] = "NOT_SURE";
60
60
  EligibleForFHOG["Yes"] = "YES";
61
- })(EligibleForFHOG = exports.EligibleForFHOG || (exports.EligibleForFHOG = {}));
61
+ })(EligibleForFHOG || (exports.EligibleForFHOG = EligibleForFHOG = {}));
62
62
  var PaymentType;
63
63
  (function (PaymentType) {
64
64
  PaymentType["InterestOnly"] = "INTEREST_ONLY";
65
65
  PaymentType["PrincipalAndInterest"] = "PRINCIPAL_AND_INTEREST";
66
66
  PaymentType["StillDeciding"] = "STILL_DECIDING";
67
- })(PaymentType = exports.PaymentType || (exports.PaymentType = {}));
67
+ })(PaymentType || (exports.PaymentType = PaymentType = {}));
68
68
  var PrimaryPurpose;
69
69
  (function (PrimaryPurpose) {
70
70
  PrimaryPurpose["NewPurchase"] = "NEW_PURCHASE";
71
71
  PrimaryPurpose["Refinance"] = "REFINANCE";
72
- })(PrimaryPurpose = exports.PrimaryPurpose || (exports.PrimaryPurpose = {}));
72
+ })(PrimaryPurpose || (exports.PrimaryPurpose = PrimaryPurpose = {}));
73
73
  var PurchaseReason;
74
74
  (function (PurchaseReason) {
75
75
  PurchaseReason["LoanAffordability"] = "LOAN_AFFORDABILITY";
76
76
  PurchaseReason["LoanApproval"] = "LOAN_APPROVAL";
77
77
  PurchaseReason["LoanEligibility"] = "LOAN_ELIGIBILITY";
78
- })(PurchaseReason = exports.PurchaseReason || (exports.PurchaseReason = {}));
78
+ })(PurchaseReason || (exports.PurchaseReason = PurchaseReason = {}));
79
79
  var PurchaseSituation;
80
80
  (function (PurchaseSituation) {
81
81
  PurchaseSituation["BuyingSoon"] = "BUYING_SOON";
82
82
  PurchaseSituation["ContractsExchanged"] = "CONTRACTS_EXCHANGED";
83
83
  PurchaseSituation["ExploringOptions"] = "EXPLORING_OPTIONS";
84
84
  PurchaseSituation["OfferMade"] = "OFFER_MADE";
85
- })(PurchaseSituation = exports.PurchaseSituation || (exports.PurchaseSituation = {}));
85
+ })(PurchaseSituation || (exports.PurchaseSituation = PurchaseSituation = {}));
86
86
  var RefinancingReason;
87
87
  (function (RefinancingReason) {
88
88
  RefinancingReason["ConsolidateCashout"] = "CONSOLIDATE_CASHOUT";
89
89
  RefinancingReason["Construction"] = "CONSTRUCTION";
90
90
  RefinancingReason["DecreaseRepayments"] = "DECREASE_REPAYMENTS";
91
91
  RefinancingReason["FasterPayoff"] = "FASTER_PAYOFF";
92
- })(RefinancingReason = exports.RefinancingReason || (exports.RefinancingReason = {}));
92
+ })(RefinancingReason || (exports.RefinancingReason = RefinancingReason = {}));
93
93
  var Urgency;
94
94
  (function (Urgency) {
95
95
  Urgency["NotUrgent"] = "NOT_URGENT";
96
96
  Urgency["Urgent"] = "URGENT";
97
- })(Urgency = exports.Urgency || (exports.Urgency = {}));
97
+ })(Urgency || (exports.Urgency = Urgency = {}));
98
98
  var PublicApplicationType;
99
99
  (function (PublicApplicationType) {
100
100
  PublicApplicationType["CreateApplication"] = "CreateApplication";
101
101
  PublicApplicationType["MigrateApplication"] = "MigrateApplication";
102
102
  PublicApplicationType["UpdateApplication"] = "UpdateApplication";
103
- })(PublicApplicationType = exports.PublicApplicationType || (exports.PublicApplicationType = {}));
103
+ })(PublicApplicationType || (exports.PublicApplicationType = PublicApplicationType = {}));
@@ -8,8 +8,8 @@ var ActionedByRole;
8
8
  (function (ActionedByRole) {
9
9
  ActionedByRole["Customer"] = "customer";
10
10
  ActionedByRole["Team"] = "team";
11
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
11
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
12
12
  var Type;
13
13
  (function (Type) {
14
14
  Type["AssetAndLiabilityRelationCreated"] = "AssetAndLiabilityRelationCreated";
15
- })(Type = exports.Type || (exports.Type = {}));
15
+ })(Type || (exports.Type = Type = {}));
@@ -242,18 +242,18 @@ var Countries;
242
242
  Countries["Yemen"] = "Yemen";
243
243
  Countries["Zambia"] = "Zambia";
244
244
  Countries["Zimbabwe"] = "Zimbabwe";
245
- })(Countries = exports.Countries || (exports.Countries = {}));
245
+ })(Countries || (exports.Countries = Countries = {}));
246
246
  var BuilderType;
247
247
  (function (BuilderType) {
248
248
  BuilderType["LicensedBuilder"] = "LICENSED_BUILDER";
249
249
  BuilderType["OwnerBuilder"] = "OWNER_BUILDER";
250
- })(BuilderType = exports.BuilderType || (exports.BuilderType = {}));
250
+ })(BuilderType || (exports.BuilderType = BuilderType = {}));
251
251
  var ConstructionType;
252
252
  (function (ConstructionType) {
253
253
  ConstructionType["BuildAProperty"] = "BUILD_A_PROPERTY";
254
254
  ConstructionType["KnockdownRebuild"] = "KNOCKDOWN_REBUILD";
255
255
  ConstructionType["StructuralRenovations"] = "STRUCTURAL_RENOVATIONS";
256
- })(ConstructionType = exports.ConstructionType || (exports.ConstructionType = {}));
256
+ })(ConstructionType || (exports.ConstructionType = ConstructionType = {}));
257
257
  /**
258
258
  * Indicate whether ownership proportions are equal, specified individually for each one or
259
259
  * not specified.
@@ -263,12 +263,12 @@ var Proportions;
263
263
  Proportions["Equal"] = "EQUAL";
264
264
  Proportions["NotSpecified"] = "NOT_SPECIFIED";
265
265
  Proportions["Specified"] = "SPECIFIED";
266
- })(Proportions = exports.Proportions || (exports.Proportions = {}));
266
+ })(Proportions || (exports.Proportions = Proportions = {}));
267
267
  var PrimaryPurpose;
268
268
  (function (PrimaryPurpose) {
269
269
  PrimaryPurpose["Investment"] = "INVESTMENT";
270
270
  PrimaryPurpose["OwnerOccupied"] = "OWNER_OCCUPIED";
271
- })(PrimaryPurpose = exports.PrimaryPurpose || (exports.PrimaryPurpose = {}));
271
+ })(PrimaryPurpose || (exports.PrimaryPurpose = PrimaryPurpose = {}));
272
272
  var Frequency;
273
273
  (function (Frequency) {
274
274
  Frequency["Fortnightly"] = "FORTNIGHTLY";
@@ -276,21 +276,21 @@ var Frequency;
276
276
  Frequency["Quarterly"] = "QUARTERLY";
277
277
  Frequency["Weekly"] = "WEEKLY";
278
278
  Frequency["Yearly"] = "YEARLY";
279
- })(Frequency = exports.Frequency || (exports.Frequency = {}));
279
+ })(Frequency || (exports.Frequency = Frequency = {}));
280
280
  var PropertyExpenseType;
281
281
  (function (PropertyExpenseType) {
282
282
  PropertyExpenseType["BodyCorporateFeesStrataFeesAndLandTax"] = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX";
283
283
  PropertyExpenseType["InvestmentPropertyRunningCosts"] = "INVESTMENT_PROPERTY_RUNNING_COSTS";
284
284
  PropertyExpenseType["PrimaryResidenceRunningCosts"] = "PRIMARY_RESIDENCE_RUNNING_COSTS";
285
285
  PropertyExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
286
- })(PropertyExpenseType = exports.PropertyExpenseType || (exports.PropertyExpenseType = {}));
286
+ })(PropertyExpenseType || (exports.PropertyExpenseType = PropertyExpenseType = {}));
287
287
  var PropertyStatus;
288
288
  (function (PropertyStatus) {
289
289
  PropertyStatus["Established"] = "ESTABLISHED";
290
290
  PropertyStatus["NewBuilding"] = "NEW_BUILDING";
291
291
  PropertyStatus["OffThePlan"] = "OFF_THE_PLAN";
292
292
  PropertyStatus["VacantLand"] = "VACANT_LAND";
293
- })(PropertyStatus = exports.PropertyStatus || (exports.PropertyStatus = {}));
293
+ })(PropertyStatus || (exports.PropertyStatus = PropertyStatus = {}));
294
294
  var PropertyType;
295
295
  (function (PropertyType) {
296
296
  PropertyType["ApartmentUnitLessThan50M2"] = "APARTMENT_UNIT_LESS_THAN_50M2";
@@ -309,7 +309,7 @@ var PropertyType;
309
309
  PropertyType["Townhouse"] = "TOWNHOUSE";
310
310
  PropertyType["Villa"] = "VILLA";
311
311
  PropertyType["WarehouseApartment"] = "WAREHOUSE_APARTMENT";
312
- })(PropertyType = exports.PropertyType || (exports.PropertyType = {}));
312
+ })(PropertyType || (exports.PropertyType = PropertyType = {}));
313
313
  var AssetType;
314
314
  (function (AssetType) {
315
315
  AssetType["Gifts"] = "GIFTS";
@@ -322,14 +322,14 @@ var AssetType;
322
322
  AssetType["Superannuation"] = "SUPERANNUATION";
323
323
  AssetType["TermDeposit"] = "TERM_DEPOSIT";
324
324
  AssetType["Vehicle"] = "VEHICLE";
325
- })(AssetType = exports.AssetType || (exports.AssetType = {}));
325
+ })(AssetType || (exports.AssetType = AssetType = {}));
326
326
  var ZoneType;
327
327
  (function (ZoneType) {
328
328
  ZoneType["Commercial"] = "COMMERCIAL";
329
329
  ZoneType["Industrial"] = "INDUSTRIAL";
330
330
  ZoneType["Residential"] = "RESIDENTIAL";
331
331
  ZoneType["Rural"] = "RURAL";
332
- })(ZoneType = exports.ZoneType || (exports.ZoneType = {}));
332
+ })(ZoneType || (exports.ZoneType = ZoneType = {}));
333
333
  /**
334
334
  * role of the user that made the action
335
335
  */
@@ -337,7 +337,7 @@ var ActionedByRole;
337
337
  (function (ActionedByRole) {
338
338
  ActionedByRole["Customer"] = "customer";
339
339
  ActionedByRole["Team"] = "team";
340
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
340
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
341
341
  /**
342
342
  * schema version
343
343
  */
@@ -345,4 +345,4 @@ var PublicAssetType;
345
345
  (function (PublicAssetType) {
346
346
  PublicAssetType["AssetCreated"] = "AssetCreated";
347
347
  PublicAssetType["AssetUpdated"] = "AssetUpdated";
348
- })(PublicAssetType = exports.PublicAssetType || (exports.PublicAssetType = {}));
348
+ })(PublicAssetType || (exports.PublicAssetType = PublicAssetType = {}));
@@ -8,13 +8,13 @@ var EmploymentBasis;
8
8
  EmploymentBasis["FullTime"] = "FULL_TIME";
9
9
  EmploymentBasis["MaternityLeave"] = "MATERNITY_LEAVE";
10
10
  EmploymentBasis["PartTime"] = "PART_TIME";
11
- })(EmploymentBasis = exports.EmploymentBasis || (exports.EmploymentBasis = {}));
11
+ })(EmploymentBasis || (exports.EmploymentBasis = EmploymentBasis = {}));
12
12
  var EmploymentType;
13
13
  (function (EmploymentType) {
14
14
  EmploymentType["Employee"] = "EMPLOYEE";
15
15
  EmploymentType["NotWorking"] = "NOT_WORKING";
16
16
  EmploymentType["SelfEmployed"] = "SELF_EMPLOYED";
17
- })(EmploymentType = exports.EmploymentType || (exports.EmploymentType = {}));
17
+ })(EmploymentType || (exports.EmploymentType = EmploymentType = {}));
18
18
  /**
19
19
  * Employment basis after returning from maternity leave.
20
20
  */
@@ -24,7 +24,7 @@ var MaternityLeaveReturnBasis;
24
24
  MaternityLeaveReturnBasis["Contractor"] = "CONTRACTOR";
25
25
  MaternityLeaveReturnBasis["FullTime"] = "FULL_TIME";
26
26
  MaternityLeaveReturnBasis["PartTime"] = "PART_TIME";
27
- })(MaternityLeaveReturnBasis = exports.MaternityLeaveReturnBasis || (exports.MaternityLeaveReturnBasis = {}));
27
+ })(MaternityLeaveReturnBasis || (exports.MaternityLeaveReturnBasis = MaternityLeaveReturnBasis = {}));
28
28
  /**
29
29
  * role of the user that made the action
30
30
  */
@@ -32,15 +32,15 @@ var ActionedByRole;
32
32
  (function (ActionedByRole) {
33
33
  ActionedByRole["Customer"] = "customer";
34
34
  ActionedByRole["Team"] = "team";
35
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
35
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
36
36
  var PayloadType;
37
37
  (function (PayloadType) {
38
38
  PayloadType["Previous"] = "PREVIOUS";
39
39
  PayloadType["Primary"] = "PRIMARY";
40
40
  PayloadType["Secondary"] = "SECONDARY";
41
- })(PayloadType = exports.PayloadType || (exports.PayloadType = {}));
41
+ })(PayloadType || (exports.PayloadType = PayloadType = {}));
42
42
  var PublicEmploymentType;
43
43
  (function (PublicEmploymentType) {
44
44
  PublicEmploymentType["EmploymentV2Created"] = "EmploymentV2Created";
45
45
  PublicEmploymentType["EmploymentV2Updated"] = "EmploymentV2Updated";
46
- })(PublicEmploymentType = exports.PublicEmploymentType || (exports.PublicEmploymentType = {}));
46
+ })(PublicEmploymentType || (exports.PublicEmploymentType = PublicEmploymentType = {}));
@@ -8,7 +8,7 @@ var Frequency;
8
8
  Frequency["Quarterly"] = "QUARTERLY";
9
9
  Frequency["Weekly"] = "WEEKLY";
10
10
  Frequency["Yearly"] = "YEARLY";
11
- })(Frequency = exports.Frequency || (exports.Frequency = {}));
11
+ })(Frequency || (exports.Frequency = Frequency = {}));
12
12
  var ExpenseType;
13
13
  (function (ExpenseType) {
14
14
  ExpenseType["Board"] = "BOARD";
@@ -35,7 +35,7 @@ var ExpenseType;
35
35
  ExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
36
36
  ExpenseType["TelephoneInternetPayTvAndMediaStreamingSubscriptions"] = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS";
37
37
  ExpenseType["Transport"] = "TRANSPORT";
38
- })(ExpenseType = exports.ExpenseType || (exports.ExpenseType = {}));
38
+ })(ExpenseType || (exports.ExpenseType = ExpenseType = {}));
39
39
  /**
40
40
  * role of the user that made the action
41
41
  */
@@ -43,9 +43,9 @@ var ActionedByRole;
43
43
  (function (ActionedByRole) {
44
44
  ActionedByRole["Customer"] = "customer";
45
45
  ActionedByRole["Team"] = "team";
46
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
46
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
47
47
  var PublicExpenseType;
48
48
  (function (PublicExpenseType) {
49
49
  PublicExpenseType["ExpenseCreated"] = "ExpenseCreated";
50
50
  PublicExpenseType["ExpenseUpdated"] = "ExpenseUpdated";
51
- })(PublicExpenseType = exports.PublicExpenseType || (exports.PublicExpenseType = {}));
51
+ })(PublicExpenseType || (exports.PublicExpenseType = PublicExpenseType = {}));
@@ -13,8 +13,8 @@ var Reason;
13
13
  Reason["PropertyDeposit"] = "PROPERTY_DEPOSIT";
14
14
  Reason["VehiclePurchase"] = "VEHICLE_PURCHASE";
15
15
  Reason["WeddingExpenses"] = "WEDDING_EXPENSES";
16
- })(Reason = exports.Reason || (exports.Reason = {}));
16
+ })(Reason || (exports.Reason = Reason = {}));
17
17
  var Type;
18
18
  (function (Type) {
19
19
  Type["FundingPosition"] = "FundingPosition";
20
- })(Type = exports.Type || (exports.Type = {}));
20
+ })(Type || (exports.Type = Type = {}));
@@ -7,7 +7,7 @@ var BenefitType;
7
7
  BenefitType["DisabilitySupportPension"] = "DISABILITY_SUPPORT_PENSION";
8
8
  BenefitType["FamilyTax"] = "FAMILY_TAX";
9
9
  BenefitType["Other"] = "OTHER";
10
- })(BenefitType = exports.BenefitType || (exports.BenefitType = {}));
10
+ })(BenefitType || (exports.BenefitType = BenefitType = {}));
11
11
  var Frequency;
12
12
  (function (Frequency) {
13
13
  Frequency["Fortnightly"] = "FORTNIGHTLY";
@@ -15,7 +15,7 @@ var Frequency;
15
15
  Frequency["Quarterly"] = "QUARTERLY";
16
16
  Frequency["Weekly"] = "WEEKLY";
17
17
  Frequency["Yearly"] = "YEARLY";
18
- })(Frequency = exports.Frequency || (exports.Frequency = {}));
18
+ })(Frequency || (exports.Frequency = Frequency = {}));
19
19
  /**
20
20
  * Indicate whether ownership proportions are equal, specified individually for each one or
21
21
  * not specified.
@@ -25,7 +25,7 @@ var Proportions;
25
25
  Proportions["Equal"] = "EQUAL";
26
26
  Proportions["NotSpecified"] = "NOT_SPECIFIED";
27
27
  Proportions["Specified"] = "SPECIFIED";
28
- })(Proportions = exports.Proportions || (exports.Proportions = {}));
28
+ })(Proportions || (exports.Proportions = Proportions = {}));
29
29
  var IncomeType;
30
30
  (function (IncomeType) {
31
31
  IncomeType["ChildMaintenance"] = "CHILD_MAINTENANCE";
@@ -49,7 +49,7 @@ var IncomeType;
49
49
  IncomeType["SelfEmployedBusinessIncomeLowDoc"] = "SELF_EMPLOYED_BUSINESS_INCOME_LOW_DOC";
50
50
  IncomeType["SuperAnnuityPension"] = "SUPER_ANNUITY_PENSION";
51
51
  IncomeType["WorkersCompensation"] = "WORKERS_COMPENSATION";
52
- })(IncomeType = exports.IncomeType || (exports.IncomeType = {}));
52
+ })(IncomeType || (exports.IncomeType = IncomeType = {}));
53
53
  /**
54
54
  * role of the user that made the action
55
55
  */
@@ -57,9 +57,9 @@ var ActionedByRole;
57
57
  (function (ActionedByRole) {
58
58
  ActionedByRole["Customer"] = "customer";
59
59
  ActionedByRole["Team"] = "team";
60
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
60
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
61
61
  var PublicIncomeType;
62
62
  (function (PublicIncomeType) {
63
63
  PublicIncomeType["IncomeCreated"] = "IncomeCreated";
64
64
  PublicIncomeType["IncomeUpdated"] = "IncomeUpdated";
65
- })(PublicIncomeType = exports.PublicIncomeType || (exports.PublicIncomeType = {}));
65
+ })(PublicIncomeType || (exports.PublicIncomeType = PublicIncomeType = {}));
@@ -5,12 +5,12 @@ var ClearingFromOtherSource;
5
5
  (function (ClearingFromOtherSource) {
6
6
  ClearingFromOtherSource["PayingOut"] = "PAYING_OUT";
7
7
  ClearingFromOtherSource["Reducing"] = "REDUCING";
8
- })(ClearingFromOtherSource = exports.ClearingFromOtherSource || (exports.ClearingFromOtherSource = {}));
8
+ })(ClearingFromOtherSource || (exports.ClearingFromOtherSource = ClearingFromOtherSource = {}));
9
9
  var InterestType;
10
10
  (function (InterestType) {
11
11
  InterestType["FixedRate"] = "FIXED_RATE";
12
12
  InterestType["Variable"] = "VARIABLE";
13
- })(InterestType = exports.InterestType || (exports.InterestType = {}));
13
+ })(InterestType || (exports.InterestType = InterestType = {}));
14
14
  /**
15
15
  * Indicate whether ownership proportions are equal, specified individually for each one or
16
16
  * not specified.
@@ -20,19 +20,19 @@ var Proportions;
20
20
  Proportions["Equal"] = "EQUAL";
21
21
  Proportions["NotSpecified"] = "NOT_SPECIFIED";
22
22
  Proportions["Specified"] = "SPECIFIED";
23
- })(Proportions = exports.Proportions || (exports.Proportions = {}));
23
+ })(Proportions || (exports.Proportions = Proportions = {}));
24
24
  var RepaymentFrequency;
25
25
  (function (RepaymentFrequency) {
26
26
  RepaymentFrequency["Fortnightly"] = "FORTNIGHTLY";
27
27
  RepaymentFrequency["Monthly"] = "MONTHLY";
28
28
  RepaymentFrequency["Weekly"] = "WEEKLY";
29
29
  RepaymentFrequency["Yearly"] = "YEARLY";
30
- })(RepaymentFrequency = exports.RepaymentFrequency || (exports.RepaymentFrequency = {}));
30
+ })(RepaymentFrequency || (exports.RepaymentFrequency = RepaymentFrequency = {}));
31
31
  var RepaymentTypeDetails;
32
32
  (function (RepaymentTypeDetails) {
33
33
  RepaymentTypeDetails["InterestOnly"] = "INTEREST_ONLY";
34
34
  RepaymentTypeDetails["PrincipalAndInterest"] = "PRINCIPAL_AND_INTEREST";
35
- })(RepaymentTypeDetails = exports.RepaymentTypeDetails || (exports.RepaymentTypeDetails = {}));
35
+ })(RepaymentTypeDetails || (exports.RepaymentTypeDetails = RepaymentTypeDetails = {}));
36
36
  /**
37
37
  * LEASE_OR_HIRE_FINANCE is deprecated.
38
38
  */
@@ -52,7 +52,7 @@ var LiabilityType;
52
52
  LiabilityType["ShortTermFinance"] = "SHORT_TERM_FINANCE";
53
53
  LiabilityType["StoreCard"] = "STORE_CARD";
54
54
  LiabilityType["TaxDebt"] = "TAX_DEBT";
55
- })(LiabilityType = exports.LiabilityType || (exports.LiabilityType = {}));
55
+ })(LiabilityType || (exports.LiabilityType = LiabilityType = {}));
56
56
  /**
57
57
  * role of the user that made the action
58
58
  */
@@ -60,9 +60,9 @@ var ActionedByRole;
60
60
  (function (ActionedByRole) {
61
61
  ActionedByRole["Customer"] = "customer";
62
62
  ActionedByRole["Team"] = "team";
63
- })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
63
+ })(ActionedByRole || (exports.ActionedByRole = ActionedByRole = {}));
64
64
  var Type;
65
65
  (function (Type) {
66
66
  Type["LiabilityCreated"] = "LiabilityCreated";
67
67
  Type["LiabilityUpdated"] = "LiabilityUpdated";
68
- })(Type = exports.Type || (exports.Type = {}));
68
+ })(Type || (exports.Type = Type = {}));
@@ -11,12 +11,12 @@ var AustralianState;
11
11
  AustralianState["Tas"] = "TAS";
12
12
  AustralianState["Vic"] = "VIC";
13
13
  AustralianState["Wa"] = "WA";
14
- })(AustralianState = exports.AustralianState || (exports.AustralianState = {}));
14
+ })(AustralianState || (exports.AustralianState = AustralianState = {}));
15
15
  var Gender;
16
16
  (function (Gender) {
17
17
  Gender["Female"] = "FEMALE";
18
18
  Gender["Male"] = "MALE";
19
- })(Gender = exports.Gender || (exports.Gender = {}));
19
+ })(Gender || (exports.Gender = Gender = {}));
20
20
  var IDTitle;
21
21
  (function (IDTitle) {
22
22
  IDTitle["DR"] = "DR";
@@ -26,7 +26,7 @@ var IDTitle;
26
26
  IDTitle["Mrs"] = "MRS";
27
27
  IDTitle["Other"] = "OTHER";
28
28
  IDTitle["Unknown"] = "UNKNOWN";
29
- })(IDTitle = exports.IDTitle || (exports.IDTitle = {}));
29
+ })(IDTitle || (exports.IDTitle = IDTitle = {}));
30
30
  /**
31
31
  * ID Type
32
32
  */
@@ -35,7 +35,7 @@ var IDType;
35
35
  IDType["AustralianDriverLicense"] = "australian_driver_license";
36
36
  IDType["NationalIDCard"] = "national_id_card";
37
37
  IDType["Passport"] = "passport";
38
- })(IDType = exports.IDType || (exports.IDType = {}));
38
+ })(IDType || (exports.IDType = IDType = {}));
39
39
  var IssuingCountry;
40
40
  (function (IssuingCountry) {
41
41
  IssuingCountry["Afghanistan"] = "Afghanistan";
@@ -277,7 +277,7 @@ var IssuingCountry;
277
277
  IssuingCountry["Yemen"] = "Yemen";
278
278
  IssuingCountry["Zambia"] = "Zambia";
279
279
  IssuingCountry["Zimbabwe"] = "Zimbabwe";
280
- })(IssuingCountry = exports.IssuingCountry || (exports.IssuingCountry = {}));
280
+ })(IssuingCountry || (exports.IssuingCountry = IssuingCountry = {}));
281
281
  /**
282
282
  * Status
283
283
  */
@@ -289,9 +289,9 @@ var Status;
289
289
  Status["PendingUpload"] = "pending_upload";
290
290
  Status["PendingVerification"] = "pending_verification";
291
291
  Status["Verified"] = "verified";
292
- })(Status = exports.Status || (exports.Status = {}));
292
+ })(Status || (exports.Status = Status = {}));
293
293
  var Type;
294
294
  (function (Type) {
295
295
  Type["RequiredDocumentCreated"] = "RequiredDocumentCreated";
296
296
  Type["RequiredDocumentUpdated"] = "RequiredDocumentUpdated";
297
- })(Type = exports.Type || (exports.Type = {}));
297
+ })(Type || (exports.Type = Type = {}));
@@ -15,7 +15,7 @@ var ErrorType;
15
15
  ErrorType["InvalidEventNotCritical"] = "InvalidEventNotCritical";
16
16
  ErrorType["OwnershipOutOfBounds"] = "OwnershipOutOfBounds";
17
17
  ErrorType["ResourceNotFound"] = "ResourceNotFound";
18
- })(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
18
+ })(ErrorType || (exports.ErrorType = ErrorType = {}));
19
19
  class BaseError extends Error {
20
20
  /* istanbul ignore next */
21
21
  constructor(message, path = [], origin, context = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/act-credit-decisions-transform",
3
- "version": "1.9.5",
3
+ "version": "1.9.7",
4
4
  "description": "Library for kafka event data transforming",
5
5
  "author": "Integrations <integrations@lendi.com.au>",
6
6
  "homepage": "https://bitbucket.org/lendi-dev/integrations-shared-packages#readme",
@@ -22,18 +22,20 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@lendi/integrations-credit-protocol": "1.18.8",
25
- "@lendi/act-eac-integrations-protocol": "3.0.2",
26
- "@lendi/logging": "^1.0.0",
25
+ "@lendi/act-eac-integrations-protocol": "3.0.3",
27
26
  "clean-deep": "^3.4.0",
28
27
  "date-fns": "2.19.0",
29
28
  "lodash": "^4.17.15"
30
29
  },
30
+ "peerDependencies": {
31
+ "pino": "^8.1.0"
32
+ },
31
33
  "devDependencies": {
32
34
  "@lendi/prettier-config": "^1.0.0",
33
35
  "@lendi/typescript-config": "^2.0.0",
34
36
  "@types/jest": "^28.1.4",
35
37
  "@types/lodash": "^4.14.141",
36
- "@types/node": "^16.11.7",
38
+ "@types/node": "^18.16.16",
37
39
  "@types/prettier": "^1.16.1",
38
40
  "@types/sinon": "^7.5.0",
39
41
  "@typescript-eslint/eslint-plugin": "^5.21.0",
@@ -50,9 +52,9 @@
50
52
  "quicktype": "^15.0.261",
51
53
  "sinon": "^7.4.2",
52
54
  "ts-jest": "^28.0.5",
53
- "ts-node": "^8.4.1",
55
+ "ts-node": "^10.9.1",
54
56
  "typedoc": "^0.20.36",
55
- "typescript": "^4.1.3"
57
+ "typescript": "^5.0.4"
56
58
  },
57
59
  "scripts": {
58
60
  "build": "tsc && cp -r src/schemas lib",
@@ -65,7 +67,6 @@
65
67
  "lint": "eslint './src/**/*.ts'; exit 0",
66
68
  "lint:fix": "eslint './src/**/*.ts' --fix",
67
69
  "format": "prettier --write '**/*.{json,ts,md}'",
68
- "prepack": "npm run build",
69
70
  "prepublishOnly": "npm run build",
70
71
  "postpack": "rm -rf lib",
71
72
  "test:unit": "jest --config jest.config.json",