@dynamatix/gb-schemas 2.3.237 → 2.3.238
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/README.md +309 -0
- package/dist/applicants/applicant-additional-income.model.d.ts +13 -12
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-additional-income.model.js +3 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +19 -18
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +3 -0
- package/dist/applicants/applicant-commitment-loan.model.d.ts +19 -18
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.js +3 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +19 -18
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +3 -0
- package/dist/applicants/applicant-commitment-residence.model.d.ts +31 -30
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-residence.model.js +3 -0
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +19 -18
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.js +3 -0
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +19 -18
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +3 -0
- package/dist/applicants/applicant-credit-data.model.d.ts +3 -3
- package/dist/applicants/applicant-credit-report.model.d.ts +3754 -0
- package/dist/applicants/{applicant-income.model.d.ts.map → applicant-credit-report.model.d.ts.map} +1 -1
- package/dist/applicants/applicant-credit-report.model.js +116 -0
- package/dist/applicants/applicant-credit-report.type.d.ts +140 -0
- package/dist/applicants/applicant-credit-report.type.d.ts.map +1 -0
- package/dist/applicants/applicant-credit-report.type.js +1 -0
- package/dist/applicants/applicant-employment-income.model.d.ts +7 -6
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.js +3 -0
- package/dist/applicants/applicant-employment.model.d.ts +88 -87
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.js +19 -19
- package/dist/applicants/applicant-expenditure.model.d.ts +7 -0
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +77 -0
- package/dist/applicants/applicant-expenditure.type.d.ts +42 -0
- package/dist/applicants/applicant-expenditure.type.d.ts.map +1 -0
- package/dist/applicants/applicant-expenditure.type.js +1 -0
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-settings.model.js +3 -0
- package/dist/applicants/applicant-income-settings.type.d.ts +40 -0
- package/dist/applicants/applicant-income-settings.type.d.ts.map +1 -0
- package/dist/applicants/applicant-income-settings.type.js +1 -0
- package/dist/applicants/applicant-income-summary.model.d.ts +73 -72
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-summary.model.js +3 -0
- package/dist/applicants/applicant-income-summary.type.d.ts +60 -0
- package/dist/applicants/applicant-income-summary.type.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.type.js +1 -0
- package/dist/applicants/applicant-pension-income.model.d.ts +19 -18
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-pension-income.model.js +3 -0
- package/dist/applicants/applicant-pension-income.type.d.ts +40 -0
- package/dist/applicants/applicant-pension-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-pension-income.type.js +1 -0
- package/dist/applicants/applicant-property-income.model.d.ts +37 -36
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.js +3 -0
- package/dist/applicants/applicant-self-employed-income.model.d.ts +7 -6
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.js +3 -0
- package/dist/applicants/applicant-self-employed-income.type.d.ts +37 -0
- package/dist/applicants/applicant-self-employed-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-self-employed-income.type.js +1 -0
- package/dist/applicants/applicant-self-employment.model.d.ts +6 -6
- package/dist/applicants/applicant-self-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employment.model.js +4 -1
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +7 -6
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.js +3 -0
- package/dist/applicants/applicant-sole-trader-income.type.d.ts +37 -0
- package/dist/applicants/applicant-sole-trader-income.type.d.ts.map +1 -0
- package/dist/applicants/applicant-sole-trader-income.type.js +1 -0
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +19 -18
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
- package/dist/applicants/applicant-uk-tax-credits.model.js +3 -0
- package/dist/applicants/applicant-uk-tax-credits.type.d.ts +39 -0
- package/dist/applicants/applicant-uk-tax-credits.type.d.ts.map +1 -0
- package/dist/applicants/applicant-uk-tax-credits.type.js +1 -0
- package/dist/applicants/applicant-welcome-call.model.d.ts +288 -0
- package/dist/applicants/applicant-welcome-call.model.d.ts.map +1 -0
- package/dist/applicants/applicant-welcome-call.model.js +263 -0
- package/dist/applicants/applicant-welcome-call.type.d.ts +66 -0
- package/dist/applicants/applicant-welcome-call.type.d.ts.map +1 -0
- package/dist/applicants/applicant-welcome-call.type.js +1 -0
- package/dist/applicants/applicant.model.d.ts +49 -42
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +5 -1
- package/dist/applicants/applicant.type.d.ts +158 -0
- package/dist/applicants/applicant.type.d.ts.map +1 -0
- package/dist/applicants/applicant.type.js +1 -0
- package/dist/applicants/index.d.ts +14 -0
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +2 -0
- package/dist/applications/application-audit.model.d.ts +6 -6
- package/dist/applications/application-audit.model.d.ts.map +1 -1
- package/dist/applications/application-audit.model.js +3 -0
- package/dist/applications/application-checklist-Item.model.d.ts +6 -0
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
- package/dist/applications/application-checklist-Item.model.js +4 -0
- package/dist/applications/application-company-model.d.ts +64 -57
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +1 -0
- package/dist/applications/application-direct-debit.model.d.ts +29 -27
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.js +3 -0
- package/dist/applications/application-euc.model.d.ts.map +1 -1
- package/dist/applications/application-euc.model.js +3 -0
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
- package/dist/applications/application-fieldconfig.model.js +3 -0
- package/dist/applications/application-legal.model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.js +3 -0
- package/dist/applications/application-mortgage.model.d.ts +1 -0
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.js +3 -0
- package/dist/applications/application-mortgage.type.d.ts +76 -0
- package/dist/applications/application-mortgage.type.d.ts.map +1 -0
- package/dist/applications/application-mortgage.type.js +1 -0
- package/dist/applications/application-note.model.d.ts +36 -24
- package/dist/applications/application-note.model.d.ts.map +1 -1
- package/dist/applications/application-note.model.js +12 -3
- package/dist/applications/application-note.type.d.ts +55 -0
- package/dist/applications/application-note.type.d.ts.map +1 -0
- package/dist/applications/application-note.type.js +1 -0
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-offer.model.js +3 -0
- package/dist/applications/application-onboarding.model.d.ts.map +1 -1
- package/dist/applications/application-onboarding.model.js +3 -0
- package/dist/applications/application-product.model.d.ts +77 -13
- package/dist/applications/application-product.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.js +16 -3
- package/dist/applications/application-product.type.d.ts +58 -0
- package/dist/applications/application-product.type.d.ts.map +1 -0
- package/dist/applications/application-product.type.js +1 -0
- package/dist/applications/application-productfeatures.model.d.ts +12 -6
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -1
- package/dist/applications/application-productfeatures.model.js +5 -1
- package/dist/applications/application-productfeatures.type.d.ts +125 -0
- package/dist/applications/application-productfeatures.type.d.ts.map +1 -0
- package/dist/applications/application-productfeatures.type.js +1 -0
- package/dist/applications/application-rationale.model.d.ts +6 -12
- package/dist/applications/application-rationale.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.js +11 -20
- package/dist/applications/application-rationale.type.d.ts +7 -7
- package/dist/applications/application-rationale.type.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.js +3 -0
- package/dist/applications/application-valuation-report.model.d.ts +1246 -0
- package/dist/applications/application-valuation-report.model.d.ts.map +1 -0
- package/dist/applications/application-valuation-report.model.js +269 -0
- package/dist/applications/application-valuation-report.type.d.ts +108 -0
- package/dist/applications/application-valuation-report.type.d.ts.map +1 -0
- package/dist/applications/application-valuation-report.type.js +1 -0
- package/dist/applications/application-valuation.model.d.ts +695 -18
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.js +33 -7
- package/dist/applications/application-valuation.type.d.ts +54 -0
- package/dist/applications/application-valuation.type.d.ts.map +1 -0
- package/dist/applications/application-valuation.type.js +1 -0
- package/dist/applications/application.model.d.ts +36 -30
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +17 -4
- package/dist/applications/applications-task.model.d.ts +171 -67
- package/dist/applications/applications-task.model.d.ts.map +1 -1
- package/dist/applications/applications-task.model.js +36 -45
- package/dist/applications/applications-task.type.d.ts +57 -0
- package/dist/applications/applications-task.type.d.ts.map +1 -0
- package/dist/applications/applications-task.type.js +1 -0
- package/dist/applications/broker.model.d.ts.map +1 -1
- package/dist/applications/broker.model.js +3 -0
- package/dist/applications/index.d.ts +10 -3
- package/dist/applications/index.d.ts.map +1 -1
- package/dist/applications/index.js +2 -3
- package/dist/applications/solicitor.model.d.ts +2 -0
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.js +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/product-catalogues/index.d.ts +3 -0
- package/dist/product-catalogues/index.d.ts.map +1 -1
- package/dist/product-catalogues/product-catalogue.type.d.ts +15 -0
- package/dist/product-catalogues/product-catalogue.type.d.ts.map +1 -0
- package/dist/product-catalogues/product-catalogue.type.js +1 -0
- package/dist/product-catalogues/product-definitions.type.d.ts +53 -0
- package/dist/product-catalogues/product-definitions.type.d.ts.map +1 -0
- package/dist/product-catalogues/product-definitions.type.js +1 -0
- package/dist/product-catalogues/product-variant.type.d.ts +38 -0
- package/dist/product-catalogues/product-variant.type.d.ts.map +1 -0
- package/dist/product-catalogues/product-variant.type.js +1 -0
- package/dist/properties/property.model.d.ts +52 -51
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/property.model.js +1 -2
- package/dist/properties/security.model.d.ts +6 -0
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/properties/security.model.js +1 -0
- package/dist/shared/alert.model.d.ts +12 -12
- package/dist/shared/api-log.model.d.ts +118 -0
- package/dist/shared/api-log.model.d.ts.map +1 -0
- package/dist/shared/api-log.model.js +21 -0
- package/dist/shared/apprivo-sync-journey.model.d.ts +6 -6
- package/dist/shared/checklist.model.d.ts +6 -6
- package/dist/shared/index.d.ts +5 -1
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +4 -1
- package/dist/shared/job-setting.model.d.ts +6 -6
- package/dist/shared/lookup-group.model.d.ts +25 -25
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.js +3 -0
- package/dist/shared/schema-doc.model.d.ts +6 -6
- package/dist/shared/system-parameter.model.d.ts +6 -6
- package/dist/shared/task-document.model.d.ts +6 -6
- package/dist/shared/task.model.d.ts +6 -6
- package/dist/shared/{document-type-model.d.ts → webhook-event.model.d.ts} +6 -45
- package/dist/shared/webhook-event.model.d.ts.map +1 -0
- package/dist/shared/webhook-event.model.js +53 -0
- package/dist/shared/webhook-event.type.d.ts +15 -0
- package/dist/shared/webhook-event.type.d.ts.map +1 -0
- package/dist/shared/webhook-event.type.js +1 -0
- package/dist/shared/workflow-trigger.model.d.ts +32 -0
- package/dist/shared/workflow-trigger.model.d.ts.map +1 -0
- package/dist/shared/workflow-trigger.model.js +45 -0
- package/dist/shared/workflow-trigger.type.d.ts +59 -0
- package/dist/shared/workflow-trigger.type.d.ts.map +1 -0
- package/dist/shared/workflow-trigger.type.js +1 -0
- package/dist/shared/workflow.init.d.ts +21 -0
- package/dist/shared/workflow.init.d.ts.map +1 -0
- package/dist/shared/workflow.init.js +41 -0
- package/dist/shared/workflow.middleware.d.ts +107 -0
- package/dist/shared/workflow.middleware.d.ts.map +1 -0
- package/dist/shared/workflow.middleware.js +230 -0
- package/dist/shared/workflow.plugin.d.ts +46 -0
- package/dist/shared/workflow.plugin.d.ts.map +1 -0
- package/dist/shared/workflow.plugin.js +102 -0
- package/dist/shared/workflow.service.d.ts +39 -0
- package/dist/shared/workflow.service.d.ts.map +1 -0
- package/dist/shared/workflow.service.js +115 -0
- package/dist/value-objects/pound.d.ts.map +1 -1
- package/package.json +14 -3
- package/dist/applicants/applicant-income.model.d.ts +0 -2558
- package/dist/applicants/applicant-income.model.js +0 -82
- package/dist/applications/application-document.model.d.ts +0 -186
- package/dist/applications/application-document.model.d.ts.map +0 -1
- package/dist/applications/application-document.model.js +0 -35
- package/dist/applications/document.model.d.ts +0 -186
- package/dist/applications/document.model.d.ts.map +0 -1
- package/dist/applications/document.model.js +0 -35
- package/dist/shared/document-type-model.d.ts.map +0 -1
- package/dist/shared/document-type-model.js +0 -10
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
import { Pound, formatPound } from "../value-objects/pound";
|
|
3
|
-
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
4
|
-
const incomeSchema = new mongoose.Schema({
|
|
5
|
-
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
6
|
-
accountantsAddressLine1: { type: String, },
|
|
7
|
-
accountantsAddressLine2: { type: String, },
|
|
8
|
-
accountantsAddressLine3: { type: String, },
|
|
9
|
-
accountantsCity: { type: String, default: '' },
|
|
10
|
-
accountantsCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
11
|
-
accountantsEmail: { type: String, },
|
|
12
|
-
accountantsPostCode: { type: String, },
|
|
13
|
-
accountantsPractice: { type: String, },
|
|
14
|
-
accountantsTelephoneNumber: { type: String, },
|
|
15
|
-
businessAddressLine1: { type: String, },
|
|
16
|
-
businessAddressLine2: { type: String, },
|
|
17
|
-
businessAddressLine3: { type: String, },
|
|
18
|
-
businessCity: { type: String, default: '' },
|
|
19
|
-
businessCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
20
|
-
businessPostCode: { type: String, },
|
|
21
|
-
businessTelephoneNumber: { type: String, },
|
|
22
|
-
businessTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
23
|
-
charteredCertifiedOrOtherLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
24
|
-
contactName: { type: String, },
|
|
25
|
-
currentYearEnd: { type: String, },
|
|
26
|
-
dateEstablished: { type: String, },
|
|
27
|
-
doYouHaveAccountant: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: false
|
|
30
|
-
},
|
|
31
|
-
isBusinessAddressDifferent: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: false
|
|
34
|
-
},
|
|
35
|
-
nameOfBusiness: { type: String, },
|
|
36
|
-
natureOfBusiness: { type: String, },
|
|
37
|
-
netAssets1: { type: Pound, default: 0.00, get: formatPound },
|
|
38
|
-
netAssets2: { type: Pound, default: 0.00, get: formatPound },
|
|
39
|
-
netAssets3: { type: Pound, default: 0.00, get: formatPound },
|
|
40
|
-
pageValidFlag: { type: String, default: true },
|
|
41
|
-
percentageOfShareholding: { type: Number, min: 0, max: 100 },
|
|
42
|
-
registeredAddressLine1: { type: String, },
|
|
43
|
-
registeredAddressLine2: { type: String, },
|
|
44
|
-
registeredAddressLine3: { type: String, },
|
|
45
|
-
registeredCity: { type: String, default: '' },
|
|
46
|
-
registeredCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
|
|
47
|
-
registeredPostCode: { type: String, },
|
|
48
|
-
registeredTelephone: { type: String, },
|
|
49
|
-
selfEmployedDate: { type: String, },
|
|
50
|
-
totalEmploymentGrossIncome: { type: Pound, default: 0.00 },
|
|
51
|
-
totalEmploymentNetIncome: { type: Pound, default: 0.00 },
|
|
52
|
-
isEmploymentIncomeConfirmed: { type: Boolean, default: false },
|
|
53
|
-
employmentIncomeRationale: { type: String, default: null },
|
|
54
|
-
isPensionIncomeConfirmed: { type: Boolean, default: false },
|
|
55
|
-
pensionIncomeRationale: { type: String, default: null },
|
|
56
|
-
totalPensionGrossIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
57
|
-
totalPensionNetIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
58
|
-
totalAdditionalGrossIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
59
|
-
totalAdditionalNetIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
60
|
-
isAdditionalIncomeConfirmed: { type: Boolean, default: false },
|
|
61
|
-
additionalIncomeRationale: { type: String, default: null },
|
|
62
|
-
isUKTaxCreditsIncomeConfirmed: { type: Boolean, default: false },
|
|
63
|
-
totalUKTaxCreditsNetIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
64
|
-
ukTaxCreditsIncomeRationale: { type: String, default: null },
|
|
65
|
-
totalUKTaxCreditsGrossIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
66
|
-
isPropertyIncomeConfirmed: { type: Boolean, default: false },
|
|
67
|
-
propertyIncomeRationale: { type: String, default: null },
|
|
68
|
-
selfEmployedIncomeRationale: { type: String, default: null },
|
|
69
|
-
isSelfEmployedIncomeConfirmed: { type: Boolean, default: false },
|
|
70
|
-
totalSelfEmployedGrossIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
71
|
-
totalSelfEmployedNetIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
72
|
-
soleTraderIncomeRationale: { type: String, default: null },
|
|
73
|
-
isSoleTraderIncomeConfirmed: { type: Boolean, default: false },
|
|
74
|
-
soleTraderGrossIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
75
|
-
soleTraderNetIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
76
|
-
}, {
|
|
77
|
-
toJSON: { getters: true },
|
|
78
|
-
toObject: { getters: true }
|
|
79
|
-
});
|
|
80
|
-
applyAuditMiddleware(incomeSchema, "Applicant_Income");
|
|
81
|
-
const ApplicantIncomeModel = mongoose.model("Applicant_Income", incomeSchema);
|
|
82
|
-
export default ApplicantIncomeModel;
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
-
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
-
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
-
/// <reference types="mongoose/types/callback" />
|
|
6
|
-
/// <reference types="mongoose/types/collection" />
|
|
7
|
-
/// <reference types="mongoose/types/connection" />
|
|
8
|
-
/// <reference types="mongoose/types/cursor" />
|
|
9
|
-
/// <reference types="mongoose/types/document" />
|
|
10
|
-
/// <reference types="mongoose/types/error" />
|
|
11
|
-
/// <reference types="mongoose/types/expressions" />
|
|
12
|
-
/// <reference types="mongoose/types/helpers" />
|
|
13
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
-
/// <reference types="mongoose/types/indexes" />
|
|
15
|
-
/// <reference types="mongoose/types/models" />
|
|
16
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
-
/// <reference types="mongoose/types/populate" />
|
|
19
|
-
/// <reference types="mongoose/types/query" />
|
|
20
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
-
/// <reference types="mongoose/types/session" />
|
|
22
|
-
/// <reference types="mongoose/types/types" />
|
|
23
|
-
/// <reference types="mongoose/types/utility" />
|
|
24
|
-
/// <reference types="mongoose/types/validation" />
|
|
25
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
|
-
import mongoose from "mongoose";
|
|
30
|
-
declare const ApplicationDocumentModel: mongoose.Model<{
|
|
31
|
-
createdAt: NativeDate;
|
|
32
|
-
updatedAt: NativeDate;
|
|
33
|
-
} & {
|
|
34
|
-
documentId: string;
|
|
35
|
-
signers: any[];
|
|
36
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
37
|
-
data?: string | null | undefined;
|
|
38
|
-
owningEntityId?: string | null | undefined;
|
|
39
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
40
|
-
documentTypeId?: string | null | undefined;
|
|
41
|
-
fileName?: string | null | undefined;
|
|
42
|
-
contentType?: string | null | undefined;
|
|
43
|
-
created?: string | null | undefined;
|
|
44
|
-
createdBy?: string | null | undefined;
|
|
45
|
-
isGenerated?: string | null | undefined;
|
|
46
|
-
envelopeId?: string | null | undefined;
|
|
47
|
-
documentType?: {
|
|
48
|
-
data?: any;
|
|
49
|
-
value?: string | null | undefined;
|
|
50
|
-
documentTypeId?: string | null | undefined;
|
|
51
|
-
displayName?: string | null | undefined;
|
|
52
|
-
} | null | undefined;
|
|
53
|
-
documentUrl?: string | null | undefined;
|
|
54
|
-
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
55
|
-
createdAt: NativeDate;
|
|
56
|
-
updatedAt: NativeDate;
|
|
57
|
-
} & {
|
|
58
|
-
documentId: string;
|
|
59
|
-
signers: any[];
|
|
60
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
61
|
-
data?: string | null | undefined;
|
|
62
|
-
owningEntityId?: string | null | undefined;
|
|
63
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
64
|
-
documentTypeId?: string | null | undefined;
|
|
65
|
-
fileName?: string | null | undefined;
|
|
66
|
-
contentType?: string | null | undefined;
|
|
67
|
-
created?: string | null | undefined;
|
|
68
|
-
createdBy?: string | null | undefined;
|
|
69
|
-
isGenerated?: string | null | undefined;
|
|
70
|
-
envelopeId?: string | null | undefined;
|
|
71
|
-
documentType?: {
|
|
72
|
-
data?: any;
|
|
73
|
-
value?: string | null | undefined;
|
|
74
|
-
documentTypeId?: string | null | undefined;
|
|
75
|
-
displayName?: string | null | undefined;
|
|
76
|
-
} | null | undefined;
|
|
77
|
-
documentUrl?: string | null | undefined;
|
|
78
|
-
}, {}> & {
|
|
79
|
-
createdAt: NativeDate;
|
|
80
|
-
updatedAt: NativeDate;
|
|
81
|
-
} & {
|
|
82
|
-
documentId: string;
|
|
83
|
-
signers: any[];
|
|
84
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
85
|
-
data?: string | null | undefined;
|
|
86
|
-
owningEntityId?: string | null | undefined;
|
|
87
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
88
|
-
documentTypeId?: string | null | undefined;
|
|
89
|
-
fileName?: string | null | undefined;
|
|
90
|
-
contentType?: string | null | undefined;
|
|
91
|
-
created?: string | null | undefined;
|
|
92
|
-
createdBy?: string | null | undefined;
|
|
93
|
-
isGenerated?: string | null | undefined;
|
|
94
|
-
envelopeId?: string | null | undefined;
|
|
95
|
-
documentType?: {
|
|
96
|
-
data?: any;
|
|
97
|
-
value?: string | null | undefined;
|
|
98
|
-
documentTypeId?: string | null | undefined;
|
|
99
|
-
displayName?: string | null | undefined;
|
|
100
|
-
} | null | undefined;
|
|
101
|
-
documentUrl?: string | null | undefined;
|
|
102
|
-
} & {
|
|
103
|
-
_id: mongoose.Types.ObjectId;
|
|
104
|
-
} & {
|
|
105
|
-
__v: number;
|
|
106
|
-
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
107
|
-
timestamps: true;
|
|
108
|
-
}, {
|
|
109
|
-
createdAt: NativeDate;
|
|
110
|
-
updatedAt: NativeDate;
|
|
111
|
-
} & {
|
|
112
|
-
documentId: string;
|
|
113
|
-
signers: any[];
|
|
114
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
115
|
-
data?: string | null | undefined;
|
|
116
|
-
owningEntityId?: string | null | undefined;
|
|
117
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
118
|
-
documentTypeId?: string | null | undefined;
|
|
119
|
-
fileName?: string | null | undefined;
|
|
120
|
-
contentType?: string | null | undefined;
|
|
121
|
-
created?: string | null | undefined;
|
|
122
|
-
createdBy?: string | null | undefined;
|
|
123
|
-
isGenerated?: string | null | undefined;
|
|
124
|
-
envelopeId?: string | null | undefined;
|
|
125
|
-
documentType?: {
|
|
126
|
-
data?: any;
|
|
127
|
-
value?: string | null | undefined;
|
|
128
|
-
documentTypeId?: string | null | undefined;
|
|
129
|
-
displayName?: string | null | undefined;
|
|
130
|
-
} | null | undefined;
|
|
131
|
-
documentUrl?: string | null | undefined;
|
|
132
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
133
|
-
createdAt: NativeDate;
|
|
134
|
-
updatedAt: NativeDate;
|
|
135
|
-
} & {
|
|
136
|
-
documentId: string;
|
|
137
|
-
signers: any[];
|
|
138
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
139
|
-
data?: string | null | undefined;
|
|
140
|
-
owningEntityId?: string | null | undefined;
|
|
141
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
142
|
-
documentTypeId?: string | null | undefined;
|
|
143
|
-
fileName?: string | null | undefined;
|
|
144
|
-
contentType?: string | null | undefined;
|
|
145
|
-
created?: string | null | undefined;
|
|
146
|
-
createdBy?: string | null | undefined;
|
|
147
|
-
isGenerated?: string | null | undefined;
|
|
148
|
-
envelopeId?: string | null | undefined;
|
|
149
|
-
documentType?: {
|
|
150
|
-
data?: any;
|
|
151
|
-
value?: string | null | undefined;
|
|
152
|
-
documentTypeId?: string | null | undefined;
|
|
153
|
-
displayName?: string | null | undefined;
|
|
154
|
-
} | null | undefined;
|
|
155
|
-
documentUrl?: string | null | undefined;
|
|
156
|
-
}>, {}> & mongoose.FlatRecord<{
|
|
157
|
-
createdAt: NativeDate;
|
|
158
|
-
updatedAt: NativeDate;
|
|
159
|
-
} & {
|
|
160
|
-
documentId: string;
|
|
161
|
-
signers: any[];
|
|
162
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
163
|
-
data?: string | null | undefined;
|
|
164
|
-
owningEntityId?: string | null | undefined;
|
|
165
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
166
|
-
documentTypeId?: string | null | undefined;
|
|
167
|
-
fileName?: string | null | undefined;
|
|
168
|
-
contentType?: string | null | undefined;
|
|
169
|
-
created?: string | null | undefined;
|
|
170
|
-
createdBy?: string | null | undefined;
|
|
171
|
-
isGenerated?: string | null | undefined;
|
|
172
|
-
envelopeId?: string | null | undefined;
|
|
173
|
-
documentType?: {
|
|
174
|
-
data?: any;
|
|
175
|
-
value?: string | null | undefined;
|
|
176
|
-
documentTypeId?: string | null | undefined;
|
|
177
|
-
displayName?: string | null | undefined;
|
|
178
|
-
} | null | undefined;
|
|
179
|
-
documentUrl?: string | null | undefined;
|
|
180
|
-
}> & {
|
|
181
|
-
_id: mongoose.Types.ObjectId;
|
|
182
|
-
} & {
|
|
183
|
-
__v: number;
|
|
184
|
-
}>>;
|
|
185
|
-
export default ApplicationDocumentModel;
|
|
186
|
-
//# sourceMappingURL=application-document.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"application-document.model.d.ts","sourceRoot":"","sources":["../../applications/application-document.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAoChC,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAwD,CAAC;AACvF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
const documentSchema = new mongoose.Schema({
|
|
3
|
-
applicationId: {
|
|
4
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
5
|
-
ref: "Application",
|
|
6
|
-
required: false,
|
|
7
|
-
},
|
|
8
|
-
documentId: { type: String, required: true },
|
|
9
|
-
owningEntityId: { type: String, required: false },
|
|
10
|
-
documentTypeLid: {
|
|
11
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
12
|
-
ref: "Lookup",
|
|
13
|
-
required: false,
|
|
14
|
-
},
|
|
15
|
-
documentTypeId: { type: String, required: false },
|
|
16
|
-
fileName: { type: String, required: false },
|
|
17
|
-
contentType: { type: String, required: false },
|
|
18
|
-
created: { type: String, required: false },
|
|
19
|
-
createdBy: { type: String, required: false },
|
|
20
|
-
isGenerated: { type: String, required: false },
|
|
21
|
-
data: { type: String, required: false },
|
|
22
|
-
envelopeId: { type: String, required: false },
|
|
23
|
-
signers: { type: Array, default: [] },
|
|
24
|
-
documentType: {
|
|
25
|
-
documentTypeId: { type: String, required: false },
|
|
26
|
-
displayName: { type: String, required: false },
|
|
27
|
-
value: { type: String, required: false },
|
|
28
|
-
data: { type: Object, required: false },
|
|
29
|
-
},
|
|
30
|
-
documentUrl: { type: String, required: false },
|
|
31
|
-
}, {
|
|
32
|
-
timestamps: true
|
|
33
|
-
});
|
|
34
|
-
const ApplicationDocumentModel = mongoose.model("ApplicationDocument", documentSchema);
|
|
35
|
-
export default ApplicationDocumentModel;
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
-
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
-
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
-
/// <reference types="mongoose/types/callback" />
|
|
6
|
-
/// <reference types="mongoose/types/collection" />
|
|
7
|
-
/// <reference types="mongoose/types/connection" />
|
|
8
|
-
/// <reference types="mongoose/types/cursor" />
|
|
9
|
-
/// <reference types="mongoose/types/document" />
|
|
10
|
-
/// <reference types="mongoose/types/error" />
|
|
11
|
-
/// <reference types="mongoose/types/expressions" />
|
|
12
|
-
/// <reference types="mongoose/types/helpers" />
|
|
13
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
-
/// <reference types="mongoose/types/indexes" />
|
|
15
|
-
/// <reference types="mongoose/types/models" />
|
|
16
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
-
/// <reference types="mongoose/types/populate" />
|
|
19
|
-
/// <reference types="mongoose/types/query" />
|
|
20
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
21
|
-
/// <reference types="mongoose/types/session" />
|
|
22
|
-
/// <reference types="mongoose/types/types" />
|
|
23
|
-
/// <reference types="mongoose/types/utility" />
|
|
24
|
-
/// <reference types="mongoose/types/validation" />
|
|
25
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
26
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
27
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
|
-
import mongoose from "mongoose";
|
|
30
|
-
declare const DocumentModel: mongoose.Model<{
|
|
31
|
-
createdAt: NativeDate;
|
|
32
|
-
updatedAt: NativeDate;
|
|
33
|
-
} & {
|
|
34
|
-
documentId: string;
|
|
35
|
-
signers: any[];
|
|
36
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
37
|
-
data?: string | null | undefined;
|
|
38
|
-
owningEntityId?: string | null | undefined;
|
|
39
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
40
|
-
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
41
|
-
fileName?: string | null | undefined;
|
|
42
|
-
contentType?: string | null | undefined;
|
|
43
|
-
created?: string | null | undefined;
|
|
44
|
-
createdBy?: string | null | undefined;
|
|
45
|
-
isGenerated?: string | null | undefined;
|
|
46
|
-
envelopeId?: string | null | undefined;
|
|
47
|
-
documentType?: {
|
|
48
|
-
data?: any;
|
|
49
|
-
value?: string | null | undefined;
|
|
50
|
-
documentTypeId?: string | null | undefined;
|
|
51
|
-
displayName?: string | null | undefined;
|
|
52
|
-
} | null | undefined;
|
|
53
|
-
documentUrl?: string | null | undefined;
|
|
54
|
-
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
55
|
-
createdAt: NativeDate;
|
|
56
|
-
updatedAt: NativeDate;
|
|
57
|
-
} & {
|
|
58
|
-
documentId: string;
|
|
59
|
-
signers: any[];
|
|
60
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
61
|
-
data?: string | null | undefined;
|
|
62
|
-
owningEntityId?: string | null | undefined;
|
|
63
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
64
|
-
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
65
|
-
fileName?: string | null | undefined;
|
|
66
|
-
contentType?: string | null | undefined;
|
|
67
|
-
created?: string | null | undefined;
|
|
68
|
-
createdBy?: string | null | undefined;
|
|
69
|
-
isGenerated?: string | null | undefined;
|
|
70
|
-
envelopeId?: string | null | undefined;
|
|
71
|
-
documentType?: {
|
|
72
|
-
data?: any;
|
|
73
|
-
value?: string | null | undefined;
|
|
74
|
-
documentTypeId?: string | null | undefined;
|
|
75
|
-
displayName?: string | null | undefined;
|
|
76
|
-
} | null | undefined;
|
|
77
|
-
documentUrl?: string | null | undefined;
|
|
78
|
-
}, {}> & {
|
|
79
|
-
createdAt: NativeDate;
|
|
80
|
-
updatedAt: NativeDate;
|
|
81
|
-
} & {
|
|
82
|
-
documentId: string;
|
|
83
|
-
signers: any[];
|
|
84
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
85
|
-
data?: string | null | undefined;
|
|
86
|
-
owningEntityId?: string | null | undefined;
|
|
87
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
88
|
-
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
89
|
-
fileName?: string | null | undefined;
|
|
90
|
-
contentType?: string | null | undefined;
|
|
91
|
-
created?: string | null | undefined;
|
|
92
|
-
createdBy?: string | null | undefined;
|
|
93
|
-
isGenerated?: string | null | undefined;
|
|
94
|
-
envelopeId?: string | null | undefined;
|
|
95
|
-
documentType?: {
|
|
96
|
-
data?: any;
|
|
97
|
-
value?: string | null | undefined;
|
|
98
|
-
documentTypeId?: string | null | undefined;
|
|
99
|
-
displayName?: string | null | undefined;
|
|
100
|
-
} | null | undefined;
|
|
101
|
-
documentUrl?: string | null | undefined;
|
|
102
|
-
} & {
|
|
103
|
-
_id: mongoose.Types.ObjectId;
|
|
104
|
-
} & {
|
|
105
|
-
__v: number;
|
|
106
|
-
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
107
|
-
timestamps: true;
|
|
108
|
-
}, {
|
|
109
|
-
createdAt: NativeDate;
|
|
110
|
-
updatedAt: NativeDate;
|
|
111
|
-
} & {
|
|
112
|
-
documentId: string;
|
|
113
|
-
signers: any[];
|
|
114
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
115
|
-
data?: string | null | undefined;
|
|
116
|
-
owningEntityId?: string | null | undefined;
|
|
117
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
118
|
-
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
119
|
-
fileName?: string | null | undefined;
|
|
120
|
-
contentType?: string | null | undefined;
|
|
121
|
-
created?: string | null | undefined;
|
|
122
|
-
createdBy?: string | null | undefined;
|
|
123
|
-
isGenerated?: string | null | undefined;
|
|
124
|
-
envelopeId?: string | null | undefined;
|
|
125
|
-
documentType?: {
|
|
126
|
-
data?: any;
|
|
127
|
-
value?: string | null | undefined;
|
|
128
|
-
documentTypeId?: string | null | undefined;
|
|
129
|
-
displayName?: string | null | undefined;
|
|
130
|
-
} | null | undefined;
|
|
131
|
-
documentUrl?: string | null | undefined;
|
|
132
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
133
|
-
createdAt: NativeDate;
|
|
134
|
-
updatedAt: NativeDate;
|
|
135
|
-
} & {
|
|
136
|
-
documentId: string;
|
|
137
|
-
signers: any[];
|
|
138
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
139
|
-
data?: string | null | undefined;
|
|
140
|
-
owningEntityId?: string | null | undefined;
|
|
141
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
142
|
-
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
143
|
-
fileName?: string | null | undefined;
|
|
144
|
-
contentType?: string | null | undefined;
|
|
145
|
-
created?: string | null | undefined;
|
|
146
|
-
createdBy?: string | null | undefined;
|
|
147
|
-
isGenerated?: string | null | undefined;
|
|
148
|
-
envelopeId?: string | null | undefined;
|
|
149
|
-
documentType?: {
|
|
150
|
-
data?: any;
|
|
151
|
-
value?: string | null | undefined;
|
|
152
|
-
documentTypeId?: string | null | undefined;
|
|
153
|
-
displayName?: string | null | undefined;
|
|
154
|
-
} | null | undefined;
|
|
155
|
-
documentUrl?: string | null | undefined;
|
|
156
|
-
}>, {}> & mongoose.FlatRecord<{
|
|
157
|
-
createdAt: NativeDate;
|
|
158
|
-
updatedAt: NativeDate;
|
|
159
|
-
} & {
|
|
160
|
-
documentId: string;
|
|
161
|
-
signers: any[];
|
|
162
|
-
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
163
|
-
data?: string | null | undefined;
|
|
164
|
-
owningEntityId?: string | null | undefined;
|
|
165
|
-
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
166
|
-
documentTypeId?: mongoose.Types.ObjectId | null | undefined;
|
|
167
|
-
fileName?: string | null | undefined;
|
|
168
|
-
contentType?: string | null | undefined;
|
|
169
|
-
created?: string | null | undefined;
|
|
170
|
-
createdBy?: string | null | undefined;
|
|
171
|
-
isGenerated?: string | null | undefined;
|
|
172
|
-
envelopeId?: string | null | undefined;
|
|
173
|
-
documentType?: {
|
|
174
|
-
data?: any;
|
|
175
|
-
value?: string | null | undefined;
|
|
176
|
-
documentTypeId?: string | null | undefined;
|
|
177
|
-
displayName?: string | null | undefined;
|
|
178
|
-
} | null | undefined;
|
|
179
|
-
documentUrl?: string | null | undefined;
|
|
180
|
-
}> & {
|
|
181
|
-
_id: mongoose.Types.ObjectId;
|
|
182
|
-
} & {
|
|
183
|
-
__v: number;
|
|
184
|
-
}>>;
|
|
185
|
-
export default DocumentModel;
|
|
186
|
-
//# sourceMappingURL=document.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document.model.d.ts","sourceRoot":"","sources":["../../applications/document.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAoChC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
const documentSchema = new mongoose.Schema({
|
|
3
|
-
applicationId: {
|
|
4
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
5
|
-
ref: "Application",
|
|
6
|
-
required: false,
|
|
7
|
-
},
|
|
8
|
-
documentId: { type: String, required: true },
|
|
9
|
-
owningEntityId: { type: String, required: false },
|
|
10
|
-
documentTypeLid: {
|
|
11
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
12
|
-
ref: "Lookup",
|
|
13
|
-
required: false,
|
|
14
|
-
},
|
|
15
|
-
documentTypeId: { type: mongoose.Schema.Types.ObjectId, ref: "DocumentType", required: false },
|
|
16
|
-
fileName: { type: String, required: false },
|
|
17
|
-
contentType: { type: String, required: false },
|
|
18
|
-
created: { type: String, required: false },
|
|
19
|
-
createdBy: { type: String, required: false },
|
|
20
|
-
isGenerated: { type: String, required: false },
|
|
21
|
-
data: { type: String, required: false },
|
|
22
|
-
envelopeId: { type: String, required: false },
|
|
23
|
-
signers: { type: Array, default: [] },
|
|
24
|
-
documentType: {
|
|
25
|
-
documentTypeId: { type: String, required: false },
|
|
26
|
-
displayName: { type: String, required: false },
|
|
27
|
-
value: { type: String, required: false },
|
|
28
|
-
data: { type: Object, required: false },
|
|
29
|
-
},
|
|
30
|
-
documentUrl: { type: String, required: false },
|
|
31
|
-
}, {
|
|
32
|
-
timestamps: true
|
|
33
|
-
});
|
|
34
|
-
const DocumentModel = mongoose.model("Document", documentSchema);
|
|
35
|
-
export default DocumentModel;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-type-model.d.ts","sourceRoot":"","sources":["../../shared/document-type-model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAUhC,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqD,CAAC;AAE7E,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
const DocumentTypeSchema = new mongoose.Schema({
|
|
3
|
-
name: { type: String, required: true },
|
|
4
|
-
label: { type: String },
|
|
5
|
-
source: { type: String, default: null },
|
|
6
|
-
parentDocumentTypeId: { type: mongoose.Schema.Types.ObjectId, ref: 'DocumentType', default: null },
|
|
7
|
-
matchRules: { type: mongoose.Schema.Types.Mixed }
|
|
8
|
-
});
|
|
9
|
-
const DocumentTypeModel = mongoose.model('DocumentType', DocumentTypeSchema);
|
|
10
|
-
export default DocumentTypeModel;
|