@groundbrick/service-base 0.0.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.
- package/README.md +713 -0
- package/dist/core/BaseService.d.ts +55 -0
- package/dist/core/BaseService.d.ts.map +1 -0
- package/dist/core/BaseService.js +123 -0
- package/dist/core/BaseService.js.map +1 -0
- package/dist/email/EmailConfigurationService.d.ts +14 -0
- package/dist/email/EmailConfigurationService.d.ts.map +1 -0
- package/dist/email/EmailConfigurationService.js +60 -0
- package/dist/email/EmailConfigurationService.js.map +1 -0
- package/dist/email/EmailService.d.ts +15 -0
- package/dist/email/EmailService.d.ts.map +1 -0
- package/dist/email/EmailService.js +96 -0
- package/dist/email/EmailService.js.map +1 -0
- package/dist/email/interfaces/EmailInterfaces.d.ts +45 -0
- package/dist/email/interfaces/EmailInterfaces.d.ts.map +1 -0
- package/dist/email/interfaces/EmailInterfaces.js +2 -0
- package/dist/email/interfaces/EmailInterfaces.js.map +1 -0
- package/dist/email/providers/SmtpEmailProvider.d.ts +14 -0
- package/dist/email/providers/SmtpEmailProvider.d.ts.map +1 -0
- package/dist/email/providers/SmtpEmailProvider.js +88 -0
- package/dist/email/providers/SmtpEmailProvider.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/types/BusinessError.d.ts +31 -0
- package/dist/types/BusinessError.d.ts.map +1 -0
- package/dist/types/BusinessError.js +57 -0
- package/dist/types/BusinessError.js.map +1 -0
- package/dist/types/ServiceOptions.d.ts +14 -0
- package/dist/types/ServiceOptions.d.ts.map +1 -0
- package/dist/types/ServiceOptions.js +2 -0
- package/dist/types/ServiceOptions.js.map +1 -0
- package/dist/types/ServiceResult.d.ts +31 -0
- package/dist/types/ServiceResult.d.ts.map +1 -0
- package/dist/types/ServiceResult.js +61 -0
- package/dist/types/ServiceResult.js.map +1 -0
- package/dist/validation/ValidationError.d.ts +14 -0
- package/dist/validation/ValidationError.d.ts.map +1 -0
- package/dist/validation/ValidationError.js +2 -0
- package/dist/validation/ValidationError.js.map +1 -0
- package/dist/validation/ValidationHelper.d.ts +70 -0
- package/dist/validation/ValidationHelper.d.ts.map +1 -0
- package/dist/validation/ValidationHelper.js +169 -0
- package/dist/validation/ValidationHelper.js.map +1 -0
- package/dist/validation/ValidationResult.d.ts +12 -0
- package/dist/validation/ValidationResult.d.ts.map +1 -0
- package/dist/validation/ValidationResult.js +2 -0
- package/dist/validation/ValidationResult.js.map +1 -0
- package/dist/validation/Validator.d.ts +35 -0
- package/dist/validation/Validator.d.ts.map +1 -0
- package/dist/validation/Validator.js +52 -0
- package/dist/validation/Validator.js.map +1 -0
- package/package.json +60 -0
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@groundbrick/service-base",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Service layer base classes with validation, error handling, business logic patterns, and generic email infrastructure",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/**/*",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc --build",
|
|
22
|
+
"clean": "rm -rf dist *.tsbuildinfo",
|
|
23
|
+
"lint": "eslint src/**/*.ts",
|
|
24
|
+
"lint:fix": "eslint src/**/*.ts --fix"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"typescript",
|
|
28
|
+
"service-layer",
|
|
29
|
+
"business-logic",
|
|
30
|
+
"validation",
|
|
31
|
+
"microframework",
|
|
32
|
+
"error-handling",
|
|
33
|
+
"transactions",
|
|
34
|
+
"email",
|
|
35
|
+
"notifications"
|
|
36
|
+
],
|
|
37
|
+
"author": "Cleiton Marques <cleiton.marques@200.systems>",
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git+https://github.com/200Systems/bitbrick-microframework.git",
|
|
42
|
+
"directory": "packages/service-base"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@groundbrick/db-core": "workspace:*",
|
|
46
|
+
"@groundbrick/logger": "workspace:*",
|
|
47
|
+
"nodemailer": "^6.10.1"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "^20.10.0",
|
|
51
|
+
"@types/nodemailer": "^6.4.14",
|
|
52
|
+
"typescript": "^5.8.3"
|
|
53
|
+
},
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=18.0.0"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
59
|
+
}
|
|
60
|
+
}
|