@solidstarters/solid-core 1.2.91 → 1.2.93
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/# Password field.md +8 -0
- package/dist/controllers/import-transaction.controller.d.ts +2 -1
- package/dist/controllers/import-transaction.controller.d.ts.map +1 -1
- package/dist/controllers/import-transaction.controller.js +16 -4
- package/dist/controllers/import-transaction.controller.js.map +1 -1
- package/dist/dtos/create-menu-item-metadata.dto.d.ts +2 -1
- package/dist/dtos/create-menu-item-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/create-menu-item-metadata.dto.js +22 -3
- package/dist/dtos/create-menu-item-metadata.dto.js.map +1 -1
- package/dist/dtos/create-role-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/create-role-metadata.dto.js +11 -0
- package/dist/dtos/create-role-metadata.dto.js.map +1 -1
- package/dist/dtos/update-menu-item-metadata.dto.d.ts +2 -1
- package/dist/dtos/update-menu-item-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/update-menu-item-metadata.dto.js +24 -5
- package/dist/dtos/update-menu-item-metadata.dto.js.map +1 -1
- package/dist/dtos/update-role-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/update-role-metadata.dto.js +12 -1
- package/dist/dtos/update-role-metadata.dto.js.map +1 -1
- package/dist/entities/menu-item-metadata.entity.d.ts +2 -1
- package/dist/entities/menu-item-metadata.entity.d.ts.map +1 -1
- package/dist/entities/menu-item-metadata.entity.js +13 -8
- package/dist/entities/menu-item-metadata.entity.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +31 -0
- package/dist/services/authentication.service.d.ts.map +1 -1
- package/dist/services/authentication.service.js +8 -3
- package/dist/services/authentication.service.js.map +1 -1
- package/dist/services/crud.service.js +1 -1
- package/dist/services/crud.service.js.map +1 -1
- package/dist/services/import-transaction.service.d.ts +19 -6
- package/dist/services/import-transaction.service.d.ts.map +1 -1
- package/dist/services/import-transaction.service.js +214 -87
- package/dist/services/import-transaction.service.js.map +1 -1
- package/dist/services/menu-item-metadata.service.d.ts.map +1 -1
- package/dist/services/menu-item-metadata.service.js +1 -0
- package/dist/services/menu-item-metadata.service.js.map +1 -1
- package/dist/services/setting.service.d.ts.map +1 -1
- package/dist/services/setting.service.js +6 -2
- package/dist/services/setting.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/controllers/import-transaction.controller.ts +9 -3
- package/src/dtos/create-menu-item-metadata.dto.ts +21 -13
- package/src/dtos/create-role-metadata.dto.ts +48 -45
- package/src/dtos/update-menu-item-metadata.dto.ts +23 -16
- package/src/dtos/update-role-metadata.dto.ts +49 -47
- package/src/entities/menu-item-metadata.entity.ts +14 -14
- package/src/seeders/seed-data/email-templates/forgot-password.handlebars.html +134 -154
- package/src/seeders/seed-data/email-templates/on-force-password-change.handlebars.html +141 -195
- package/src/seeders/seed-data/email-templates/otp-on-login.handlebars.html +130 -144
- package/src/seeders/seed-data/email-templates/otp-on-register.handlebars.html +131 -145
- package/src/seeders/seed-data/solid-core-metadata.json +31 -0
- package/src/services/authentication.service.ts +8 -3
- package/src/services/crud.service.ts +1 -1
- package/src/services/import-transaction.service.ts +313 -121
- package/src/services/menu-item-metadata.service.ts +2 -0
- package/src/services/pending_import_issues +3 -0
- package/src/services/setting.service.ts +6 -2
|
@@ -1,160 +1,146 @@
|
|
|
1
|
-
<!DOCTYPE html
|
|
2
|
-
|
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
4
3
|
|
|
5
4
|
<head>
|
|
6
|
-
<meta
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<title>Reset Your Password</title>
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
|
|
9
|
+
<style>
|
|
10
|
+
@import url("https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap");
|
|
11
|
+
|
|
12
|
+
body {
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
background-color: #f4f4f7;
|
|
16
|
+
font-family: "Nunito Sans", Helvetica, Arial, sans-serif;
|
|
17
|
+
color: #333;
|
|
18
|
+
}
|
|
10
19
|
|
|
11
|
-
|
|
12
|
-
|
|
20
|
+
.email-wrapper {
|
|
21
|
+
max-width: 600px;
|
|
22
|
+
margin: 0 auto;
|
|
23
|
+
padding: 20px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.logo {
|
|
27
|
+
text-align: center;
|
|
28
|
+
margin-bottom: 20px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.logo img {
|
|
32
|
+
height: 50px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.content-box {
|
|
36
|
+
background-color: #ffffff;
|
|
37
|
+
padding: 40px;
|
|
38
|
+
border-radius: 8px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.title {
|
|
42
|
+
font-size: 22px;
|
|
43
|
+
margin-bottom: 10px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.intro {
|
|
47
|
+
font-size: 16px;
|
|
48
|
+
line-height: 1.6;
|
|
49
|
+
margin: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.credentials {
|
|
53
|
+
background-color: #f9f9f9;
|
|
54
|
+
padding: 15px;
|
|
55
|
+
border-radius: 5px;
|
|
56
|
+
margin-bottom: 30px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.credentials p {
|
|
60
|
+
margin: 0 0 10px;
|
|
61
|
+
font-size: 16px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.button-container {
|
|
65
|
+
text-align: center;
|
|
66
|
+
margin-bottom: 30px;
|
|
67
|
+
margin-top: 20px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.button {
|
|
71
|
+
display: inline-block;
|
|
72
|
+
padding: 12px 24px;
|
|
73
|
+
background-color: #722ED1;
|
|
74
|
+
color: #ffffff;
|
|
75
|
+
text-decoration: none;
|
|
76
|
+
font-weight: bold;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.footer-text {
|
|
80
|
+
font-size: 16px;
|
|
81
|
+
line-height: 1.6;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.footer {
|
|
85
|
+
text-align: center;
|
|
86
|
+
font-size: 12px;
|
|
87
|
+
color: #6b6e76;
|
|
88
|
+
margin-top: 40px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media only screen and (max-width: 600px) {
|
|
92
|
+
.email-wrapper {
|
|
13
93
|
width: 100% !important;
|
|
94
|
+
padding: 20px 0 !important;
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.content-box {
|
|
99
|
+
padding: 20px !important;
|
|
100
|
+
border-radius: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.title {
|
|
104
|
+
font-size: 18px !important;
|
|
14
105
|
}
|
|
15
|
-
}
|
|
16
106
|
|
|
17
|
-
@media only screen and (max-width: 500px) {
|
|
18
107
|
.button {
|
|
19
|
-
width: 100% !important;
|
|
108
|
+
/* width: 100% !important; */
|
|
109
|
+
padding: 10px !important;
|
|
110
|
+
font-size: 14px;
|
|
20
111
|
}
|
|
21
112
|
}
|
|
22
113
|
</style>
|
|
23
114
|
</head>
|
|
24
115
|
|
|
25
|
-
<body
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<table class="email-body_inner" align="center" width="570" cellpadding="0" cellspacing="0"
|
|
54
|
-
style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box; width: 570px; margin: 0 auto; padding: 0;">
|
|
55
|
-
<!-- Body content -->
|
|
56
|
-
<tr>
|
|
57
|
-
<td class="content-cell"
|
|
58
|
-
style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box; padding: 35px;">
|
|
59
|
-
|
|
60
|
-
<h1
|
|
61
|
-
style="margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box;">
|
|
62
|
-
Hi {{ firstName }},</h1>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<p
|
|
66
|
-
style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box;">
|
|
67
|
-
Welcome to {{ solidAppName }}! We're very excited to have you on board.</p>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<!-- Dictionary -->
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<!-- Table -->
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
<!-- Action -->
|
|
79
|
-
|
|
80
|
-
<p
|
|
81
|
-
style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box;">
|
|
82
|
-
To get started with {{ solidAppName }}, please verify your account using the
|
|
83
|
-
below verification code.</p>
|
|
84
|
-
<!--[if mso]>
|
|
85
|
-
<center>
|
|
86
|
-
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="" style="height: 45px; v-text-anchor: middle; width: 200px;" arcsize="10%" stroke="f" fillcolor="#22BC66">
|
|
87
|
-
<w:anchorlock/>
|
|
88
|
-
<center style="color: #ffffff; font-family: sans-serif; font-size: 15px;">
|
|
89
|
-
321455
|
|
90
|
-
</center>
|
|
91
|
-
</v:roundrect>
|
|
92
|
-
</center>
|
|
93
|
-
<![endif]-->
|
|
94
|
-
<![if !mso]>
|
|
95
|
-
<table class="body-action" align="center" cellpadding="0" cellspacing="0"
|
|
96
|
-
style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box; width: 100%; margin: 30px auto; padding: 0; text-align: center;"
|
|
97
|
-
width="100%">
|
|
98
|
-
<tr>
|
|
99
|
-
<td align="center"
|
|
100
|
-
style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box;">
|
|
101
|
-
<a class="button"
|
|
102
|
-
style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box; display: inline-block; width: 200px; border-radius: 3px; color: #ffffff; font-size: 15px; line-height: 45px; text-align: center; text-decoration: none; -webkit-text-size-adjust: none; mso-hide: all; background-color: #22BC66;">
|
|
103
|
-
{{ emailVerificationTokenOnRegistration }}
|
|
104
|
-
</a>
|
|
105
|
-
</td>
|
|
106
|
-
</tr>
|
|
107
|
-
</table>
|
|
108
|
-
<![endif]>
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
<!-- Support for Gmail Go-To Actions -->
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
<p
|
|
116
|
-
style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box;">
|
|
117
|
-
Need help, or have questions? Just reply to this email, we'd love to help.
|
|
118
|
-
</p>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<p
|
|
123
|
-
style="margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box;">
|
|
124
|
-
Yours truly,
|
|
125
|
-
<br>
|
|
126
|
-
{{ solidAppName }}
|
|
127
|
-
</p>
|
|
128
|
-
|
|
129
|
-
</td>
|
|
130
|
-
</tr>
|
|
131
|
-
</table>
|
|
132
|
-
</td>
|
|
133
|
-
</tr>
|
|
134
|
-
|
|
135
|
-
<tr>
|
|
136
|
-
<td
|
|
137
|
-
style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box;">
|
|
138
|
-
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0"
|
|
139
|
-
style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box; width: 570px; margin: 0 auto; padding: 0; text-align: center;">
|
|
140
|
-
<tr>
|
|
141
|
-
<td class="content-cell"
|
|
142
|
-
style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box; padding: 35px;">
|
|
143
|
-
<p class="sub center"
|
|
144
|
-
style="margin-top: 0; line-height: 1.5em; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box; color: #AEAEAE; font-size: 12px; text-align: center;">
|
|
145
|
-
© 2024 <a href="{{ solidAppWebsiteUrl }}" target="_blank"
|
|
146
|
-
style="color: #3869D4; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-box-sizing: border-box; box-sizing: border-box;">Example
|
|
147
|
-
Solid App</a>. All rights reserved.
|
|
148
|
-
</p>
|
|
149
|
-
</td>
|
|
150
|
-
</tr>
|
|
151
|
-
</table>
|
|
152
|
-
</td>
|
|
153
|
-
</tr>
|
|
154
|
-
</table>
|
|
155
|
-
</td>
|
|
156
|
-
</tr>
|
|
157
|
-
</table>
|
|
116
|
+
<body>
|
|
117
|
+
<div class="email-wrapper">
|
|
118
|
+
<!-- Logo outside the box -->
|
|
119
|
+
<div class="logo">
|
|
120
|
+
<img src="https://yourcompany.com/logo.png" alt="Company Logo" />
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
<!-- Content Box -->
|
|
124
|
+
<div class="content-box">
|
|
125
|
+
<h2 class="title">Hi, {{ fullName }}</h2>
|
|
126
|
+
<p class="intro">
|
|
127
|
+
To get started with {{ solidAppName }}, please verify your account using the
|
|
128
|
+
below verification code.
|
|
129
|
+
</p>
|
|
130
|
+
<div class="button-container">
|
|
131
|
+
<div class="button">
|
|
132
|
+
{{ emailVerificationTokenOnRegistration }}
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
<p class="footer-text">
|
|
136
|
+
If you have any questions, just reply to this email—we’re happy to help.
|
|
137
|
+
</p>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<div class="footer">
|
|
141
|
+
© 2025 <a href="{{ solidAppWebsiteUrl }}" target="_blank">{{ solidAppName }}</a>. All rights reserved.
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
158
144
|
</body>
|
|
159
145
|
|
|
160
146
|
</html>
|
|
@@ -1496,6 +1496,19 @@
|
|
|
1496
1496
|
"relationModelModuleName": "solid-core",
|
|
1497
1497
|
"isSystem": true,
|
|
1498
1498
|
"isRelationManyToManyOwner": true
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"name": "iconName",
|
|
1502
|
+
"displayName": "Icon",
|
|
1503
|
+
"type": "shortText",
|
|
1504
|
+
"ormType": "varchar",
|
|
1505
|
+
"required": false,
|
|
1506
|
+
"unique": false,
|
|
1507
|
+
"index": false,
|
|
1508
|
+
"private": false,
|
|
1509
|
+
"encrypt": false,
|
|
1510
|
+
"columnName": "icon_name",
|
|
1511
|
+
"isSystem": true
|
|
1499
1512
|
}
|
|
1500
1513
|
]
|
|
1501
1514
|
},
|
|
@@ -6574,6 +6587,24 @@
|
|
|
6574
6587
|
}
|
|
6575
6588
|
}
|
|
6576
6589
|
]
|
|
6590
|
+
},
|
|
6591
|
+
{
|
|
6592
|
+
"type": "group",
|
|
6593
|
+
"attrs": {
|
|
6594
|
+
"name": "group-1",
|
|
6595
|
+
"label": "",
|
|
6596
|
+
"className": "col-6"
|
|
6597
|
+
},
|
|
6598
|
+
"children": [
|
|
6599
|
+
{
|
|
6600
|
+
"type": "field",
|
|
6601
|
+
"attrs": {
|
|
6602
|
+
"name": "iconName",
|
|
6603
|
+
"editWidget" : "SolidIconEditWidget",
|
|
6604
|
+
"viewWidget" : "SolidIconViewWidget"
|
|
6605
|
+
}
|
|
6606
|
+
}
|
|
6607
|
+
]
|
|
6577
6608
|
}
|
|
6578
6609
|
]
|
|
6579
6610
|
}
|
|
@@ -362,6 +362,7 @@ export class AuthenticationService {
|
|
|
362
362
|
solidAppName: process.env.SOLID_APP_NAME,
|
|
363
363
|
solidAppWebsiteUrl: process.env.SOLID_APP_WEBSITE_URL,
|
|
364
364
|
firstName: user.username,
|
|
365
|
+
fullName: user.fullName,
|
|
365
366
|
emailVerificationTokenOnRegistration: user.emailVerificationTokenOnRegistration,
|
|
366
367
|
},
|
|
367
368
|
this.commonConfiguration.shouldQueueEmails,
|
|
@@ -377,7 +378,8 @@ export class AuthenticationService {
|
|
|
377
378
|
solidAppName: process.env.SOLID_APP_NAME,
|
|
378
379
|
otp: user.mobileVerificationTokenOnRegistration,
|
|
379
380
|
mobileVerificationTokenOnRegistration: user.mobileVerificationTokenOnRegistration,
|
|
380
|
-
firstName: user.username
|
|
381
|
+
firstName: user.username,
|
|
382
|
+
fullName: user.fullName,
|
|
381
383
|
}
|
|
382
384
|
);
|
|
383
385
|
}
|
|
@@ -541,7 +543,8 @@ export class AuthenticationService {
|
|
|
541
543
|
solidAppName: process.env.SOLID_APP_NAME,
|
|
542
544
|
solidAppWebsiteUrl: process.env.SOLID_APP_WEBSITE_URL,
|
|
543
545
|
firstName: user.username,
|
|
544
|
-
emailVerificationTokenOnLogin: user.emailVerificationTokenOnLogin
|
|
546
|
+
emailVerificationTokenOnLogin: user.emailVerificationTokenOnLogin,
|
|
547
|
+
fullName: user.fullName,
|
|
545
548
|
},
|
|
546
549
|
this.commonConfiguration.shouldQueueEmails,
|
|
547
550
|
'user',
|
|
@@ -556,7 +559,8 @@ export class AuthenticationService {
|
|
|
556
559
|
solidAppName: process.env.SOLID_APP_NAME,
|
|
557
560
|
otp: user.mobileVerificationTokenOnLogin,
|
|
558
561
|
mobileVerificationTokenOnLogin: user.mobileVerificationTokenOnLogin,
|
|
559
|
-
firstName: user.username
|
|
562
|
+
firstName: user.username,
|
|
563
|
+
fullName: user.fullName,
|
|
560
564
|
}
|
|
561
565
|
);
|
|
562
566
|
}
|
|
@@ -739,6 +743,7 @@ export class AuthenticationService {
|
|
|
739
743
|
solidAppName: process.env.SOLID_APP_NAME,
|
|
740
744
|
solidAppWebsiteUrl: process.env.SOLID_APP_WEBSITE_URL,
|
|
741
745
|
firstName: user.username,
|
|
746
|
+
fullName: user.fullName,
|
|
742
747
|
// TODO: Need to prefix this with the page url where the forgot password page will open up.
|
|
743
748
|
passwordResetLink: `${process.env.IAM_FRONTEND_APP_FORGOT_PASSWORD_PAGE_URL}?token=${user.verificationTokenOnForgotPassword}&username=${user.username}`
|
|
744
749
|
},
|
|
@@ -637,7 +637,7 @@ export class CRUDService<T> { // Add two generic value i.e Person,CreatePersonDt
|
|
|
637
637
|
|
|
638
638
|
// Process each createDto in parallel
|
|
639
639
|
const createAndSavePromises = createDtos.map(async (createDto, index) => {
|
|
640
|
-
const files =
|
|
640
|
+
const files = []; // TODO, This is set, because we are not supporting files for insertMany currently
|
|
641
641
|
let hasMediaFields = false;
|
|
642
642
|
|
|
643
643
|
// Process each field
|