@dynamatix/gb-schemas 2.21.1 → 2.22.1

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.
Files changed (32) hide show
  1. package/README.md +308 -308
  2. package/dist/applicants/applicant-income-summary.model.d.ts +294 -0
  3. package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -1
  4. package/dist/applicants/applicant-income-summary.model.js +4 -0
  5. package/dist/applicants/applicant-income-summary.type.d.ts +2 -0
  6. package/dist/applicants/applicant-income-summary.type.d.ts.map +1 -1
  7. package/dist/applicants/applicant-welcome-call.model.js +9 -9
  8. package/dist/applications/application.model.d.ts +12 -12
  9. package/dist/applications/application.model.js +4 -4
  10. package/package.json +90 -90
  11. package/dist/applicants/applicant-direct-debit.model.d.ts +0 -86
  12. package/dist/applicants/applicant-direct-debit.model.d.ts.map +0 -1
  13. package/dist/applicants/applicant-income-source.model.d.ts +0 -26
  14. package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
  15. package/dist/applicants/applicant-income.model.d.ts +0 -160
  16. package/dist/applicants/applicant-income.model.d.ts.map +0 -1
  17. package/dist/applicants/applicant-other-income.model.d.ts +0 -85
  18. package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
  19. package/dist/applications/application-document.model.d.ts +0 -158
  20. package/dist/applications/application-document.model.d.ts.map +0 -1
  21. package/dist/applications/document.model.d.ts +0 -158
  22. package/dist/applications/document.model.d.ts.map +0 -1
  23. package/dist/applications/euc-country-tier.model.d.ts +0 -65
  24. package/dist/applications/euc-country-tier.model.d.ts.map +0 -1
  25. package/dist/applications/euc-country-tier.model.js +0 -24
  26. package/dist/applications/euc-country-tier.type.d.ts +0 -7
  27. package/dist/applications/euc-country-tier.type.d.ts.map +0 -1
  28. package/dist/applications/euc-country-tier.type.js +0 -1
  29. package/dist/applications/productfeatures.model.d.ts +0 -368
  30. package/dist/applications/productfeatures.model.d.ts.map +0 -1
  31. package/dist/shared/document-type-model.d.ts +0 -48
  32. package/dist/shared/document-type-model.d.ts.map +0 -1
