@pipeline-builder/pipeline-data 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.
Files changed (48) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +61 -0
  3. package/drizzle.config.ts +17 -0
  4. package/lib/api/access-control-builder.d.ts +148 -0
  5. package/lib/api/access-control-builder.js +199 -0
  6. package/lib/api/crud-service.d.ts +343 -0
  7. package/lib/api/crud-service.js +849 -0
  8. package/lib/api/query-builders.d.ts +82 -0
  9. package/lib/api/query-builders.js +460 -0
  10. package/lib/api/reporting-service.d.ts +685 -0
  11. package/lib/api/reporting-service.js +1564 -0
  12. package/lib/api/soft-delete-sweep.d.ts +65 -0
  13. package/lib/api/soft-delete-sweep.js +124 -0
  14. package/lib/api/viewer-context.d.ts +29 -0
  15. package/lib/api/viewer-context.js +63 -0
  16. package/lib/core/query-filters.d.ts +263 -0
  17. package/lib/core/query-filters.js +4 -0
  18. package/lib/database/drizzle-schema.d.ts +7357 -0
  19. package/lib/database/drizzle-schema.js +66 -0
  20. package/lib/database/index.d.ts +5 -0
  21. package/lib/database/index.js +8 -0
  22. package/lib/database/migrator.d.ts +20 -0
  23. package/lib/database/migrator.js +80 -0
  24. package/lib/database/postgres-connection.d.ts +201 -0
  25. package/lib/database/postgres-connection.js +413 -0
  26. package/lib/database/retry-strategy.d.ts +68 -0
  27. package/lib/database/retry-strategy.js +122 -0
  28. package/lib/database/schema/alert.d.ts +588 -0
  29. package/lib/database/schema/alert.js +130 -0
  30. package/lib/database/schema/compliance.d.ts +3319 -0
  31. package/lib/database/schema/compliance.js +377 -0
  32. package/lib/database/schema/dashboard.d.ts +474 -0
  33. package/lib/database/schema/dashboard.js +129 -0
  34. package/lib/database/schema/message-attachment.d.ts +183 -0
  35. package/lib/database/schema/message-attachment.js +40 -0
  36. package/lib/database/schema/message.d.ts +411 -0
  37. package/lib/database/schema/message.js +114 -0
  38. package/lib/database/schema/pipeline-template.d.ts +466 -0
  39. package/lib/database/schema/pipeline-template.js +80 -0
  40. package/lib/database/schema/pipeline.d.ts +1613 -0
  41. package/lib/database/schema/pipeline.js +332 -0
  42. package/lib/database/schema/plugin.d.ts +749 -0
  43. package/lib/database/schema/plugin.js +166 -0
  44. package/lib/database/tenancy.d.ts +103 -0
  45. package/lib/database/tenancy.js +167 -0
  46. package/lib/index.d.ts +32 -0
  47. package/lib/index.js +38 -0
  48. package/package.json +161 -0
