@avleon/core 0.0.8 → 0.0.11

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 (45) hide show
  1. package/dist/authentication.d.ts +6 -0
  2. package/dist/authentication.js +7 -2
  3. package/dist/collection.js +7 -0
  4. package/dist/config.d.ts +7 -1
  5. package/dist/config.js +6 -0
  6. package/dist/container.d.ts +8 -0
  7. package/dist/container.js +9 -1
  8. package/dist/controller.js +6 -0
  9. package/dist/decorators.d.ts +6 -0
  10. package/dist/decorators.js +6 -0
  11. package/dist/environment-variables.d.ts +7 -0
  12. package/dist/environment-variables.js +10 -1
  13. package/dist/exceptions/http-exceptions.d.ts +6 -0
  14. package/dist/exceptions/http-exceptions.js +6 -0
  15. package/dist/exceptions/system-exception.d.ts +6 -0
  16. package/dist/file-storage.d.ts +17 -0
  17. package/dist/file-storage.js +153 -0
  18. package/dist/helpers.js +7 -1
  19. package/dist/icore.d.ts +105 -9
  20. package/dist/icore.js +193 -40
  21. package/dist/index.d.ts +9 -0
  22. package/dist/index.js +9 -1
  23. package/dist/map-types.d.ts +6 -1
  24. package/dist/map-types.js +6 -1
  25. package/dist/middleware.js +6 -0
  26. package/dist/multipart.d.ts +17 -0
  27. package/dist/multipart.js +62 -0
  28. package/dist/openapi.d.ts +6 -0
  29. package/dist/params.js +6 -0
  30. package/dist/queue.d.ts +6 -0
  31. package/dist/queue.js +6 -0
  32. package/dist/response.d.ts +6 -0
  33. package/dist/response.js +8 -1
  34. package/dist/security.d.ts +4 -0
  35. package/dist/security.js +15 -0
  36. package/dist/swagger-schema.d.ts +6 -0
  37. package/dist/swagger-schema.js +6 -0
  38. package/dist/types/app-builder.interface.d.ts +6 -0
  39. package/dist/types/app-builder.interface.js +6 -0
  40. package/dist/types/application.interface.d.ts +6 -0
  41. package/dist/validation.d.ts +6 -0
  42. package/dist/validation.js +6 -0
  43. package/dist/validator-extend.d.ts +6 -0
  44. package/dist/validator-extend.js +6 -0
  45. package/package.json +15 -8
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generateSwaggerSchema = generateSwaggerSchema;
4
+ /**
5
+ * @copyright 2024
6
+ * @author Tareq Hossain
7
+ * @email xtrinsic96@gmail.com
8
+ * @url https://github.com/xtareq
9
+ */
4
10
  function generateSwaggerSchema(classType) {
5
11
  const { getMetadataStorage } = require("class-validator");
6
12
  const { plainToInstance } = require("class-transformer");
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @copyright 2024
3
+ * @author Tareq Hossain
4
+ * @email xtrinsic96@gmail.com
5
+ * @url https://github.com/xtareq
6
+ */
1
7
  import { IApplication } from "./application.interface";
2
8
  export interface IAppBuilder {
3
9
  createBuilder(): IAppBuilder;
@@ -1,2 +1,8 @@
1
1
  "use strict";
2
+ /**
3
+ * @copyright 2024
4
+ * @author Tareq Hossain
5
+ * @email xtrinsic96@gmail.com
6
+ * @url https://github.com/xtareq
7
+ */
2
8
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,8 @@
1
+ /**
2
+ * @copyright 2024
3
+ * @author Tareq Hossain
4
+ * @email xtrinsic96@gmail.com
5
+ * @url https://github.com/xtareq
6
+ */
1
7
  export interface IApplication {
2
8
  }
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @copyright 2024
3
+ * @author Tareq Hossain
4
+ * @email xtrinsic96@gmail.com
5
+ * @url https://github.com/xtareq
6
+ */
1
7
  type BaseRule = {
2
8
  required?: boolean;
3
9
  optional?: boolean;
@@ -1,4 +1,10 @@
1
1
  "use strict";
2
+ /**
3
+ * @copyright 2024
4
+ * @author Tareq Hossain
5
+ * @email xtrinsic96@gmail.com
6
+ * @url https://github.com/xtareq
7
+ */
2
8
  Object.defineProperty(exports, "__esModule", { value: true });
3
9
  exports.validateOrThrow = validateOrThrow;
4
10
  const exceptions_1 = require("./exceptions");
@@ -1 +1,7 @@
1
+ /**
2
+ * @copyright 2024
3
+ * @author Tareq Hossain
4
+ * @email xtrinsic96@gmail.com
5
+ * @url https://github.com/xtareq
6
+ */
1
7
  export declare function IsArrayNotEmpty(validationOptions?: any): (object: Object, propertyName: string) => void;
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IsArrayNotEmpty = IsArrayNotEmpty;
4
+ /**
5
+ * @copyright 2024
6
+ * @author Tareq Hossain
7
+ * @email xtrinsic96@gmail.com
8
+ * @url https://github.com/xtareq
9
+ */
4
10
  function IsArrayNotEmpty(validationOptions) {
5
11
  const { registerDecorator, ValidationArguments } = require("class-validator");
6
12
  return function (object, propertyName) {
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@avleon/core",
3
- "version": "0.0.8",
3
+ "version": "0.0.11",
4
4
  "main": "./dist/index.js",
5
- "types": "./dist/index.d.ts",
5
+ "types": [
6
+ "./dist/index.d.ts",
7
+ "./exceptions/index.d.ts"
8
+ ],
6
9
  "scripts": {
7
10
  "build": "rimraf dist && tsc",
8
11
  "watch": "tsc-watch",
@@ -14,27 +17,31 @@
14
17
  "license": "ISC",
15
18
  "devDependencies": {
16
19
  "@types/jest": "^29.5.14",
20
+ "class-transformer": "^0.5.1",
21
+ "class-validator": "^0.14.1",
17
22
  "jest": "^29.7.0",
18
23
  "nodemon": "^3.1.7",
24
+ "sharp": "^0.33.5",
19
25
  "ts-jest": "^29.2.5",
20
26
  "ts-node": "^10.9.2",
21
27
  "tsc-watch": "^6.2.1",
28
+ "typeorm": "^0.3.20",
22
29
  "typescript": "^5.7.2"
23
30
  },
24
31
  "dependencies": {
32
+ "@fastify/cors": "^11.0.0",
33
+ "@fastify/multipart": "^9.0.3",
25
34
  "@fastify/static": "^8.1.1",
26
35
  "@fastify/swagger": "^9.4.0",
27
36
  "@fastify/swagger-ui": "^5.1.0",
28
- "class-transformer": "^0.5.1",
29
- "class-validator": "^0.14.1",
37
+ "bcryptjs": "^3.0.2",
30
38
  "dotenv": "^16.4.7",
31
39
  "fastify": "^5.1.0",
32
40
  "reflect-metadata": "^0.2.2",
33
- "typedi": "^0.10.0",
34
- "typeorm": "^0.3.20"
41
+ "typedi": "^0.10.0"
35
42
  },
36
43
  "peerDependencies": {
37
- "@scalar/fastify-api-reference": "^1.25.130"
44
+ "typeorm": "^0.3.20"
38
45
  },
39
46
  "directories": {
40
47
  "test": "tests"
@@ -44,4 +51,4 @@
44
51
  "type": "git",
45
52
  "url": "git+https://github.com/avleonjs/avleon-core"
46
53
  }
47
- }
54
+ }