@xemahq/biome-database-nest 2.0.0 → 3.0.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type EagerResolveOptions } from '@xemahq/service-registry-nest';
|
|
2
2
|
import type { KernelState } from '@xemahq/contracts/kernel-state';
|
|
3
|
-
export declare const ORG_DATABASE_POOL_SERVICE_NAME
|
|
4
|
-
export type ControlPlaneDiscoveryOptions = EagerResolveOptions
|
|
3
|
+
export declare const ORG_DATABASE_POOL_SERVICE_NAME: "org-database-pool-api";
|
|
4
|
+
export type ControlPlaneDiscoveryOptions = Pick<EagerResolveOptions, 'maxAttempts' | 'initialDelayMs' | 'maxDelayMs' | 'sleep' | 'random' | 'logger'>;
|
|
5
5
|
export declare function resolveControlPlaneBaseUrl(kernelState: KernelState, options?: ControlPlaneDiscoveryOptions): Promise<string>;
|
|
6
6
|
//# sourceMappingURL=control-plane-discovery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-plane-discovery.d.ts","sourceRoot":"","sources":["../../src/lib/control-plane-discovery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control-plane-discovery.d.ts","sourceRoot":"","sources":["../../src/lib/control-plane-discovery.ts"],"names":[],"mappings":"AAcA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAGlE,eAAO,MAAM,8BAA8B,yBAAoC,CAAC;AAMhF,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,mBAAmB,EACnB,aAAa,GAAG,gBAAgB,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAChF,CAAC;AAYF,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,WAAW,EACxB,OAAO,GAAE,4BAAiC,GACzC,OAAO,CAAC,MAAM,CAAC,CAUjB"}
|
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ORG_DATABASE_POOL_SERVICE_NAME = void 0;
|
|
4
4
|
exports.resolveControlPlaneBaseUrl = resolveControlPlaneBaseUrl;
|
|
5
|
+
const service_registry_1 = require("@xemahq/contracts/service-registry");
|
|
5
6
|
const service_registry_nest_1 = require("@xemahq/service-registry-nest");
|
|
6
|
-
exports.ORG_DATABASE_POOL_SERVICE_NAME =
|
|
7
|
-
function resolveControlPlaneBaseUrl(kernelState, options) {
|
|
8
|
-
|
|
7
|
+
exports.ORG_DATABASE_POOL_SERVICE_NAME = service_registry_1.ServiceName.ORG_DATABASE_POOL_API;
|
|
8
|
+
function resolveControlPlaneBaseUrl(kernelState, options = {}) {
|
|
9
|
+
const { maxAttempts, initialDelayMs, maxDelayMs, sleep, random, logger } = options;
|
|
10
|
+
return (0, service_registry_nest_1.resolveHttpUrlEagerly)(kernelState, service_registry_1.ServiceName.ORG_DATABASE_POOL_API, {
|
|
11
|
+
...(maxAttempts === undefined ? {} : { maxAttempts }),
|
|
12
|
+
...(initialDelayMs === undefined ? {} : { initialDelayMs }),
|
|
13
|
+
...(maxDelayMs === undefined ? {} : { maxDelayMs }),
|
|
14
|
+
...(sleep === undefined ? {} : { sleep }),
|
|
15
|
+
...(random === undefined ? {} : { random }),
|
|
16
|
+
...(logger === undefined ? {} : { logger }),
|
|
17
|
+
});
|
|
9
18
|
}
|
|
10
19
|
//# sourceMappingURL=control-plane-discovery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-plane-discovery.js","sourceRoot":"","sources":["../../src/lib/control-plane-discovery.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"control-plane-discovery.js","sourceRoot":"","sources":["../../src/lib/control-plane-discovery.ts"],"names":[],"mappings":";;;AA2CA,gEAaC;AA3CD,yEAAiE;AACjE,yEAGuC;AAK1B,QAAA,8BAA8B,GAAG,8BAAW,CAAC,qBAAqB,CAAC;AAqBhF,SAAgB,0BAA0B,CACxC,WAAwB,EACxB,UAAwC,EAAE;IAE1C,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACnF,OAAO,IAAA,6CAAqB,EAAC,WAAW,EAAE,8BAAW,CAAC,qBAAqB,EAAE;QAC3E,GAAG,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC;QACrD,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC;QAC3D,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC;QACnD,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;QACzC,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;QAC3C,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;KAC5C,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/biome-database-nest",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Explicit database migration ownership, least-privilege runtime verification, and schema-qualified Prisma wiring for Xema biome services.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|
|
22
22
|
"prisma-url.js",
|
|
23
|
-
"prisma-url.d.ts"
|
|
23
|
+
"prisma-url.d.ts",
|
|
24
|
+
"xema-peer-facts.json"
|
|
24
25
|
],
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@nestjs/common": "11.1.18",
|
|
@@ -41,9 +42,10 @@
|
|
|
41
42
|
"prisma": "7.8.0",
|
|
42
43
|
"ts-jest": "^29.4.9",
|
|
43
44
|
"typescript": "5.9.3",
|
|
44
|
-
"@xemahq/
|
|
45
|
+
"@xemahq/eslint-config": "0.14.1",
|
|
45
46
|
"@xemahq/service-registry-nest": "1.1.0",
|
|
46
|
-
"@xemahq/
|
|
47
|
+
"@xemahq/peer-analysis": "0.2.0",
|
|
48
|
+
"@xemahq/xema-decorators": "2.0.0"
|
|
47
49
|
},
|
|
48
50
|
"peerDependencies": {
|
|
49
51
|
"@nestjs/common": "^10 || ^11",
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
},
|
|
64
66
|
"dependencies": {
|
|
65
67
|
"@xemahq/migration-runner-prisma": "^0.3.1",
|
|
66
|
-
"@xemahq/org-erasure-nest": "^3.
|
|
68
|
+
"@xemahq/org-erasure-nest": "^3.1.0",
|
|
67
69
|
"pg": "^8.16.3"
|
|
68
70
|
},
|
|
69
71
|
"exports": {
|
|
@@ -91,15 +93,18 @@
|
|
|
91
93
|
"default": "./dist/lib/*.js"
|
|
92
94
|
}
|
|
93
95
|
},
|
|
96
|
+
"xema": {
|
|
97
|
+
"peerFacts": "./xema-peer-facts.json"
|
|
98
|
+
},
|
|
94
99
|
"scripts": {
|
|
95
|
-
"clean": "rm -rf dist",
|
|
96
|
-
"build": "tsc -p tsconfig.build.json",
|
|
100
|
+
"clean": "rm -rf dist xema-peer-facts.json",
|
|
101
|
+
"build": "tsc -p tsconfig.build.json && xema-peer-facts",
|
|
97
102
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
98
103
|
"lint": "eslint .",
|
|
99
104
|
"test": "jest --config jest.config.ts && jest --config jest.pg.config.ts",
|
|
100
105
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
101
106
|
},
|
|
102
107
|
"xemaRelease": {
|
|
103
|
-
"sourceDigest": "sha256:
|
|
108
|
+
"sourceDigest": "sha256:bc1989f3082e141397022ab33df72b9c5ce1eae637eb126ddce463f74aa42366"
|
|
104
109
|
}
|
|
105
110
|
}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
{
|
|
2
|
+
"factsVersion": 1,
|
|
3
|
+
"package": {
|
|
4
|
+
"name": "@xemahq/biome-database-nest",
|
|
5
|
+
"version": "3.0.0"
|
|
6
|
+
},
|
|
7
|
+
"seamTable": {
|
|
8
|
+
"version": 3,
|
|
9
|
+
"sha256": "130bca5d4f660ea94a1cb03ef5a4c2ab8e1b8058cd357bb217f6f01eed2ecf76"
|
|
10
|
+
},
|
|
11
|
+
"exports": [
|
|
12
|
+
{
|
|
13
|
+
"module": "@xemahq/biome-database-nest",
|
|
14
|
+
"exportName": "BiomeDatabaseModule",
|
|
15
|
+
"peers": [
|
|
16
|
+
{
|
|
17
|
+
"relationship": "service-peer",
|
|
18
|
+
"target": {
|
|
19
|
+
"serviceName": "org-database-pool-api"
|
|
20
|
+
},
|
|
21
|
+
"lifecycle": "startup",
|
|
22
|
+
"inclusion": {
|
|
23
|
+
"kind": "required"
|
|
24
|
+
},
|
|
25
|
+
"evidence": {
|
|
26
|
+
"path": "src/lib/control-plane-discovery.ts",
|
|
27
|
+
"line": 49,
|
|
28
|
+
"seam": "service-registry-nest/resolveHttpUrlEagerly"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"dynamicPeers": []
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"module": "@xemahq/biome-database-nest",
|
|
36
|
+
"exportName": "IdentityOrgProtectionProbe",
|
|
37
|
+
"peers": [
|
|
38
|
+
{
|
|
39
|
+
"relationship": "service-peer",
|
|
40
|
+
"target": {
|
|
41
|
+
"serviceName": "identity-api"
|
|
42
|
+
},
|
|
43
|
+
"lifecycle": "runtime",
|
|
44
|
+
"inclusion": {
|
|
45
|
+
"kind": "required"
|
|
46
|
+
},
|
|
47
|
+
"evidence": {
|
|
48
|
+
"path": "src/index.ts",
|
|
49
|
+
"line": 278,
|
|
50
|
+
"seam": "package-peer-facts"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"dynamicPeers": []
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"module": "@xemahq/biome-database-nest",
|
|
58
|
+
"exportName": "OrgErasureController",
|
|
59
|
+
"peers": [
|
|
60
|
+
{
|
|
61
|
+
"relationship": "service-peer",
|
|
62
|
+
"target": {
|
|
63
|
+
"serviceName": "identity-api"
|
|
64
|
+
},
|
|
65
|
+
"lifecycle": "runtime",
|
|
66
|
+
"inclusion": {
|
|
67
|
+
"kind": "required"
|
|
68
|
+
},
|
|
69
|
+
"evidence": {
|
|
70
|
+
"path": "src/index.ts",
|
|
71
|
+
"line": 278,
|
|
72
|
+
"seam": "package-peer-facts"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"dynamicPeers": []
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"module": "@xemahq/biome-database-nest",
|
|
80
|
+
"exportName": "OrgErasureModule",
|
|
81
|
+
"peers": [
|
|
82
|
+
{
|
|
83
|
+
"relationship": "service-peer",
|
|
84
|
+
"target": {
|
|
85
|
+
"serviceName": "identity-api"
|
|
86
|
+
},
|
|
87
|
+
"lifecycle": "runtime",
|
|
88
|
+
"inclusion": {
|
|
89
|
+
"kind": "required"
|
|
90
|
+
},
|
|
91
|
+
"evidence": {
|
|
92
|
+
"path": "src/lib/nest/org-erasure.module.ts",
|
|
93
|
+
"line": 68,
|
|
94
|
+
"seam": "package-peer-facts"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"dynamicPeers": []
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"module": "@xemahq/biome-database-nest",
|
|
102
|
+
"exportName": "OrgProtectionGuard",
|
|
103
|
+
"peers": [
|
|
104
|
+
{
|
|
105
|
+
"relationship": "service-peer",
|
|
106
|
+
"target": {
|
|
107
|
+
"serviceName": "identity-api"
|
|
108
|
+
},
|
|
109
|
+
"lifecycle": "runtime",
|
|
110
|
+
"inclusion": {
|
|
111
|
+
"kind": "required"
|
|
112
|
+
},
|
|
113
|
+
"evidence": {
|
|
114
|
+
"path": "src/index.ts",
|
|
115
|
+
"line": 278,
|
|
116
|
+
"seam": "package-peer-facts"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"dynamicPeers": []
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"module": "@xemahq/biome-database-nest",
|
|
124
|
+
"exportName": "bootstrapBiomeDatabases",
|
|
125
|
+
"peers": [
|
|
126
|
+
{
|
|
127
|
+
"relationship": "service-peer",
|
|
128
|
+
"target": {
|
|
129
|
+
"serviceName": "org-database-pool-api"
|
|
130
|
+
},
|
|
131
|
+
"lifecycle": "startup",
|
|
132
|
+
"inclusion": {
|
|
133
|
+
"kind": "required"
|
|
134
|
+
},
|
|
135
|
+
"evidence": {
|
|
136
|
+
"path": "src/lib/control-plane-discovery.ts",
|
|
137
|
+
"line": 49,
|
|
138
|
+
"seam": "service-registry-nest/resolveHttpUrlEagerly"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"dynamicPeers": []
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"module": "@xemahq/biome-database-nest",
|
|
146
|
+
"exportName": "resolveControlPlaneBaseUrl",
|
|
147
|
+
"peers": [
|
|
148
|
+
{
|
|
149
|
+
"relationship": "service-peer",
|
|
150
|
+
"target": {
|
|
151
|
+
"serviceName": "org-database-pool-api"
|
|
152
|
+
},
|
|
153
|
+
"lifecycle": "startup",
|
|
154
|
+
"inclusion": {
|
|
155
|
+
"kind": "required"
|
|
156
|
+
},
|
|
157
|
+
"evidence": {
|
|
158
|
+
"path": "src/lib/control-plane-discovery.ts",
|
|
159
|
+
"line": 49,
|
|
160
|
+
"seam": "service-registry-nest/resolveHttpUrlEagerly"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"dynamicPeers": []
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"module": "@xemahq/biome-database-nest/dist/lib/bootstrap",
|
|
168
|
+
"exportName": "bootstrapBiomeDatabases",
|
|
169
|
+
"peers": [
|
|
170
|
+
{
|
|
171
|
+
"relationship": "service-peer",
|
|
172
|
+
"target": {
|
|
173
|
+
"serviceName": "org-database-pool-api"
|
|
174
|
+
},
|
|
175
|
+
"lifecycle": "startup",
|
|
176
|
+
"inclusion": {
|
|
177
|
+
"kind": "required"
|
|
178
|
+
},
|
|
179
|
+
"evidence": {
|
|
180
|
+
"path": "src/lib/control-plane-discovery.ts",
|
|
181
|
+
"line": 49,
|
|
182
|
+
"seam": "service-registry-nest/resolveHttpUrlEagerly"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"dynamicPeers": []
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"module": "@xemahq/biome-database-nest/dist/lib/control-plane-discovery",
|
|
190
|
+
"exportName": "resolveControlPlaneBaseUrl",
|
|
191
|
+
"peers": [
|
|
192
|
+
{
|
|
193
|
+
"relationship": "service-peer",
|
|
194
|
+
"target": {
|
|
195
|
+
"serviceName": "org-database-pool-api"
|
|
196
|
+
},
|
|
197
|
+
"lifecycle": "startup",
|
|
198
|
+
"inclusion": {
|
|
199
|
+
"kind": "required"
|
|
200
|
+
},
|
|
201
|
+
"evidence": {
|
|
202
|
+
"path": "src/lib/control-plane-discovery.ts",
|
|
203
|
+
"line": 49,
|
|
204
|
+
"seam": "service-registry-nest/resolveHttpUrlEagerly"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"dynamicPeers": []
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"module": "@xemahq/biome-database-nest/dist/lib/nest/biome-database.module",
|
|
212
|
+
"exportName": "BiomeDatabaseModule",
|
|
213
|
+
"peers": [
|
|
214
|
+
{
|
|
215
|
+
"relationship": "service-peer",
|
|
216
|
+
"target": {
|
|
217
|
+
"serviceName": "org-database-pool-api"
|
|
218
|
+
},
|
|
219
|
+
"lifecycle": "startup",
|
|
220
|
+
"inclusion": {
|
|
221
|
+
"kind": "required"
|
|
222
|
+
},
|
|
223
|
+
"evidence": {
|
|
224
|
+
"path": "src/lib/control-plane-discovery.ts",
|
|
225
|
+
"line": 49,
|
|
226
|
+
"seam": "service-registry-nest/resolveHttpUrlEagerly"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"dynamicPeers": []
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"module": "@xemahq/biome-database-nest/dist/lib/nest/org-erasure.module",
|
|
234
|
+
"exportName": "OrgErasureModule",
|
|
235
|
+
"peers": [
|
|
236
|
+
{
|
|
237
|
+
"relationship": "service-peer",
|
|
238
|
+
"target": {
|
|
239
|
+
"serviceName": "identity-api"
|
|
240
|
+
},
|
|
241
|
+
"lifecycle": "runtime",
|
|
242
|
+
"inclusion": {
|
|
243
|
+
"kind": "required"
|
|
244
|
+
},
|
|
245
|
+
"evidence": {
|
|
246
|
+
"path": "src/lib/nest/org-erasure.module.ts",
|
|
247
|
+
"line": 68,
|
|
248
|
+
"seam": "package-peer-facts"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"dynamicPeers": []
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
}
|