generator-nokode 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generators/app/index.js +1 -1
- package/generators/app/templates/.gradle/9.0.0/fileHashes/fileHashes.lock +0 -0
- package/generators/app/templates/03-main-resources/messages.properties +59 -0
- package/generators/base-generator.js +1 -1
- package/generators/constants.js +2 -2
- package/package.json +1 -1
package/generators/app/index.js
CHANGED
|
@@ -114,7 +114,7 @@ export default class NokodeGenerator extends BaseGenerator {
|
|
|
114
114
|
_writeMainResourceFiles() {
|
|
115
115
|
const srcPath = `03-main-resources`;
|
|
116
116
|
const destPath = `src/main/resources`;
|
|
117
|
-
['application.properties', 'META-INF/additional-spring-configuration-metadata.json'].forEach((fileName) =>
|
|
117
|
+
['application.properties', 'META-INF/additional-spring-configuration-metadata.json', 'messages.properties'].forEach((fileName) =>
|
|
118
118
|
this._writeFileWithPaths(`${srcPath}/${fileName}`, `${destPath}/${fileName}`)
|
|
119
119
|
);
|
|
120
120
|
}
|
|
Binary file
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Exception Messages
|
|
2
|
+
exception.unexpected=An unexpected error occurred
|
|
3
|
+
exception.login.failed=Login failed
|
|
4
|
+
exception.loginfailed.unregistered=User is not registered
|
|
5
|
+
exception.loginfailed.mismatch=Invalid credentials provided
|
|
6
|
+
exception.user.already.exists=User already exists
|
|
7
|
+
exception.user.invalid=User is invalid
|
|
8
|
+
|
|
9
|
+
# Success Messages
|
|
10
|
+
message.otp.sent.successfully=OTP sent successfully
|
|
11
|
+
message.password.reset.successfully=Password reset successfully
|
|
12
|
+
|
|
13
|
+
# OTP Message Content
|
|
14
|
+
message.otp.generated.subject=Your OTP Code
|
|
15
|
+
message.otp.generated.content=Your OTP code is: {0}
|
|
16
|
+
|
|
17
|
+
# Log Messages
|
|
18
|
+
log.error.updating.invalid.tokens=Error updating invalid tokens
|
|
19
|
+
|
|
20
|
+
# Base Exception Messages
|
|
21
|
+
exception.default.message=Something Bad Happened!
|
|
22
|
+
exception.generic.error=An unexpected error occurred
|
|
23
|
+
|
|
24
|
+
# Entity Related Exceptions
|
|
25
|
+
exception.entity.invalid=Entity is invalid!
|
|
26
|
+
exception.entity.not.found=Entity not found!
|
|
27
|
+
exception.entity.not.found.with.id={0} not found with the given id: {1}
|
|
28
|
+
exception.entity.not.found.criteria={0} not found with the given criteria
|
|
29
|
+
exception.entity.already.exists=Another {0} already exists with the slug: {1}
|
|
30
|
+
exception.entity.already.exists.with.field={0} already exists with {1}: {2}
|
|
31
|
+
|
|
32
|
+
# Authentication/Authorization Exceptions
|
|
33
|
+
exception.not.authenticated=Not authenticated!
|
|
34
|
+
exception.not.authorized=Not Authorized!
|
|
35
|
+
exception.auth.unable.to.verify.token=Unable to verify the token
|
|
36
|
+
exception.auth.invalid.token=Invalid Token provided!
|
|
37
|
+
exception.auth.token.expired=Token expired
|
|
38
|
+
exception.auth.user.not.found=User not found
|
|
39
|
+
exception.auth.user.not.found.with.id=User not found with the given id: {0}
|
|
40
|
+
exception.auth.unauthorized.action=You are not authorized to take this action
|
|
41
|
+
exception.auth.user.account.inactive=User account is not active
|
|
42
|
+
exception.auth.token.invalid=Token is invalid!
|
|
43
|
+
exception.auth.token.empty=Token is empty!
|
|
44
|
+
|
|
45
|
+
# Validation Exceptions
|
|
46
|
+
exception.validation.parameter.anomaly=Parameter anomaly. Field '{0}' must not be {1}
|
|
47
|
+
exception.validation.min.greater.than.max=min cannot be greater than max
|
|
48
|
+
|
|
49
|
+
# Rest Exception Handler Messages
|
|
50
|
+
exception.rest.request.parameter.anomaly=Request parameter anomaly. {0} {1}
|
|
51
|
+
exception.rest.request.body.empty.or.malformed=Request body is empty or malformed
|
|
52
|
+
exception.rest.invalid.enum.value=Invalid enum value: '{0}' for the field: '{1}'. The value must be one of: {2}
|
|
53
|
+
exception.rest.field.invalid=Request parameter anomaly. {0} is invalid. {1}
|
|
54
|
+
|
|
55
|
+
# Converter Exceptions
|
|
56
|
+
exception.converter.unable.to.convert=Unable to convert {0} to desired class type
|
|
57
|
+
|
|
58
|
+
# Application Constants
|
|
59
|
+
app.csv.import.message=CSV import message
|
package/generators/constants.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const constants = {
|
|
2
2
|
JAVA_VERSION: '17',
|
|
3
|
-
SPRING_BOOT_VERSION: '3.5.
|
|
3
|
+
SPRING_BOOT_VERSION: '3.5.6',
|
|
4
4
|
SPRING_PLUGIN_VERSION: '1.1.7',
|
|
5
5
|
SPRINGDOC_PLUGIN_VERSION: '1.9.0',
|
|
6
6
|
SPRINGDOC_OPENAPI_VERSION: '2.8.13',
|
|
7
|
-
SIXSPRINTS_AUTH_VERSION: '3.5.
|
|
7
|
+
SIXSPRINTS_AUTH_VERSION: '3.5.600',
|
|
8
8
|
SIXSPRINTS_CLOUD_STORAGE_API_VERSION: '2.0.1',
|
|
9
9
|
MAPSTRUCT_VERSION: '1.6.3',
|
|
10
10
|
LOMBOK_MAPSTRUCT_BINDING_VERSION: '0.2.0',
|