@n8n/backend-module-insights 0.1.0

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 (69) hide show
  1. package/LICENSE.md +88 -0
  2. package/dist/build.tsbuildinfo +1 -0
  3. package/dist/index.d.ts +14 -0
  4. package/dist/index.js +28 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/insights-by-period-query.helper.d.ts +15 -0
  7. package/dist/insights-by-period-query.helper.js +45 -0
  8. package/dist/insights-by-period-query.helper.js.map +1 -0
  9. package/dist/insights-by-period.entity.d.ts +17 -0
  10. package/dist/insights-by-period.entity.js +73 -0
  11. package/dist/insights-by-period.entity.js.map +1 -0
  12. package/dist/insights-by-period.repository.d.ts +100 -0
  13. package/dist/insights-by-period.repository.js +347 -0
  14. package/dist/insights-by-period.repository.js.map +1 -0
  15. package/dist/insights-collection.service.d.ts +30 -0
  16. package/dist/insights-collection.service.js +280 -0
  17. package/dist/insights-collection.service.js.map +1 -0
  18. package/dist/insights-compaction.service.d.ts +19 -0
  19. package/dist/insights-compaction.service.js +161 -0
  20. package/dist/insights-compaction.service.js.map +1 -0
  21. package/dist/insights-compaction.task.d.ts +14 -0
  22. package/dist/insights-compaction.task.js +35 -0
  23. package/dist/insights-compaction.task.js.map +1 -0
  24. package/dist/insights-metadata.entity.d.ts +8 -0
  25. package/dist/insights-metadata.entity.js +40 -0
  26. package/dist/insights-metadata.entity.js.map +1 -0
  27. package/dist/insights-metadata.repository.d.ts +7 -0
  28. package/dist/insights-metadata.repository.js +36 -0
  29. package/dist/insights-metadata.repository.js.map +1 -0
  30. package/dist/insights-pruning.service.d.ts +11 -0
  31. package/dist/insights-pruning.service.js +49 -0
  32. package/dist/insights-pruning.service.js.map +1 -0
  33. package/dist/insights-pruning.task.d.ts +15 -0
  34. package/dist/insights-pruning.task.js +36 -0
  35. package/dist/insights-pruning.task.js.map +1 -0
  36. package/dist/insights-raw.entity.d.ts +13 -0
  37. package/dist/insights-raw.entity.js +61 -0
  38. package/dist/insights-raw.entity.js.map +1 -0
  39. package/dist/insights-raw.repository.d.ts +12 -0
  40. package/dist/insights-raw.repository.js +36 -0
  41. package/dist/insights-raw.repository.js.map +1 -0
  42. package/dist/insights-shared.d.ts +21 -0
  43. package/dist/insights-shared.js +30 -0
  44. package/dist/insights-shared.js.map +1 -0
  45. package/dist/insights.config.d.ts +13 -0
  46. package/dist/insights.config.js +80 -0
  47. package/dist/insights.config.js.map +1 -0
  48. package/dist/insights.constants.d.ts +4 -0
  49. package/dist/insights.constants.js +24 -0
  50. package/dist/insights.constants.js.map +1 -0
  51. package/dist/insights.controller.d.ts +16 -0
  52. package/dist/insights.controller.js +159 -0
  53. package/dist/insights.controller.js.map +1 -0
  54. package/dist/insights.module.d.ts +17 -0
  55. package/dist/insights.module.js +51 -0
  56. package/dist/insights.module.js.map +1 -0
  57. package/dist/insights.service.d.ts +73 -0
  58. package/dist/insights.service.js +257 -0
  59. package/dist/insights.service.js.map +1 -0
  60. package/dist/insights.settings.d.ts +20 -0
  61. package/dist/insights.settings.js +48 -0
  62. package/dist/insights.settings.js.map +1 -0
  63. package/dist/testing/db-utils.d.ts +22 -0
  64. package/dist/testing/db-utils.js +76 -0
  65. package/dist/testing/db-utils.js.map +1 -0
  66. package/dist/testing.d.ts +1 -0
  67. package/dist/testing.js +9 -0
  68. package/dist/testing.js.map +1 -0
  69. package/package.json +97 -0
