@medicine-wheel/storage-provider 0.15.3 → 0.15.5
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.
- package/dist/jsonl.js +3 -0
- package/dist/neon.js +5 -3
- package/package.json +2 -2
package/dist/jsonl.js
CHANGED
package/dist/neon.js
CHANGED
|
@@ -215,13 +215,13 @@ export class NeonProvider {
|
|
|
215
215
|
async logCeremony(ceremony) {
|
|
216
216
|
await this.db `
|
|
217
217
|
INSERT INTO ceremonies (id, type, direction, participants, medicines_used, intentions, timestamp, research_context,
|
|
218
|
-
relations_honored, episode_path, episode_number, source, closes, circle_id)
|
|
218
|
+
relations_honored, episode_path, episode_number, source, closes, circle_id, subject_id)
|
|
219
219
|
VALUES (${ceremony.id}, ${ceremony.type}, ${ceremony.direction},
|
|
220
220
|
${JSON.stringify(ceremony.participants)}, ${JSON.stringify(ceremony.medicines_used)},
|
|
221
221
|
${JSON.stringify(ceremony.intentions)}, ${ceremony.timestamp}, ${ceremony.research_context || null},
|
|
222
222
|
${ceremony.relations_honored ? JSON.stringify(ceremony.relations_honored) : null},
|
|
223
223
|
${ceremony.episode_path ?? null}, ${ceremony.episode_number ?? null}, ${ceremony.source ?? null},
|
|
224
|
-
${ceremony.closes ?? null}, ${ceremony.circle_id ?? null})
|
|
224
|
+
${ceremony.closes ?? null}, ${ceremony.circle_id ?? null}, ${ceremony.subject_id ?? null})
|
|
225
225
|
ON CONFLICT (id) DO UPDATE SET
|
|
226
226
|
type = EXCLUDED.type,
|
|
227
227
|
direction = EXCLUDED.direction,
|
|
@@ -235,7 +235,8 @@ export class NeonProvider {
|
|
|
235
235
|
episode_number = EXCLUDED.episode_number,
|
|
236
236
|
source = EXCLUDED.source,
|
|
237
237
|
closes = EXCLUDED.closes,
|
|
238
|
-
circle_id = EXCLUDED.circle_id
|
|
238
|
+
circle_id = EXCLUDED.circle_id,
|
|
239
|
+
subject_id = EXCLUDED.subject_id
|
|
239
240
|
`;
|
|
240
241
|
}
|
|
241
242
|
async getCeremony(id) {
|
|
@@ -279,6 +280,7 @@ export class NeonProvider {
|
|
|
279
280
|
...(typeof row.source === 'string' && row.source ? { source: row.source } : {}),
|
|
280
281
|
...(typeof row.closes === 'string' && row.closes ? { closes: row.closes } : {}),
|
|
281
282
|
...(typeof row.circle_id === 'string' && row.circle_id ? { circle_id: row.circle_id } : {}),
|
|
283
|
+
...(typeof row.subject_id === 'string' && row.subject_id ? { subject_id: row.subject_id } : {}),
|
|
282
284
|
};
|
|
283
285
|
}
|
|
284
286
|
// ── Inquiry Weave Operations ──
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medicine-wheel/storage-provider",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@neondatabase/serverless": "^0.10.0",
|
|
18
18
|
"@upstash/redis": "^1.34.3",
|
|
19
|
-
"@medicine-wheel/ontology-core": "^0.15.
|
|
19
|
+
"@medicine-wheel/ontology-core": "^0.15.5"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"typescript": "^5.7.0"
|