@pipeline-builder/pipeline-data 4.1.14 → 4.1.16

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 (60) hide show
  1. package/lib/api/access-control-builder.d.ts +18 -1
  2. package/lib/api/access-control-builder.js +19 -6
  3. package/lib/api/crud-service.d.ts +94 -36
  4. package/lib/api/crud-service.js +188 -166
  5. package/lib/api/plugin-resolution.d.ts +253 -0
  6. package/lib/api/plugin-resolution.js +649 -0
  7. package/lib/api/public-directory.d.ts +281 -0
  8. package/lib/api/public-directory.js +457 -0
  9. package/lib/api/query-builders.d.ts +13 -0
  10. package/lib/api/query-builders.js +74 -9
  11. package/lib/api/reporting/caches.js +4 -4
  12. package/lib/api/reporting/dora-scoring.d.ts +3 -3
  13. package/lib/api/reporting/dora-scoring.js +4 -4
  14. package/lib/api/reporting/dora.d.ts +6 -6
  15. package/lib/api/reporting/dora.js +97 -73
  16. package/lib/api/reporting/plugin-runtime.d.ts +25 -0
  17. package/lib/api/reporting/plugin-runtime.js +106 -0
  18. package/lib/api/reporting/query-scope.d.ts +8 -2
  19. package/lib/api/reporting/query-scope.js +16 -7
  20. package/lib/api/reporting/retention.d.ts +4 -10
  21. package/lib/api/reporting/retention.js +8 -11
  22. package/lib/api/reporting/sql-helpers.d.ts +4 -7
  23. package/lib/api/reporting/sql-helpers.js +8 -9
  24. package/lib/api/reporting/types.d.ts +55 -17
  25. package/lib/api/reporting/types.js +1 -1
  26. package/lib/api/reporting-service.d.ts +35 -26
  27. package/lib/api/reporting-service.js +245 -161
  28. package/lib/api/semver-range.d.ts +73 -0
  29. package/lib/api/semver-range.js +227 -0
  30. package/lib/api/soft-delete-sweep.js +8 -20
  31. package/lib/core/query-filters.d.ts +18 -3
  32. package/lib/core/query-filters.js +1 -1
  33. package/lib/database/drizzle-schema.d.ts +7790 -2461
  34. package/lib/database/drizzle-schema.js +29 -1
  35. package/lib/database/index.d.ts +4 -2
  36. package/lib/database/index.js +5 -3
  37. package/lib/database/pg-result.d.ts +19 -0
  38. package/lib/database/pg-result.js +32 -0
  39. package/lib/database/postgres-connection.js +14 -24
  40. package/lib/database/public-reader.d.ts +14 -0
  41. package/lib/database/public-reader.js +68 -0
  42. package/lib/database/retry-strategy.d.ts +3 -5
  43. package/lib/database/retry-strategy.js +4 -6
  44. package/lib/database/schema/compliance.d.ts +16 -34
  45. package/lib/database/schema/compliance.js +4 -4
  46. package/lib/database/schema/dashboard.js +4 -2
  47. package/lib/database/schema/ecosystem.d.ts +6586 -0
  48. package/lib/database/schema/ecosystem.js +709 -0
  49. package/lib/database/schema/message.d.ts +6 -12
  50. package/lib/database/schema/message.js +3 -1
  51. package/lib/database/schema/pipeline.d.ts +79 -5
  52. package/lib/database/schema/pipeline.js +46 -25
  53. package/lib/database/schema/plugin.d.ts +587 -3
  54. package/lib/database/schema/plugin.js +86 -14
  55. package/lib/database/tenancy.d.ts +6 -7
  56. package/lib/database/tenancy.js +13 -14
  57. package/lib/index.d.ts +7 -4
  58. package/lib/index.js +7 -4
  59. package/lib/testing/exports.json +146 -0
  60. package/package.json +44 -7
package/package.json CHANGED
@@ -6,9 +6,10 @@
6
6
  "url": "git+https://github.com/mwashburn160/pipeline-builder.git"