package/package.json ADDED
@@ -0,0 +1,97 @@
1
+ {
2
+ "name": "@n8n/backend-module-insights",
3
+ "version": "0.1.0",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js"
12
+ },
13
+ "./module": {
14
+ "types": "./dist/insights.module.d.ts",
15
+ "import": "./dist/insights.module.js",
16
+ "require": "./dist/insights.module.js"
17
+ },
18
+ "./config": {
19
+ "types": "./dist/insights.config.d.ts",
20
+ "import": "./dist/insights.config.js",
21
+ "require": "./dist/insights.config.js"
22
+ },
23
+ "./testing": {
24
+ "types": "./dist/testing.d.ts",
25
+ "import": "./dist/testing.js",
26
+ "require": "./dist/testing.js"
27
+ }
28
+ },
29
+ "typesVersions": {
30
+ "*": {
31
+ "config": [
32
+ "dist/insights.config.d.ts"
33
+ ],
34
+ "module": [
35
+ "dist/insights.module.d.ts"
36
+ ],
37
+ "testing": [
38
+ "dist/testing.d.ts"
39
+ ]
40
+ }
41
+ },
42
+ "files": [
43
+ "dist/**/*"
44
+ ],
45
+ "dependencies": {
46
+ "@n8n/api-types": "1.43.0",
47
+ "@n8n/backend-common": "1.43.0",
48
+ "@n8n/backend-services": "1.3.0",
49
+ "@n8n/config": "2.41.0",
50
+ "@n8n/constants": "0.41.0",
51
+ "@n8n/db": "1.43.0",
52
+ "@n8n/decorators": "1.43.0",
53
+ "@n8n/di": "0.17.0",
54
+ "@n8n/errors": "0.15.0",
55
+ "@n8n/typeorm": "0.12.0",
56
+ "@n8n/utils": "1.50.0",
57
+ "luxon": "3.7.2",
58
+ "n8n-core": "2.43.0",
59
+ "n8n-workflow": "2.43.0"
60
+ },
61
+ "peerDependencies": {
62
+ "zod": "3.25.76"
63
+ },
64
+ "devDependencies": {
65
+ "@n8n/backend-test-utils": "1.43.0",
66
+ "@n8n/oxlint-config": "0.0.1",
67
+ "@n8n/typescript-config": "1.12.0",
68
+ "@n8n/vitest-config": "1.24.0",
69
+ "@types/luxon": "3.2.0",
70
+ "@vitest/coverage-v8": "5.0.1",
71
+ "n8n-containers": "1.0.0",
72
+ "oxlint": "1.78.0",
73
+ "oxlint-tsgolint": "^0.21.1",
74
+ "typescript": "7.0.2",
75
+ "vite": "^8.0.2",
76
+ "vitest": "5.0.1",
77
+ "vitest-mock-extended": "^3.1.0",
78
+ "zod": "3.25.76"
79
+ },
80
+ "license": "LicenseRef-n8n-sustainable-use",
81
+ "scripts": {
82
+ "clean": "rimraf dist .turbo",
83
+ "dev": "pnpm watch",
84
+ "typecheck": "tsc --noEmit",
85
+ "build": "tsc -p tsconfig.build.json",
86
+ "build:unchecked": "tsc -p tsconfig.build.json --noCheck",
87
+ "format": "biome format --write .",
88
+ "format:check": "biome ci .",
89
+ "lint": "oxlint --type-aware . --quiet",
90
+ "lint:fix": "oxlint --type-aware . --fix",
91
+ "watch": "tsc -p tsconfig.build.json --watch",
92
+ "test": "vitest run",
93
+ "test:postgres": "N8N_LOG_LEVEL=silent vitest run --config vitest.config.postgres.ts",
94
+ "test:unit": "vitest run",
95
+ "test:dev": "vitest --silent=false"
96
+ }
97
+ }