nucleus-core-ts 0.10.219 → 0.10.221
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/.build-ok +1 -1
- package/dist/dist/index.d.ts +9 -9
- package/dist/index.d.ts +2 -2
- package/dist/index.js +81 -81
- package/dist/server.js +3 -3
- package/dist/src/Nucleus/routes/auth/passwordReset/emailTemplate.d.ts +16 -0
- package/dist/src/Server/createNucleusServer.d.ts +2 -0
- package/dist/src/types.d.ts +7 -1
- package/package.json +1 -1
package/dist/.build-ok
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.10.
|
|
1
|
+
0.10.221
|
package/dist/dist/index.d.ts
CHANGED
|
@@ -428,7 +428,7 @@ export function toIndexEntries(field: any, value2: any): {
|
|
|
428
428
|
number: null;
|
|
429
429
|
}[];
|
|
430
430
|
export function tableExists(db: any, schema3: any, table: any): Promise<boolean>;
|
|
431
|
-
export function stripToJson(
|
|
431
|
+
export function stripToJson(text4: any): any;
|
|
432
432
|
export var serverFetch: ServerFetch;
|
|
433
433
|
export function secondsRemaining(sentBytes: any, totalBytes: any, bytesPerSecond: any): number | null;
|
|
434
434
|
export function safeRegExp(source: any): RegExp | null;
|
|
@@ -460,7 +460,7 @@ export function requiredBodyCeiling(input: any): number | null;
|
|
|
460
460
|
export function refreshTenantFeatures(tenantId: any): Promise<void>;
|
|
461
461
|
export function refreshTenant(tenantId: any): Promise<void>;
|
|
462
462
|
export function refreshAllTenants(): Promise<void>;
|
|
463
|
-
export function redactForModel(
|
|
463
|
+
export function redactForModel(text4: any): {
|
|
464
464
|
text: any;
|
|
465
465
|
restore: (answer: any) => any;
|
|
466
466
|
};
|
|
@@ -544,7 +544,7 @@ export function nextNumber(unit: any, sequence: any, clock?: {}): Promise<{
|
|
|
544
544
|
}>;
|
|
545
545
|
export function migrationOwnedDropGuard(migrations: any): (statement: any) => any;
|
|
546
546
|
export function matchesCron(fields: any, when3: any, timeZone: any): any;
|
|
547
|
-
export function localize(
|
|
547
|
+
export function localize(text: any, locale: any): any;
|
|
548
548
|
export function isValidTckn(value2: any): boolean;
|
|
549
549
|
export function isValidLuhn(digits: any): boolean;
|
|
550
550
|
export function isValidIban(compact: any): boolean;
|
|
@@ -905,7 +905,7 @@ export function createVorionProvider(options: any): {
|
|
|
905
905
|
}>;
|
|
906
906
|
};
|
|
907
907
|
};
|
|
908
|
-
export function createUserAccount(
|
|
908
|
+
export function createUserAccount(config: any, params: any): Promise<any>;
|
|
909
909
|
export function createServerFactory(endpoints: any, config: any, getCookies: any, getHeaders: any): (endpointKey: any, payload: any) => Promise<{
|
|
910
910
|
isSuccess: boolean;
|
|
911
911
|
errors: {
|
|
@@ -1328,7 +1328,7 @@ export function buildProgress(params: any): {
|
|
|
1328
1328
|
elapsedMs: number;
|
|
1329
1329
|
retrying: any;
|
|
1330
1330
|
};
|
|
1331
|
-
export function buildNucleus(
|
|
1331
|
+
export function buildNucleus(config: any): Promise<{
|
|
1332
1332
|
[COLLECTOR]: boolean;
|
|
1333
1333
|
groups: any[];
|
|
1334
1334
|
use(other: any): /*elided*/ any;
|
|
@@ -8535,18 +8535,18 @@ export namespace LENGTH_LIMITS {
|
|
|
8535
8535
|
export var LEDGER_TABLE: string;
|
|
8536
8536
|
export var ID_PATTERN: RegExp;
|
|
8537
8537
|
export class GmailService {
|
|
8538
|
-
constructor(
|
|
8538
|
+
constructor(config: any, logger2: any);
|
|
8539
8539
|
gmail: null;
|
|
8540
8540
|
fromEmail: any;
|
|
8541
8541
|
fromName: any;
|
|
8542
8542
|
logger: any;
|
|
8543
8543
|
initialized: boolean;
|
|
8544
8544
|
credentialsFingerprint: string;
|
|
8545
|
-
reconfigure(
|
|
8545
|
+
reconfigure(config: any): void;
|
|
8546
8546
|
sanitizeHeaderValue(value2: any): any;
|
|
8547
8547
|
encodeHeaderValue(rawValue: any): any;
|
|
8548
8548
|
isAvailable(): boolean;
|
|
8549
|
-
initialize(
|
|
8549
|
+
initialize(config: any): void;
|
|
8550
8550
|
createEmailMessage(payload: any): string;
|
|
8551
8551
|
sendEmail(payload: any): Promise<{
|
|
8552
8552
|
success: boolean;
|
|
@@ -9731,7 +9731,7 @@ declare function readAiRun(unit: any, id: any): Promise<{
|
|
|
9731
9731
|
} | null>;
|
|
9732
9732
|
declare function discardAiRun(unit: any, runId: any): Promise<boolean>;
|
|
9733
9733
|
declare function setAiRunOutcome(unit: any, id: any, change: any): Promise<boolean>;
|
|
9734
|
-
declare function attachAiRun(unit: any,
|
|
9734
|
+
declare function attachAiRun(unit: any, attach2: any): Promise<void>;
|
|
9735
9735
|
declare function eraseAiActor(unit: any, userId: any): Promise<{
|
|
9736
9736
|
runs: number;
|
|
9737
9737
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,13 @@ import 'reflect-metadata';
|
|
|
2
2
|
export * from './src/Client';
|
|
3
3
|
export type { SystemAddressEntity, SystemAuditLogEntity, SystemClaimEntity, SystemFileEntity, SystemMonitoringMetricEntity, SystemPaymentCustomerEntity, SystemPaymentInvoiceEntity, SystemPaymentMethodEntity, SystemPaymentPriceEntity, SystemPaymentProductEntity, SystemPaymentSubscriptionEntity, SystemPaymentTransactionEntity, SystemPaymentWebhookLogEntity, SystemPhoneEntity, SystemProfileEntity, SystemRoleClaimEntity, SystemRoleEntity, SystemUserCohortEntity, SystemUserEntity, SystemUserRoleEntity, } from './src/Client/ApiCaller/types';
|
|
4
4
|
export * from './src/Documents';
|
|
5
|
-
export * from './src/Services/Ai';
|
|
6
5
|
export * from './src/Fields';
|
|
7
6
|
export * from './src/Migrations';
|
|
8
7
|
export { buildNucleus } from './src/Nucleus';
|
|
9
8
|
export { createUserAccount } from './src/Nucleus/routes/auth/accounts/createUserAccount';
|
|
10
9
|
export type { AccountDb, CreateUserAccountConfig, CreateUserAccountFailure, CreateUserAccountParams, CreateUserAccountResult, } from './src/Nucleus/routes/auth/accounts/types';
|
|
11
10
|
export type { AppliedPasswordPolicy } from './src/Nucleus/routes/auth/passwordPolicy';
|
|
12
|
-
export type { PasswordResetEmailContent, PasswordResetEmailContext, PasswordResetEmailTemplate, PasswordResetEmailUser, } from './src/Nucleus/routes/auth/passwordReset/emailTemplate';
|
|
11
|
+
export type { AuthEmailTemplates, PasswordResetEmailContent, PasswordResetEmailContext, PasswordResetEmailTemplate, PasswordResetEmailUser, } from './src/Nucleus/routes/auth/passwordReset/emailTemplate';
|
|
13
12
|
export { hashPassword, validatePasswordStrength } from './src/Nucleus/routes/auth/register/utils';
|
|
14
13
|
/**
|
|
15
14
|
* The request-body ceiling an install's own upload settings imply.
|
|
@@ -35,6 +34,7 @@ export { type ConfigIssue, formatConfigIssues, type NucleusConfigValidation, typ
|
|
|
35
34
|
*/
|
|
36
35
|
export { createNucleusServer } from './src/Server/createNucleusServer';
|
|
37
36
|
export type { NucleusServer } from './src/Server/NucleusServer';
|
|
37
|
+
export * from './src/Services/Ai';
|
|
38
38
|
export { type HostPasswordDb, verifyUserPassword } from './src/Services/Auth/hostPasswordCheck';
|
|
39
39
|
/**
|
|
40
40
|
* Host hooks for endpoint discovery: the host fetches and validates each service's
|