nucleus-core-ts 0.10.48 → 0.10.49

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.
@@ -0,0 +1,18 @@
1
+ import type { NodePgDatabase } from 'drizzle-orm/node-postgres';
2
+ /**
3
+ * Is this row currently going through an approval chain?
4
+ *
5
+ * The verification tables address their subject polymorphically — `entity_name`
6
+ * plus `entity_id`, no foreign key — so the database cannot refuse a delete the
7
+ * way `pages.product_id` can. Nothing stopped a row from being removed out from
8
+ * under a running instance, and nothing noticed afterwards: measured on a
9
+ * pharmaceutical-leaflet install, deleting a page version that was awaiting
10
+ * review answered 200, the row went, and the instance stayed `active` with a
11
+ * pending requirement pointing at an id that no longer resolves. The reviewer
12
+ * keeps seeing work they can never finish, for a document that is gone.
13
+ *
14
+ * So the check lives where the delete is. It is deliberately narrow — only an
15
+ * `active` instance blocks; a completed or rejected one is history and must not
16
+ * make a row undeletable forever.
17
+ */
18
+ export declare function activeVerificationExists(db: NodePgDatabase, schemaTables: Record<string, unknown>, entityName: string, entityId: string): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nucleus-core-ts",
3
- "version": "0.10.48",
3
+ "version": "0.10.49",
4
4
  "description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
5
5
  "author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",