nucleus-core-ts 0.9.122 → 0.9.124
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,24 @@
|
|
|
1
|
+
import type { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
2
|
+
import type { Logger } from 'src/Services';
|
|
3
|
+
type PgTable = ReturnType<typeof import('drizzle-orm/pg-core').pgTable>;
|
|
4
|
+
export type CohortRouteConfig = {
|
|
5
|
+
db: NodePgDatabase | null;
|
|
6
|
+
logger: Logger;
|
|
7
|
+
cohortsTable: PgTable | null;
|
|
8
|
+
usersTable: PgTable | null;
|
|
9
|
+
rolesTable: PgTable | null;
|
|
10
|
+
userRolesTable: PgTable | null;
|
|
11
|
+
profilesTable: PgTable | null;
|
|
12
|
+
basePath: string;
|
|
13
|
+
defaultRole?: string;
|
|
14
|
+
emailExemptDomains?: string[];
|
|
15
|
+
passwordPolicy?: {
|
|
16
|
+
minLength?: number;
|
|
17
|
+
maxLength?: number;
|
|
18
|
+
requireUppercase?: boolean;
|
|
19
|
+
requireLowercase?: boolean;
|
|
20
|
+
requireNumber?: boolean;
|
|
21
|
+
requireSpecialChar?: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export {};
|
package/dist/src/types.d.ts
CHANGED
|
@@ -409,6 +409,11 @@ export interface NucleusConfigOptions {
|
|
|
409
409
|
allowApplicationKeys?: boolean;
|
|
410
410
|
preventApiKeyManagement?: boolean;
|
|
411
411
|
};
|
|
412
|
+
emailExemptDomains?: string[];
|
|
413
|
+
cohorts?: {
|
|
414
|
+
enabled?: boolean;
|
|
415
|
+
basePath?: string;
|
|
416
|
+
};
|
|
412
417
|
};
|
|
413
418
|
verification?: {
|
|
414
419
|
enabled?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nucleus-core-ts",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.124",
|
|
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",
|