7
7
  },
8
8
  "devDependencies": {
9
+ "@electric-sql/pglite": "0.5.8",
9
10
  "@jest/globals": "30.4.1",
10
11
  "@stylistic/eslint-plugin": "^2",
11
- "@types/node": "26.1.2",
12
+ "@types/node": "^24",
12
13
  "@types/pg": "8.20.3",
13
14
  "@typescript-eslint/eslint-plugin": "^8",
14
15
  "@typescript-eslint/parser": "^8",
@@ -25,7 +26,7 @@
25
26
  "dependencies": {
26
27
  "drizzle-orm": "0.45.2",
27
28
  "pg": "8.22.0",
28
- "@pipeline-builder/api-core": "4.1.12"
29
+ "@pipeline-builder/api-core": "4.1.14"
29
30
  },
30
31
  "keywords": [
31
32
  "ci-cd",
@@ -81,7 +82,7 @@
81
82
  "access": "public",
82
83
  "registry": "https://registry.npmjs.org/"
83
84
  },
84
- "version": "4.1.14",
85
+ "version": "4.1.16",
85
86
  "bugs": {
86
87
  "url": "https://github.com/mwashburn160/pipeline-builder/issues"
87
88
  },
@@ -145,28 +146,64 @@
145
146
  "setupFilesAfterEnv": [
146
147
  "<rootDir>/../../jest-env-guard.js"
147
148
  ],
149
+ "collectCoverageFrom": [
150
+ "src/**/*.ts",
151
+ "!src/**/*.d.ts",
152
+ "!src/testing/**",
153
+ "!src/api/reporting/types.ts",
154
+ "!src/core/query-filters.ts",
155
+ "!src/database/index.ts",
156
+ "!src/index.ts"
157
+ ],
148
158
  "coverageThreshold": {
149
159
  "global": {
150
- "statements": 89,
151
- "branches": 89,
152
- "functions": 79,
153
- "lines": 89
160
+ "statements": 94,
161
+ "branches": 93,
162
+ "functions": 87,
163
+ "lines": 94
154
164
  }
155
165
  }
156
166
  },
157
167
  "types": "lib/index.d.ts",
158
168
  "type": "module",
169
+ "nx": {
170
+ "targets": {
171
+ "build": {
172
+ "inputs": [
173
+ "default",
174
+ "^default",
175
+ "sharedGlobals",
176
+ "{workspaceRoot}/deploy/shared/postgres-init.sql",
177
+ "!{projectRoot}/lib/**/*",
178
+ "!{projectRoot}/dist/**/*"
179
+ ]
180
+ },
181
+ "test": {
182
+ "inputs": [
183
+ "default",
184
+ "^default",
185
+ "sharedGlobals",
186
+ "{workspaceRoot}/deploy/shared/postgres-init.sql",
187
+ "!{projectRoot}/lib/**/*",
188
+ "!{projectRoot}/dist/**/*"
189
+ ]
190
+ }
191
+ }
192
+ },
159
193
  "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"pnpm dlx projen\".",
160
194
  "scripts": {
161
195
  "build": "pnpm dlx projen build",
162
196
  "compile": "pnpm dlx projen compile",
163
197
  "default": "pnpm dlx projen default",
164
198
  "eslint": "pnpm dlx projen eslint",
199
+ "lint:fix": "pnpm dlx projen lint:fix",
165
200
  "package": "pnpm dlx projen package",
166
201
  "post-compile": "pnpm dlx projen post-compile",
167
202
  "pre-compile": "pnpm dlx projen pre-compile",
168
203
  "test": "pnpm dlx projen test",
204
+ "test:update": "pnpm dlx projen test:update",
169
205
  "test:watch": "pnpm dlx projen test:watch",
206
+ "typecheck:tests": "pnpm dlx projen typecheck:tests",
170
207
  "watch": "pnpm dlx projen watch",
171
208
  "projen": "pnpm dlx projen"
172
209
  }