@dynamatix/gb-schemas 2.3.299 → 2.3.301
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/dist/applications/applications-task.model.d.ts +6 -6
- package/dist/applications/applications-task.model.js +2 -2
- package/dist/applications/broker.model.d.ts +12 -12
- package/dist/applications/broker.model.js +2 -2
- package/dist/applications/broker.type.d.ts +51 -0
- package/dist/applications/broker.type.d.ts.map +1 -0
- package/dist/applications/broker.type.js +1 -0
- package/dist/users/user.model.d.ts +6 -6
- package/dist/users/user.model.js +1 -1
- package/dist/users/user.type.d.ts +55 -0
- package/dist/users/user.type.d.ts.map +1 -0
- package/dist/users/user.type.js +1 -0
- package/package.json +2 -2
|
@@ -34,7 +34,6 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
34
34
|
applicationId: mongoose.Types.ObjectId;
|
|
35
35
|
createdOn: string;
|
|
36
36
|
additionalData: {
|
|
37
|
-
description: string;
|
|
38
37
|
concernTypeLid: mongoose.Types.ObjectId;
|
|
39
38
|
concernComments: string;
|
|
40
39
|
resolvedComments: string;
|
|
@@ -46,6 +45,7 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
46
45
|
requesterFileName: string;
|
|
47
46
|
responderFileName: string;
|
|
48
47
|
respondedDate: string;
|
|
48
|
+
description?: string | null | undefined;
|
|
49
49
|
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
50
50
|
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
51
51
|
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
@@ -64,7 +64,6 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
64
64
|
applicationId: mongoose.Types.ObjectId;
|
|
65
65
|
createdOn: string;
|
|
66
66
|
additionalData: {
|
|
67
|
-
description: string;
|
|
68
67
|
concernTypeLid: mongoose.Types.ObjectId;
|
|
69
68
|
concernComments: string;
|
|
70
69
|
resolvedComments: string;
|
|
@@ -76,6 +75,7 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
76
75
|
requesterFileName: string;
|
|
77
76
|
responderFileName: string;
|
|
78
77
|
respondedDate: string;
|
|
78
|
+
description?: string | null | undefined;
|
|
79
79
|
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
80
80
|
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
81
81
|
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
@@ -94,7 +94,6 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
94
94
|
applicationId: mongoose.Types.ObjectId;
|
|
95
95
|
createdOn: string;
|
|
96
96
|
additionalData: {
|
|
97
|
-
description: string;
|
|
98
97
|
concernTypeLid: mongoose.Types.ObjectId;
|
|
99
98
|
concernComments: string;
|
|
100
99
|
resolvedComments: string;
|
|
@@ -106,6 +105,7 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
106
105
|
requesterFileName: string;
|
|
107
106
|
responderFileName: string;
|
|
108
107
|
respondedDate: string;
|
|
108
|
+
description?: string | null | undefined;
|
|
109
109
|
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
110
110
|
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
111
111
|
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
@@ -130,7 +130,6 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
130
130
|
applicationId: mongoose.Types.ObjectId;
|
|
131
131
|
createdOn: string;
|
|
132
132
|
additionalData: {
|
|
133
|
-
description: string;
|
|
134
133
|
concernTypeLid: mongoose.Types.ObjectId;
|
|
135
134
|
concernComments: string;
|
|
136
135
|
resolvedComments: string;
|
|
@@ -142,6 +141,7 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
142
141
|
requesterFileName: string;
|
|
143
142
|
responderFileName: string;
|
|
144
143
|
respondedDate: string;
|
|
144
|
+
description?: string | null | undefined;
|
|
145
145
|
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
146
146
|
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
147
147
|
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
@@ -160,7 +160,6 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
160
160
|
applicationId: mongoose.Types.ObjectId;
|
|
161
161
|
createdOn: string;
|
|
162
162
|
additionalData: {
|
|
163
|
-
description: string;
|
|
164
163
|
concernTypeLid: mongoose.Types.ObjectId;
|
|
165
164
|
concernComments: string;
|
|
166
165
|
resolvedComments: string;
|
|
@@ -172,6 +171,7 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
172
171
|
requesterFileName: string;
|
|
173
172
|
responderFileName: string;
|
|
174
173
|
respondedDate: string;
|
|
174
|
+
description?: string | null | undefined;
|
|
175
175
|
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
176
176
|
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
177
177
|
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
@@ -190,7 +190,6 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
190
190
|
applicationId: mongoose.Types.ObjectId;
|
|
191
191
|
createdOn: string;
|
|
192
192
|
additionalData: {
|
|
193
|
-
description: string;
|
|
194
193
|
concernTypeLid: mongoose.Types.ObjectId;
|
|
195
194
|
concernComments: string;
|
|
196
195
|
resolvedComments: string;
|
|
@@ -202,6 +201,7 @@ declare const ApplicationsTaskModel: mongoose.Model<{
|
|
|
202
201
|
requesterFileName: string;
|
|
203
202
|
responderFileName: string;
|
|
204
203
|
respondedDate: string;
|
|
204
|
+
description?: string | null | undefined;
|
|
205
205
|
statusLid?: mongoose.Types.ObjectId | null | undefined;
|
|
206
206
|
requesterId?: mongoose.Types.ObjectId | null | undefined;
|
|
207
207
|
responderId?: mongoose.Types.ObjectId | null | undefined;
|
|
@@ -6,8 +6,8 @@ const additionalDataSchema = new mongoose.Schema({
|
|
|
6
6
|
requesterId: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: false },
|
|
7
7
|
responderId: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: false },
|
|
8
8
|
statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: false },
|
|
9
|
-
concernTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "
|
|
10
|
-
description: { type: String
|
|
9
|
+
concernTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
|
|
10
|
+
description: { type: String },
|
|
11
11
|
concernComments: { type: String, required: true },
|
|
12
12
|
resolvedComments: { type: String, default: "" },
|
|
13
13
|
taskType: {
|
|
@@ -31,6 +31,8 @@ declare const BrokerModel: mongoose.Model<{
|
|
|
31
31
|
createdAt: NativeDate;
|
|
32
32
|
updatedAt: NativeDate;
|
|
33
33
|
} & {
|
|
34
|
+
brokerId: number;
|
|
35
|
+
firstName: string;
|
|
34
36
|
addressPostCode?: string | null | undefined;
|
|
35
37
|
addressLine1?: string | null | undefined;
|
|
36
38
|
addressLine2?: string | null | undefined;
|
|
@@ -38,19 +40,19 @@ declare const BrokerModel: mongoose.Model<{
|
|
|
38
40
|
addressCity?: string | null | undefined;
|
|
39
41
|
addressCountry?: string | null | undefined;
|
|
40
42
|
email?: string | null | undefined;
|
|
41
|
-
brokerId?: string | null | undefined;
|
|
42
43
|
landlinePhone?: string | null | undefined;
|
|
43
44
|
mobileTelephone?: string | null | undefined;
|
|
44
45
|
tradingName?: string | null | undefined;
|
|
45
46
|
fcaNumber?: string | null | undefined;
|
|
46
47
|
brokerType?: string | null | undefined;
|
|
47
48
|
network?: string | null | undefined;
|
|
48
|
-
firstName?: string | null | undefined;
|
|
49
49
|
lastName?: string | null | undefined;
|
|
50
50
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
51
51
|
createdAt: NativeDate;
|
|
52
52
|
updatedAt: NativeDate;
|
|
53
53
|
} & {
|
|
54
|
+
brokerId: number;
|
|
55
|
+
firstName: string;
|
|
54
56
|
addressPostCode?: string | null | undefined;
|
|
55
57
|
addressLine1?: string | null | undefined;
|
|
56
58
|
addressLine2?: string | null | undefined;
|
|
@@ -58,19 +60,19 @@ declare const BrokerModel: mongoose.Model<{
|
|
|
58
60
|
addressCity?: string | null | undefined;
|
|
59
61
|
addressCountry?: string | null | undefined;
|
|
60
62
|
email?: string | null | undefined;
|
|
61
|
-
brokerId?: string | null | undefined;
|
|
62
63
|
landlinePhone?: string | null | undefined;
|
|
63
64
|
mobileTelephone?: string | null | undefined;
|
|
64
65
|
tradingName?: string | null | undefined;
|
|
65
66
|
fcaNumber?: string | null | undefined;
|
|
66
67
|
brokerType?: string | null | undefined;
|
|
67
68
|
network?: string | null | undefined;
|
|
68
|
-
firstName?: string | null | undefined;
|
|
69
69
|
lastName?: string | null | undefined;
|
|
70
70
|
}, {}> & {
|
|
71
71
|
createdAt: NativeDate;
|
|
72
72
|
updatedAt: NativeDate;
|
|
73
73
|
} & {
|
|
74
|
+
brokerId: number;
|
|
75
|
+
firstName: string;
|
|
74
76
|
addressPostCode?: string | null | undefined;
|
|
75
77
|
addressLine1?: string | null | undefined;
|
|
76
78
|
addressLine2?: string | null | undefined;
|
|
@@ -78,14 +80,12 @@ declare const BrokerModel: mongoose.Model<{
|
|
|
78
80
|
addressCity?: string | null | undefined;
|
|
79
81
|
addressCountry?: string | null | undefined;
|
|
80
82
|
email?: string | null | undefined;
|
|
81
|
-
brokerId?: string | null | undefined;
|
|
82
83
|
landlinePhone?: string | null | undefined;
|
|
83
84
|
mobileTelephone?: string | null | undefined;
|
|
84
85
|
tradingName?: string | null | undefined;
|
|
85
86
|
fcaNumber?: string | null | undefined;
|
|
86
87
|
brokerType?: string | null | undefined;
|
|
87
88
|
network?: string | null | undefined;
|
|
88
|
-
firstName?: string | null | undefined;
|
|
89
89
|
lastName?: string | null | undefined;
|
|
90
90
|
} & {
|
|
91
91
|
_id: mongoose.Types.ObjectId;
|
|
@@ -97,6 +97,8 @@ declare const BrokerModel: mongoose.Model<{
|
|
|
97
97
|
createdAt: NativeDate;
|
|
98
98
|
updatedAt: NativeDate;
|
|
99
99
|
} & {
|
|
100
|
+
brokerId: number;
|
|
101
|
+
firstName: string;
|
|
100
102
|
addressPostCode?: string | null | undefined;
|
|
101
103
|
addressLine1?: string | null | undefined;
|
|
102
104
|
addressLine2?: string | null | undefined;
|
|
@@ -104,19 +106,19 @@ declare const BrokerModel: mongoose.Model<{
|
|
|
104
106
|
addressCity?: string | null | undefined;
|
|
105
107
|
addressCountry?: string | null | undefined;
|
|
106
108
|
email?: string | null | undefined;
|
|
107
|
-
brokerId?: string | null | undefined;
|
|
108
109
|
landlinePhone?: string | null | undefined;
|
|
109
110
|
mobileTelephone?: string | null | undefined;
|
|
110
111
|
tradingName?: string | null | undefined;
|
|
111
112
|
fcaNumber?: string | null | undefined;
|
|
112
113
|
brokerType?: string | null | undefined;
|
|
113
114
|
network?: string | null | undefined;
|
|
114
|
-
firstName?: string | null | undefined;
|
|
115
115
|
lastName?: string | null | undefined;
|
|
116
116
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
117
117
|
createdAt: NativeDate;
|
|
118
118
|
updatedAt: NativeDate;
|
|
119
119
|
} & {
|
|
120
|
+
brokerId: number;
|
|
121
|
+
firstName: string;
|
|
120
122
|
addressPostCode?: string | null | undefined;
|
|
121
123
|
addressLine1?: string | null | undefined;
|
|
122
124
|
addressLine2?: string | null | undefined;
|
|
@@ -124,19 +126,19 @@ declare const BrokerModel: mongoose.Model<{
|
|
|
124
126
|
addressCity?: string | null | undefined;
|
|
125
127
|
addressCountry?: string | null | undefined;
|
|
126
128
|
email?: string | null | undefined;
|
|
127
|
-
brokerId?: string | null | undefined;
|
|
128
129
|
landlinePhone?: string | null | undefined;
|
|
129
130
|
mobileTelephone?: string | null | undefined;
|
|
130
131
|
tradingName?: string | null | undefined;
|
|
131
132
|
fcaNumber?: string | null | undefined;
|
|
132
133
|
brokerType?: string | null | undefined;
|
|
133
134
|
network?: string | null | undefined;
|
|
134
|
-
firstName?: string | null | undefined;
|
|
135
135
|
lastName?: string | null | undefined;
|
|
136
136
|
}>, {}> & mongoose.FlatRecord<{
|
|
137
137
|
createdAt: NativeDate;
|
|
138
138
|
updatedAt: NativeDate;
|
|
139
139
|
} & {
|
|
140
|
+
brokerId: number;
|
|
141
|
+
firstName: string;
|
|
140
142
|
addressPostCode?: string | null | undefined;
|
|
141
143
|
addressLine1?: string | null | undefined;
|
|
142
144
|
addressLine2?: string | null | undefined;
|
|
@@ -144,14 +146,12 @@ declare const BrokerModel: mongoose.Model<{
|
|
|
144
146
|
addressCity?: string | null | undefined;
|
|
145
147
|
addressCountry?: string | null | undefined;
|
|
146
148
|
email?: string | null | undefined;
|
|
147
|
-
brokerId?: string | null | undefined;
|
|
148
149
|
landlinePhone?: string | null | undefined;
|
|
149
150
|
mobileTelephone?: string | null | undefined;
|
|
150
151
|
tradingName?: string | null | undefined;
|
|
151
152
|
fcaNumber?: string | null | undefined;
|
|
152
153
|
brokerType?: string | null | undefined;
|
|
153
154
|
network?: string | null | undefined;
|
|
154
|
-
firstName?: string | null | undefined;
|
|
155
155
|
lastName?: string | null | undefined;
|
|
156
156
|
}> & {
|
|
157
157
|
_id: mongoose.Types.ObjectId;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
2
|
import { applyWorkflowPlugin } from "../shared/workflow.plugin";
|
|
3
3
|
const brokerSchema = new mongoose.Schema({
|
|
4
|
-
brokerId: { type:
|
|
4
|
+
brokerId: { type: Number, required: true, unique: true },
|
|
5
5
|
landlinePhone: { type: String },
|
|
6
6
|
mobileTelephone: { type: String },
|
|
7
7
|
addressPostCode: { type: String },
|
|
@@ -15,7 +15,7 @@ const brokerSchema = new mongoose.Schema({
|
|
|
15
15
|
brokerType: { type: String },
|
|
16
16
|
email: { type: String },
|
|
17
17
|
network: { type: String },
|
|
18
|
-
firstName: { type: String },
|
|
18
|
+
firstName: { type: String, required: true },
|
|
19
19
|
lastName: { type: String }
|
|
20
20
|
}, { timestamps: true });
|
|
21
21
|
// Apply workflow plugin to the schema
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { Document } from "mongoose";
|
|
30
|
+
export interface IBroker extends Document {
|
|
31
|
+
brokerId: number;
|
|
32
|
+
landlinePhone?: string;
|
|
33
|
+
mobileTelephone?: string;
|
|
34
|
+
addressPostCode?: string;
|
|
35
|
+
addressLine1?: string;
|
|
36
|
+
addressLine2?: string;
|
|
37
|
+
addressLine3?: string;
|
|
38
|
+
addressCity?: string;
|
|
39
|
+
addressCountry?: string;
|
|
40
|
+
tradingName?: string;
|
|
41
|
+
fcaNumber?: string;
|
|
42
|
+
brokerType?: string;
|
|
43
|
+
email?: string;
|
|
44
|
+
network?: string;
|
|
45
|
+
firstName: string;
|
|
46
|
+
lastName?: string;
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
updatedAt: Date;
|
|
49
|
+
}
|
|
50
|
+
export type BrokerDocument = IBroker;
|
|
51
|
+
//# sourceMappingURL=broker.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broker.type.d.ts","sourceRoot":"","sources":["../../applications/broker.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,WAAW,OAAQ,SAAQ,QAAQ;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -31,7 +31,7 @@ declare const UserModel: mongoose.Model<{
|
|
|
31
31
|
createdAt: NativeDate;
|
|
32
32
|
updatedAt: NativeDate;
|
|
33
33
|
} & {
|
|
34
|
-
accountId:
|
|
34
|
+
accountId: number;
|
|
35
35
|
fullName: string;
|
|
36
36
|
status: string;
|
|
37
37
|
email: string;
|
|
@@ -60,7 +60,7 @@ declare const UserModel: mongoose.Model<{
|
|
|
60
60
|
createdAt: NativeDate;
|
|
61
61
|
updatedAt: NativeDate;
|
|
62
62
|
} & {
|
|
63
|
-
accountId:
|
|
63
|
+
accountId: number;
|
|
64
64
|
fullName: string;
|
|
65
65
|
status: string;
|
|
66
66
|
email: string;
|
|
@@ -89,7 +89,7 @@ declare const UserModel: mongoose.Model<{
|
|
|
89
89
|
createdAt: NativeDate;
|
|
90
90
|
updatedAt: NativeDate;
|
|
91
91
|
} & {
|
|
92
|
-
accountId:
|
|
92
|
+
accountId: number;
|
|
93
93
|
fullName: string;
|
|
94
94
|
status: string;
|
|
95
95
|
email: string;
|
|
@@ -124,7 +124,7 @@ declare const UserModel: mongoose.Model<{
|
|
|
124
124
|
createdAt: NativeDate;
|
|
125
125
|
updatedAt: NativeDate;
|
|
126
126
|
} & {
|
|
127
|
-
accountId:
|
|
127
|
+
accountId: number;
|
|
128
128
|
fullName: string;
|
|
129
129
|
status: string;
|
|
130
130
|
email: string;
|
|
@@ -153,7 +153,7 @@ declare const UserModel: mongoose.Model<{
|
|
|
153
153
|
createdAt: NativeDate;
|
|
154
154
|
updatedAt: NativeDate;
|
|
155
155
|
} & {
|
|
156
|
-
accountId:
|
|
156
|
+
accountId: number;
|
|
157
157
|
fullName: string;
|
|
158
158
|
status: string;
|
|
159
159
|
email: string;
|
|
@@ -182,7 +182,7 @@ declare const UserModel: mongoose.Model<{
|
|
|
182
182
|
createdAt: NativeDate;
|
|
183
183
|
updatedAt: NativeDate;
|
|
184
184
|
} & {
|
|
185
|
-
accountId:
|
|
185
|
+
accountId: number;
|
|
186
186
|
fullName: string;
|
|
187
187
|
status: string;
|
|
188
188
|
email: string;
|
package/dist/users/user.model.js
CHANGED
|
@@ -4,7 +4,7 @@ const ClaimSchema = new mongoose.Schema({
|
|
|
4
4
|
value: { type: String, required: true }
|
|
5
5
|
});
|
|
6
6
|
const userSchema = new mongoose.Schema({
|
|
7
|
-
accountId: { type:
|
|
7
|
+
accountId: { type: Number, required: true, unique: true },
|
|
8
8
|
email: { type: String, required: true },
|
|
9
9
|
fullName: { type: String, required: true },
|
|
10
10
|
password: { type: String, required: true },
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { Document, Types } from "mongoose";
|
|
30
|
+
export interface IClaim {
|
|
31
|
+
key: string;
|
|
32
|
+
value: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IUser extends Document {
|
|
35
|
+
accountId: number;
|
|
36
|
+
email: string;
|
|
37
|
+
fullName: string;
|
|
38
|
+
password: string;
|
|
39
|
+
organisationId?: any;
|
|
40
|
+
status: string;
|
|
41
|
+
groups: Types.ObjectId[];
|
|
42
|
+
claims: IClaim[];
|
|
43
|
+
externalData?: any;
|
|
44
|
+
modifiedOn?: string;
|
|
45
|
+
modifiedById?: string;
|
|
46
|
+
createdOnInApprivo?: string;
|
|
47
|
+
createdById?: string;
|
|
48
|
+
deletedOn?: string;
|
|
49
|
+
deletedById?: string;
|
|
50
|
+
token?: string;
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
updatedAt: Date;
|
|
53
|
+
}
|
|
54
|
+
export type UserDocument = IUser;
|
|
55
|
+
//# sourceMappingURL=user.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.type.d.ts","sourceRoot":"","sources":["../../users/user.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,MAAM;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,KAAM,SAAQ,QAAQ;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACnB;AAED,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamatix/gb-schemas",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.301",
|
|
4
4
|
"description": "All the schemas for gatehouse bank back-end",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@dynamatix/cat-shared": "^0.0.
|
|
39
|
+
"@dynamatix/cat-shared": "^0.0.130",
|
|
40
40
|
"dotenv": "^16.4.5",
|
|
41
41
|
"mongodb": "^6.14.2",
|
|
42
42
|
"mongoose": "^8.9.5"
|