@@ -1,158 +0,0 @@
1
- import mongoose from "mongoose";
2
- declare const ApplicationDocumentModel: mongoose.Model<{
3
- createdAt: NativeDate;
4
- updatedAt: NativeDate;
5
- } & {
6
- documentId: string;
7
- signers: any[];
8
- applicationId?: mongoose.Types.ObjectId | null | undefined;
9
- data?: string | null | undefined;
10
- owningEntityId?: string | null | undefined;
11
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
12
- documentTypeId?: string | null | undefined;
13
- fileName?: string | null | undefined;
14
- contentType?: string | null | undefined;
15
- created?: string | null | undefined;
16
- createdBy?: string | null | undefined;
17
- isGenerated?: string | null | undefined;
18
- envelopeId?: string | null | undefined;
19
- documentType?: {
20
- data?: any;
21
- value?: string | null | undefined;
22
- documentTypeId?: string | null | undefined;
23
- displayName?: string | null | undefined;
24
- } | null | undefined;
25
- documentUrl?: string | null | undefined;
26
- }, {}, {}, {}, mongoose.Document<unknown, {}, {
27
- createdAt: NativeDate;
28
- updatedAt: NativeDate;
29
- } & {
30
- documentId: string;
31
- signers: any[];
32
- applicationId?: mongoose.Types.ObjectId | null | undefined;
33
- data?: string | null | undefined;
34
- owningEntityId?: string | null | undefined;
35
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
36
- documentTypeId?: string | null | undefined;
37
- fileName?: string | null | undefined;
38
- contentType?: string | null | undefined;
39
- created?: string | null | undefined;
40
- createdBy?: string | null | undefined;
41
- isGenerated?: string | null | undefined;
42
- envelopeId?: string | null | undefined;
43
- documentType?: {
44
- data?: any;
45
- value?: string | null | undefined;
46
- documentTypeId?: string | null | undefined;
47
- displayName?: string | null | undefined;
48
- } | null | undefined;
49
- documentUrl?: string | null | undefined;
50
- }> & {
51
- createdAt: NativeDate;
52
- updatedAt: NativeDate;
53
- } & {
54
- documentId: string;
55
- signers: any[];
56
- applicationId?: mongoose.Types.ObjectId | null | undefined;
57
- data?: string | null | undefined;
58
- owningEntityId?: string | null | undefined;
59
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
60
- documentTypeId?: string | null | undefined;
61
- fileName?: string | null | undefined;
62
- contentType?: string | null | undefined;
63
- created?: string | null | undefined;
64
- createdBy?: string | null | undefined;
65
- isGenerated?: string | null | undefined;
66
- envelopeId?: string | null | undefined;
67
- documentType?: {
68
- data?: any;
69
- value?: string | null | undefined;
70
- documentTypeId?: string | null | undefined;
71
- displayName?: string | null | undefined;
72
- } | null | undefined;
73
- documentUrl?: string | null | undefined;
74
- } & {
75
- _id: mongoose.Types.ObjectId;
76
- } & {
77
- __v: number;
78
- }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
79
- timestamps: true;
80
- }, {
81
- createdAt: NativeDate;
82
- updatedAt: NativeDate;
83
- } & {
84
- documentId: string;
85
- signers: any[];
86
- applicationId?: mongoose.Types.ObjectId | null | undefined;
87
- data?: string | null | undefined;
88
- owningEntityId?: string | null | undefined;
89
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
90
- documentTypeId?: string | null | undefined;
91
- fileName?: string | null | undefined;
92
- contentType?: string | null | undefined;
93
- created?: string | null | undefined;
94
- createdBy?: string | null | undefined;
95
- isGenerated?: string | null | undefined;
96
- envelopeId?: string | null | undefined;
97
- documentType?: {
98
- data?: any;
99
- value?: string | null | undefined;
100
- documentTypeId?: string | null | undefined;
101
- displayName?: string | null | undefined;
102
- } | null | undefined;
103
- documentUrl?: string | null | undefined;
104
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
105
- createdAt: NativeDate;
106
- updatedAt: NativeDate;
107
- } & {
108
- documentId: string;
109
- signers: any[];
110
- applicationId?: mongoose.Types.ObjectId | null | undefined;
111
- data?: string | null | undefined;
112
- owningEntityId?: string | null | undefined;
113
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
114
- documentTypeId?: string | null | undefined;
115
- fileName?: string | null | undefined;
116
- contentType?: string | null | undefined;
117
- created?: string | null | undefined;
118
- createdBy?: string | null | undefined;
119
- isGenerated?: string | null | undefined;
120
- envelopeId?: string | null | undefined;
121
- documentType?: {
122
- data?: any;
123
- value?: string | null | undefined;
124
- documentTypeId?: string | null | undefined;
125
- displayName?: string | null | undefined;
126
- } | null | undefined;
127
- documentUrl?: string | null | undefined;
128
- }>> & mongoose.FlatRecord<{
129
- createdAt: NativeDate;
130
- updatedAt: NativeDate;
131
- } & {
132
- documentId: string;
133
- signers: any[];
134
- applicationId?: mongoose.Types.ObjectId | null | undefined;
135
- data?: string | null | undefined;
136
- owningEntityId?: string | null | undefined;
137
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
138
- documentTypeId?: string | null | undefined;
139
- fileName?: string | null | undefined;
140
- contentType?: string | null | undefined;
141
- created?: string | null | undefined;
142
- createdBy?: string | null | undefined;
143
- isGenerated?: string | null | undefined;
144
- envelopeId?: string | null | undefined;
145
- documentType?: {
146
- data?: any;
147
- value?: string | null | undefined;
148
- documentTypeId?: string | null | undefined;
149
- displayName?: string | null | undefined;
150
- } | null | undefined;
151
- documentUrl?: string | null | undefined;
152
- }> & {
153
- _id: mongoose.Types.ObjectId;
154
- } & {
155
- __v: number;
156
- }>>;
157
- export default ApplicationDocumentModel;
158
- //# 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,158 +0,0 @@
1
- import mongoose from "mongoose";
2
- declare const DocumentModel: mongoose.Model<{
3
- createdAt: NativeDate;
4
- updatedAt: NativeDate;
5
- } & {
6
- documentId: string;
7
- signers: any[];
8
- applicationId?: mongoose.Types.ObjectId | null | undefined;
9
- data?: string | null | undefined;
10
- owningEntityId?: string | null | undefined;
11
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
12
- documentTypeId?: mongoose.Types.ObjectId | null | undefined;
13
- fileName?: string | null | undefined;
14
- contentType?: string | null | undefined;
15
- created?: string | null | undefined;
16
- createdBy?: string | null | undefined;
17
- isGenerated?: string | null | undefined;
18
- envelopeId?: string | null | undefined;
19
- documentType?: {
20
- data?: any;
21
- value?: string | null | undefined;
22
- documentTypeId?: string | null | undefined;
23
- displayName?: string | null | undefined;
24
- } | null | undefined;
25
- documentUrl?: string | null | undefined;
26
- }, {}, {}, {}, mongoose.Document<unknown, {}, {
27
- createdAt: NativeDate;
28
- updatedAt: NativeDate;
29
- } & {
30
- documentId: string;
31
- signers: any[];
32
- applicationId?: mongoose.Types.ObjectId | null | undefined;
33
- data?: string | null | undefined;
34
- owningEntityId?: string | null | undefined;
35
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
36
- documentTypeId?: mongoose.Types.ObjectId | null | undefined;
37
- fileName?: string | null | undefined;
38
- contentType?: string | null | undefined;
39
- created?: string | null | undefined;
40
- createdBy?: string | null | undefined;
41
- isGenerated?: string | null | undefined;
42
- envelopeId?: string | null | undefined;
43
- documentType?: {
44
- data?: any;
45
- value?: string | null | undefined;
46
- documentTypeId?: string | null | undefined;
47
- displayName?: string | null | undefined;
48
- } | null | undefined;
49
- documentUrl?: string | null | undefined;
50
- }> & {
51
- createdAt: NativeDate;
52
- updatedAt: NativeDate;
53
- } & {
54
- documentId: string;
55
- signers: any[];
56
- applicationId?: mongoose.Types.ObjectId | null | undefined;
57
- data?: string | null | undefined;
58
- owningEntityId?: string | null | undefined;
59
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
60
- documentTypeId?: mongoose.Types.ObjectId | null | undefined;
61
- fileName?: string | null | undefined;
62
- contentType?: string | null | undefined;
63
- created?: string | null | undefined;
64
- createdBy?: string | null | undefined;
65
- isGenerated?: string | null | undefined;
66
- envelopeId?: string | null | undefined;
67
- documentType?: {
68
- data?: any;
69
- value?: string | null | undefined;
70
- documentTypeId?: string | null | undefined;
71
- displayName?: string | null | undefined;
72
- } | null | undefined;
73
- documentUrl?: string | null | undefined;
74
- } & {
75
- _id: mongoose.Types.ObjectId;
76
- } & {
77
- __v: number;
78
- }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
79
- timestamps: true;
80
- }, {
81
- createdAt: NativeDate;
82
- updatedAt: NativeDate;
83
- } & {
84
- documentId: string;
85
- signers: any[];
86
- applicationId?: mongoose.Types.ObjectId | null | undefined;
87
- data?: string | null | undefined;
88
- owningEntityId?: string | null | undefined;
89
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
90
- documentTypeId?: mongoose.Types.ObjectId | null | undefined;
91
- fileName?: string | null | undefined;
92
- contentType?: string | null | undefined;
93
- created?: string | null | undefined;
94
- createdBy?: string | null | undefined;
95
- isGenerated?: string | null | undefined;
96
- envelopeId?: string | null | undefined;
97
- documentType?: {
98
- data?: any;
99
- value?: string | null | undefined;
100
- documentTypeId?: string | null | undefined;
101
- displayName?: string | null | undefined;
102
- } | null | undefined;
103
- documentUrl?: string | null | undefined;
104
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
105
- createdAt: NativeDate;
106
- updatedAt: NativeDate;
107
- } & {
108
- documentId: string;
109
- signers: any[];
110
- applicationId?: mongoose.Types.ObjectId | null | undefined;
111
- data?: string | null | undefined;
112
- owningEntityId?: string | null | undefined;
113
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
114
- documentTypeId?: mongoose.Types.ObjectId | null | undefined;
115
- fileName?: string | null | undefined;
116
- contentType?: string | null | undefined;
117
- created?: string | null | undefined;
118
- createdBy?: string | null | undefined;
119
- isGenerated?: string | null | undefined;
120
- envelopeId?: string | null | undefined;
121
- documentType?: {
122
- data?: any;
123
- value?: string | null | undefined;
124
- documentTypeId?: string | null | undefined;
125
- displayName?: string | null | undefined;
126
- } | null | undefined;
127
- documentUrl?: string | null | undefined;
128
- }>> & mongoose.FlatRecord<{
129
- createdAt: NativeDate;
130
- updatedAt: NativeDate;
131
- } & {
132
- documentId: string;
133
- signers: any[];
134
- applicationId?: mongoose.Types.ObjectId | null | undefined;
135
- data?: string | null | undefined;
136
- owningEntityId?: string | null | undefined;
137
- documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
138
- documentTypeId?: mongoose.Types.ObjectId | null | undefined;
139
- fileName?: string | null | undefined;
140
- contentType?: string | null | undefined;
141
- created?: string | null | undefined;
142
- createdBy?: string | null | undefined;
143
- isGenerated?: string | null | undefined;
144
- envelopeId?: string | null | undefined;
145
- documentType?: {
146
- data?: any;
147
- value?: string | null | undefined;
148
- documentTypeId?: string | null | undefined;
149
- displayName?: string | null | undefined;
150
- } | null | undefined;
151
- documentUrl?: string | null | undefined;
152
- }> & {
153
- _id: mongoose.Types.ObjectId;
154
- } & {
155
- __v: number;
156
- }>>;
157
- export default DocumentModel;
158
- //# 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,65 +0,0 @@
1
- /// <reference path="../value-objects/pound.d.ts" />
2
- /// <reference path="../value-objects/account-number.d.ts" />
3
- /// <reference path="../shared/encryption/encrypted-field-map.d.ts" />
4
- /// <reference path="../value-objects/sort-code.d.ts" />
5
- /// <reference types="mongoose/types/aggregate" />
6
- /// <reference types="mongoose/types/callback" />
7
- /// <reference types="mongoose/types/collection" />
8
- /// <reference types="mongoose/types/connection" />
9
- /// <reference types="mongoose/types/cursor" />
10
- /// <reference types="mongoose/types/document" />
11
- /// <reference types="mongoose/types/error" />
12
- /// <reference types="mongoose/types/expressions" />
13
- /// <reference types="mongoose/types/helpers" />
14
- /// <reference types="mongoose/types/middlewares" />
15
- /// <reference types="mongoose/types/indexes" />
16
- /// <reference types="mongoose/types/models" />
17
- /// <reference types="mongoose/types/mongooseoptions" />
18
- /// <reference types="mongoose/types/pipelinestage" />
19
- /// <reference types="mongoose/types/populate" />
20
- /// <reference types="mongoose/types/query" />
21
- /// <reference types="mongoose/types/schemaoptions" />
22
- /// <reference types="mongoose/types/session" />
23
- /// <reference types="mongoose/types/types" />
24
- /// <reference types="mongoose/types/utility" />
25
- /// <reference types="mongoose/types/validation" />
26
- /// <reference types="mongoose/types/virtuals" />
27
- /// <reference types="mongoose/types/schematypes" />
28
- /// <reference types="mongoose/types/inferschematype" />
29
- /// <reference types="mongoose/types/inferrawdoctype" />
30
- import mongoose from "mongoose";
31
- declare const EucCountryTierModel: mongoose.Model<{
32
- country: string;
33
- tier: number;
34
- incomeCut: number;
35
- }, {}, {}, {}, mongoose.Document<unknown, {}, {
36
- country: string;
37
- tier: number;
38
- incomeCut: number;
39
- }, {}> & {
40
- country: string;
41
- tier: number;
42
- incomeCut: number;
43
- } & {
44
- _id: mongoose.Types.ObjectId;
45
- } & {
46
- __v: number;
47
- }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
48
- country: string;
49
- tier: number;
50
- incomeCut: number;
51
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
52
- country: string;
53
- tier: number;
54
- incomeCut: number;
55
- }>, {}> & mongoose.FlatRecord<{
56
- country: string;
57
- tier: number;
58
- incomeCut: number;
59
- }> & {
60
- _id: mongoose.Types.ObjectId;
61
- } & {
62
- __v: number;
63
- }>>;
64
- export default EucCountryTierModel;
65
- //# sourceMappingURL=euc-country-tier.model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"euc-country-tier.model.d.ts","sourceRoot":"","sources":["../../applications/euc-country-tier.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA8BhC,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,24 +0,0 @@
1
- import mongoose from "mongoose";
2
- import { applyWorkflowPlugin } from "../shared/workflow.plugin";
3
- const eucCountryTierSchema = new mongoose.Schema({
4
- country: {
5
- type: String,
6
- required: true,
7
- description: "Country name used for EUC income cut / tier rules",
8
- },
9
- tier: {
10
- type: Number,
11
- required: true,
12
- description: "Country risk/income tier for EUC",
13
- },
14
- incomeCut: {
15
- type: Number,
16
- required: true,
17
- description: "Income cut percentage applied for this country in EUC",
18
- },
19
- });
20
- eucCountryTierSchema.index({ country: 1 }, { unique: true, collation: { locale: "en", strength: 2 } });
21
- eucCountryTierSchema.index({ tier: 1 });
22
- applyWorkflowPlugin(eucCountryTierSchema, "euccountrytier");
23
- const EucCountryTierModel = mongoose.model("EucCountryTier", eucCountryTierSchema);
24
- export default EucCountryTierModel;
@@ -1,7 +0,0 @@
1
- import { IBaseType } from "../types/base.types";
2
- export default interface IEucCountryTier extends IBaseType {
3
- country: string;
4
- tier: number;
5
- incomeCut: number;
6
- }
7
- //# sourceMappingURL=euc-country-tier.type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"euc-country-tier.type.d.ts","sourceRoot":"","sources":["../../applications/euc-country-tier.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,SAAS;IACxD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -1 +0,0 @@
1
- export {};