package/package.json ADDED
@@ -0,0 +1,161 @@
1
+ {
2
+ "name": "@pipeline-builder/pipeline-data",
3
+ "description": "Database layer for Pipeline Builder: Drizzle ORM schemas, connection management, query builders, and the generic CrudService base class with per-organization (and team) access control.",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/mwashburn160/pipeline-builder.git"
7
+ },
8
+ "devDependencies": {
9
+ "@jest/globals": "30.4.1",
10
+ "@stylistic/eslint-plugin": "^2",
11
+ "@types/node": "26.1.2",
12
+ "@types/pg": "8.20.3",
13
+ "@typescript-eslint/eslint-plugin": "^8",
14
+ "@typescript-eslint/parser": "^8",
15
+ "@typescript/native": "npm:typescript@^7.0.2",
16
+ "drizzle-kit": "0.31.10",
17
+ "eslint": "^9",
18
+ "eslint-import-resolver-typescript": "^4.4.4",
19
+ "eslint-plugin-import": "^2.32.0",
20
+ "jest": "30.4.2",
21
+ "jest-junit": "^17",
22
+ "ts-jest": "29.4.12",
23
+ "typescript": "npm:@typescript/typescript6@^6.0.2"
24
+ },
25
+ "dependencies": {
26
+ "drizzle-orm": "0.45.2",
27
+ "pg": "8.22.0",
28
+ "@pipeline-builder/api-core": "0.0.1"
29
+ },
30
+ "keywords": [
31
+ "ci-cd",
32
+ "cicd",
33
+ "continuous-delivery",
34
+ "devops",
35
+ "self-service",
36
+ "platform-engineering",
37
+ "internal-developer-platform",
38
+ "developer-platform",
39
+ "aws",
40
+ "aws-cdk",
41
+ "cdk",
42
+ "codepipeline",
43
+ "codebuild",
44
+ "cloudformation",
45
+ "pipeline",
46
+ "pipeline-as-code",
47
+ "infrastructure-as-code",
48
+ "iac",
49
+ "compliance",
50
+ "policy-as-code",
51
+ "governance",
52
+ "golden-paths",
53
+ "multi-tenant",
54
+ "rbac",
55
+ "ai",
56
+ "ai-pipeline-generation",
57
+ "llm",
58
+ "bedrock",
59
+ "plugins",
60
+ "plugin-marketplace",
61
+ "containerized",
62
+ "docker",
63
+ "kubernetes",
64
+ "typescript",
65
+ "cli"
66
+ ],
67
+ "engines": {
68
+ "node": ">= 24.14.0"
69
+ },
70
+ "devEngines": {
71
+ "packageManager": {
72
+ "name": "pnpm",
73
+ "version": ">=10",
74
+ "onFail": "ignore"
75
+ }
76
+ },
77
+ "main": "lib/index.js",
78
+ "license": "Apache-2.0",
79
+ "homepage": "https://mwashburn160.github.io/pipeline-builder/",
80
+ "publishConfig": {
81
+ "access": "public",
82
+ "registry": "https://registry.npmjs.org/"
83
+ },
84
+ "version": "0.0.1",
85
+ "bugs": {
86
+ "url": "https://github.com/mwashburn160/pipeline-builder/issues"
87
+ },
88
+ "jest": {
89
+ "coverageProvider": "v8",
90
+ "testMatch": [
91
+ "<rootDir>/@(src|test)/**/*(*.)@(spec|test).ts?(x)",
92
+ "<rootDir>/@(src|test)/**/__tests__/**/*.ts?(x)"
93
+ ],
94
+ "clearMocks": true,
95
+ "collectCoverage": true,
96
+ "coverageReporters": [
97
+ "json",
98
+ "lcov",
99
+ "clover",
100
+ "cobertura",
101
+ "text"
102
+ ],
103
+ "coverageDirectory": "coverage",
104
+ "coveragePathIgnorePatterns": [
105
+ "/node_modules/"
106
+ ],
107
+ "testPathIgnorePatterns": [
108
+ "/node_modules/"
109
+ ],
110
+ "watchPathIgnorePatterns": [
111
+ "/node_modules/"
112
+ ],
113
+ "reporters": [
114
+ "default",
115
+ [
116
+ "jest-junit",
117
+ {
118
+ "outputDirectory": "test-reports"
119
+ }
120
+ ]
121
+ ],
122
+ "transform": {
123
+ "^.+\\.[t]sx?$": [
124
+ "ts-jest",
125
+ {
126
+ "useESM": true,
127
+ "tsconfig": "tsconfig.dev.json",
128
+ "diagnostics": {
129
+ "ignoreCodes": [
130
+ 151002
131
+ ]
132
+ }
133
+ }
134
+ ]
135
+ },
136
+ "extensionsToTreatAsEsm": [
137
+ ".ts",
138
+ ".tsx"
139
+ ],
140
+ "moduleNameMapper": {
141
+ "^uuid$": "<rootDir>/../../jest-uuid-stub.js",
142
+ "^(\\.{1,2}/.*)\\.js$": "$1"
143
+ }
144
+ },
145
+ "types": "lib/index.d.ts",
146
+ "type": "module",
147
+ "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"pnpm dlx projen\".",
148
+ "scripts": {
149
+ "build": "pnpm dlx projen build",
150
+ "compile": "pnpm dlx projen compile",
151
+ "default": "pnpm dlx projen default",
152
+ "eslint": "pnpm dlx projen eslint",
153
+ "package": "pnpm dlx projen package",
154
+ "post-compile": "pnpm dlx projen post-compile",
155
+ "pre-compile": "pnpm dlx projen pre-compile",
156
+ "test": "pnpm dlx projen test",
157
+ "test:watch": "pnpm dlx projen test:watch",
158
+ "watch": "pnpm dlx projen watch",
159
+ "projen": "pnpm dlx projen"
160
+ }
161
+ }