@donotdev/core 0.0.23 → 0.0.24
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/functions/index.d.ts +45 -4
- package/functions/index.js +79 -15
- package/index.d.ts +1520 -363
- package/index.js +39 -39
- package/next/index.js +26 -26
- package/package.json +9 -9
- package/server.d.ts +8667 -7524
- package/server.js +1 -1
- package/vite/index.js +40 -37
package/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import { ReactNode, ComponentType, ReactElement } from 'react';
|
|
4
|
-
export { ReactNode } from 'react';
|
|
5
4
|
import * as zustand from 'zustand';
|
|
6
|
-
import {
|
|
5
|
+
import { StoreApi as StoreApi$1, UseBoundStore } from 'zustand';
|
|
7
6
|
import { PersistOptions } from 'zustand/middleware';
|
|
8
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
8
|
import { DISPLAY } from '@donotdev/components';
|
|
@@ -1381,6 +1380,50 @@ declare function validateAuthSchemas(): {
|
|
|
1381
1380
|
};
|
|
1382
1381
|
};
|
|
1383
1382
|
|
|
1383
|
+
/**
|
|
1384
|
+
* @fileoverview Server Auth Adapter Interface
|
|
1385
|
+
* @description Provider-agnostic interface for server-side authentication.
|
|
1386
|
+
* Token verification, user lookup, and custom claims management.
|
|
1387
|
+
*
|
|
1388
|
+
* @version 0.0.1
|
|
1389
|
+
* @since 0.5.0
|
|
1390
|
+
* @author AMBROISE PARK Consulting
|
|
1391
|
+
*/
|
|
1392
|
+
/** Result of token verification */
|
|
1393
|
+
interface VerifiedToken {
|
|
1394
|
+
/** The user's unique identifier */
|
|
1395
|
+
uid: string;
|
|
1396
|
+
/** Optional: email from the token */
|
|
1397
|
+
email?: string;
|
|
1398
|
+
/** Optional: additional claims embedded in the token */
|
|
1399
|
+
claims?: Record<string, unknown>;
|
|
1400
|
+
}
|
|
1401
|
+
/** Server-side user record (minimal) */
|
|
1402
|
+
interface ServerUserRecord {
|
|
1403
|
+
uid: string;
|
|
1404
|
+
email?: string;
|
|
1405
|
+
displayName?: string;
|
|
1406
|
+
customClaims?: Record<string, unknown>;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Provider-agnostic server-side auth adapter.
|
|
1410
|
+
*
|
|
1411
|
+
* Implementations:
|
|
1412
|
+
* - `FirebaseServerAuthAdapter` (Firebase Admin SDK)
|
|
1413
|
+
* - Future: Supabase server auth, Auth.js, custom JWT adapters
|
|
1414
|
+
*
|
|
1415
|
+
* @version 0.0.1
|
|
1416
|
+
* @since 0.5.0
|
|
1417
|
+
*/
|
|
1418
|
+
interface IServerAuthAdapter {
|
|
1419
|
+
/** Verify an auth token and return the decoded user info. Throws on invalid token. */
|
|
1420
|
+
verifyToken(token: string): Promise<VerifiedToken>;
|
|
1421
|
+
/** Get a user record by UID. Returns null if not found. */
|
|
1422
|
+
getUser(uid: string): Promise<ServerUserRecord | null>;
|
|
1423
|
+
/** Set custom claims on a user (merge semantics — existing claims are preserved unless overwritten). */
|
|
1424
|
+
setCustomClaims(uid: string, claims: Record<string, unknown>): Promise<void>;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1384
1427
|
/**
|
|
1385
1428
|
* @fileoverview DoNotDev Framework - Unified Types & Constants
|
|
1386
1429
|
* @description Single source of truth for all framework types and constants
|
|
@@ -1401,6 +1444,8 @@ declare function validateAuthSchemas(): {
|
|
|
1401
1444
|
declare const PLATFORMS: {
|
|
1402
1445
|
readonly VITE: "vite";
|
|
1403
1446
|
readonly NEXTJS: "nextjs";
|
|
1447
|
+
readonly EXPO: "expo";
|
|
1448
|
+
readonly REACT_NATIVE: "react-native";
|
|
1404
1449
|
readonly UNKNOWN: "unknown";
|
|
1405
1450
|
};
|
|
1406
1451
|
/**
|
|
@@ -2938,13 +2983,13 @@ interface BillingAdapter {
|
|
|
2938
2983
|
*/
|
|
2939
2984
|
type BillingEvent = {
|
|
2940
2985
|
type: 'subscription_updated';
|
|
2941
|
-
data:
|
|
2986
|
+
data: unknown;
|
|
2942
2987
|
} | {
|
|
2943
2988
|
type: 'payment_succeeded';
|
|
2944
|
-
data:
|
|
2989
|
+
data: unknown;
|
|
2945
2990
|
} | {
|
|
2946
2991
|
type: 'payment_failed';
|
|
2947
|
-
data:
|
|
2992
|
+
data: unknown;
|
|
2948
2993
|
};
|
|
2949
2994
|
/** Payment method types
|
|
2950
2995
|
*
|
|
@@ -3047,7 +3092,8 @@ interface StripeWebhookEvent {
|
|
|
3047
3092
|
id: string;
|
|
3048
3093
|
type: string;
|
|
3049
3094
|
data: {
|
|
3050
|
-
object
|
|
3095
|
+
/** Raw Stripe object payload — shape depends on event type */
|
|
3096
|
+
object: Record<string, unknown>;
|
|
3051
3097
|
};
|
|
3052
3098
|
created: number;
|
|
3053
3099
|
livemode: boolean;
|
|
@@ -3150,8 +3196,8 @@ type BillingErrorCode = 'unknown' | 'unauthenticated' | 'invalid_request' | 'str
|
|
|
3150
3196
|
interface StripeCheckoutRequest {
|
|
3151
3197
|
/** Stripe price ID for the subscription plan */
|
|
3152
3198
|
priceId: string;
|
|
3153
|
-
/**
|
|
3154
|
-
userId
|
|
3199
|
+
/** @deprecated Server should use context.uid instead of client-supplied userId (IDOR risk) */
|
|
3200
|
+
userId?: string;
|
|
3155
3201
|
/** User email for the subscription */
|
|
3156
3202
|
userEmail: string;
|
|
3157
3203
|
/** URL to redirect to on successful payment */
|
|
@@ -3424,7 +3470,7 @@ interface StripeCustomer {
|
|
|
3424
3470
|
tax_ids?: {
|
|
3425
3471
|
data: Array<{
|
|
3426
3472
|
id: string;
|
|
3427
|
-
type: 'eu_vat' | 'br_cnpj' | 'br_cpf' | 'gb_vat' | 'nz_gst' | 'au_abn' | 'au_arn' | 'in_gst' | 'no_vat' | 'za_vat' | 'ch_vat' | 'mx_rfc' | 'sg_uen' | 'ru_inn' | 'ru_kpp' | 'ca_bn' | 'hk_br' | 'es_cif' | 'tw_vat' | 'th_vat' | 'jp_cn' | 'jp_rn' | 'li_uid' | 'my_itn' | 'us_ein' | 'kr_brn' | 'ca_gst_hst' | 'ca_qst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'my_sst' | 'sg_gst' | 'ae_trn' | 'cl_tin' | 'sa_vat' | 'id_npwp'
|
|
3473
|
+
type: 'eu_vat' | 'br_cnpj' | 'br_cpf' | 'gb_vat' | 'nz_gst' | 'au_abn' | 'au_arn' | 'in_gst' | 'no_vat' | 'za_vat' | 'ch_vat' | 'mx_rfc' | 'sg_uen' | 'ru_inn' | 'ru_kpp' | 'ca_bn' | 'hk_br' | 'es_cif' | 'tw_vat' | 'th_vat' | 'jp_cn' | 'jp_rn' | 'li_uid' | 'my_itn' | 'us_ein' | 'kr_brn' | 'ca_gst_hst' | 'ca_qst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'my_sst' | 'sg_gst' | 'ae_trn' | 'cl_tin' | 'sa_vat' | 'id_npwp';
|
|
3428
3474
|
value: string;
|
|
3429
3475
|
}>;
|
|
3430
3476
|
};
|
|
@@ -3737,7 +3783,7 @@ interface UserProfile {
|
|
|
3737
3783
|
/** The user's profile photo URL */
|
|
3738
3784
|
photoURL?: string;
|
|
3739
3785
|
/** Additional profile data */
|
|
3740
|
-
[key: string]:
|
|
3786
|
+
[key: string]: unknown;
|
|
3741
3787
|
}
|
|
3742
3788
|
/**
|
|
3743
3789
|
* Factory function to create default user profile
|
|
@@ -4066,7 +4112,7 @@ interface AuthState {
|
|
|
4066
4112
|
status: EmailVerificationStatus;
|
|
4067
4113
|
error?: string;
|
|
4068
4114
|
};
|
|
4069
|
-
authService:
|
|
4115
|
+
authService: unknown;
|
|
4070
4116
|
/**
|
|
4071
4117
|
* Unified feature status - single source of truth for auth state.
|
|
4072
4118
|
* Replaces deprecated boolean flags (initialized, authStateChecked).
|
|
@@ -4105,8 +4151,8 @@ interface AuthActions {
|
|
|
4105
4151
|
clearAuthError: () => void;
|
|
4106
4152
|
/** Set unified status - single source of truth */
|
|
4107
4153
|
setStatus: (status: FeatureStatus) => void;
|
|
4108
|
-
getCustomClaim: (claim: string) =>
|
|
4109
|
-
getCustomClaims: () => Record<string,
|
|
4154
|
+
getCustomClaim: (claim: string) => unknown;
|
|
4155
|
+
getCustomClaims: () => Record<string, unknown>;
|
|
4110
4156
|
emailVerification: {
|
|
4111
4157
|
status: EmailVerificationStatus;
|
|
4112
4158
|
error?: string;
|
|
@@ -4115,9 +4161,9 @@ interface AuthActions {
|
|
|
4115
4161
|
setError: (error: AuthError) => void;
|
|
4116
4162
|
clearError: () => void;
|
|
4117
4163
|
reset: () => void;
|
|
4118
|
-
setAuthService: (authService:
|
|
4119
|
-
getCustomClaimLocal: (claim: string) =>
|
|
4120
|
-
getCustomClaimsLocal: () => Record<string,
|
|
4164
|
+
setAuthService: (authService: unknown) => void;
|
|
4165
|
+
getCustomClaimLocal: (claim: string) => unknown;
|
|
4166
|
+
getCustomClaimsLocal: () => Record<string, unknown>;
|
|
4121
4167
|
setEmailVerificationStatus: (status: EmailVerificationStatus, error?: string) => void;
|
|
4122
4168
|
setUserProfile: (profile: UserProfile) => void;
|
|
4123
4169
|
setUserSubscription: (subscription: UserSubscription) => void;
|
|
@@ -4306,15 +4352,35 @@ interface AuthProvider {
|
|
|
4306
4352
|
/**
|
|
4307
4353
|
* Check if user has a specific role
|
|
4308
4354
|
*/
|
|
4309
|
-
hasRole(role: UserRole): boolean
|
|
4355
|
+
hasRole(role: UserRole): Promise<boolean>;
|
|
4310
4356
|
/**
|
|
4311
4357
|
* Check if user has access to a feature
|
|
4312
4358
|
*/
|
|
4313
|
-
hasFeature(featureId: string): boolean
|
|
4359
|
+
hasFeature(featureId: string): Promise<boolean>;
|
|
4314
4360
|
/**
|
|
4315
4361
|
* Check if user has access to a tier
|
|
4316
4362
|
*/
|
|
4317
|
-
hasTier(requiredTier: string): boolean
|
|
4363
|
+
hasTier(requiredTier: string): Promise<boolean>;
|
|
4364
|
+
signInWithEmail(email: string, password: string): Promise<AuthResult | null>;
|
|
4365
|
+
createUserWithEmail(email: string, password: string): Promise<AuthResult | null>;
|
|
4366
|
+
signInWithPartner(partnerId: AuthPartnerId, method?: AuthMethod): Promise<AuthResult | null>;
|
|
4367
|
+
linkWithPartner(partnerId: AuthPartnerId, method?: AuthMethod): Promise<AuthResult | null>;
|
|
4368
|
+
signInWithGoogleCredential(credential: string): Promise<AuthResult | null>;
|
|
4369
|
+
updatePassword(newPassword: string): Promise<void>;
|
|
4370
|
+
sendEmailVerification(): Promise<void>;
|
|
4371
|
+
sendSignInLinkToEmail(email: string, actionCodeSettings?: {
|
|
4372
|
+
url: string;
|
|
4373
|
+
handleCodeInApp: boolean;
|
|
4374
|
+
}): Promise<void>;
|
|
4375
|
+
signInWithEmailLink(email: string, emailLink?: string): Promise<AuthResult | null>;
|
|
4376
|
+
isSignInWithEmailLink(emailLink?: string): boolean;
|
|
4377
|
+
getEmailVerificationStatus(): Promise<{
|
|
4378
|
+
status: string;
|
|
4379
|
+
}>;
|
|
4380
|
+
isEmailVerificationEnabled(): Promise<boolean>;
|
|
4381
|
+
reauthenticateWithPassword(password: string): Promise<void>;
|
|
4382
|
+
reauthenticateWithProvider(partnerId: AuthPartnerId, method?: AuthMethod): Promise<void>;
|
|
4383
|
+
deleteAccount(password?: string): Promise<void>;
|
|
4318
4384
|
}
|
|
4319
4385
|
/**
|
|
4320
4386
|
* Information about a token including its status and expiration
|
|
@@ -4350,8 +4416,8 @@ interface TokenInfo {
|
|
|
4350
4416
|
*/
|
|
4351
4417
|
interface AuthAPI {
|
|
4352
4418
|
user: AuthUser | null;
|
|
4353
|
-
userProfile:
|
|
4354
|
-
userSubscription:
|
|
4419
|
+
userProfile: UserProfile | null;
|
|
4420
|
+
userSubscription: UserSubscription | null;
|
|
4355
4421
|
loading: boolean;
|
|
4356
4422
|
error: AuthError | null;
|
|
4357
4423
|
emailVerification: {
|
|
@@ -4372,8 +4438,8 @@ interface AuthAPI {
|
|
|
4372
4438
|
hasRole: (role: string) => Promise<boolean>;
|
|
4373
4439
|
hasTier: (tier: string) => Promise<boolean>;
|
|
4374
4440
|
hasFeature: (feature: string) => Promise<boolean>;
|
|
4375
|
-
getCustomClaims: () => Record<string,
|
|
4376
|
-
getCustomClaim: (claim: string) =>
|
|
4441
|
+
getCustomClaims: () => Record<string, unknown>;
|
|
4442
|
+
getCustomClaim: (claim: string) => unknown;
|
|
4377
4443
|
signInWithEmail: (email: string, password: string) => Promise<AuthResult | null>;
|
|
4378
4444
|
createUserWithEmail: (email: string, password: string) => Promise<AuthResult | null>;
|
|
4379
4445
|
signInWithPartner: (partnerId: AuthPartnerId, method?: string) => Promise<AuthResult | null>;
|
|
@@ -4440,133 +4506,6 @@ interface CanAPI {
|
|
|
4440
4506
|
has: (permission: string) => boolean;
|
|
4441
4507
|
}
|
|
4442
4508
|
|
|
4443
|
-
/**
|
|
4444
|
-
* @fileoverview Aggregation Types
|
|
4445
|
-
* @description Types for generic entity aggregation/analytics functions
|
|
4446
|
-
*
|
|
4447
|
-
* @version 0.0.1
|
|
4448
|
-
* @since 0.0.1
|
|
4449
|
-
* @author AMBROISE PARK Consulting
|
|
4450
|
-
*/
|
|
4451
|
-
/** Supported aggregation operations */
|
|
4452
|
-
type AggregateOperation = 'count' | 'sum' | 'avg' | 'min' | 'max';
|
|
4453
|
-
/** Filter operators for aggregation */
|
|
4454
|
-
type AggregateFilterOperator = '==' | '!=' | '>' | '<' | '>=' | '<=';
|
|
4455
|
-
/**
|
|
4456
|
-
* Single metric definition for aggregation
|
|
4457
|
-
*
|
|
4458
|
-
* @example
|
|
4459
|
-
* ```typescript
|
|
4460
|
-
* // Count all documents
|
|
4461
|
-
* { field: '*', operation: 'count', as: 'total' }
|
|
4462
|
-
*
|
|
4463
|
-
* // Sum a numeric field
|
|
4464
|
-
* { field: 'price', operation: 'sum', as: 'totalValue' }
|
|
4465
|
-
*
|
|
4466
|
-
* // Count with filter
|
|
4467
|
-
* {
|
|
4468
|
-
* field: '*',
|
|
4469
|
-
* operation: 'count',
|
|
4470
|
-
* as: 'availableCount',
|
|
4471
|
-
* filter: { field: 'status', operator: '==', value: 'available' }
|
|
4472
|
-
* }
|
|
4473
|
-
* ```
|
|
4474
|
-
*/
|
|
4475
|
-
interface MetricDefinition {
|
|
4476
|
-
/** Field to aggregate ('*' for count all) */
|
|
4477
|
-
field: string;
|
|
4478
|
-
/** Aggregation operation */
|
|
4479
|
-
operation: AggregateOperation;
|
|
4480
|
-
/** Output name for this metric */
|
|
4481
|
-
as: string;
|
|
4482
|
-
/** Optional filter for this metric */
|
|
4483
|
-
filter?: {
|
|
4484
|
-
field: string;
|
|
4485
|
-
operator: AggregateFilterOperator;
|
|
4486
|
-
value: any;
|
|
4487
|
-
};
|
|
4488
|
-
}
|
|
4489
|
-
/**
|
|
4490
|
-
* Group by definition for aggregation
|
|
4491
|
-
*
|
|
4492
|
-
* @example
|
|
4493
|
-
* ```typescript
|
|
4494
|
-
* {
|
|
4495
|
-
* field: 'status',
|
|
4496
|
-
* metrics: [
|
|
4497
|
-
* { field: '*', operation: 'count', as: 'count' },
|
|
4498
|
-
* { field: 'price', operation: 'sum', as: 'value' },
|
|
4499
|
-
* ]
|
|
4500
|
-
* }
|
|
4501
|
-
* ```
|
|
4502
|
-
*/
|
|
4503
|
-
interface GroupByDefinition {
|
|
4504
|
-
/** Field to group by */
|
|
4505
|
-
field: string;
|
|
4506
|
-
/** Metrics to compute per group */
|
|
4507
|
-
metrics: MetricDefinition[];
|
|
4508
|
-
}
|
|
4509
|
-
/**
|
|
4510
|
-
* Aggregation configuration for entity analytics
|
|
4511
|
-
*
|
|
4512
|
-
* @example
|
|
4513
|
-
* ```typescript
|
|
4514
|
-
* const carsAnalyticsConfig: AggregateConfig = {
|
|
4515
|
-
* metrics: [
|
|
4516
|
-
* { field: '*', operation: 'count', as: 'total' },
|
|
4517
|
-
* { field: 'price', operation: 'sum', as: 'totalValue' },
|
|
4518
|
-
* { field: 'price', operation: 'avg', as: 'avgPrice' },
|
|
4519
|
-
* ],
|
|
4520
|
-
* groupBy: [
|
|
4521
|
-
* {
|
|
4522
|
-
* field: 'status',
|
|
4523
|
-
* metrics: [
|
|
4524
|
-
* { field: '*', operation: 'count', as: 'count' },
|
|
4525
|
-
* { field: 'price', operation: 'sum', as: 'value' },
|
|
4526
|
-
* ],
|
|
4527
|
-
* },
|
|
4528
|
-
* ],
|
|
4529
|
-
* where: [['isActive', '==', true]],
|
|
4530
|
-
* };
|
|
4531
|
-
* ```
|
|
4532
|
-
*/
|
|
4533
|
-
interface AggregateConfig {
|
|
4534
|
-
/** Top-level metrics (computed on entire collection) */
|
|
4535
|
-
metrics?: MetricDefinition[];
|
|
4536
|
-
/** Group by configurations */
|
|
4537
|
-
groupBy?: GroupByDefinition[];
|
|
4538
|
-
/** Optional global filters */
|
|
4539
|
-
where?: Array<[string, any, any]>;
|
|
4540
|
-
}
|
|
4541
|
-
/**
|
|
4542
|
-
* Request payload for aggregate function calls
|
|
4543
|
-
*/
|
|
4544
|
-
interface AggregateRequest {
|
|
4545
|
-
/** Optional runtime filters (merged with config filters) */
|
|
4546
|
-
where?: Array<[string, any, any]>;
|
|
4547
|
-
/** Optional date range filter */
|
|
4548
|
-
dateRange?: {
|
|
4549
|
-
field: string;
|
|
4550
|
-
start?: string;
|
|
4551
|
-
end?: string;
|
|
4552
|
-
};
|
|
4553
|
-
}
|
|
4554
|
-
/**
|
|
4555
|
-
* Response from aggregate function
|
|
4556
|
-
*/
|
|
4557
|
-
interface AggregateResponse {
|
|
4558
|
-
/** Computed top-level metrics */
|
|
4559
|
-
metrics: Record<string, number | null>;
|
|
4560
|
-
/** Grouped metrics by field */
|
|
4561
|
-
groups: Record<string, Record<string, Record<string, number | null>>>;
|
|
4562
|
-
/** Metadata about the aggregation */
|
|
4563
|
-
meta: {
|
|
4564
|
-
collection: string;
|
|
4565
|
-
totalDocs: number;
|
|
4566
|
-
computedAt: string;
|
|
4567
|
-
};
|
|
4568
|
-
}
|
|
4569
|
-
|
|
4570
4509
|
/**
|
|
4571
4510
|
* @fileoverview CRUD Constants
|
|
4572
4511
|
* @description Constants for CRUD domain. Defines visibility levels for entity fields and supported field types for entities.
|
|
@@ -4631,6 +4570,37 @@ declare const DEFAULT_ENTITY_ACCESS: {
|
|
|
4631
4570
|
* @since 0.0.1
|
|
4632
4571
|
* @author AMBROISE PARK Consulting
|
|
4633
4572
|
*/
|
|
4573
|
+
/**
|
|
4574
|
+
* Supported filter operators for query where clauses.
|
|
4575
|
+
* Use these in framework code for consistency. Consumers can use string literals
|
|
4576
|
+
* (e.g. operator: 'in') — CrudOperator accepts them; no need to import CRUD_OPERATORS.
|
|
4577
|
+
*/
|
|
4578
|
+
declare const CRUD_OPERATORS: {
|
|
4579
|
+
readonly EQ: "==";
|
|
4580
|
+
readonly NEQ: "!=";
|
|
4581
|
+
readonly LT: "<";
|
|
4582
|
+
readonly LTE: "<=";
|
|
4583
|
+
readonly GT: ">";
|
|
4584
|
+
readonly GTE: ">=";
|
|
4585
|
+
readonly IN: "in";
|
|
4586
|
+
readonly NOT_IN: "not-in";
|
|
4587
|
+
readonly ARRAY_CONTAINS: "array-contains";
|
|
4588
|
+
readonly ARRAY_CONTAINS_ANY: "array-contains-any";
|
|
4589
|
+
};
|
|
4590
|
+
/** Union of operator string literals. Consumer apps may use e.g. operator: 'in' without importing CRUD_OPERATORS. */
|
|
4591
|
+
type CrudOperator = (typeof CRUD_OPERATORS)[keyof typeof CRUD_OPERATORS];
|
|
4592
|
+
/** Order direction for query orderBy */
|
|
4593
|
+
declare const ORDER_DIRECTION: {
|
|
4594
|
+
readonly ASC: "asc";
|
|
4595
|
+
readonly DESC: "desc";
|
|
4596
|
+
};
|
|
4597
|
+
type OrderDirection = (typeof ORDER_DIRECTION)[keyof typeof ORDER_DIRECTION];
|
|
4598
|
+
/** Schema type for list queries (list vs listCard) */
|
|
4599
|
+
declare const LIST_SCHEMA_TYPE: {
|
|
4600
|
+
readonly LIST: "list";
|
|
4601
|
+
readonly LIST_CARD: "listCard";
|
|
4602
|
+
};
|
|
4603
|
+
type ListSchemaType = (typeof LIST_SCHEMA_TYPE)[keyof typeof LIST_SCHEMA_TYPE];
|
|
4634
4604
|
declare const FIELD_TYPES: readonly ["address", "array", "avatar", "badge", "boolean", "checkbox", "color", "combobox", "date", "datetime-local", "document", "documents", "duration", "email", "file", "files", "gdprConsent", "geopoint", "hidden", "iban", "image", "images", "map", "month", "multiselect", "number", "currency", "price", "password", "radio", "reference", "range", "rating", "reset", "richtext", "select", "submit", "switch", "tel", "text", "textarea", "time", "timestamp", "url", "week", "year"];
|
|
4635
4605
|
|
|
4636
4606
|
/**
|
|
@@ -4747,16 +4717,44 @@ interface EntityOwnershipConfig {
|
|
|
4747
4717
|
* @since 0.0.1
|
|
4748
4718
|
* @author AMBROISE PARK Consulting
|
|
4749
4719
|
*/
|
|
4750
|
-
type FieldType = (typeof FIELD_TYPES)[number];
|
|
4720
|
+
type FieldType = (typeof FIELD_TYPES)[number] | (string & {});
|
|
4721
|
+
/**
|
|
4722
|
+
* Built-in field type union (same as FieldType). Used internally to distinguish
|
|
4723
|
+
* framework field types from custom types registered via registerFieldType().
|
|
4724
|
+
*/
|
|
4725
|
+
type BuiltInFieldType = (typeof FIELD_TYPES)[number];
|
|
4726
|
+
/**
|
|
4727
|
+
* Map of custom field type names to their option shapes for `options.fieldSpecific`.
|
|
4728
|
+
* Augment this interface in your app so entity definitions get typed options for custom types.
|
|
4729
|
+
*
|
|
4730
|
+
* @example
|
|
4731
|
+
* ```ts
|
|
4732
|
+
* // In your app (e.g. types/crud.d.ts or next to your entity):
|
|
4733
|
+
* import '@donotdev/core';
|
|
4734
|
+
* declare module '@donotdev/core' {
|
|
4735
|
+
* interface CustomFieldOptionsMap {
|
|
4736
|
+
* 'custom-address': { extractZipCode?: boolean };
|
|
4737
|
+
* 'repairOperations': { maxItems?: number };
|
|
4738
|
+
* }
|
|
4739
|
+
* }
|
|
4740
|
+
* ```
|
|
4741
|
+
* Then in entity fields: `type: 'custom-address'`, `options: { fieldSpecific: { extractZipCode: true } }` is type-checked.
|
|
4742
|
+
*
|
|
4743
|
+
* @version 0.0.1
|
|
4744
|
+
* @since 0.0.1
|
|
4745
|
+
* @author AMBROISE PARK Consulting
|
|
4746
|
+
*/
|
|
4747
|
+
interface CustomFieldOptionsMap {
|
|
4748
|
+
}
|
|
4751
4749
|
/**
|
|
4752
4750
|
* Additional UI-specific options for field rendering
|
|
4753
|
-
* @template T - The field type
|
|
4751
|
+
* @template T - The field type (built-in or custom string). Custom types use CustomFieldOptionsMap for fieldSpecific.
|
|
4754
4752
|
*
|
|
4755
4753
|
* @version 0.0.1
|
|
4756
4754
|
* @since 0.0.1
|
|
4757
4755
|
* @author AMBROISE PARK Consulting
|
|
4758
4756
|
*/
|
|
4759
|
-
interface UIFieldOptions<T extends
|
|
4757
|
+
interface UIFieldOptions<T extends string = FieldType> {
|
|
4760
4758
|
/** The section under which this field should be grouped */
|
|
4761
4759
|
section?: string;
|
|
4762
4760
|
/** Placeholder text */
|
|
@@ -4780,16 +4778,30 @@ interface UIFieldOptions<T extends FieldType = FieldType> {
|
|
|
4780
4778
|
};
|
|
4781
4779
|
/** Step value for numeric inputs */
|
|
4782
4780
|
step?: T extends 'number' | 'range' ? number : never;
|
|
4781
|
+
/**
|
|
4782
|
+
* Unit string appended directly to the value (no space).
|
|
4783
|
+
* Non-translatable literal — use for symbols like 'm²', '€', 'kg', '%'.
|
|
4784
|
+
* @example `unit: 'm²'` → "20m²"
|
|
4785
|
+
*/
|
|
4786
|
+
unit?: T extends 'number' | 'range' | 'year' ? string : never;
|
|
4787
|
+
/**
|
|
4788
|
+
* i18n key resolved via t() and appended after the value+unit with a space.
|
|
4789
|
+
* Use for locale-specific suffixes like "charges comprises" / "all included".
|
|
4790
|
+
* @example `suffix: 'fields.rent_suffix'` → "700€ charges comprises"
|
|
4791
|
+
*/
|
|
4792
|
+
suffix?: T extends 'number' | 'range' | 'year' ? string : never;
|
|
4783
4793
|
/** Whether to show value label for range inputs */
|
|
4784
4794
|
showValue?: T extends 'range' ? boolean : never;
|
|
4785
|
-
/** Field specific options based on field type */
|
|
4786
|
-
fieldSpecific?: T extends 'file' | 'image' ? {
|
|
4795
|
+
/** Field specific options based on field type. Custom types: augment CustomFieldOptionsMap. */
|
|
4796
|
+
fieldSpecific?: T extends keyof CustomFieldOptionsMap ? CustomFieldOptionsMap[T] : T extends 'file' | 'image' | 'files' | 'images' | 'document' | 'documents' ? {
|
|
4787
4797
|
/** File types to accept (e.g., 'image/*', '.pdf') */
|
|
4788
4798
|
accept?: string;
|
|
4789
4799
|
/** Maximum file size in bytes */
|
|
4790
4800
|
maxSize?: number;
|
|
4791
4801
|
/** Whether to allow multiple files */
|
|
4792
4802
|
multiple?: boolean;
|
|
4803
|
+
/** Storage path prefix for uploads (e.g., 'apartments') */
|
|
4804
|
+
storagePath?: string;
|
|
4793
4805
|
} : T extends 'geopoint' ? {
|
|
4794
4806
|
/** Default zoom level for map */
|
|
4795
4807
|
defaultZoom?: number;
|
|
@@ -4944,7 +4956,7 @@ type FieldTypeToValue = {
|
|
|
4944
4956
|
* @since 0.0.1
|
|
4945
4957
|
* @author AMBROISE PARK Consulting
|
|
4946
4958
|
*/
|
|
4947
|
-
type ValueTypeForField<T extends
|
|
4959
|
+
type ValueTypeForField<T extends string> = T extends keyof FieldTypeToValue ? FieldTypeToValue[T] : unknown;
|
|
4948
4960
|
/**
|
|
4949
4961
|
* Any valid field value - includes built-in types plus custom registered types
|
|
4950
4962
|
* Uses `unknown` since consumers can register custom field types via RegisterFieldType
|
|
@@ -4989,7 +5001,7 @@ type EntityRecord = Record<string, AnyFieldValue>;
|
|
|
4989
5001
|
* @since 0.0.1
|
|
4990
5002
|
* @author AMBROISE PARK Consulting
|
|
4991
5003
|
*/
|
|
4992
|
-
interface ValidationRules<T extends
|
|
5004
|
+
interface ValidationRules<T extends string = FieldType> {
|
|
4993
5005
|
/** Whether the field is required */
|
|
4994
5006
|
required?: boolean;
|
|
4995
5007
|
/** Minimum value (for number fields) */
|
|
@@ -5210,7 +5222,7 @@ interface FormConfig {
|
|
|
5210
5222
|
* @since 0.0.1
|
|
5211
5223
|
* @author AMBROISE PARK Consulting
|
|
5212
5224
|
*/
|
|
5213
|
-
interface EntityField<T extends
|
|
5225
|
+
interface EntityField<T extends string = FieldType> {
|
|
5214
5226
|
/** Field identifier - required for form binding */
|
|
5215
5227
|
name: string;
|
|
5216
5228
|
/** The field type, which determines the UI component and validation */
|
|
@@ -5320,7 +5332,7 @@ interface UniqueKeyDefinition {
|
|
|
5320
5332
|
fields: string[];
|
|
5321
5333
|
/** Custom error message when duplicate is found */
|
|
5322
5334
|
errorMessage?: string;
|
|
5323
|
-
/** Skip validation for draft documents (default:
|
|
5335
|
+
/** Skip validation for draft documents (default: false) */
|
|
5324
5336
|
skipForDrafts?: boolean;
|
|
5325
5337
|
/**
|
|
5326
5338
|
* Return existing document instead of throwing error on duplicate (default: false)
|
|
@@ -5328,6 +5340,63 @@ interface UniqueKeyDefinition {
|
|
|
5328
5340
|
*/
|
|
5329
5341
|
findOrCreate?: boolean;
|
|
5330
5342
|
}
|
|
5343
|
+
/**
|
|
5344
|
+
* SOC2 security configuration for an entity.
|
|
5345
|
+
* Zero-config path: omit this entirely for MVP — add it when going to production/SOC2 audit.
|
|
5346
|
+
*
|
|
5347
|
+
* When a `SecurityContext` is passed to `CrudService`, these options control:
|
|
5348
|
+
* - Which fields are encrypted at rest (PII)
|
|
5349
|
+
* - Whether CRUD mutations are audit-logged (default: true)
|
|
5350
|
+
* - Entity-level rate limit overrides
|
|
5351
|
+
* - MFA requirement for a given role tier
|
|
5352
|
+
* - Data retention for automated purge scheduling
|
|
5353
|
+
*
|
|
5354
|
+
* @example
|
|
5355
|
+
* ```typescript
|
|
5356
|
+
* security: {
|
|
5357
|
+
* piiFields: ['email', 'phone', 'ssn'],
|
|
5358
|
+
* requireMfa: 'admin',
|
|
5359
|
+
* retention: { days: 365 },
|
|
5360
|
+
* }
|
|
5361
|
+
* ```
|
|
5362
|
+
*
|
|
5363
|
+
* @version 0.0.1
|
|
5364
|
+
* @since 0.0.1
|
|
5365
|
+
* @author AMBROISE PARK Consulting
|
|
5366
|
+
*/
|
|
5367
|
+
interface SecurityEntityConfig {
|
|
5368
|
+
/**
|
|
5369
|
+
* Field names to encrypt at rest using AES-256-GCM.
|
|
5370
|
+
* Requires `piiSecret` in `DndevSecurityConfig`.
|
|
5371
|
+
* Only string field values are encrypted; other types are skipped silently.
|
|
5372
|
+
*/
|
|
5373
|
+
piiFields?: string[];
|
|
5374
|
+
/**
|
|
5375
|
+
* Whether to emit audit log entries for all CRUD mutations on this entity.
|
|
5376
|
+
* @default true (when SecurityContext is provided)
|
|
5377
|
+
*/
|
|
5378
|
+
auditLog?: boolean;
|
|
5379
|
+
/**
|
|
5380
|
+
* Override rate limits for this entity (uses global defaults if omitted).
|
|
5381
|
+
*/
|
|
5382
|
+
rateLimit?: {
|
|
5383
|
+
writes?: number;
|
|
5384
|
+
reads?: number;
|
|
5385
|
+
windowSeconds?: number;
|
|
5386
|
+
};
|
|
5387
|
+
/**
|
|
5388
|
+
* Enforce MFA for users at or above this role attempting mutations.
|
|
5389
|
+
* The adapter must verify MFA status from the auth token/session.
|
|
5390
|
+
*/
|
|
5391
|
+
requireMfa?: UserRole;
|
|
5392
|
+
/**
|
|
5393
|
+
* Data retention policy — documents older than `days` are flagged for purge.
|
|
5394
|
+
* Integrate with `PrivacyManager.shouldPurge()` in a scheduled function.
|
|
5395
|
+
*/
|
|
5396
|
+
retention?: {
|
|
5397
|
+
days: number;
|
|
5398
|
+
};
|
|
5399
|
+
}
|
|
5331
5400
|
/**
|
|
5332
5401
|
* Multi-tenancy scope configuration for entities
|
|
5333
5402
|
* Enables automatic scoping of data by tenant/company/workspace
|
|
@@ -5364,6 +5433,26 @@ interface ScopeConfig {
|
|
|
5364
5433
|
*/
|
|
5365
5434
|
collection?: string;
|
|
5366
5435
|
}
|
|
5436
|
+
/**
|
|
5437
|
+
* Slot-based card layout for listCardFields.
|
|
5438
|
+
* Maps entity field names to card slots (title, subtitle, content, footer).
|
|
5439
|
+
*/
|
|
5440
|
+
interface ListCardLayout {
|
|
5441
|
+
/** Fields rendered as the card title (joined with titleSeparator) */
|
|
5442
|
+
title?: string[];
|
|
5443
|
+
/**
|
|
5444
|
+
* Separator used to join multiple title field values.
|
|
5445
|
+
* @default ' '
|
|
5446
|
+
* @example `titleSeparator: ' - '` → "Paris 20e arr. - 20m²"
|
|
5447
|
+
*/
|
|
5448
|
+
titleSeparator?: string;
|
|
5449
|
+
/** Fields rendered as the card subtitle */
|
|
5450
|
+
subtitle?: string[];
|
|
5451
|
+
/** Fields rendered in the card body (supports images) */
|
|
5452
|
+
content?: string[];
|
|
5453
|
+
/** Fields rendered in the card footer */
|
|
5454
|
+
footer?: string[];
|
|
5455
|
+
}
|
|
5367
5456
|
/**
|
|
5368
5457
|
* Definition of a business entity without base fields
|
|
5369
5458
|
*
|
|
@@ -5424,17 +5513,33 @@ interface BusinessEntity {
|
|
|
5424
5513
|
*/
|
|
5425
5514
|
listFields?: string[];
|
|
5426
5515
|
/**
|
|
5427
|
-
* Fields to include in public card list responses
|
|
5428
|
-
*
|
|
5429
|
-
*
|
|
5430
|
-
*
|
|
5516
|
+
* Fields to include in public card list responses.
|
|
5517
|
+
* Accepts a flat array (auto-layout) or a slot-based `ListCardLayout` object.
|
|
5518
|
+
*
|
|
5519
|
+
* Each field value is formatted via `formatValue()` using its registered display formatter.
|
|
5520
|
+
* For `'number'` fields, use `unit` and `suffix` field options for rich display — no custom
|
|
5521
|
+
* type needed:
|
|
5522
|
+
* - `unit: 'm²'` → "20m²" (appended directly, no space)
|
|
5523
|
+
* - `suffix: 'fields.rent_suffix'` → "700€ charges comprises" (i18n key, space-separated)
|
|
5524
|
+
*
|
|
5525
|
+
* Use `titleSeparator` in `ListCardLayout` to control how multiple title fields are joined
|
|
5526
|
+
* (default `' '`).
|
|
5431
5527
|
*
|
|
5432
5528
|
* @example
|
|
5433
5529
|
* ```typescript
|
|
5530
|
+
* // Flat — auto-slots first field as title, rest as content
|
|
5434
5531
|
* listCardFields: ['images', 'make', 'price', 'year']
|
|
5532
|
+
*
|
|
5533
|
+
* // Slot-based — explicit card layout with separator
|
|
5534
|
+
* listCardFields: {
|
|
5535
|
+
* titleSeparator: ' - ',
|
|
5536
|
+
* title: ['district_code', 'size'], // e.g. "Paris 20e arr. - 20m²"
|
|
5537
|
+
* subtitle: ['rent'], // e.g. "700€ charges comprises"
|
|
5538
|
+
* content: ['pictures', 'nearby_stations'],
|
|
5539
|
+
* }
|
|
5435
5540
|
* ```
|
|
5436
5541
|
*/
|
|
5437
|
-
listCardFields?: string[];
|
|
5542
|
+
listCardFields?: string[] | ListCardLayout;
|
|
5438
5543
|
/**
|
|
5439
5544
|
* Entity-level access control configuration.
|
|
5440
5545
|
* Defines minimum role required for each CRUD operation.
|
|
@@ -5475,6 +5580,21 @@ interface BusinessEntity {
|
|
|
5475
5580
|
* ```
|
|
5476
5581
|
*/
|
|
5477
5582
|
uniqueKeys?: UniqueKeyDefinition[];
|
|
5583
|
+
/**
|
|
5584
|
+
* SOC2 security configuration for this entity (optional — zero-config MVP path).
|
|
5585
|
+
* When a `SecurityContext` is provided to `CrudService`, these settings control
|
|
5586
|
+
* PII encryption, audit logging, rate limits, MFA enforcement, and retention.
|
|
5587
|
+
*
|
|
5588
|
+
* @example
|
|
5589
|
+
* ```typescript
|
|
5590
|
+
* security: {
|
|
5591
|
+
* piiFields: ['email', 'phone'],
|
|
5592
|
+
* requireMfa: 'admin',
|
|
5593
|
+
* retention: { days: 365 },
|
|
5594
|
+
* }
|
|
5595
|
+
* ```
|
|
5596
|
+
*/
|
|
5597
|
+
security?: SecurityEntityConfig;
|
|
5478
5598
|
}
|
|
5479
5599
|
/**
|
|
5480
5600
|
* Complete entity definition including base fields
|
|
@@ -5624,7 +5744,7 @@ declare const listEntitiesSchema: v.ObjectSchema<{
|
|
|
5624
5744
|
readonly where: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
5625
5745
|
readonly field: v.StringSchema<undefined>;
|
|
5626
5746
|
readonly operator: v.PicklistSchema<["==", "!=", "<", "<=", ">", ">=", "array-contains", "in", "not-in"], undefined>;
|
|
5627
|
-
readonly value: v.
|
|
5747
|
+
readonly value: v.UnknownSchema;
|
|
5628
5748
|
}, undefined>, undefined>, undefined>;
|
|
5629
5749
|
}, undefined>;
|
|
5630
5750
|
/**
|
|
@@ -5727,6 +5847,244 @@ interface ListEntitiesResponse {
|
|
|
5727
5847
|
hasMore: boolean;
|
|
5728
5848
|
}
|
|
5729
5849
|
|
|
5850
|
+
/**
|
|
5851
|
+
* @fileoverview CRUD Adapter Interface
|
|
5852
|
+
* @description Provider-agnostic interface for CRUD data access.
|
|
5853
|
+
* Any backend (Firestore, Supabase, REST, Postgres) must implement this contract.
|
|
5854
|
+
*
|
|
5855
|
+
* @version 0.0.1
|
|
5856
|
+
* @since 0.5.0
|
|
5857
|
+
* @author AMBROISE PARK Consulting
|
|
5858
|
+
*/
|
|
5859
|
+
|
|
5860
|
+
/** Single where clause for a query. operator accepts CrudOperator or string so consumer code can use variables or literals ('in', '==', etc.) without importing CRUD_OPERATORS. */
|
|
5861
|
+
interface QueryWhereClause {
|
|
5862
|
+
field: string;
|
|
5863
|
+
operator: CrudOperator;
|
|
5864
|
+
value: unknown;
|
|
5865
|
+
}
|
|
5866
|
+
/** Order-by clause for a query. direction accepts 'asc' | 'desc' or string so consumer code can use variables. */
|
|
5867
|
+
interface QueryOrderBy {
|
|
5868
|
+
field: string;
|
|
5869
|
+
direction?: OrderDirection;
|
|
5870
|
+
}
|
|
5871
|
+
/**
|
|
5872
|
+
* Query options for collection queries.
|
|
5873
|
+
* Provider-agnostic — each adapter maps these to its native query API.
|
|
5874
|
+
*/
|
|
5875
|
+
interface QueryOptions$1 {
|
|
5876
|
+
where?: QueryWhereClause[];
|
|
5877
|
+
orderBy?: QueryOrderBy[];
|
|
5878
|
+
limit?: number;
|
|
5879
|
+
/** Opaque cursor for pagination — value of the first orderBy field from the previous page's lastVisible */
|
|
5880
|
+
startAfter?: string | null;
|
|
5881
|
+
}
|
|
5882
|
+
/**
|
|
5883
|
+
* Paginated query result returned by adapter.query().
|
|
5884
|
+
* @template T - The entity type
|
|
5885
|
+
*/
|
|
5886
|
+
interface PaginatedQueryResult<T> {
|
|
5887
|
+
items: T[];
|
|
5888
|
+
total?: number;
|
|
5889
|
+
hasMore?: boolean;
|
|
5890
|
+
/** Opaque cursor for the next page */
|
|
5891
|
+
lastVisible?: string | null;
|
|
5892
|
+
}
|
|
5893
|
+
/** Callback for single-document subscriptions */
|
|
5894
|
+
type DocumentSubscriptionCallback<T> = (data: T | null, error?: Error) => void;
|
|
5895
|
+
/** Callback for collection subscriptions */
|
|
5896
|
+
type CollectionSubscriptionCallback<T> = (data: T[], error?: Error) => void;
|
|
5897
|
+
/**
|
|
5898
|
+
* Provider-agnostic CRUD adapter interface.
|
|
5899
|
+
*
|
|
5900
|
+
* Implementations:
|
|
5901
|
+
* - `FirestoreAdapter` (Firestore direct)
|
|
5902
|
+
* - `FunctionsAdapter` (Firebase callable functions)
|
|
5903
|
+
* - Future: Supabase, REST, Postgres adapters
|
|
5904
|
+
*
|
|
5905
|
+
* @template All methods accept `dndevSchema` for validation/transformation.
|
|
5906
|
+
* Adapters that don't need schema can ignore it.
|
|
5907
|
+
*
|
|
5908
|
+
* @version 0.0.1
|
|
5909
|
+
* @since 0.5.0
|
|
5910
|
+
*/
|
|
5911
|
+
interface ICrudAdapter {
|
|
5912
|
+
/**
|
|
5913
|
+
* When true, this adapter enforces field-level security server-side.
|
|
5914
|
+
* Only server-side adapters may access entities with restricted field visibility.
|
|
5915
|
+
* Defaults to false (direct/client-side adapters).
|
|
5916
|
+
*/
|
|
5917
|
+
readonly serverSideOnly?: boolean;
|
|
5918
|
+
/**
|
|
5919
|
+
* When true, field-level and row-level security is enforced at the database layer
|
|
5920
|
+
* (e.g. Supabase RLS + column grants). The framework visibility gate is bypassed
|
|
5921
|
+
* because the DB rejects unauthorized reads before any data leaves the server.
|
|
5922
|
+
*
|
|
5923
|
+
* **Supabase:** requires RLS enabled on every table + column-level grants per role.
|
|
5924
|
+
* **Firestore:** Rules are row-level only — field-level filtering needs FunctionsAdapter.
|
|
5925
|
+
*/
|
|
5926
|
+
readonly dbLevelSecurity?: boolean;
|
|
5927
|
+
/** Fetch a single document by ID. Returns null if not found. */
|
|
5928
|
+
get<T>(collection: string, id: string, schema?: dndevSchema<unknown>): Promise<T | null>;
|
|
5929
|
+
/** Create a new document with auto-generated ID. Returns the ID + parsed data. */
|
|
5930
|
+
add<T>(collection: string, data: T, schema?: dndevSchema<T>): Promise<{
|
|
5931
|
+
id: string;
|
|
5932
|
+
data: Record<string, unknown>;
|
|
5933
|
+
}>;
|
|
5934
|
+
/** Set/replace a document by ID (upsert semantics). */
|
|
5935
|
+
set<T>(collection: string, id: string, data: T, schema?: dndevSchema<T>): Promise<void>;
|
|
5936
|
+
/** Partial update a document by ID. */
|
|
5937
|
+
update<T>(collection: string, id: string, data: Partial<T>): Promise<void>;
|
|
5938
|
+
/** Delete a document by ID. */
|
|
5939
|
+
delete(collection: string, id: string): Promise<void>;
|
|
5940
|
+
/** Query a collection with filters, ordering, and pagination. schemaType accepts 'list' | 'listCard' or string. */
|
|
5941
|
+
query<T>(collection: string, options: QueryOptions$1, schema?: dndevSchema<unknown>, schemaType?: ListSchemaType | string): Promise<PaginatedQueryResult<T>>;
|
|
5942
|
+
/**
|
|
5943
|
+
* Subscribe to real-time changes on a single document.
|
|
5944
|
+
* Optional — adapters that don't support real-time can throw or return a no-op unsubscribe.
|
|
5945
|
+
*/
|
|
5946
|
+
subscribe?<T>(collection: string, id: string, callback: DocumentSubscriptionCallback<T>, schema?: dndevSchema<unknown>): () => void;
|
|
5947
|
+
/**
|
|
5948
|
+
* Subscribe to real-time changes on a collection query.
|
|
5949
|
+
* Optional — adapters that don't support real-time can throw or return a no-op unsubscribe.
|
|
5950
|
+
*/
|
|
5951
|
+
subscribeToCollection?<T>(collection: string, options: QueryOptions$1, callback: CollectionSubscriptionCallback<T>, schema?: dndevSchema<unknown>): () => void;
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
/** Supported aggregation operations */
|
|
5955
|
+
declare const AGGREGATE_OPERATIONS: {
|
|
5956
|
+
readonly COUNT: "count";
|
|
5957
|
+
readonly SUM: "sum";
|
|
5958
|
+
readonly AVG: "avg";
|
|
5959
|
+
readonly MIN: "min";
|
|
5960
|
+
readonly MAX: "max";
|
|
5961
|
+
};
|
|
5962
|
+
type AggregateOperation = (typeof AGGREGATE_OPERATIONS)[keyof typeof AGGREGATE_OPERATIONS];
|
|
5963
|
+
/** Filter operators for aggregation (subset of CRUD_OPERATORS) */
|
|
5964
|
+
declare const AGGREGATE_FILTER_OPERATORS: {
|
|
5965
|
+
readonly EQ: "==";
|
|
5966
|
+
readonly NEQ: "!=";
|
|
5967
|
+
readonly LT: "<";
|
|
5968
|
+
readonly LTE: "<=";
|
|
5969
|
+
readonly GT: ">";
|
|
5970
|
+
readonly GTE: ">=";
|
|
5971
|
+
};
|
|
5972
|
+
type AggregateFilterOperator = (typeof AGGREGATE_FILTER_OPERATORS)[keyof typeof AGGREGATE_FILTER_OPERATORS];
|
|
5973
|
+
/**
|
|
5974
|
+
* Single metric definition for aggregation
|
|
5975
|
+
*
|
|
5976
|
+
* @example
|
|
5977
|
+
* ```typescript
|
|
5978
|
+
* // Count all documents
|
|
5979
|
+
* { field: '*', operation: 'count', as: 'total' }
|
|
5980
|
+
*
|
|
5981
|
+
* // Sum a numeric field
|
|
5982
|
+
* { field: 'price', operation: 'sum', as: 'totalValue' }
|
|
5983
|
+
*
|
|
5984
|
+
* // Count with filter
|
|
5985
|
+
* {
|
|
5986
|
+
* field: '*',
|
|
5987
|
+
* operation: 'count',
|
|
5988
|
+
* as: 'availableCount',
|
|
5989
|
+
* filter: { field: 'status', operator: '==', value: 'available' }
|
|
5990
|
+
* }
|
|
5991
|
+
* ```
|
|
5992
|
+
*/
|
|
5993
|
+
interface MetricDefinition {
|
|
5994
|
+
/** Field to aggregate ('*' for count all) */
|
|
5995
|
+
field: string;
|
|
5996
|
+
/** Aggregation operation */
|
|
5997
|
+
operation: AggregateOperation;
|
|
5998
|
+
/** Output name for this metric */
|
|
5999
|
+
as: string;
|
|
6000
|
+
/** Optional filter for this metric */
|
|
6001
|
+
filter?: {
|
|
6002
|
+
field: string;
|
|
6003
|
+
operator: AggregateFilterOperator;
|
|
6004
|
+
value: any;
|
|
6005
|
+
};
|
|
6006
|
+
}
|
|
6007
|
+
/**
|
|
6008
|
+
* Group by definition for aggregation
|
|
6009
|
+
*
|
|
6010
|
+
* @example
|
|
6011
|
+
* ```typescript
|
|
6012
|
+
* {
|
|
6013
|
+
* field: 'status',
|
|
6014
|
+
* metrics: [
|
|
6015
|
+
* { field: '*', operation: 'count', as: 'count' },
|
|
6016
|
+
* { field: 'price', operation: 'sum', as: 'value' },
|
|
6017
|
+
* ]
|
|
6018
|
+
* }
|
|
6019
|
+
* ```
|
|
6020
|
+
*/
|
|
6021
|
+
interface GroupByDefinition {
|
|
6022
|
+
/** Field to group by */
|
|
6023
|
+
field: string;
|
|
6024
|
+
/** Metrics to compute per group */
|
|
6025
|
+
metrics: MetricDefinition[];
|
|
6026
|
+
}
|
|
6027
|
+
/**
|
|
6028
|
+
* Aggregation configuration for entity analytics
|
|
6029
|
+
*
|
|
6030
|
+
* @example
|
|
6031
|
+
* ```typescript
|
|
6032
|
+
* const carsAnalyticsConfig: AggregateConfig = {
|
|
6033
|
+
* metrics: [
|
|
6034
|
+
* { field: '*', operation: 'count', as: 'total' },
|
|
6035
|
+
* { field: 'price', operation: 'sum', as: 'totalValue' },
|
|
6036
|
+
* { field: 'price', operation: 'avg', as: 'avgPrice' },
|
|
6037
|
+
* ],
|
|
6038
|
+
* groupBy: [
|
|
6039
|
+
* {
|
|
6040
|
+
* field: 'status',
|
|
6041
|
+
* metrics: [
|
|
6042
|
+
* { field: '*', operation: 'count', as: 'count' },
|
|
6043
|
+
* { field: 'price', operation: 'sum', as: 'value' },
|
|
6044
|
+
* ],
|
|
6045
|
+
* },
|
|
6046
|
+
* ],
|
|
6047
|
+
* where: [['isActive', '==', true]],
|
|
6048
|
+
* };
|
|
6049
|
+
* ```
|
|
6050
|
+
*/
|
|
6051
|
+
interface AggregateConfig {
|
|
6052
|
+
/** Top-level metrics (computed on entire collection) */
|
|
6053
|
+
metrics?: MetricDefinition[];
|
|
6054
|
+
/** Group by configurations */
|
|
6055
|
+
groupBy?: GroupByDefinition[];
|
|
6056
|
+
/** Optional global filters */
|
|
6057
|
+
where?: Array<[string, AggregateFilterOperator | string, unknown]>;
|
|
6058
|
+
}
|
|
6059
|
+
/**
|
|
6060
|
+
* Request payload for aggregate function calls
|
|
6061
|
+
*/
|
|
6062
|
+
interface AggregateRequest {
|
|
6063
|
+
/** Optional runtime filters (merged with config filters) */
|
|
6064
|
+
where?: Array<[string, AggregateFilterOperator | string, unknown]>;
|
|
6065
|
+
/** Optional date range filter */
|
|
6066
|
+
dateRange?: {
|
|
6067
|
+
field: string;
|
|
6068
|
+
start?: string;
|
|
6069
|
+
end?: string;
|
|
6070
|
+
};
|
|
6071
|
+
}
|
|
6072
|
+
/**
|
|
6073
|
+
* Response from aggregate function
|
|
6074
|
+
*/
|
|
6075
|
+
interface AggregateResponse {
|
|
6076
|
+
/** Computed top-level metrics */
|
|
6077
|
+
metrics: Record<string, number | null>;
|
|
6078
|
+
/** Grouped metrics by field */
|
|
6079
|
+
groups: Record<string, Record<string, Record<string, number | null>>>;
|
|
6080
|
+
/** Metadata about the aggregation */
|
|
6081
|
+
meta: {
|
|
6082
|
+
collection: string;
|
|
6083
|
+
totalDocs: number;
|
|
6084
|
+
computedAt: string;
|
|
6085
|
+
};
|
|
6086
|
+
}
|
|
6087
|
+
|
|
5730
6088
|
/**
|
|
5731
6089
|
* @fileoverview CRUD Component Props Types
|
|
5732
6090
|
* @description Shared prop types for CRUD components used across UI, Templates, and CRUD packages
|
|
@@ -5792,10 +6150,51 @@ interface EntityCardListProps {
|
|
|
5792
6150
|
/** Cache stale time is ms - defaults to 30 mins */
|
|
5793
6151
|
staleTime?: number;
|
|
5794
6152
|
/** Optional filter function to filter items client-side */
|
|
5795
|
-
filter?: (item:
|
|
6153
|
+
filter?: (item: Record<string, unknown> & {
|
|
6154
|
+
id: string;
|
|
6155
|
+
}) => boolean;
|
|
5796
6156
|
/** Hide filters section (default: false) */
|
|
5797
6157
|
hideFilters?: boolean;
|
|
5798
6158
|
}
|
|
6159
|
+
/**
|
|
6160
|
+
* Props for CrudCard — presentational card built from entity + item + field slots.
|
|
6161
|
+
* Not route-aware: parent (e.g. EntityCardList) provides detailHref or onClick.
|
|
6162
|
+
* For a11y/SEO prefer detailHref so the card is wrapped in a Link.
|
|
6163
|
+
*/
|
|
6164
|
+
interface CrudCardProps {
|
|
6165
|
+
/** The list item (must have id) */
|
|
6166
|
+
item: EntityRecord & {
|
|
6167
|
+
id: string;
|
|
6168
|
+
};
|
|
6169
|
+
/** The entity definition (for entity.fields and formatting) */
|
|
6170
|
+
entity: Entity;
|
|
6171
|
+
/**
|
|
6172
|
+
* Detail page URL for this card. When provided, card is wrapped in Link for a11y/SEO.
|
|
6173
|
+
* Parent (EntityCardList) sets this to e.g. `${basePath}/${item.id}`.
|
|
6174
|
+
*/
|
|
6175
|
+
detailHref?: string;
|
|
6176
|
+
/**
|
|
6177
|
+
* Called when card is clicked. If detailHref is also set, Link handles navigation;
|
|
6178
|
+
* use onClick only when overriding (e.g. open sheet). If no detailHref, onClick is used for navigation.
|
|
6179
|
+
*/
|
|
6180
|
+
onClick?: (id: string) => void;
|
|
6181
|
+
/** Field names for card title (values joined with space) */
|
|
6182
|
+
titleFields?: string[];
|
|
6183
|
+
/** Field names for subtitle */
|
|
6184
|
+
subtitleFields?: string[];
|
|
6185
|
+
/** Field names for content body (label + value rows) */
|
|
6186
|
+
contentFields?: string[];
|
|
6187
|
+
/** Field names for footer */
|
|
6188
|
+
footerFields?: string[];
|
|
6189
|
+
/** When true, show delete button with confirm dialog */
|
|
6190
|
+
showDelete?: boolean;
|
|
6191
|
+
/** Optional actions slot (e.g. favorites heart) rendered in card corner */
|
|
6192
|
+
renderActions?: ReactNode;
|
|
6193
|
+
/** Card elevated style */
|
|
6194
|
+
elevated?: boolean;
|
|
6195
|
+
/** Optional className for the card wrapper */
|
|
6196
|
+
className?: string;
|
|
6197
|
+
}
|
|
5799
6198
|
interface EntityFormRendererProps<T extends EntityRecord = EntityRecord> {
|
|
5800
6199
|
/** Entity definition - pass the full entity from defineEntity() */
|
|
5801
6200
|
entity: Entity;
|
|
@@ -5823,9 +6222,9 @@ interface EntityFormRendererProps<T extends EntityRecord = EntityRecord> {
|
|
|
5823
6222
|
/** Secondary button submission handler */
|
|
5824
6223
|
onSecondarySubmit?: (data: T) => void | Promise<void>;
|
|
5825
6224
|
/**
|
|
5826
|
-
* Current viewer's role for editability checks
|
|
5827
|
-
*
|
|
5828
|
-
*
|
|
6225
|
+
* Current viewer's role for editability checks.
|
|
6226
|
+
* Auto-detected from auth when not provided. Pass explicitly to override (e.g. View-As preview).
|
|
6227
|
+
* Fallback chain: prop → useAuthSafe('userRole') → 'guest'
|
|
5829
6228
|
*/
|
|
5830
6229
|
viewerRole?: string;
|
|
5831
6230
|
/**
|
|
@@ -5881,6 +6280,20 @@ interface EntityFormRendererProps<T extends EntityRecord = EntityRecord> {
|
|
|
5881
6280
|
*/
|
|
5882
6281
|
hideVisibilityInfo?: boolean;
|
|
5883
6282
|
}
|
|
6283
|
+
interface EntityRecommendationsProps {
|
|
6284
|
+
/** The entity definition */
|
|
6285
|
+
entity: Entity;
|
|
6286
|
+
/** Query constraints — caller defines "related by what" (where, limit, etc.) */
|
|
6287
|
+
queryOptions: QueryOptions$1;
|
|
6288
|
+
/** Section title (e.g. "Similar apartments") */
|
|
6289
|
+
title?: string;
|
|
6290
|
+
/** Base path for card links. Default: `/${entity.collection}` */
|
|
6291
|
+
basePath?: string;
|
|
6292
|
+
/** Grid columns — default 3 */
|
|
6293
|
+
cols?: number | [number, number, number, number];
|
|
6294
|
+
/** Additional className on wrapper Section */
|
|
6295
|
+
className?: string;
|
|
6296
|
+
}
|
|
5884
6297
|
interface EntityDisplayRendererProps<T extends EntityRecord = EntityRecord> {
|
|
5885
6298
|
/** Entity definition - pass the full entity from defineEntity() */
|
|
5886
6299
|
entity: Entity;
|
|
@@ -5890,17 +6303,14 @@ interface EntityDisplayRendererProps<T extends EntityRecord = EntityRecord> {
|
|
|
5890
6303
|
t?: (key: string, options?: Record<string, unknown>) => string;
|
|
5891
6304
|
/** Additional CSS classes */
|
|
5892
6305
|
className?: string;
|
|
5893
|
-
/** Backend to use */
|
|
5894
|
-
backend?: 'firestore' | 'functions';
|
|
5895
6306
|
/** Custom loading message */
|
|
5896
6307
|
loadingMessage?: string;
|
|
5897
6308
|
/** Custom not found message */
|
|
5898
6309
|
notFoundMessage?: string;
|
|
5899
6310
|
/**
|
|
5900
|
-
* Current viewer's role for visibility checks
|
|
5901
|
-
*
|
|
5902
|
-
*
|
|
5903
|
-
* @default 'guest'
|
|
6311
|
+
* Current viewer's role for visibility checks.
|
|
6312
|
+
* Auto-detected from auth when not provided. Pass explicitly to override.
|
|
6313
|
+
* Fallback chain: prop → useAuthSafe('userRole') → 'guest'
|
|
5904
6314
|
*/
|
|
5905
6315
|
viewerRole?: string;
|
|
5906
6316
|
}
|
|
@@ -5958,11 +6368,11 @@ interface CrudAPI<T = unknown> {
|
|
|
5958
6368
|
showSuccessToast?: boolean;
|
|
5959
6369
|
}) => Promise<string>;
|
|
5960
6370
|
/** Query collection with filters */
|
|
5961
|
-
query: (options:
|
|
6371
|
+
query: (options: QueryOptions$1) => Promise<T[]>;
|
|
5962
6372
|
/** Subscribe to document changes */
|
|
5963
6373
|
subscribe: (id: string, callback: (data: T | null, error?: Error) => void) => () => void;
|
|
5964
6374
|
/** Subscribe to collection changes */
|
|
5965
|
-
subscribeToCollection: (options:
|
|
6375
|
+
subscribeToCollection: (options: QueryOptions$1, callback: (data: T[], error?: Error) => void) => () => void;
|
|
5966
6376
|
/** Invalidate cache for this collection (TanStack Query) */
|
|
5967
6377
|
invalidate: () => Promise<void>;
|
|
5968
6378
|
/** Whether CRUD is available and operational */
|
|
@@ -6009,35 +6419,52 @@ interface ColumnDef<T extends FieldValues> {
|
|
|
6009
6419
|
*/
|
|
6010
6420
|
/**
|
|
6011
6421
|
* Error types used throughout the DoNotDev platform
|
|
6012
|
-
*
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
*
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6422
|
+
* Single source of truth: const objects + derived types.
|
|
6423
|
+
*/
|
|
6424
|
+
/**
|
|
6425
|
+
* Standard error codes used within the DoNotDev platform.
|
|
6426
|
+
* Mapped to HTTP status codes or used for specific error handling logic.
|
|
6427
|
+
*/
|
|
6428
|
+
declare const ERROR_CODES: {
|
|
6429
|
+
readonly ALREADY_EXISTS: "already-exists";
|
|
6430
|
+
readonly CANCELLED: "cancelled";
|
|
6431
|
+
readonly DEADLINE_EXCEEDED: "deadline-exceeded";
|
|
6432
|
+
readonly DELETE_ACCOUNT_REQUIRES_SERVER: "DELETE_ACCOUNT_REQUIRES_SERVER";
|
|
6433
|
+
readonly INTERNAL: "internal";
|
|
6434
|
+
readonly INVALID_ARGUMENT: "invalid-argument";
|
|
6435
|
+
readonly NOT_FOUND: "not-found";
|
|
6436
|
+
readonly PERMISSION_DENIED: "permission-denied";
|
|
6437
|
+
readonly RATE_LIMIT_EXCEEDED: "rate-limit-exceeded";
|
|
6438
|
+
readonly TIMEOUT: "timeout";
|
|
6439
|
+
readonly UNAUTHENTICATED: "unauthenticated";
|
|
6440
|
+
readonly UNAVAILABLE: "unavailable";
|
|
6441
|
+
readonly UNIMPLEMENTED: "unimplemented";
|
|
6442
|
+
readonly UNKNOWN: "unknown";
|
|
6443
|
+
readonly VALIDATION_FAILED: "validation-failed";
|
|
6444
|
+
};
|
|
6445
|
+
type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];
|
|
6024
6446
|
/**
|
|
6025
6447
|
* Severity levels for error notifications and logging
|
|
6026
|
-
*
|
|
6027
|
-
* @version 0.0.1
|
|
6028
|
-
* @since 0.0.1
|
|
6029
|
-
* @author AMBROISE PARK Consulting
|
|
6030
6448
|
*/
|
|
6031
|
-
|
|
6449
|
+
declare const ERROR_SEVERITY: {
|
|
6450
|
+
readonly ERROR: "error";
|
|
6451
|
+
readonly WARNING: "warning";
|
|
6452
|
+
readonly INFO: "info";
|
|
6453
|
+
readonly SUCCESS: "success";
|
|
6454
|
+
};
|
|
6455
|
+
type ErrorSeverity = (typeof ERROR_SEVERITY)[keyof typeof ERROR_SEVERITY];
|
|
6032
6456
|
/**
|
|
6033
6457
|
* Error types used in entity hooks
|
|
6034
|
-
* A subset of ErrorCode that is specific to entity operations
|
|
6035
|
-
*
|
|
6036
|
-
* @version 0.0.1
|
|
6037
|
-
* @since 0.0.1
|
|
6038
|
-
* @author AMBROISE PARK Consulting
|
|
6039
6458
|
*/
|
|
6040
|
-
|
|
6459
|
+
declare const ENTITY_HOOK_ERRORS: {
|
|
6460
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
6461
|
+
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
6462
|
+
readonly PERMISSION_DENIED: "PERMISSION_DENIED";
|
|
6463
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
6464
|
+
readonly ALREADY_EXISTS: "ALREADY_EXISTS";
|
|
6465
|
+
readonly NETWORK_ERROR: "NETWORK_ERROR";
|
|
6466
|
+
};
|
|
6467
|
+
type EntityHookErrors = (typeof ENTITY_HOOK_ERRORS)[keyof typeof ENTITY_HOOK_ERRORS];
|
|
6041
6468
|
/**
|
|
6042
6469
|
* Maps Firebase error codes to entity hook error types
|
|
6043
6470
|
* Used for consistent error handling across the platform
|
|
@@ -6064,12 +6491,18 @@ declare class EntityHookError extends Error {
|
|
|
6064
6491
|
}
|
|
6065
6492
|
/**
|
|
6066
6493
|
* Error source types for tracking where errors originate
|
|
6067
|
-
*
|
|
6068
|
-
* @version 0.0.1
|
|
6069
|
-
* @since 0.0.1
|
|
6070
|
-
* @author AMBROISE PARK Consulting
|
|
6071
6494
|
*/
|
|
6072
|
-
|
|
6495
|
+
declare const ERROR_SOURCE: {
|
|
6496
|
+
readonly AUTH: "auth";
|
|
6497
|
+
readonly OAUTH: "oauth";
|
|
6498
|
+
readonly FIREBASE: "firebase";
|
|
6499
|
+
readonly API: "api";
|
|
6500
|
+
readonly VALIDATION: "validation";
|
|
6501
|
+
readonly ENTITY: "entity";
|
|
6502
|
+
readonly UI: "ui";
|
|
6503
|
+
readonly UNKNOWN: "unknown";
|
|
6504
|
+
};
|
|
6505
|
+
type ErrorSource = (typeof ERROR_SOURCE)[keyof typeof ERROR_SOURCE];
|
|
6073
6506
|
/**
|
|
6074
6507
|
* Standardized error class for the DoNotDev platform
|
|
6075
6508
|
* Single source of truth with optional fields for all use cases
|
|
@@ -6105,6 +6538,145 @@ declare class DoNotDevError extends Error {
|
|
|
6105
6538
|
toJSON(): object;
|
|
6106
6539
|
}
|
|
6107
6540
|
|
|
6541
|
+
/**
|
|
6542
|
+
* @fileoverview Security Types
|
|
6543
|
+
* @description Core security interface definitions. Implemented by @donotdev/security.
|
|
6544
|
+
* Keeping these in @donotdev/core avoids circular deps between packages.
|
|
6545
|
+
*
|
|
6546
|
+
* @version 0.0.1
|
|
6547
|
+
* @since 0.0.1
|
|
6548
|
+
* @author AMBROISE PARK Consulting
|
|
6549
|
+
*/
|
|
6550
|
+
/**
|
|
6551
|
+
* Audit event types (SOC2 CC6, CC7, C1, P1-P8).
|
|
6552
|
+
*
|
|
6553
|
+
* @version 0.0.1
|
|
6554
|
+
* @since 0.0.1
|
|
6555
|
+
* @author AMBROISE PARK Consulting
|
|
6556
|
+
*/
|
|
6557
|
+
type AuditEventType = 'auth.login.success' | 'auth.login.failure' | 'auth.logout' | 'auth.locked' | 'auth.unlocked' | 'auth.mfa.enrolled' | 'auth.mfa.challenged' | 'auth.session.expired' | 'auth.password.reset' | 'auth.role.changed' | 'crud.create' | 'crud.read' | 'crud.update' | 'crud.delete' | 'pii.access' | 'pii.export' | 'pii.erase' | 'rate_limit.exceeded' | 'anomaly.detected' | 'config.changed';
|
|
6558
|
+
/**
|
|
6559
|
+
* A single structured audit log entry.
|
|
6560
|
+
*
|
|
6561
|
+
* @version 0.0.1
|
|
6562
|
+
* @since 0.0.1
|
|
6563
|
+
* @author AMBROISE PARK Consulting
|
|
6564
|
+
*/
|
|
6565
|
+
interface AuditEvent {
|
|
6566
|
+
type: AuditEventType;
|
|
6567
|
+
timestamp: string;
|
|
6568
|
+
userId?: string;
|
|
6569
|
+
collection?: string;
|
|
6570
|
+
docId?: string;
|
|
6571
|
+
ip?: string;
|
|
6572
|
+
userAgent?: string;
|
|
6573
|
+
metadata?: Record<string, string | number | boolean>;
|
|
6574
|
+
}
|
|
6575
|
+
/**
|
|
6576
|
+
* Persistence-backed rate limit config (server-side: maxAttempts / windowMs / blockDurationMs).
|
|
6577
|
+
* Used by RateLimitBackend implementations (Firestore, Postgres, Redis).
|
|
6578
|
+
* Distinct from the client-side RateLimitConfig in @donotdev/types/utils.
|
|
6579
|
+
*
|
|
6580
|
+
* @version 0.0.1
|
|
6581
|
+
* @since 0.0.1
|
|
6582
|
+
* @author AMBROISE PARK Consulting
|
|
6583
|
+
*/
|
|
6584
|
+
interface ServerRateLimitConfig {
|
|
6585
|
+
/** Max requests allowed within the window. */
|
|
6586
|
+
maxAttempts: number;
|
|
6587
|
+
/** Window duration in milliseconds. */
|
|
6588
|
+
windowMs: number;
|
|
6589
|
+
/** Block duration in milliseconds after limit is exceeded. */
|
|
6590
|
+
blockDurationMs: number;
|
|
6591
|
+
}
|
|
6592
|
+
/**
|
|
6593
|
+
* Result from a server-side rate limit check.
|
|
6594
|
+
*
|
|
6595
|
+
* @version 0.0.1
|
|
6596
|
+
* @since 0.0.1
|
|
6597
|
+
* @author AMBROISE PARK Consulting
|
|
6598
|
+
*/
|
|
6599
|
+
interface ServerRateLimitResult {
|
|
6600
|
+
allowed: boolean;
|
|
6601
|
+
remaining: number;
|
|
6602
|
+
resetAt: Date | null;
|
|
6603
|
+
blockRemainingSeconds: number | null;
|
|
6604
|
+
}
|
|
6605
|
+
/**
|
|
6606
|
+
* Pluggable rate limit backend for DndevSecurity.
|
|
6607
|
+
* Implement to swap the default in-memory limiter with Firestore, Postgres, Redis, etc.
|
|
6608
|
+
*
|
|
6609
|
+
* @example
|
|
6610
|
+
* ```typescript
|
|
6611
|
+
* import { checkRateLimitWithFirestore } from '@donotdev/functions/shared';
|
|
6612
|
+
* const security = new DndevSecurity({
|
|
6613
|
+
* rateLimitBackend: { check: (key, cfg) => checkRateLimitWithFirestore(key, cfg) },
|
|
6614
|
+
* });
|
|
6615
|
+
* ```
|
|
6616
|
+
*
|
|
6617
|
+
* @version 0.0.1
|
|
6618
|
+
* @since 0.0.1
|
|
6619
|
+
* @author AMBROISE PARK Consulting
|
|
6620
|
+
*/
|
|
6621
|
+
interface RateLimitBackend {
|
|
6622
|
+
check(key: string, config: ServerRateLimitConfig): Promise<ServerRateLimitResult>;
|
|
6623
|
+
}
|
|
6624
|
+
/**
|
|
6625
|
+
* Minimal auth hardening interface exposed by SecurityContext.
|
|
6626
|
+
* Auth adapters delegate lockout to this when security is injected,
|
|
6627
|
+
* ensuring a single lockout source of truth that respects user config.
|
|
6628
|
+
*
|
|
6629
|
+
* @version 0.0.1
|
|
6630
|
+
* @since 0.0.1
|
|
6631
|
+
* @author AMBROISE PARK Consulting
|
|
6632
|
+
*/
|
|
6633
|
+
interface AuthHardeningContext {
|
|
6634
|
+
/** @throws if identifier is currently locked out */
|
|
6635
|
+
checkLockout(identifier: string): void;
|
|
6636
|
+
/** Record a failed auth attempt; may trigger lockout */
|
|
6637
|
+
recordFailure(identifier: string): void;
|
|
6638
|
+
/** Clear failure counter on successful auth */
|
|
6639
|
+
recordSuccess(identifier: string): void;
|
|
6640
|
+
}
|
|
6641
|
+
/**
|
|
6642
|
+
* Security context interface consumed by CrudService and auth adapters.
|
|
6643
|
+
* Implemented by DndevSecurity in @donotdev/security/server.
|
|
6644
|
+
*
|
|
6645
|
+
* Pass an instance via CrudService.setSecurity() or auth adapter constructors.
|
|
6646
|
+
* When not provided, no audit logging, rate limiting, or encryption is applied.
|
|
6647
|
+
*
|
|
6648
|
+
* @version 0.0.1
|
|
6649
|
+
* @since 0.0.1
|
|
6650
|
+
* @author AMBROISE PARK Consulting
|
|
6651
|
+
*/
|
|
6652
|
+
interface SecurityContext {
|
|
6653
|
+
/** Emit a structured audit event */
|
|
6654
|
+
audit(event: Omit<AuditEvent, 'timestamp'>): void | Promise<void>;
|
|
6655
|
+
/**
|
|
6656
|
+
* Check rate limit for a key + operation.
|
|
6657
|
+
* @throws {Error} when threshold is exceeded
|
|
6658
|
+
*/
|
|
6659
|
+
checkRateLimit(key: string, operation: 'read' | 'write'): Promise<void>;
|
|
6660
|
+
/** Encrypt named PII fields in a data object (returns new object) */
|
|
6661
|
+
encryptPii<T extends Record<string, unknown>>(data: T, piiFields: string[]): T;
|
|
6662
|
+
/** Decrypt named PII fields in a data object (returns new object) */
|
|
6663
|
+
decryptPii<T extends Record<string, unknown>>(data: T, piiFields: string[]): T;
|
|
6664
|
+
/**
|
|
6665
|
+
* Auth hardening — when present, auth adapters delegate brute-force lockout here
|
|
6666
|
+
* instead of using their own hardcoded Maps, ensuring injected config is respected.
|
|
6667
|
+
*/
|
|
6668
|
+
authHardening?: AuthHardeningContext;
|
|
6669
|
+
/**
|
|
6670
|
+
* Record a behavioral anomaly event (e.g. bulk deletes, bulk reads, auth failures).
|
|
6671
|
+
* Optional — no-op when not implemented. CrudService calls this after write mutations
|
|
6672
|
+
* so the anomaly detector can fire alerts when thresholds are breached.
|
|
6673
|
+
*
|
|
6674
|
+
* @param type - Anomaly type string (must match AnomalyType in @donotdev/security)
|
|
6675
|
+
* @param userId - User who triggered the anomaly (undefined = system / anonymous)
|
|
6676
|
+
*/
|
|
6677
|
+
recordAnomaly?(type: string, userId?: string): void;
|
|
6678
|
+
}
|
|
6679
|
+
|
|
6108
6680
|
/**
|
|
6109
6681
|
* @fileoverview Auth Events
|
|
6110
6682
|
* @description Event constants and types for auth EDA system. Defines authentication-related event names and types for event-driven architecture.
|
|
@@ -6243,11 +6815,11 @@ type BillingEventName = (typeof BILLING_EVENTS)[BillingEventKey];
|
|
|
6243
6815
|
*/
|
|
6244
6816
|
interface BillingEventData {
|
|
6245
6817
|
provider?: string;
|
|
6246
|
-
config?:
|
|
6247
|
-
invoice?:
|
|
6248
|
-
paymentMethod?:
|
|
6818
|
+
config?: Record<string, unknown>;
|
|
6819
|
+
invoice?: Record<string, unknown>;
|
|
6820
|
+
paymentMethod?: Record<string, unknown>;
|
|
6249
6821
|
timestamp: Date;
|
|
6250
|
-
metadata?: Record<string,
|
|
6822
|
+
metadata?: Record<string, unknown>;
|
|
6251
6823
|
}
|
|
6252
6824
|
/**
|
|
6253
6825
|
* Subscription event data interface
|
|
@@ -6257,11 +6829,11 @@ interface BillingEventData {
|
|
|
6257
6829
|
* @author AMBROISE PARK Consulting
|
|
6258
6830
|
*/
|
|
6259
6831
|
interface SubscriptionEventData {
|
|
6260
|
-
subscription:
|
|
6261
|
-
previousSubscription?:
|
|
6832
|
+
subscription: Record<string, unknown>;
|
|
6833
|
+
previousSubscription?: Record<string, unknown>;
|
|
6262
6834
|
reason?: string;
|
|
6263
6835
|
timestamp: Date;
|
|
6264
|
-
metadata?: Record<string,
|
|
6836
|
+
metadata?: Record<string, unknown>;
|
|
6265
6837
|
}
|
|
6266
6838
|
/**
|
|
6267
6839
|
* Payment event data interface
|
|
@@ -6275,10 +6847,10 @@ interface PaymentEventData {
|
|
|
6275
6847
|
amount: number;
|
|
6276
6848
|
currency: string;
|
|
6277
6849
|
status: 'succeeded' | 'failed' | 'pending' | 'refunded';
|
|
6278
|
-
subscription?:
|
|
6279
|
-
invoice?:
|
|
6850
|
+
subscription?: Record<string, unknown>;
|
|
6851
|
+
invoice?: Record<string, unknown>;
|
|
6280
6852
|
timestamp: Date;
|
|
6281
|
-
metadata?: Record<string,
|
|
6853
|
+
metadata?: Record<string, unknown>;
|
|
6282
6854
|
}
|
|
6283
6855
|
/**
|
|
6284
6856
|
* Webhook event data interface
|
|
@@ -6290,7 +6862,7 @@ interface PaymentEventData {
|
|
|
6290
6862
|
interface WebhookEventData {
|
|
6291
6863
|
provider: string;
|
|
6292
6864
|
eventType: string;
|
|
6293
|
-
data:
|
|
6865
|
+
data: Record<string, unknown>;
|
|
6294
6866
|
signature?: string;
|
|
6295
6867
|
timestamp: Date;
|
|
6296
6868
|
}
|
|
@@ -7090,6 +7662,71 @@ interface FunctionLoader {
|
|
|
7090
7662
|
/** Get loaded system (throws if not loaded) */
|
|
7091
7663
|
getSystem(): FunctionSystem;
|
|
7092
7664
|
}
|
|
7665
|
+
/**
|
|
7666
|
+
* Result type for useFunctionsQuery hook
|
|
7667
|
+
*
|
|
7668
|
+
* @version 0.0.1
|
|
7669
|
+
* @since 0.0.1
|
|
7670
|
+
* @author AMBROISE PARK Consulting
|
|
7671
|
+
*/
|
|
7672
|
+
interface UseFunctionsQueryResult<TData> {
|
|
7673
|
+
/** Query data */
|
|
7674
|
+
data: TData | undefined;
|
|
7675
|
+
/** Whether the query is loading */
|
|
7676
|
+
isLoading: boolean;
|
|
7677
|
+
/** Whether the query encountered an error */
|
|
7678
|
+
isError: boolean;
|
|
7679
|
+
/** Error details if any */
|
|
7680
|
+
error: FunctionError | null;
|
|
7681
|
+
/** Whether the query is currently fetching (includes background refetch) */
|
|
7682
|
+
isFetching: boolean;
|
|
7683
|
+
/** Refetch the query */
|
|
7684
|
+
refetch: () => Promise<void>;
|
|
7685
|
+
}
|
|
7686
|
+
/**
|
|
7687
|
+
* Result type for useFunctionsMutation hook
|
|
7688
|
+
*
|
|
7689
|
+
* @version 0.0.1
|
|
7690
|
+
* @since 0.0.1
|
|
7691
|
+
* @author AMBROISE PARK Consulting
|
|
7692
|
+
*/
|
|
7693
|
+
interface UseFunctionsMutationResult<TData, TVariables> {
|
|
7694
|
+
/** Execute the mutation */
|
|
7695
|
+
mutate: (variables: TVariables) => void;
|
|
7696
|
+
/** Execute the mutation and return a promise */
|
|
7697
|
+
mutateAsync: (variables: TVariables) => Promise<TData>;
|
|
7698
|
+
/** Whether the mutation is in progress */
|
|
7699
|
+
isLoading: boolean;
|
|
7700
|
+
/** Whether the mutation encountered an error */
|
|
7701
|
+
isError: boolean;
|
|
7702
|
+
/** Whether the mutation succeeded */
|
|
7703
|
+
isSuccess: boolean;
|
|
7704
|
+
/** Error details if any */
|
|
7705
|
+
error: FunctionError | null;
|
|
7706
|
+
/** Mutation result data */
|
|
7707
|
+
data: TData | undefined;
|
|
7708
|
+
/** Reset the mutation state */
|
|
7709
|
+
reset: () => void;
|
|
7710
|
+
}
|
|
7711
|
+
/**
|
|
7712
|
+
* Result type for useFunctionsCall hook
|
|
7713
|
+
*
|
|
7714
|
+
* @version 0.0.1
|
|
7715
|
+
* @since 0.0.1
|
|
7716
|
+
* @author AMBROISE PARK Consulting
|
|
7717
|
+
*/
|
|
7718
|
+
interface UseFunctionsCallResult<TData> {
|
|
7719
|
+
/** Execute the function call */
|
|
7720
|
+
call: (params?: object) => Promise<TData>;
|
|
7721
|
+
/** Whether the call is in progress */
|
|
7722
|
+
isLoading: boolean;
|
|
7723
|
+
/** Whether the call encountered an error */
|
|
7724
|
+
isError: boolean;
|
|
7725
|
+
/** Error details if any */
|
|
7726
|
+
error: FunctionError | null;
|
|
7727
|
+
/** Call result data */
|
|
7728
|
+
data: TData | undefined;
|
|
7729
|
+
}
|
|
7093
7730
|
/**
|
|
7094
7731
|
* Complete functions system interface
|
|
7095
7732
|
*
|
|
@@ -7102,12 +7739,12 @@ interface FunctionSystem {
|
|
|
7102
7739
|
client: FunctionClient;
|
|
7103
7740
|
/** React Query hooks */
|
|
7104
7741
|
hooks: {
|
|
7105
|
-
useFunctionsQuery:
|
|
7106
|
-
useFunctionsMutation:
|
|
7107
|
-
useFunctionsCall:
|
|
7742
|
+
useFunctionsQuery: <TData = unknown>(functionName: string, params?: object, schema?: v.BaseSchema<unknown, TData, v.BaseIssue<unknown>>, options?: UseFunctionsQueryOptions<TData>) => UseFunctionsQueryResult<TData>;
|
|
7743
|
+
useFunctionsMutation: <TData = unknown, TVariables = object>(functionName: string, schema?: v.BaseSchema<unknown, TData, v.BaseIssue<unknown>>, options?: UseFunctionsMutationOptions<TData, TVariables>) => UseFunctionsMutationResult<TData, TVariables>;
|
|
7744
|
+
useFunctionsCall: <TData = unknown>(functionName: string, options?: FunctionCallOptions) => UseFunctionsCallResult<TData>;
|
|
7108
7745
|
};
|
|
7109
7746
|
/** Direct call function */
|
|
7110
|
-
callFunction:
|
|
7747
|
+
callFunction: FunctionClient['callFunction'];
|
|
7111
7748
|
}
|
|
7112
7749
|
/**
|
|
7113
7750
|
* React Query options for functions
|
|
@@ -7184,27 +7821,27 @@ interface FunctionSchemas {
|
|
|
7184
7821
|
auth: {
|
|
7185
7822
|
getUserProfile: FunctionSchema<{
|
|
7186
7823
|
userId: string;
|
|
7187
|
-
},
|
|
7188
|
-
updateUserProfile: FunctionSchema<
|
|
7189
|
-
refreshToken: FunctionSchema<
|
|
7824
|
+
}, Record<string, unknown>>;
|
|
7825
|
+
updateUserProfile: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;
|
|
7826
|
+
refreshToken: FunctionSchema<Record<string, never>, Record<string, unknown>>;
|
|
7190
7827
|
};
|
|
7191
7828
|
/** Billing-related functions */
|
|
7192
7829
|
billing: {
|
|
7193
|
-
createCheckoutSession: FunctionSchema<
|
|
7194
|
-
refreshSubscriptionStatus: FunctionSchema<
|
|
7195
|
-
processPaymentSuccess: FunctionSchema<
|
|
7830
|
+
createCheckoutSession: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;
|
|
7831
|
+
refreshSubscriptionStatus: FunctionSchema<Record<string, never>, Record<string, unknown>>;
|
|
7832
|
+
processPaymentSuccess: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;
|
|
7196
7833
|
};
|
|
7197
7834
|
/** Generic CRUD functions */
|
|
7198
7835
|
crud: {
|
|
7199
|
-
createEntity: FunctionSchema<
|
|
7200
|
-
updateEntity: FunctionSchema<
|
|
7836
|
+
createEntity: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;
|
|
7837
|
+
updateEntity: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;
|
|
7201
7838
|
deleteEntity: FunctionSchema<{
|
|
7202
7839
|
id: string;
|
|
7203
|
-
},
|
|
7840
|
+
}, Record<string, unknown>>;
|
|
7204
7841
|
getEntity: FunctionSchema<{
|
|
7205
7842
|
id: string;
|
|
7206
|
-
},
|
|
7207
|
-
listEntities: FunctionSchema<
|
|
7843
|
+
}, Record<string, unknown>>;
|
|
7844
|
+
listEntities: FunctionSchema<Record<string, unknown>, Record<string, unknown>[]>;
|
|
7208
7845
|
};
|
|
7209
7846
|
}
|
|
7210
7847
|
/**
|
|
@@ -7842,6 +8479,12 @@ interface InitOptions<T = object> extends PluginOptions<T> {
|
|
|
7842
8479
|
*/
|
|
7843
8480
|
debug?: boolean;
|
|
7844
8481
|
|
|
8482
|
+
/**
|
|
8483
|
+
* Show support notice in console during initialization.
|
|
8484
|
+
* @default true
|
|
8485
|
+
*/
|
|
8486
|
+
showSupportNotice?: boolean;
|
|
8487
|
+
|
|
7845
8488
|
/**
|
|
7846
8489
|
* Resources to initialize with (if not using loading or not appending using addResourceBundle)
|
|
7847
8490
|
* @default undefined
|
|
@@ -8256,6 +8899,11 @@ interface TOptionsBase {
|
|
|
8256
8899
|
* Override interpolation options
|
|
8257
8900
|
*/
|
|
8258
8901
|
interpolation?: InterpolationOptions;
|
|
8902
|
+
/**
|
|
8903
|
+
* Optional keyPrefix that will be applied to the key before resolving.
|
|
8904
|
+
* Only supported on the TFunction returned by getFixedT().
|
|
8905
|
+
*/
|
|
8906
|
+
keyPrefix?: string;
|
|
8259
8907
|
}
|
|
8260
8908
|
|
|
8261
8909
|
type TOptions<TInterpolationMap extends object = $Dictionary> = TOptionsBase &
|
|
@@ -8564,6 +9212,14 @@ type AppendKeyPrefix<Key, KPrefix> = KPrefix extends string
|
|
|
8564
9212
|
? `${KPrefix}${_KeySeparator}${Key & string}`
|
|
8565
9213
|
: Key;
|
|
8566
9214
|
|
|
9215
|
+
/**
|
|
9216
|
+
* Resolves the effective key prefix by preferring a per-call `keyPrefix` from
|
|
9217
|
+
* options over the interface-level `KPrefix` (set via getFixedT's 3rd argument).
|
|
9218
|
+
*/
|
|
9219
|
+
type EffectiveKPrefix<KPrefix, TOpt> = TOpt extends { keyPrefix: infer OptKP extends string }
|
|
9220
|
+
? OptKP
|
|
9221
|
+
: KPrefix;
|
|
9222
|
+
|
|
8567
9223
|
/** ************************
|
|
8568
9224
|
* T function declaration *
|
|
8569
9225
|
************************* */
|
|
@@ -8571,17 +9227,17 @@ type AppendKeyPrefix<Key, KPrefix> = KPrefix extends string
|
|
|
8571
9227
|
interface TFunctionStrict<Ns extends Namespace = DefaultNamespace, KPrefix = undefined>
|
|
8572
9228
|
extends Branded<Ns> {
|
|
8573
9229
|
<
|
|
8574
|
-
const Key extends ParseKeys<Ns, TOpt, KPrefix
|
|
9230
|
+
const Key extends ParseKeys<Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>> | TemplateStringsArray,
|
|
8575
9231
|
const TOpt extends TOptions,
|
|
8576
|
-
Ret extends TFunctionReturn<Ns, AppendKeyPrefix<Key, KPrefix
|
|
9232
|
+
Ret extends TFunctionReturn<Ns, AppendKeyPrefix<Key, EffectiveKPrefix<KPrefix, TOpt>>, TOpt>,
|
|
8577
9233
|
>(
|
|
8578
9234
|
key: Key | Key[],
|
|
8579
9235
|
options?: TOpt & InterpolationMap<Ret>,
|
|
8580
9236
|
): TFunctionReturnOptionalDetails<TFunctionProcessReturnValue<$NoInfer<Ret>, never>, TOpt>;
|
|
8581
9237
|
<
|
|
8582
|
-
const Key extends ParseKeys<Ns, TOpt, KPrefix
|
|
9238
|
+
const Key extends ParseKeys<Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>> | TemplateStringsArray,
|
|
8583
9239
|
const TOpt extends TOptions,
|
|
8584
|
-
Ret extends TFunctionReturn<Ns, AppendKeyPrefix<Key, KPrefix
|
|
9240
|
+
Ret extends TFunctionReturn<Ns, AppendKeyPrefix<Key, EffectiveKPrefix<KPrefix, TOpt>>, TOpt>,
|
|
8585
9241
|
>(
|
|
8586
9242
|
key: Key | Key[],
|
|
8587
9243
|
defaultValue: string,
|
|
@@ -8592,9 +9248,9 @@ interface TFunctionStrict<Ns extends Namespace = DefaultNamespace, KPrefix = und
|
|
|
8592
9248
|
interface TFunctionNonStrict<Ns extends Namespace = DefaultNamespace, KPrefix = undefined>
|
|
8593
9249
|
extends Branded<Ns> {
|
|
8594
9250
|
<
|
|
8595
|
-
const Key extends ParseKeys<Ns, TOpt, KPrefix
|
|
9251
|
+
const Key extends ParseKeys<Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>> | TemplateStringsArray,
|
|
8596
9252
|
const TOpt extends TOptions,
|
|
8597
|
-
Ret extends TFunctionReturn<Ns, AppendKeyPrefix<Key, KPrefix
|
|
9253
|
+
Ret extends TFunctionReturn<Ns, AppendKeyPrefix<Key, EffectiveKPrefix<KPrefix, TOpt>>, TOpt>,
|
|
8598
9254
|
const ActualOptions extends TOpt & InterpolationMap<Ret> = TOpt & InterpolationMap<Ret>,
|
|
8599
9255
|
DefaultValue extends string = never,
|
|
8600
9256
|
>(
|
|
@@ -9114,6 +9770,17 @@ interface i18n extends CustomInstanceExtensions {
|
|
|
9114
9770
|
*/
|
|
9115
9771
|
cloneInstance(options?: CloneOptions, callback?: Callback): i18n;
|
|
9116
9772
|
|
|
9773
|
+
/**
|
|
9774
|
+
* Returns a JSON representation of the i18next instance for serialization.
|
|
9775
|
+
*/
|
|
9776
|
+
toJSON(): {
|
|
9777
|
+
options: InitOptions;
|
|
9778
|
+
store: ResourceStore;
|
|
9779
|
+
language: string;
|
|
9780
|
+
languages: readonly string[];
|
|
9781
|
+
resolvedLanguage?: string;
|
|
9782
|
+
};
|
|
9783
|
+
|
|
9117
9784
|
/**
|
|
9118
9785
|
* Gets fired after initialization.
|
|
9119
9786
|
*/
|
|
@@ -10238,6 +10905,7 @@ interface CustomStoreConfig {
|
|
|
10238
10905
|
initialize?: () => Promise<boolean | void>;
|
|
10239
10906
|
[key: string]: any;
|
|
10240
10907
|
};
|
|
10908
|
+
subscribe: (listener: () => void) => () => void;
|
|
10241
10909
|
};
|
|
10242
10910
|
}
|
|
10243
10911
|
/**
|
|
@@ -11272,49 +11940,177 @@ interface OAuthRefreshResponse {
|
|
|
11272
11940
|
refresh_token?: string;
|
|
11273
11941
|
scope?: string;
|
|
11274
11942
|
}
|
|
11275
|
-
|
|
11943
|
+
|
|
11944
|
+
/**
|
|
11945
|
+
* GitHub repository configuration type
|
|
11946
|
+
*
|
|
11947
|
+
* @version 0.0.1
|
|
11948
|
+
* @since 0.0.1
|
|
11949
|
+
* @author AMBROISE PARK Consulting
|
|
11950
|
+
*/
|
|
11951
|
+
type GitHubRepoConfig = v.InferOutput<typeof githubRepoConfigSchema>;
|
|
11952
|
+
/**
|
|
11953
|
+
* GitHub permission type
|
|
11954
|
+
*
|
|
11955
|
+
* @version 0.0.1
|
|
11956
|
+
* @since 0.0.1
|
|
11957
|
+
* @author AMBROISE PARK Consulting
|
|
11958
|
+
*/
|
|
11959
|
+
type GitHubPermission = v.InferOutput<typeof githubPermissionSchema>;
|
|
11960
|
+
/**
|
|
11961
|
+
* OAuth API type - complete interface for useOAuth hook
|
|
11962
|
+
*
|
|
11963
|
+
* @version 0.0.3
|
|
11964
|
+
* @since 0.0.1
|
|
11965
|
+
* @author AMBROISE PARK Consulting
|
|
11966
|
+
*/
|
|
11967
|
+
interface OAuthAPI {
|
|
11968
|
+
/**
|
|
11969
|
+
* Unified feature status - single source of truth for OAuth state.
|
|
11970
|
+
* Replaces deprecated `loading` boolean flag.
|
|
11971
|
+
* - `initializing`: OAuth is loading/initializing
|
|
11972
|
+
* - `ready`: OAuth fully operational
|
|
11973
|
+
* - `degraded`: OAuth unavailable (feature not installed/consent not given)
|
|
11974
|
+
* - `error`: OAuth encountered error
|
|
11975
|
+
*/
|
|
11976
|
+
status: FeatureStatus;
|
|
11977
|
+
error: string | null;
|
|
11978
|
+
partners: Record<OAuthPartnerId, any>;
|
|
11979
|
+
connectedPartners: OAuthPartnerId[];
|
|
11980
|
+
connect: (partnerId: OAuthPartnerId, purpose?: OAuthPurpose) => Promise<void>;
|
|
11981
|
+
disconnect: (partnerId: OAuthPartnerId) => Promise<void>;
|
|
11982
|
+
isConnected: (partnerId: OAuthPartnerId) => boolean;
|
|
11983
|
+
getCredentials: (partnerId: OAuthPartnerId) => OAuthCredentials | null;
|
|
11984
|
+
handleCallback: (partnerId: OAuthPartnerId, code: string, state?: string) => Promise<void>;
|
|
11985
|
+
isAvailable: boolean;
|
|
11986
|
+
}
|
|
11987
|
+
|
|
11988
|
+
/**
|
|
11989
|
+
* @fileoverview Callable Provider Interface
|
|
11990
|
+
* @description Provider-agnostic interface for invoking server-side functions.
|
|
11991
|
+
* Firebase uses `httpsCallable`; Supabase uses `functions.invoke()`.
|
|
11992
|
+
*
|
|
11993
|
+
* @version 0.0.1
|
|
11994
|
+
* @since 0.5.0
|
|
11995
|
+
* @author AMBROISE PARK Consulting
|
|
11996
|
+
*/
|
|
11997
|
+
/**
|
|
11998
|
+
* Provider-agnostic interface for calling server-side functions.
|
|
11999
|
+
*
|
|
12000
|
+
* @example
|
|
12001
|
+
* ```typescript
|
|
12002
|
+
* const callable: ICallableProvider = new SupabaseCallableProvider(client);
|
|
12003
|
+
* const result = await callable.call<{ userId: string }, { success: boolean }>(
|
|
12004
|
+
* 'delete-account',
|
|
12005
|
+
* { userId: '123' }
|
|
12006
|
+
* );
|
|
12007
|
+
* ```
|
|
12008
|
+
*
|
|
12009
|
+
* @version 0.0.1
|
|
12010
|
+
* @since 0.5.0
|
|
12011
|
+
*/
|
|
12012
|
+
interface ICallableProvider {
|
|
12013
|
+
call<TReq, TRes>(functionName: string, data: TReq): Promise<TRes>;
|
|
12014
|
+
}
|
|
12015
|
+
|
|
12016
|
+
/**
|
|
12017
|
+
* @fileoverview Storage Adapter Interface
|
|
12018
|
+
* @description Provider-agnostic interface for file/image storage.
|
|
12019
|
+
* Any storage backend (Firebase Storage, S3, Cloudflare R2, Supabase Storage) must implement this contract.
|
|
12020
|
+
*
|
|
12021
|
+
* @version 0.0.1
|
|
12022
|
+
* @since 0.5.0
|
|
12023
|
+
* @author AMBROISE PARK Consulting
|
|
12024
|
+
*/
|
|
12025
|
+
/** Progress callback for upload operations (0-100) */
|
|
12026
|
+
type UploadProgressCallback = (percent: number) => void;
|
|
12027
|
+
/** Options for file upload */
|
|
12028
|
+
interface UploadOptions {
|
|
12029
|
+
/** Storage path/prefix (e.g. 'uploads/images') */
|
|
12030
|
+
storagePath?: string;
|
|
12031
|
+
/** Custom filename override */
|
|
12032
|
+
filename?: string;
|
|
12033
|
+
/** Progress callback */
|
|
12034
|
+
onProgress?: UploadProgressCallback;
|
|
12035
|
+
}
|
|
12036
|
+
/** Result of an upload operation */
|
|
12037
|
+
interface UploadResult {
|
|
12038
|
+
/** Public URL of the uploaded file */
|
|
12039
|
+
url: string;
|
|
12040
|
+
/** Storage path of the uploaded file (for deletion) */
|
|
12041
|
+
path: string;
|
|
12042
|
+
}
|
|
11276
12043
|
/**
|
|
11277
|
-
*
|
|
12044
|
+
* Provider-agnostic storage adapter interface.
|
|
12045
|
+
*
|
|
12046
|
+
* Implementations:
|
|
12047
|
+
* - `FirebaseStorageAdapter` (Firebase Storage)
|
|
12048
|
+
* - Future: S3, Cloudflare R2, Supabase Storage adapters
|
|
11278
12049
|
*
|
|
11279
12050
|
* @version 0.0.1
|
|
11280
|
-
* @since 0.0
|
|
11281
|
-
* @author AMBROISE PARK Consulting
|
|
12051
|
+
* @since 0.5.0
|
|
11282
12052
|
*/
|
|
11283
|
-
|
|
12053
|
+
interface IStorageAdapter {
|
|
12054
|
+
/** Upload a file or blob to storage. Returns the public URL and storage path. */
|
|
12055
|
+
upload(file: File | Blob, options?: UploadOptions): Promise<UploadResult>;
|
|
12056
|
+
/** Delete a file by its URL or storage path. */
|
|
12057
|
+
delete(urlOrPath: string): Promise<void>;
|
|
12058
|
+
/** Get the public download URL for a storage path. */
|
|
12059
|
+
getUrl(path: string): Promise<string>;
|
|
12060
|
+
}
|
|
12061
|
+
|
|
11284
12062
|
/**
|
|
11285
|
-
*
|
|
12063
|
+
* @fileoverview Provider Registry Types
|
|
12064
|
+
* @description Types for pluggable backends (CRUD, auth, storage, callable).
|
|
12065
|
+
* Consumers call `configureProviders()` once at app startup; `useCrud` and auth hooks
|
|
12066
|
+
* use these providers. Import `config/providers` from main.tsx before any CRUD usage.
|
|
11286
12067
|
*
|
|
11287
12068
|
* @version 0.0.1
|
|
11288
|
-
* @since 0.0
|
|
12069
|
+
* @since 0.5.0
|
|
11289
12070
|
* @author AMBROISE PARK Consulting
|
|
11290
12071
|
*/
|
|
11291
|
-
|
|
12072
|
+
|
|
11292
12073
|
/**
|
|
11293
|
-
*
|
|
12074
|
+
* All pluggable providers for the DoNotDev framework.
|
|
11294
12075
|
*
|
|
11295
|
-
*
|
|
11296
|
-
*
|
|
11297
|
-
*
|
|
12076
|
+
* - **crud** (required): CRUD adapter. Required for `useCrud` and entity operations.
|
|
12077
|
+
* - **auth** (optional): Client auth. Omit if using external auth.
|
|
12078
|
+
* - **storage** (optional): File/image storage. Omit if no uploads.
|
|
12079
|
+
* - **serverAuth** (optional): Server-side token verification.
|
|
12080
|
+
* - **callable** (optional): Server function invocation (e.g. Supabase Edge Functions).
|
|
12081
|
+
*
|
|
12082
|
+
* @example Firebase
|
|
12083
|
+
* ```typescript
|
|
12084
|
+
* configureProviders({
|
|
12085
|
+
* crud: new FirestoreAdapter(),
|
|
12086
|
+
* auth: new FirebaseAuth(),
|
|
12087
|
+
* storage: new FirebaseStorageAdapter(),
|
|
12088
|
+
* });
|
|
12089
|
+
* ```
|
|
12090
|
+
*
|
|
12091
|
+
* @example Supabase
|
|
12092
|
+
* ```typescript
|
|
12093
|
+
* configureProviders({
|
|
12094
|
+
* crud: new SupabaseCrudAdapter(supabase),
|
|
12095
|
+
* auth: new SupabaseAuth(supabase),
|
|
12096
|
+
* storage: new SupabaseStorageAdapter(supabase),
|
|
12097
|
+
* });
|
|
12098
|
+
* ```
|
|
12099
|
+
*
|
|
12100
|
+
* @version 0.0.1
|
|
12101
|
+
* @since 0.5.0
|
|
11298
12102
|
*/
|
|
11299
|
-
interface
|
|
11300
|
-
/**
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
|
|
11304
|
-
|
|
11305
|
-
|
|
11306
|
-
|
|
11307
|
-
|
|
11308
|
-
|
|
11309
|
-
|
|
11310
|
-
partners: Record<OAuthPartnerId, any>;
|
|
11311
|
-
connectedPartners: OAuthPartnerId[];
|
|
11312
|
-
connect: (partnerId: OAuthPartnerId, purpose?: OAuthPurpose) => Promise<void>;
|
|
11313
|
-
disconnect: (partnerId: OAuthPartnerId) => Promise<void>;
|
|
11314
|
-
isConnected: (partnerId: OAuthPartnerId) => boolean;
|
|
11315
|
-
getCredentials: (partnerId: OAuthPartnerId) => OAuthCredentials | null;
|
|
11316
|
-
handleCallback: (partnerId: OAuthPartnerId, code: string) => Promise<void>;
|
|
11317
|
-
isAvailable: boolean;
|
|
12103
|
+
interface DndevProviders {
|
|
12104
|
+
/** Client-side authentication provider */
|
|
12105
|
+
auth?: AuthProvider;
|
|
12106
|
+
/** Server-side token verification and user management */
|
|
12107
|
+
serverAuth?: IServerAuthAdapter;
|
|
12108
|
+
/** Database / CRUD operations (required) */
|
|
12109
|
+
crud: ICrudAdapter;
|
|
12110
|
+
/** File and image storage */
|
|
12111
|
+
storage?: IStorageAdapter;
|
|
12112
|
+
/** Server-side function invocation (Edge Functions, Cloud Functions, API routes) */
|
|
12113
|
+
callable?: ICallableProvider;
|
|
11318
12114
|
}
|
|
11319
12115
|
|
|
11320
12116
|
/**
|
|
@@ -11812,7 +12608,13 @@ interface AuthStateStore {
|
|
|
11812
12608
|
setNetworkStatus: (online: boolean, connectionType?: NetworkConnectionType) => void;
|
|
11813
12609
|
setError: (error: string | null, errorCode?: string) => void;
|
|
11814
12610
|
setLoading: (loading: boolean) => void;
|
|
11815
|
-
setSubscription: (subscription:
|
|
12611
|
+
setSubscription: (subscription: {
|
|
12612
|
+
tier: string;
|
|
12613
|
+
isActive: boolean;
|
|
12614
|
+
expiresAt: Date | null;
|
|
12615
|
+
features: string[];
|
|
12616
|
+
daysRemaining: number | null;
|
|
12617
|
+
}) => void;
|
|
11816
12618
|
setInitialized: (initialized: boolean) => void;
|
|
11817
12619
|
clearError: () => void;
|
|
11818
12620
|
reset: () => void;
|
|
@@ -12350,6 +13152,8 @@ type FeaturesWithoutConsent = {
|
|
|
12350
13152
|
*/
|
|
12351
13153
|
//# sourceMappingURL=index.d.ts.map
|
|
12352
13154
|
|
|
13155
|
+
declare const index_d$5_AGGREGATE_FILTER_OPERATORS: typeof AGGREGATE_FILTER_OPERATORS;
|
|
13156
|
+
declare const index_d$5_AGGREGATE_OPERATIONS: typeof AGGREGATE_OPERATIONS;
|
|
12353
13157
|
declare const index_d$5_AUTH_EVENTS: typeof AUTH_EVENTS;
|
|
12354
13158
|
declare const index_d$5_AUTH_PARTNERS: typeof AUTH_PARTNERS;
|
|
12355
13159
|
declare const index_d$5_AUTH_PARTNER_STATE: typeof AUTH_PARTNER_STATE;
|
|
@@ -12370,6 +13174,8 @@ type index_d$5_AppMetadata = AppMetadata;
|
|
|
12370
13174
|
type index_d$5_AppProvidersProps = AppProvidersProps;
|
|
12371
13175
|
type index_d$5_AssetsPluginConfig = AssetsPluginConfig;
|
|
12372
13176
|
type index_d$5_AttemptRecord = AttemptRecord;
|
|
13177
|
+
type index_d$5_AuditEvent = AuditEvent;
|
|
13178
|
+
type index_d$5_AuditEventType = AuditEventType;
|
|
12373
13179
|
type index_d$5_AuthAPI = AuthAPI;
|
|
12374
13180
|
type index_d$5_AuthActions = AuthActions;
|
|
12375
13181
|
type index_d$5_AuthConfig = AuthConfig;
|
|
@@ -12379,6 +13185,7 @@ type index_d$5_AuthError = AuthError;
|
|
|
12379
13185
|
type index_d$5_AuthEventData = AuthEventData;
|
|
12380
13186
|
type index_d$5_AuthEventKey = AuthEventKey;
|
|
12381
13187
|
type index_d$5_AuthEventName = AuthEventName;
|
|
13188
|
+
type index_d$5_AuthHardeningContext = AuthHardeningContext;
|
|
12382
13189
|
type index_d$5_AuthMethod = AuthMethod;
|
|
12383
13190
|
type index_d$5_AuthPartner = AuthPartner;
|
|
12384
13191
|
type index_d$5_AuthPartnerButton = AuthPartnerButton;
|
|
@@ -12423,11 +13230,13 @@ type index_d$5_BillingProviderConfig = BillingProviderConfig;
|
|
|
12423
13230
|
type index_d$5_BillingRedirectOperation = BillingRedirectOperation;
|
|
12424
13231
|
type index_d$5_Breakpoint = Breakpoint;
|
|
12425
13232
|
type index_d$5_BreakpointUtils = BreakpointUtils;
|
|
13233
|
+
type index_d$5_BuiltInFieldType = BuiltInFieldType;
|
|
12426
13234
|
type index_d$5_BusinessEntity = BusinessEntity;
|
|
12427
13235
|
declare const index_d$5_COMMON_TIER_CONFIGS: typeof COMMON_TIER_CONFIGS;
|
|
12428
13236
|
declare const index_d$5_CONFIDENCE_LEVELS: typeof CONFIDENCE_LEVELS;
|
|
12429
13237
|
declare const index_d$5_CONSENT_CATEGORY: typeof CONSENT_CATEGORY;
|
|
12430
13238
|
declare const index_d$5_CONTEXTS: typeof CONTEXTS;
|
|
13239
|
+
declare const index_d$5_CRUD_OPERATORS: typeof CRUD_OPERATORS;
|
|
12431
13240
|
type index_d$5_CachedError = CachedError;
|
|
12432
13241
|
type index_d$5_CanAPI = CanAPI;
|
|
12433
13242
|
type index_d$5_CheckGitHubAccessRequest = CheckGitHubAccessRequest;
|
|
@@ -12435,6 +13244,7 @@ type index_d$5_CheckoutMode = CheckoutMode;
|
|
|
12435
13244
|
type index_d$5_CheckoutOptions = CheckoutOptions;
|
|
12436
13245
|
type index_d$5_CheckoutSessionMetadata = CheckoutSessionMetadata;
|
|
12437
13246
|
declare const index_d$5_CheckoutSessionMetadataSchema: typeof CheckoutSessionMetadataSchema;
|
|
13247
|
+
type index_d$5_CollectionSubscriptionCallback<T> = CollectionSubscriptionCallback<T>;
|
|
12438
13248
|
type index_d$5_ColumnDef<T extends FieldValues> = ColumnDef<T>;
|
|
12439
13249
|
type index_d$5_CommonSubscriptionFeatures = CommonSubscriptionFeatures;
|
|
12440
13250
|
type index_d$5_CommonTranslations = CommonTranslations;
|
|
@@ -12453,9 +13263,12 @@ type index_d$5_CreateEntityData<T extends Record<string, any>> = CreateEntityDat
|
|
|
12453
13263
|
type index_d$5_CreateEntityRequest = CreateEntityRequest;
|
|
12454
13264
|
type index_d$5_CreateEntityResponse = CreateEntityResponse;
|
|
12455
13265
|
type index_d$5_CrudAPI<T = unknown> = CrudAPI<T>;
|
|
13266
|
+
type index_d$5_CrudCardProps = CrudCardProps;
|
|
12456
13267
|
type index_d$5_CrudConfig = CrudConfig;
|
|
13268
|
+
type index_d$5_CrudOperator = CrudOperator;
|
|
12457
13269
|
type index_d$5_CustomClaims = CustomClaims;
|
|
12458
13270
|
declare const index_d$5_CustomClaimsSchema: typeof CustomClaimsSchema;
|
|
13271
|
+
type index_d$5_CustomFieldOptionsMap = CustomFieldOptionsMap;
|
|
12459
13272
|
type index_d$5_CustomStoreConfig = CustomStoreConfig;
|
|
12460
13273
|
declare const index_d$5_DEFAULT_ENTITY_ACCESS: typeof DEFAULT_ENTITY_ACCESS;
|
|
12461
13274
|
declare const index_d$5_DEFAULT_LAYOUT_PRESET: typeof DEFAULT_LAYOUT_PRESET;
|
|
@@ -12467,11 +13280,18 @@ type index_d$5_DeleteEntityResponse = DeleteEntityResponse;
|
|
|
12467
13280
|
type index_d$5_Density = Density;
|
|
12468
13281
|
type index_d$5_DnDevOverride = DnDevOverride;
|
|
12469
13282
|
type index_d$5_DndevFrameworkConfig = DndevFrameworkConfig;
|
|
13283
|
+
type index_d$5_DndevProviders = DndevProviders;
|
|
12470
13284
|
type index_d$5_DoNotDevCookieCategories = DoNotDevCookieCategories;
|
|
12471
13285
|
type index_d$5_DoNotDevError = DoNotDevError;
|
|
12472
13286
|
declare const index_d$5_DoNotDevError: typeof DoNotDevError;
|
|
13287
|
+
type index_d$5_DocumentSubscriptionCallback<T> = DocumentSubscriptionCallback<T>;
|
|
12473
13288
|
type index_d$5_DynamicFormRule = DynamicFormRule;
|
|
13289
|
+
declare const index_d$5_EDITABLE: typeof EDITABLE;
|
|
13290
|
+
declare const index_d$5_ENTITY_HOOK_ERRORS: typeof ENTITY_HOOK_ERRORS;
|
|
12474
13291
|
declare const index_d$5_ENVIRONMENTS: typeof ENVIRONMENTS;
|
|
13292
|
+
declare const index_d$5_ERROR_CODES: typeof ERROR_CODES;
|
|
13293
|
+
declare const index_d$5_ERROR_SEVERITY: typeof ERROR_SEVERITY;
|
|
13294
|
+
declare const index_d$5_ERROR_SOURCE: typeof ERROR_SOURCE;
|
|
12475
13295
|
type index_d$5_Editable = Editable;
|
|
12476
13296
|
type index_d$5_EffectiveConnectionType = EffectiveConnectionType;
|
|
12477
13297
|
type index_d$5_EmailVerificationHookResult = EmailVerificationHookResult;
|
|
@@ -12481,7 +13301,7 @@ type index_d$5_EntityAccessConfig = EntityAccessConfig;
|
|
|
12481
13301
|
type index_d$5_EntityAccessDefaults = EntityAccessDefaults;
|
|
12482
13302
|
type index_d$5_EntityCardListProps = EntityCardListProps;
|
|
12483
13303
|
type index_d$5_EntityDisplayRendererProps<T extends EntityRecord = EntityRecord> = EntityDisplayRendererProps<T>;
|
|
12484
|
-
type index_d$5_EntityField<T extends
|
|
13304
|
+
type index_d$5_EntityField<T extends string = FieldType> = EntityField<T>;
|
|
12485
13305
|
type index_d$5_EntityFormRendererProps<T extends EntityRecord = EntityRecord> = EntityFormRendererProps<T>;
|
|
12486
13306
|
type index_d$5_EntityHookError = EntityHookError;
|
|
12487
13307
|
declare const index_d$5_EntityHookError: typeof EntityHookError;
|
|
@@ -12490,6 +13310,7 @@ type index_d$5_EntityListProps = EntityListProps;
|
|
|
12490
13310
|
type index_d$5_EntityMetadata = EntityMetadata;
|
|
12491
13311
|
type index_d$5_EntityOwnershipConfig = EntityOwnershipConfig;
|
|
12492
13312
|
type index_d$5_EntityOwnershipPublicCondition = EntityOwnershipPublicCondition;
|
|
13313
|
+
type index_d$5_EntityRecommendationsProps = EntityRecommendationsProps;
|
|
12493
13314
|
type index_d$5_EntityRecord = EntityRecord;
|
|
12494
13315
|
type index_d$5_EntityTemplateProps<T extends FieldValues> = EntityTemplateProps<T>;
|
|
12495
13316
|
type index_d$5_EntityTranslations = EntityTranslations;
|
|
@@ -12502,6 +13323,7 @@ type index_d$5_ExchangeTokenRequest = ExchangeTokenRequest;
|
|
|
12502
13323
|
declare const index_d$5_FEATURES: typeof FEATURES;
|
|
12503
13324
|
declare const index_d$5_FEATURE_CONSENT_MATRIX: typeof FEATURE_CONSENT_MATRIX;
|
|
12504
13325
|
declare const index_d$5_FEATURE_STATUS: typeof FEATURE_STATUS;
|
|
13326
|
+
declare const index_d$5_FIELD_TYPES: typeof FIELD_TYPES;
|
|
12505
13327
|
declare const index_d$5_FIREBASE_ERROR_MAP: typeof FIREBASE_ERROR_MAP;
|
|
12506
13328
|
declare const index_d$5_FIRESTORE_ID_PATTERN: typeof FIRESTORE_ID_PATTERN;
|
|
12507
13329
|
type index_d$5_FaviconConfig = FaviconConfig;
|
|
@@ -12562,13 +13384,18 @@ type index_d$5_HeaderZoneConfig = HeaderZoneConfig;
|
|
|
12562
13384
|
type index_d$5_I18nConfig = I18nConfig;
|
|
12563
13385
|
type index_d$5_I18nPluginConfig = I18nPluginConfig;
|
|
12564
13386
|
type index_d$5_I18nProviderProps = I18nProviderProps;
|
|
13387
|
+
type index_d$5_ICallableProvider = ICallableProvider;
|
|
13388
|
+
type index_d$5_ICrudAdapter = ICrudAdapter;
|
|
12565
13389
|
type index_d$5_ID = ID;
|
|
12566
13390
|
type index_d$5_INetworkManager = INetworkManager;
|
|
13391
|
+
type index_d$5_IServerAuthAdapter = IServerAuthAdapter;
|
|
13392
|
+
type index_d$5_IStorageAdapter = IStorageAdapter;
|
|
12567
13393
|
type index_d$5_IStorageManager = IStorageManager;
|
|
12568
13394
|
type index_d$5_IStorageStrategy = IStorageStrategy;
|
|
12569
13395
|
type index_d$5_Invoice = Invoice;
|
|
12570
13396
|
type index_d$5_InvoiceItem = InvoiceItem;
|
|
12571
13397
|
declare const index_d$5_LAYOUT_PRESET: typeof LAYOUT_PRESET;
|
|
13398
|
+
declare const index_d$5_LIST_SCHEMA_TYPE: typeof LIST_SCHEMA_TYPE;
|
|
12572
13399
|
type index_d$5_LanguageInfo = LanguageInfo;
|
|
12573
13400
|
type index_d$5_LayoutConfig = LayoutConfig;
|
|
12574
13401
|
type index_d$5_LayoutPreset = LayoutPreset;
|
|
@@ -12580,11 +13407,13 @@ type index_d$5_LegalHostingInfo = LegalHostingInfo;
|
|
|
12580
13407
|
type index_d$5_LegalJurisdictionInfo = LegalJurisdictionInfo;
|
|
12581
13408
|
type index_d$5_LegalSectionsConfig = LegalSectionsConfig;
|
|
12582
13409
|
type index_d$5_LegalWebsiteInfo = LegalWebsiteInfo;
|
|
13410
|
+
type index_d$5_ListCardLayout = ListCardLayout;
|
|
12583
13411
|
type index_d$5_ListEntitiesRequest = ListEntitiesRequest;
|
|
12584
13412
|
type index_d$5_ListEntitiesResponse = ListEntitiesResponse;
|
|
12585
13413
|
type index_d$5_ListEntityData<T extends Record<string, any>> = ListEntityData<T>;
|
|
12586
13414
|
type index_d$5_ListOptions = ListOptions;
|
|
12587
13415
|
type index_d$5_ListResponse<T> = ListResponse<T>;
|
|
13416
|
+
type index_d$5_ListSchemaType = ListSchemaType;
|
|
12588
13417
|
type index_d$5_LoadingActions = LoadingActions;
|
|
12589
13418
|
type index_d$5_LoadingState = LoadingState;
|
|
12590
13419
|
type index_d$5_MergedBarConfig = MergedBarConfig;
|
|
@@ -12625,8 +13454,10 @@ type index_d$5_OAuthRefreshResponse = OAuthRefreshResponse;
|
|
|
12625
13454
|
type index_d$5_OAuthResult = OAuthResult;
|
|
12626
13455
|
type index_d$5_OAuthStoreActions = OAuthStoreActions;
|
|
12627
13456
|
type index_d$5_OAuthStoreState = OAuthStoreState;
|
|
13457
|
+
declare const index_d$5_ORDER_DIRECTION: typeof ORDER_DIRECTION;
|
|
12628
13458
|
type index_d$5_Observable<T> = Observable<T>;
|
|
12629
13459
|
type index_d$5_OrderByClause = OrderByClause;
|
|
13460
|
+
type index_d$5_OrderDirection = OrderDirection;
|
|
12630
13461
|
declare const index_d$5_PARTNER_ICONS: typeof PARTNER_ICONS;
|
|
12631
13462
|
declare const index_d$5_PAYLOAD_EVENTS: typeof PAYLOAD_EVENTS;
|
|
12632
13463
|
declare const index_d$5_PERMISSIONS: typeof PERMISSIONS;
|
|
@@ -12638,6 +13469,7 @@ declare const index_d$5_PWA_ASSET_TYPES: typeof PWA_ASSET_TYPES;
|
|
|
12638
13469
|
declare const index_d$5_PWA_DISPLAY_MODES: typeof PWA_DISPLAY_MODES;
|
|
12639
13470
|
type index_d$5_PageAuth = PageAuth;
|
|
12640
13471
|
type index_d$5_PageMeta = PageMeta;
|
|
13472
|
+
type index_d$5_PaginatedQueryResult<T> = PaginatedQueryResult<T>;
|
|
12641
13473
|
type index_d$5_PaginationOptions = PaginationOptions;
|
|
12642
13474
|
type index_d$5_PartnerButton = PartnerButton;
|
|
12643
13475
|
type index_d$5_PartnerConnectionState = PartnerConnectionState;
|
|
@@ -12670,13 +13502,15 @@ type index_d$5_ProductDeclaration = ProductDeclaration;
|
|
|
12670
13502
|
declare const index_d$5_ProductDeclarationSchema: typeof ProductDeclarationSchema;
|
|
12671
13503
|
declare const index_d$5_ProductDeclarationsSchema: typeof ProductDeclarationsSchema;
|
|
12672
13504
|
type index_d$5_ProviderInstances = ProviderInstances;
|
|
13505
|
+
type index_d$5_QueryOrderBy = QueryOrderBy;
|
|
13506
|
+
type index_d$5_QueryWhereClause = QueryWhereClause;
|
|
12673
13507
|
declare const index_d$5_ROUTE_SOURCES: typeof ROUTE_SOURCES;
|
|
13508
|
+
type index_d$5_RateLimitBackend = RateLimitBackend;
|
|
12674
13509
|
type index_d$5_RateLimitConfig = RateLimitConfig;
|
|
12675
13510
|
type index_d$5_RateLimitManager = RateLimitManager;
|
|
12676
13511
|
type index_d$5_RateLimitResult = RateLimitResult;
|
|
12677
13512
|
type index_d$5_RateLimitState = RateLimitState;
|
|
12678
13513
|
type index_d$5_RateLimiter = RateLimiter;
|
|
12679
|
-
declare const index_d$5_ReactNode: typeof ReactNode;
|
|
12680
13514
|
type index_d$5_ReadCallback = ReadCallback;
|
|
12681
13515
|
type index_d$5_RedirectOperation = RedirectOperation;
|
|
12682
13516
|
type index_d$5_RedirectOverlayActions = RedirectOverlayActions;
|
|
@@ -12702,6 +13536,11 @@ declare const index_d$5_SUBSCRIPTION_STATUS: typeof SUBSCRIPTION_STATUS;
|
|
|
12702
13536
|
declare const index_d$5_SUBSCRIPTION_TIERS: typeof SUBSCRIPTION_TIERS;
|
|
12703
13537
|
type index_d$5_SchemaMetadata = SchemaMetadata;
|
|
12704
13538
|
type index_d$5_ScopeConfig = ScopeConfig;
|
|
13539
|
+
type index_d$5_SecurityContext = SecurityContext;
|
|
13540
|
+
type index_d$5_SecurityEntityConfig = SecurityEntityConfig;
|
|
13541
|
+
type index_d$5_ServerRateLimitConfig = ServerRateLimitConfig;
|
|
13542
|
+
type index_d$5_ServerRateLimitResult = ServerRateLimitResult;
|
|
13543
|
+
type index_d$5_ServerUserRecord = ServerUserRecord;
|
|
12705
13544
|
type index_d$5_SetCustomClaimsResponse = SetCustomClaimsResponse;
|
|
12706
13545
|
type index_d$5_SidebarZoneConfig = SidebarZoneConfig;
|
|
12707
13546
|
type index_d$5_SlotContent = SlotContent;
|
|
@@ -12763,7 +13602,7 @@ type index_d$5_TokenState = TokenState;
|
|
|
12763
13602
|
type index_d$5_TokenStatus = TokenStatus;
|
|
12764
13603
|
type index_d$5_TranslationOptions = TranslationOptions;
|
|
12765
13604
|
type index_d$5_TranslationResource = TranslationResource;
|
|
12766
|
-
type index_d$5_UIFieldOptions<T extends
|
|
13605
|
+
type index_d$5_UIFieldOptions<T extends string = FieldType> = UIFieldOptions<T>;
|
|
12767
13606
|
declare const index_d$5_USER_ROLES: typeof USER_ROLES;
|
|
12768
13607
|
type index_d$5_UniqueConstraintValidator = UniqueConstraintValidator;
|
|
12769
13608
|
type index_d$5_UniqueKeyDefinition = UniqueKeyDefinition;
|
|
@@ -12771,8 +13610,14 @@ type index_d$5_UnsubscribeFn = UnsubscribeFn;
|
|
|
12771
13610
|
type index_d$5_UpdateEntityData<T extends Record<string, any>> = UpdateEntityData<T>;
|
|
12772
13611
|
type index_d$5_UpdateEntityRequest = UpdateEntityRequest;
|
|
12773
13612
|
type index_d$5_UpdateEntityResponse = UpdateEntityResponse;
|
|
13613
|
+
type index_d$5_UploadOptions = UploadOptions;
|
|
13614
|
+
type index_d$5_UploadProgressCallback = UploadProgressCallback;
|
|
13615
|
+
type index_d$5_UploadResult = UploadResult;
|
|
13616
|
+
type index_d$5_UseFunctionsCallResult<TData> = UseFunctionsCallResult<TData>;
|
|
12774
13617
|
type index_d$5_UseFunctionsMutationOptions<TData, TVariables> = UseFunctionsMutationOptions<TData, TVariables>;
|
|
13618
|
+
type index_d$5_UseFunctionsMutationResult<TData, TVariables> = UseFunctionsMutationResult<TData, TVariables>;
|
|
12775
13619
|
type index_d$5_UseFunctionsQueryOptions<TData> = UseFunctionsQueryOptions<TData>;
|
|
13620
|
+
type index_d$5_UseFunctionsQueryResult<TData> = UseFunctionsQueryResult<TData>;
|
|
12776
13621
|
type index_d$5_UseTranslationOptionsEnhanced<KPrefix> = UseTranslationOptionsEnhanced<KPrefix>;
|
|
12777
13622
|
type index_d$5_UserContext = UserContext;
|
|
12778
13623
|
type index_d$5_UserProfile = UserProfile;
|
|
@@ -12780,8 +13625,10 @@ type index_d$5_UserProviderData = UserProviderData;
|
|
|
12780
13625
|
type index_d$5_UserRole = UserRole;
|
|
12781
13626
|
type index_d$5_UserSubscription = UserSubscription;
|
|
12782
13627
|
declare const index_d$5_UserSubscriptionSchema: typeof UserSubscriptionSchema;
|
|
12783
|
-
|
|
12784
|
-
type index_d$
|
|
13628
|
+
declare const index_d$5_VISIBILITY: typeof VISIBILITY;
|
|
13629
|
+
type index_d$5_ValidationRules<T extends string = FieldType> = ValidationRules<T>;
|
|
13630
|
+
type index_d$5_ValueTypeForField<T extends string> = ValueTypeForField<T>;
|
|
13631
|
+
type index_d$5_VerifiedToken = VerifiedToken;
|
|
12785
13632
|
type index_d$5_Visibility = Visibility;
|
|
12786
13633
|
type index_d$5_WebhookEvent = WebhookEvent;
|
|
12787
13634
|
type index_d$5_WebhookEventData = WebhookEventData;
|
|
@@ -12833,8 +13680,8 @@ declare const index_d$5_validateSubscriptionData: typeof validateSubscriptionDat
|
|
|
12833
13680
|
declare const index_d$5_validateUserSubscription: typeof validateUserSubscription;
|
|
12834
13681
|
declare const index_d$5_validateWebhookEvent: typeof validateWebhookEvent;
|
|
12835
13682
|
declare namespace index_d$5 {
|
|
12836
|
-
export { index_d$5_AUTH_EVENTS as AUTH_EVENTS, index_d$5_AUTH_PARTNERS as AUTH_PARTNERS, index_d$5_AUTH_PARTNER_STATE as AUTH_PARTNER_STATE, index_d$5_AuthUserSchema as AuthUserSchema, index_d$5_BILLING_EVENTS as BILLING_EVENTS, index_d$5_BREAKPOINT_RANGES as BREAKPOINT_RANGES, index_d$5_BREAKPOINT_THRESHOLDS as BREAKPOINT_THRESHOLDS, index_d$5_COMMON_TIER_CONFIGS as COMMON_TIER_CONFIGS, index_d$5_CONFIDENCE_LEVELS as CONFIDENCE_LEVELS, index_d$5_CONSENT_CATEGORY as CONSENT_CATEGORY, index_d$5_CONTEXTS as CONTEXTS, index_d$5_CheckoutSessionMetadataSchema as CheckoutSessionMetadataSchema, index_d$5_CreateCheckoutSessionRequestSchema as CreateCheckoutSessionRequestSchema, index_d$5_CreateCheckoutSessionResponseSchema as CreateCheckoutSessionResponseSchema, index_d$5_CustomClaimsSchema as CustomClaimsSchema, index_d$5_DEFAULT_ENTITY_ACCESS as DEFAULT_ENTITY_ACCESS, index_d$5_DEFAULT_LAYOUT_PRESET as DEFAULT_LAYOUT_PRESET, index_d$5_DEFAULT_SUBSCRIPTION as DEFAULT_SUBSCRIPTION, index_d$5_DENSITY as DENSITY, index_d$5_DoNotDevError as DoNotDevError, index_d$5_ENVIRONMENTS as ENVIRONMENTS, index_d$5_EntityHookError as EntityHookError, index_d$5_FEATURES as FEATURES, index_d$5_FEATURE_CONSENT_MATRIX as FEATURE_CONSENT_MATRIX, index_d$5_FEATURE_STATUS as FEATURE_STATUS, index_d$5_FIREBASE_ERROR_MAP as FIREBASE_ERROR_MAP, index_d$5_FIRESTORE_ID_PATTERN as FIRESTORE_ID_PATTERN, index_d$5_GITHUB_PERMISSION_LEVELS as GITHUB_PERMISSION_LEVELS, index_d$5_LAYOUT_PRESET as LAYOUT_PRESET, index_d$5_OAUTH_EVENTS as OAUTH_EVENTS, index_d$5_OAUTH_PARTNERS as OAUTH_PARTNERS, index_d$5_PARTNER_ICONS as PARTNER_ICONS, index_d$5_PAYLOAD_EVENTS as PAYLOAD_EVENTS, index_d$5_PERMISSIONS as PERMISSIONS, index_d$5_PLATFORMS as PLATFORMS, index_d$5_PWA_ASSET_TYPES as PWA_ASSET_TYPES, index_d$5_PWA_DISPLAY_MODES as PWA_DISPLAY_MODES, index_d$5_ProductDeclarationSchema as ProductDeclarationSchema, index_d$5_ProductDeclarationsSchema as ProductDeclarationsSchema, index_d$5_ROUTE_SOURCES as ROUTE_SOURCES, index_d$
|
|
12837
|
-
export type { index_d$5_AccountLinkResult as AccountLinkResult, index_d$5_AccountLinkingInfo as AccountLinkingInfo, index_d$5_AdminCheckHookResult as AdminCheckHookResult, index_d$5_AdminClaims as AdminClaims, index_d$5_AggregateConfig as AggregateConfig, index_d$5_AggregateFilterOperator as AggregateFilterOperator, index_d$5_AggregateOperation as AggregateOperation, index_d$5_AggregateRequest as AggregateRequest, index_d$5_AggregateResponse as AggregateResponse, index_d$5_AnyFieldValue as AnyFieldValue, index_d$5_ApiResponse as ApiResponse, index_d$5_AppConfig as AppConfig, index_d$5_AppCookieCategories as AppCookieCategories, index_d$5_AppMetadata as AppMetadata, index_d$5_AppProvidersProps as AppProvidersProps, index_d$5_AssetsPluginConfig as AssetsPluginConfig, index_d$5_AttemptRecord as AttemptRecord, index_d$5_AuthAPI as AuthAPI, index_d$5_AuthActions as AuthActions, index_d$5_AuthConfig as AuthConfig, index_d$5_AuthContextValue as AuthContextValue, index_d$5_AuthCoreHookResult as AuthCoreHookResult, index_d$5_AuthError as AuthError, index_d$5_AuthEventData as AuthEventData, index_d$5_AuthEventKey as AuthEventKey, index_d$5_AuthEventName as AuthEventName, index_d$5_AuthMethod as AuthMethod, index_d$5_AuthPartner as AuthPartner, index_d$5_AuthPartnerButton as AuthPartnerButton, index_d$5_AuthPartnerHookResult as AuthPartnerHookResult, index_d$5_AuthPartnerId as AuthPartnerId, index_d$5_AuthPartnerResult as AuthPartnerResult, index_d$5_AuthPartnerState as AuthPartnerState, index_d$5_AuthProvider as AuthProvider, index_d$5_AuthProviderProps as AuthProviderProps, index_d$5_AuthRedirectHookResult as AuthRedirectHookResult, index_d$5_AuthRedirectOperation as AuthRedirectOperation, index_d$5_AuthRedirectOptions as AuthRedirectOptions, index_d$5_AuthResult as AuthResult, index_d$5_AuthState as AuthState, index_d$5_AuthStateStore as AuthStateStore, index_d$5_AuthStatus as AuthStatus, index_d$5_AuthTokenHookResult as AuthTokenHookResult, index_d$5_AuthUser as AuthUser, index_d$5_BaseActions as BaseActions, index_d$5_BaseCredentials as BaseCredentials, index_d$5_BaseDocument as BaseDocument, index_d$5_BaseEntityFields as BaseEntityFields, index_d$5_BasePartnerState as BasePartnerState, index_d$5_BaseState as BaseState, index_d$5_BaseStoreActions as BaseStoreActions, index_d$5_BaseStoreState as BaseStoreState, index_d$5_BaseUserProfile as BaseUserProfile, index_d$5_BasicUserInfo as BasicUserInfo, index_d$5_BillingAPI as BillingAPI, index_d$5_BillingAdapter as BillingAdapter, index_d$5_BillingErrorCode as BillingErrorCode, index_d$5_BillingEvent as BillingEvent, index_d$5_BillingEventData as BillingEventData, index_d$5_BillingEventKey as BillingEventKey, index_d$5_BillingEventName as BillingEventName, index_d$5_BillingProvider as BillingProvider, index_d$5_BillingProviderConfig as BillingProviderConfig, index_d$5_BillingRedirectOperation as BillingRedirectOperation, index_d$5_Breakpoint as Breakpoint, index_d$5_BreakpointUtils as BreakpointUtils, index_d$5_BusinessEntity as BusinessEntity, index_d$5_CachedError as CachedError, index_d$5_CanAPI as CanAPI, index_d$5_CheckGitHubAccessRequest as CheckGitHubAccessRequest, index_d$5_CheckoutMode as CheckoutMode, index_d$5_CheckoutOptions as CheckoutOptions, index_d$5_CheckoutSessionMetadata as CheckoutSessionMetadata, index_d$5_ColumnDef as ColumnDef, index_d$5_CommonSubscriptionFeatures as CommonSubscriptionFeatures, index_d$5_CommonTranslations as CommonTranslations, index_d$5_ConfidenceLevel as ConfidenceLevel, index_d$5_ConsentAPI as ConsentAPI, index_d$5_ConsentActions as ConsentActions, index_d$5_ConsentCategory as ConsentCategory, index_d$5_ConsentState as ConsentState, index_d$5_Context as Context, index_d$5_CookieOptions as CookieOptions, index_d$5_CreateCheckoutSessionRequest as CreateCheckoutSessionRequest, index_d$5_CreateCheckoutSessionResponse as CreateCheckoutSessionResponse, index_d$5_CreateEntityData as CreateEntityData, index_d$5_CreateEntityRequest as CreateEntityRequest, index_d$5_CreateEntityResponse as CreateEntityResponse, index_d$5_CrudAPI as CrudAPI, index_d$5_CrudConfig as CrudConfig, index_d$5_CustomClaims as CustomClaims, index_d$5_CustomStoreConfig as CustomStoreConfig, index_d$5_DateValue as DateValue, index_d$5_DeleteEntityRequest as DeleteEntityRequest, index_d$5_DeleteEntityResponse as DeleteEntityResponse, index_d$5_Density as Density, index_d$5_DnDevOverride as DnDevOverride, index_d$5_DndevFrameworkConfig as DndevFrameworkConfig, index_d$5_DoNotDevCookieCategories as DoNotDevCookieCategories, index_d$5_DynamicFormRule as DynamicFormRule, index_d$5_Editable as Editable, index_d$5_EffectiveConnectionType as EffectiveConnectionType, index_d$5_EmailVerificationHookResult as EmailVerificationHookResult, index_d$5_EmailVerificationStatus as EmailVerificationStatus, index_d$5_Entity as Entity, index_d$5_EntityAccessConfig as EntityAccessConfig, index_d$5_EntityAccessDefaults as EntityAccessDefaults, index_d$5_EntityCardListProps as EntityCardListProps, index_d$5_EntityDisplayRendererProps as EntityDisplayRendererProps, index_d$5_EntityField as EntityField, index_d$5_EntityFormRendererProps as EntityFormRendererProps, index_d$5_EntityHookErrors as EntityHookErrors, index_d$5_EntityListProps as EntityListProps, index_d$5_EntityMetadata as EntityMetadata, index_d$5_EntityOwnershipConfig as EntityOwnershipConfig, index_d$5_EntityOwnershipPublicCondition as EntityOwnershipPublicCondition, index_d$5_EntityRecord as EntityRecord, index_d$5_EntityTemplateProps as EntityTemplateProps, index_d$5_EntityTranslations as EntityTranslations, index_d$5_EnvironmentMode as EnvironmentMode, index_d$5_ErrorCode as ErrorCode, index_d$5_ErrorSeverity as ErrorSeverity, index_d$5_ErrorSource as ErrorSource, index_d$5_ExchangeTokenParams as ExchangeTokenParams, index_d$5_ExchangeTokenRequest as ExchangeTokenRequest, index_d$5_FaviconConfig as FaviconConfig, index_d$5_Feature as Feature, index_d$5_FeatureAccessHookResult as FeatureAccessHookResult, index_d$5_FeatureConsentRequirement as FeatureConsentRequirement, index_d$5_FeatureHookResult as FeatureHookResult, index_d$5_FeatureId as FeatureId, index_d$5_FeatureName as FeatureName, index_d$5_FeatureStatus as FeatureStatus, index_d$5_FeaturesConfig as FeaturesConfig, index_d$5_FeaturesPluginConfig as FeaturesPluginConfig, index_d$5_FeaturesRequiringAnyConsent as FeaturesRequiringAnyConsent, index_d$5_FeaturesRequiringConsent as FeaturesRequiringConsent, index_d$5_FeaturesWithoutConsent as FeaturesWithoutConsent, index_d$5_FieldCondition as FieldCondition, index_d$5_FieldType as FieldType, index_d$5_FieldTypeToValue as FieldTypeToValue, index_d$5_FileAsset as FileAsset, index_d$5_FirebaseCallOptions as FirebaseCallOptions, index_d$5_FirebaseConfig as FirebaseConfig, index_d$5_FirestoreTimestamp as FirestoreTimestamp, index_d$5_FirestoreUniqueConstraintValidator as FirestoreUniqueConstraintValidator, index_d$5_FooterConfig as FooterConfig, index_d$5_FooterZoneConfig as FooterZoneConfig, index_d$5_FormConfig as FormConfig, index_d$5_FormStep as FormStep, index_d$5_FunctionCallConfig as FunctionCallConfig, index_d$5_FunctionCallContext as FunctionCallContext, index_d$5_FunctionCallOptions as FunctionCallOptions, index_d$5_FunctionCallResult as FunctionCallResult, index_d$5_FunctionClient as FunctionClient, index_d$5_FunctionClientFactoryOptions as FunctionClientFactoryOptions, index_d$5_FunctionDefaults as FunctionDefaults, index_d$5_FunctionEndpoint as FunctionEndpoint, index_d$5_FunctionError as FunctionError, index_d$5_FunctionLoader as FunctionLoader, index_d$5_FunctionMemory as FunctionMemory, index_d$5_FunctionMeta as FunctionMeta, index_d$5_FunctionPlatform as FunctionPlatform, index_d$5_FunctionResponse as FunctionResponse, index_d$5_FunctionSchema as FunctionSchema, index_d$5_FunctionSchemas as FunctionSchemas, index_d$5_FunctionSystem as FunctionSystem, index_d$5_FunctionTrigger as FunctionTrigger, index_d$5_FunctionsConfig as FunctionsConfig, index_d$5_GetCustomClaimsResponse as GetCustomClaimsResponse, index_d$5_GetEntityData as GetEntityData, index_d$5_GetEntityRequest as GetEntityRequest, index_d$5_GetEntityResponse as GetEntityResponse, index_d$5_GetUserAuthStatusResponse as GetUserAuthStatusResponse, index_d$5_GitHubPermission as GitHubPermission, index_d$5_GitHubRepoConfig as GitHubRepoConfig, index_d$5_GrantGitHubAccessRequest as GrantGitHubAccessRequest, index_d$5_GroupByDefinition as GroupByDefinition, index_d$5_HeaderZoneConfig as HeaderZoneConfig, index_d$5_I18nConfig as I18nConfig, index_d$5_I18nPluginConfig as I18nPluginConfig, index_d$5_I18nProviderProps as I18nProviderProps, index_d$5_ID as ID, index_d$5_INetworkManager as INetworkManager, index_d$5_IStorageManager as IStorageManager, index_d$5_IStorageStrategy as IStorageStrategy, index_d$5_Invoice as Invoice, index_d$5_InvoiceItem as InvoiceItem, index_d$5_LanguageInfo as LanguageInfo, index_d$5_LayoutConfig as LayoutConfig, index_d$5_LayoutPreset as LayoutPreset, index_d$5_LegalCompanyInfo as LegalCompanyInfo, index_d$5_LegalConfig as LegalConfig, index_d$5_LegalContactInfo as LegalContactInfo, index_d$5_LegalDirectorInfo as LegalDirectorInfo, index_d$5_LegalHostingInfo as LegalHostingInfo, index_d$5_LegalJurisdictionInfo as LegalJurisdictionInfo, index_d$5_LegalSectionsConfig as LegalSectionsConfig, index_d$5_LegalWebsiteInfo as LegalWebsiteInfo, index_d$5_ListEntitiesRequest as ListEntitiesRequest, index_d$5_ListEntitiesResponse as ListEntitiesResponse, index_d$5_ListEntityData as ListEntityData, index_d$5_ListOptions as ListOptions, index_d$5_ListResponse as ListResponse, index_d$5_LoadingActions as LoadingActions, index_d$5_LoadingState as LoadingState, index_d$5_MergedBarConfig as MergedBarConfig, index_d$5_MetricDefinition as MetricDefinition, index_d$5_MobileBehaviorConfig as MobileBehaviorConfig, index_d$5_ModalActions as ModalActions, index_d$5_ModalState as ModalState, index_d$5_MutationResponse as MutationResponse, index_d$5_NavigationRoute as NavigationRoute, index_d$5_NetworkCheckConfig as NetworkCheckConfig, index_d$5_NetworkConnectionType as NetworkConnectionType, index_d$5_NetworkReconnectCallback as NetworkReconnectCallback, NetworkState$1 as NetworkState, index_d$5_NetworkStatus as NetworkStatus, index_d$5_NetworkStatusHookResult as NetworkStatusHookResult, index_d$5_OAuthAPI as OAuthAPI, index_d$5_OAuthApiRequestOptions as OAuthApiRequestOptions, index_d$5_OAuthCallbackHookResult as OAuthCallbackHookResult, index_d$5_OAuthConnection as OAuthConnection, index_d$5_OAuthConnectionInfo as OAuthConnectionInfo, index_d$5_OAuthConnectionRequest as OAuthConnectionRequest, index_d$5_OAuthConnectionStatus as OAuthConnectionStatus, index_d$5_OAuthCredentials as OAuthCredentials, index_d$5_OAuthEventData as OAuthEventData, index_d$5_OAuthEventKey as OAuthEventKey, index_d$5_OAuthEventName as OAuthEventName, index_d$5_OAuthPartner as OAuthPartner, index_d$5_OAuthPartnerButton as OAuthPartnerButton, index_d$5_OAuthPartnerHookResult as OAuthPartnerHookResult, index_d$5_OAuthPartnerId as OAuthPartnerId, index_d$5_OAuthPartnerResult as OAuthPartnerResult, index_d$5_OAuthPartnerState as OAuthPartnerState, index_d$5_OAuthPurpose as OAuthPurpose, index_d$5_OAuthRedirectOperation as OAuthRedirectOperation, index_d$5_OAuthRefreshRequest as OAuthRefreshRequest, index_d$5_OAuthRefreshResponse as OAuthRefreshResponse, index_d$5_OAuthResult as OAuthResult, index_d$5_OAuthStoreActions as OAuthStoreActions, index_d$5_OAuthStoreState as OAuthStoreState, index_d$5_Observable as Observable, index_d$5_OrderByClause as OrderByClause, index_d$5_PWAAssetType as PWAAssetType, index_d$5_PWADisplayMode as PWADisplayMode, index_d$5_PWAPluginConfig as PWAPluginConfig, index_d$5_PageAuth as PageAuth, index_d$5_PageMeta as PageMeta, index_d$5_PaginationOptions as PaginationOptions, index_d$5_PartnerButton as PartnerButton, index_d$5_PartnerConnectionState as PartnerConnectionState, index_d$5_PartnerIconId as PartnerIconId, index_d$5_PartnerId as PartnerId, index_d$5_PartnerResult as PartnerResult, index_d$5_PartnerType as PartnerType, index_d$5_PayloadCacheEventData as PayloadCacheEventData, index_d$5_PayloadDocument as PayloadDocument, index_d$5_PayloadDocumentEventData as PayloadDocumentEventData, index_d$5_PayloadEventKey as PayloadEventKey, index_d$5_PayloadEventName as PayloadEventName, index_d$5_PayloadGlobalEventData as PayloadGlobalEventData, index_d$5_PayloadMediaEventData as PayloadMediaEventData, index_d$5_PayloadPageRegenerationEventData as PayloadPageRegenerationEventData, index_d$5_PayloadRequest as PayloadRequest, index_d$5_PayloadUserEventData as PayloadUserEventData, index_d$5_PaymentEventData as PaymentEventData, index_d$5_PaymentMethod as PaymentMethod, index_d$5_PaymentMethodType as PaymentMethodType, index_d$5_PaymentMode as PaymentMode, index_d$5_Permission as Permission, index_d$5_Picture as Picture, index_d$5_Platform as Platform, index_d$5_PresetConfig as PresetConfig, index_d$5_PresetRegistry as PresetRegistry, index_d$5_ProcessPaymentSuccessRequest as ProcessPaymentSuccessRequest, index_d$5_ProcessPaymentSuccessResponse as ProcessPaymentSuccessResponse, index_d$5_ProductDeclaration as ProductDeclaration, index_d$5_ProviderInstances as ProviderInstances, QueryConfig$1 as QueryConfig, index_d$5_RateLimitConfig as RateLimitConfig, index_d$5_RateLimitManager as RateLimitManager, index_d$5_RateLimitResult as RateLimitResult, index_d$5_RateLimitState as RateLimitState, index_d$5_RateLimiter as RateLimiter, index_d$5_ReadCallback as ReadCallback, index_d$5_RedirectOperation as RedirectOperation, index_d$5_RedirectOverlayActions as RedirectOverlayActions, index_d$5_RedirectOverlayConfig as RedirectOverlayConfig, index_d$5_RedirectOverlayPhase as RedirectOverlayPhase, index_d$5_RedirectOverlayState as RedirectOverlayState, index_d$5_Reference as Reference, index_d$5_RefreshSubscriptionRequest as RefreshSubscriptionRequest, index_d$5_RefreshSubscriptionResponse as RefreshSubscriptionResponse, index_d$5_RemoveCustomClaimsResponse as RemoveCustomClaimsResponse, index_d$5_ResolvedLayoutConfig as ResolvedLayoutConfig, index_d$5_RevokeGitHubAccessRequest as RevokeGitHubAccessRequest, index_d$5_RouteMeta as RouteMeta, index_d$5_RouteSource as RouteSource, index_d$5_RoutesPluginConfig as RoutesPluginConfig, index_d$5_SEOConfig as SEOConfig, index_d$5_SchemaMetadata as SchemaMetadata, index_d$5_ScopeConfig as ScopeConfig, index_d$5_SetCustomClaimsResponse as SetCustomClaimsResponse, index_d$5_SidebarZoneConfig as SidebarZoneConfig, index_d$5_SlotContent as SlotContent, index_d$5_StorageOptions as StorageOptions, index_d$5_StorageScope as StorageScope, index_d$5_StorageType as StorageType, index_d$5_Store as Store, index_d$5_StoreApi as StoreApi, index_d$5_StripeBackConfig as StripeBackConfig, index_d$5_StripeCheckoutRequest as StripeCheckoutRequest, index_d$5_StripeCheckoutResponse as StripeCheckoutResponse, index_d$5_StripeCheckoutSessionEventData as StripeCheckoutSessionEventData, index_d$5_StripeConfig as StripeConfig, index_d$5_StripeCustomer as StripeCustomer, index_d$5_StripeCustomerEventData as StripeCustomerEventData, index_d$5_StripeEventData as StripeEventData, index_d$5_StripeEventKey as StripeEventKey, index_d$5_StripeEventName as StripeEventName, index_d$5_StripeFrontConfig as StripeFrontConfig, index_d$5_StripeInvoice as StripeInvoice, index_d$5_StripeInvoiceEventData as StripeInvoiceEventData, index_d$5_StripePayment as StripePayment, index_d$5_StripePaymentIntentEventData as StripePaymentIntentEventData, index_d$5_StripePaymentMethod as StripePaymentMethod, index_d$5_StripePrice as StripePrice, index_d$5_StripeProduct as StripeProduct, index_d$5_StripeProvider as StripeProvider, index_d$5_StripeSubscription as StripeSubscription, index_d$5_StripeSubscriptionData as StripeSubscriptionData, index_d$5_StripeWebhookEvent as StripeWebhookEvent, index_d$5_StripeWebhookEventData as StripeWebhookEventData, index_d$5_Subscription as Subscription, index_d$5_SubscriptionClaims as SubscriptionClaims, index_d$5_SubscriptionConfig as SubscriptionConfig, index_d$5_SubscriptionData as SubscriptionData, index_d$5_SubscriptionDuration as SubscriptionDuration, index_d$5_SubscriptionEventData as SubscriptionEventData, index_d$5_SubscriptionHookResult as SubscriptionHookResult, index_d$5_SubscriptionInfo as SubscriptionInfo, index_d$5_SubscriptionStatus as SubscriptionStatus, index_d$5_SubscriptionTier as SubscriptionTier, index_d$5_SupportedLanguage as SupportedLanguage, index_d$5_ThemeActions as ThemeActions, index_d$5_ThemeInfo as ThemeInfo, index_d$5_ThemeMode as ThemeMode, index_d$5_ThemeState as ThemeState, index_d$5_ThemesPluginConfig as ThemesPluginConfig, index_d$5_TierAccessHookResult as TierAccessHookResult, index_d$5_Timestamp as Timestamp, index_d$5_TokenInfo as TokenInfo, index_d$5_TokenResponse as TokenResponse, index_d$5_TokenState as TokenState, index_d$5_TokenStatus as TokenStatus, index_d$5_TranslationOptions as TranslationOptions, index_d$5_TranslationResource as TranslationResource, index_d$5_UIFieldOptions as UIFieldOptions, index_d$5_UniqueConstraintValidator as UniqueConstraintValidator, index_d$5_UniqueKeyDefinition as UniqueKeyDefinition, index_d$5_UnsubscribeFn as UnsubscribeFn, index_d$5_UpdateEntityData as UpdateEntityData, index_d$5_UpdateEntityRequest as UpdateEntityRequest, index_d$5_UpdateEntityResponse as UpdateEntityResponse, index_d$5_UseFunctionsMutationOptions as UseFunctionsMutationOptions, index_d$5_UseFunctionsQueryOptions as UseFunctionsQueryOptions, index_d$5_UseTranslationOptionsEnhanced as UseTranslationOptionsEnhanced, index_d$5_UserContext as UserContext, index_d$5_UserProfile as UserProfile, index_d$5_UserProviderData as UserProviderData, index_d$5_UserRole as UserRole, index_d$5_UserSubscription as UserSubscription, index_d$5_ValidationRules as ValidationRules, index_d$5_ValueTypeForField as ValueTypeForField, index_d$5_Visibility as Visibility, index_d$5_WebhookEvent as WebhookEvent, index_d$5_WebhookEventData as WebhookEventData, index_d$5_WhereClause as WhereClause, index_d$5_WhereOperator as WhereOperator, index_d$5_WithMetadata as WithMetadata, index_d$5_dndevSchema as dndevSchema };
|
|
13683
|
+
export { index_d$5_AGGREGATE_FILTER_OPERATORS as AGGREGATE_FILTER_OPERATORS, index_d$5_AGGREGATE_OPERATIONS as AGGREGATE_OPERATIONS, index_d$5_AUTH_EVENTS as AUTH_EVENTS, index_d$5_AUTH_PARTNERS as AUTH_PARTNERS, index_d$5_AUTH_PARTNER_STATE as AUTH_PARTNER_STATE, index_d$5_AuthUserSchema as AuthUserSchema, index_d$5_BILLING_EVENTS as BILLING_EVENTS, index_d$5_BREAKPOINT_RANGES as BREAKPOINT_RANGES, index_d$5_BREAKPOINT_THRESHOLDS as BREAKPOINT_THRESHOLDS, index_d$5_COMMON_TIER_CONFIGS as COMMON_TIER_CONFIGS, index_d$5_CONFIDENCE_LEVELS as CONFIDENCE_LEVELS, index_d$5_CONSENT_CATEGORY as CONSENT_CATEGORY, index_d$5_CONTEXTS as CONTEXTS, index_d$5_CRUD_OPERATORS as CRUD_OPERATORS, index_d$5_CheckoutSessionMetadataSchema as CheckoutSessionMetadataSchema, index_d$5_CreateCheckoutSessionRequestSchema as CreateCheckoutSessionRequestSchema, index_d$5_CreateCheckoutSessionResponseSchema as CreateCheckoutSessionResponseSchema, index_d$5_CustomClaimsSchema as CustomClaimsSchema, index_d$5_DEFAULT_ENTITY_ACCESS as DEFAULT_ENTITY_ACCESS, index_d$5_DEFAULT_LAYOUT_PRESET as DEFAULT_LAYOUT_PRESET, index_d$5_DEFAULT_SUBSCRIPTION as DEFAULT_SUBSCRIPTION, index_d$5_DENSITY as DENSITY, index_d$5_DoNotDevError as DoNotDevError, index_d$5_EDITABLE as EDITABLE, index_d$5_ENTITY_HOOK_ERRORS as ENTITY_HOOK_ERRORS, index_d$5_ENVIRONMENTS as ENVIRONMENTS, index_d$5_ERROR_CODES as ERROR_CODES, index_d$5_ERROR_SEVERITY as ERROR_SEVERITY, index_d$5_ERROR_SOURCE as ERROR_SOURCE, index_d$5_EntityHookError as EntityHookError, index_d$5_FEATURES as FEATURES, index_d$5_FEATURE_CONSENT_MATRIX as FEATURE_CONSENT_MATRIX, index_d$5_FEATURE_STATUS as FEATURE_STATUS, index_d$5_FIELD_TYPES as FIELD_TYPES, index_d$5_FIREBASE_ERROR_MAP as FIREBASE_ERROR_MAP, index_d$5_FIRESTORE_ID_PATTERN as FIRESTORE_ID_PATTERN, index_d$5_GITHUB_PERMISSION_LEVELS as GITHUB_PERMISSION_LEVELS, index_d$5_LAYOUT_PRESET as LAYOUT_PRESET, index_d$5_LIST_SCHEMA_TYPE as LIST_SCHEMA_TYPE, index_d$5_OAUTH_EVENTS as OAUTH_EVENTS, index_d$5_OAUTH_PARTNERS as OAUTH_PARTNERS, index_d$5_ORDER_DIRECTION as ORDER_DIRECTION, index_d$5_PARTNER_ICONS as PARTNER_ICONS, index_d$5_PAYLOAD_EVENTS as PAYLOAD_EVENTS, index_d$5_PERMISSIONS as PERMISSIONS, index_d$5_PLATFORMS as PLATFORMS, index_d$5_PWA_ASSET_TYPES as PWA_ASSET_TYPES, index_d$5_PWA_DISPLAY_MODES as PWA_DISPLAY_MODES, index_d$5_ProductDeclarationSchema as ProductDeclarationSchema, index_d$5_ProductDeclarationsSchema as ProductDeclarationsSchema, index_d$5_ROUTE_SOURCES as ROUTE_SOURCES, index_d$5_STORAGE_SCOPES as STORAGE_SCOPES, index_d$5_STORAGE_TYPES as STORAGE_TYPES, index_d$5_STRIPE_EVENTS as STRIPE_EVENTS, index_d$5_STRIPE_MODES as STRIPE_MODES, index_d$5_SUBSCRIPTION_DURATIONS as SUBSCRIPTION_DURATIONS, index_d$5_SUBSCRIPTION_STATUS as SUBSCRIPTION_STATUS, index_d$5_SUBSCRIPTION_TIERS as SUBSCRIPTION_TIERS, index_d$5_StripeBackConfigSchema as StripeBackConfigSchema, index_d$5_StripeFrontConfigSchema as StripeFrontConfigSchema, index_d$5_StripePaymentSchema as StripePaymentSchema, index_d$5_StripeSubscriptionSchema as StripeSubscriptionSchema, index_d$5_SubscriptionClaimsSchema as SubscriptionClaimsSchema, index_d$5_SubscriptionDataSchema as SubscriptionDataSchema, index_d$5_USER_ROLES as USER_ROLES, index_d$5_UserSubscriptionSchema as UserSubscriptionSchema, index_d$5_VISIBILITY as VISIBILITY, index_d$5_WebhookEventSchema as WebhookEventSchema, index_d$5_checkGitHubAccessSchema as checkGitHubAccessSchema, index_d$5_createDefaultSubscriptionClaims as createDefaultSubscriptionClaims, index_d$5_createDefaultUserProfile as createDefaultUserProfile, index_d$5_createEntitySchema as createEntitySchema, index_d$5_deleteEntitySchema as deleteEntitySchema, index_d$5_disconnectOAuthSchema as disconnectOAuthSchema, index_d$5_exchangeTokenSchema as exchangeTokenSchema, index_d$5_getBreakpointFromWidth as getBreakpointFromWidth, index_d$5_getBreakpointUtils as getBreakpointUtils, index_d$5_getConnectionsSchema as getConnectionsSchema, index_d$5_getEntitySchema as getEntitySchema, index_d$5_githubPermissionSchema as githubPermissionSchema, index_d$5_githubRepoConfigSchema as githubRepoConfigSchema, index_d$5_grantGitHubAccessSchema as grantGitHubAccessSchema, index_d$5_isAuthPartnerId as isAuthPartnerId, index_d$5_isBreakpoint as isBreakpoint, index_d$5_isOAuthPartnerId as isOAuthPartnerId, index_d$5_listEntitiesSchema as listEntitiesSchema, index_d$5_overrideFeatures as overrideFeatures, index_d$5_overridePaymentModes as overridePaymentModes, index_d$5_overridePermissions as overridePermissions, index_d$5_overrideSubscriptionStatus as overrideSubscriptionStatus, index_d$5_overrideSubscriptionTiers as overrideSubscriptionTiers, index_d$5_overrideUserRoles as overrideUserRoles, index_d$5_refreshTokenSchema as refreshTokenSchema, index_d$5_revokeGitHubAccessSchema as revokeGitHubAccessSchema, index_d$5_updateEntitySchema as updateEntitySchema, index_d$5_validateAuthPartners as validateAuthPartners, index_d$5_validateAuthSchemas as validateAuthSchemas, index_d$5_validateAuthUser as validateAuthUser, index_d$5_validateBillingSchemas as validateBillingSchemas, index_d$5_validateCheckoutSessionMetadata as validateCheckoutSessionMetadata, index_d$5_validateCreateCheckoutSessionRequest as validateCreateCheckoutSessionRequest, index_d$5_validateCreateCheckoutSessionResponse as validateCreateCheckoutSessionResponse, index_d$5_validateCustomClaims as validateCustomClaims, index_d$5_validateOAuthPartners as validateOAuthPartners, index_d$5_validateStripeBackConfig as validateStripeBackConfig, index_d$5_validateStripeFrontConfig as validateStripeFrontConfig, index_d$5_validateSubscriptionClaims as validateSubscriptionClaims, index_d$5_validateSubscriptionData as validateSubscriptionData, index_d$5_validateUserSubscription as validateUserSubscription, index_d$5_validateWebhookEvent as validateWebhookEvent };
|
|
13684
|
+
export type { index_d$5_AccountLinkResult as AccountLinkResult, index_d$5_AccountLinkingInfo as AccountLinkingInfo, index_d$5_AdminCheckHookResult as AdminCheckHookResult, index_d$5_AdminClaims as AdminClaims, index_d$5_AggregateConfig as AggregateConfig, index_d$5_AggregateFilterOperator as AggregateFilterOperator, index_d$5_AggregateOperation as AggregateOperation, index_d$5_AggregateRequest as AggregateRequest, index_d$5_AggregateResponse as AggregateResponse, index_d$5_AnyFieldValue as AnyFieldValue, index_d$5_ApiResponse as ApiResponse, index_d$5_AppConfig as AppConfig, index_d$5_AppCookieCategories as AppCookieCategories, index_d$5_AppMetadata as AppMetadata, index_d$5_AppProvidersProps as AppProvidersProps, index_d$5_AssetsPluginConfig as AssetsPluginConfig, index_d$5_AttemptRecord as AttemptRecord, index_d$5_AuditEvent as AuditEvent, index_d$5_AuditEventType as AuditEventType, index_d$5_AuthAPI as AuthAPI, index_d$5_AuthActions as AuthActions, index_d$5_AuthConfig as AuthConfig, index_d$5_AuthContextValue as AuthContextValue, index_d$5_AuthCoreHookResult as AuthCoreHookResult, index_d$5_AuthError as AuthError, index_d$5_AuthEventData as AuthEventData, index_d$5_AuthEventKey as AuthEventKey, index_d$5_AuthEventName as AuthEventName, index_d$5_AuthHardeningContext as AuthHardeningContext, index_d$5_AuthMethod as AuthMethod, index_d$5_AuthPartner as AuthPartner, index_d$5_AuthPartnerButton as AuthPartnerButton, index_d$5_AuthPartnerHookResult as AuthPartnerHookResult, index_d$5_AuthPartnerId as AuthPartnerId, index_d$5_AuthPartnerResult as AuthPartnerResult, index_d$5_AuthPartnerState as AuthPartnerState, index_d$5_AuthProvider as AuthProvider, index_d$5_AuthProviderProps as AuthProviderProps, index_d$5_AuthRedirectHookResult as AuthRedirectHookResult, index_d$5_AuthRedirectOperation as AuthRedirectOperation, index_d$5_AuthRedirectOptions as AuthRedirectOptions, index_d$5_AuthResult as AuthResult, index_d$5_AuthState as AuthState, index_d$5_AuthStateStore as AuthStateStore, index_d$5_AuthStatus as AuthStatus, index_d$5_AuthTokenHookResult as AuthTokenHookResult, index_d$5_AuthUser as AuthUser, index_d$5_BaseActions as BaseActions, index_d$5_BaseCredentials as BaseCredentials, index_d$5_BaseDocument as BaseDocument, index_d$5_BaseEntityFields as BaseEntityFields, index_d$5_BasePartnerState as BasePartnerState, index_d$5_BaseState as BaseState, index_d$5_BaseStoreActions as BaseStoreActions, index_d$5_BaseStoreState as BaseStoreState, index_d$5_BaseUserProfile as BaseUserProfile, index_d$5_BasicUserInfo as BasicUserInfo, index_d$5_BillingAPI as BillingAPI, index_d$5_BillingAdapter as BillingAdapter, index_d$5_BillingErrorCode as BillingErrorCode, index_d$5_BillingEvent as BillingEvent, index_d$5_BillingEventData as BillingEventData, index_d$5_BillingEventKey as BillingEventKey, index_d$5_BillingEventName as BillingEventName, index_d$5_BillingProvider as BillingProvider, index_d$5_BillingProviderConfig as BillingProviderConfig, index_d$5_BillingRedirectOperation as BillingRedirectOperation, index_d$5_Breakpoint as Breakpoint, index_d$5_BreakpointUtils as BreakpointUtils, index_d$5_BuiltInFieldType as BuiltInFieldType, index_d$5_BusinessEntity as BusinessEntity, index_d$5_CachedError as CachedError, index_d$5_CanAPI as CanAPI, index_d$5_CheckGitHubAccessRequest as CheckGitHubAccessRequest, index_d$5_CheckoutMode as CheckoutMode, index_d$5_CheckoutOptions as CheckoutOptions, index_d$5_CheckoutSessionMetadata as CheckoutSessionMetadata, index_d$5_CollectionSubscriptionCallback as CollectionSubscriptionCallback, index_d$5_ColumnDef as ColumnDef, index_d$5_CommonSubscriptionFeatures as CommonSubscriptionFeatures, index_d$5_CommonTranslations as CommonTranslations, index_d$5_ConfidenceLevel as ConfidenceLevel, index_d$5_ConsentAPI as ConsentAPI, index_d$5_ConsentActions as ConsentActions, index_d$5_ConsentCategory as ConsentCategory, index_d$5_ConsentState as ConsentState, index_d$5_Context as Context, index_d$5_CookieOptions as CookieOptions, index_d$5_CreateCheckoutSessionRequest as CreateCheckoutSessionRequest, index_d$5_CreateCheckoutSessionResponse as CreateCheckoutSessionResponse, index_d$5_CreateEntityData as CreateEntityData, index_d$5_CreateEntityRequest as CreateEntityRequest, index_d$5_CreateEntityResponse as CreateEntityResponse, index_d$5_CrudAPI as CrudAPI, index_d$5_CrudCardProps as CrudCardProps, index_d$5_CrudConfig as CrudConfig, index_d$5_CrudOperator as CrudOperator, index_d$5_CustomClaims as CustomClaims, index_d$5_CustomFieldOptionsMap as CustomFieldOptionsMap, index_d$5_CustomStoreConfig as CustomStoreConfig, index_d$5_DateValue as DateValue, index_d$5_DeleteEntityRequest as DeleteEntityRequest, index_d$5_DeleteEntityResponse as DeleteEntityResponse, index_d$5_Density as Density, index_d$5_DnDevOverride as DnDevOverride, index_d$5_DndevFrameworkConfig as DndevFrameworkConfig, index_d$5_DndevProviders as DndevProviders, index_d$5_DoNotDevCookieCategories as DoNotDevCookieCategories, index_d$5_DocumentSubscriptionCallback as DocumentSubscriptionCallback, index_d$5_DynamicFormRule as DynamicFormRule, index_d$5_Editable as Editable, index_d$5_EffectiveConnectionType as EffectiveConnectionType, index_d$5_EmailVerificationHookResult as EmailVerificationHookResult, index_d$5_EmailVerificationStatus as EmailVerificationStatus, index_d$5_Entity as Entity, index_d$5_EntityAccessConfig as EntityAccessConfig, index_d$5_EntityAccessDefaults as EntityAccessDefaults, index_d$5_EntityCardListProps as EntityCardListProps, index_d$5_EntityDisplayRendererProps as EntityDisplayRendererProps, index_d$5_EntityField as EntityField, index_d$5_EntityFormRendererProps as EntityFormRendererProps, index_d$5_EntityHookErrors as EntityHookErrors, index_d$5_EntityListProps as EntityListProps, index_d$5_EntityMetadata as EntityMetadata, index_d$5_EntityOwnershipConfig as EntityOwnershipConfig, index_d$5_EntityOwnershipPublicCondition as EntityOwnershipPublicCondition, index_d$5_EntityRecommendationsProps as EntityRecommendationsProps, index_d$5_EntityRecord as EntityRecord, index_d$5_EntityTemplateProps as EntityTemplateProps, index_d$5_EntityTranslations as EntityTranslations, index_d$5_EnvironmentMode as EnvironmentMode, index_d$5_ErrorCode as ErrorCode, index_d$5_ErrorSeverity as ErrorSeverity, index_d$5_ErrorSource as ErrorSource, index_d$5_ExchangeTokenParams as ExchangeTokenParams, index_d$5_ExchangeTokenRequest as ExchangeTokenRequest, index_d$5_FaviconConfig as FaviconConfig, index_d$5_Feature as Feature, index_d$5_FeatureAccessHookResult as FeatureAccessHookResult, index_d$5_FeatureConsentRequirement as FeatureConsentRequirement, index_d$5_FeatureHookResult as FeatureHookResult, index_d$5_FeatureId as FeatureId, index_d$5_FeatureName as FeatureName, index_d$5_FeatureStatus as FeatureStatus, index_d$5_FeaturesConfig as FeaturesConfig, index_d$5_FeaturesPluginConfig as FeaturesPluginConfig, index_d$5_FeaturesRequiringAnyConsent as FeaturesRequiringAnyConsent, index_d$5_FeaturesRequiringConsent as FeaturesRequiringConsent, index_d$5_FeaturesWithoutConsent as FeaturesWithoutConsent, index_d$5_FieldCondition as FieldCondition, index_d$5_FieldType as FieldType, index_d$5_FieldTypeToValue as FieldTypeToValue, index_d$5_FileAsset as FileAsset, index_d$5_FirebaseCallOptions as FirebaseCallOptions, index_d$5_FirebaseConfig as FirebaseConfig, index_d$5_FirestoreTimestamp as FirestoreTimestamp, index_d$5_FirestoreUniqueConstraintValidator as FirestoreUniqueConstraintValidator, index_d$5_FooterConfig as FooterConfig, index_d$5_FooterZoneConfig as FooterZoneConfig, index_d$5_FormConfig as FormConfig, index_d$5_FormStep as FormStep, index_d$5_FunctionCallConfig as FunctionCallConfig, index_d$5_FunctionCallContext as FunctionCallContext, index_d$5_FunctionCallOptions as FunctionCallOptions, index_d$5_FunctionCallResult as FunctionCallResult, index_d$5_FunctionClient as FunctionClient, index_d$5_FunctionClientFactoryOptions as FunctionClientFactoryOptions, index_d$5_FunctionDefaults as FunctionDefaults, index_d$5_FunctionEndpoint as FunctionEndpoint, index_d$5_FunctionError as FunctionError, index_d$5_FunctionLoader as FunctionLoader, index_d$5_FunctionMemory as FunctionMemory, index_d$5_FunctionMeta as FunctionMeta, index_d$5_FunctionPlatform as FunctionPlatform, index_d$5_FunctionResponse as FunctionResponse, index_d$5_FunctionSchema as FunctionSchema, index_d$5_FunctionSchemas as FunctionSchemas, index_d$5_FunctionSystem as FunctionSystem, index_d$5_FunctionTrigger as FunctionTrigger, index_d$5_FunctionsConfig as FunctionsConfig, index_d$5_GetCustomClaimsResponse as GetCustomClaimsResponse, index_d$5_GetEntityData as GetEntityData, index_d$5_GetEntityRequest as GetEntityRequest, index_d$5_GetEntityResponse as GetEntityResponse, index_d$5_GetUserAuthStatusResponse as GetUserAuthStatusResponse, index_d$5_GitHubPermission as GitHubPermission, index_d$5_GitHubRepoConfig as GitHubRepoConfig, index_d$5_GrantGitHubAccessRequest as GrantGitHubAccessRequest, index_d$5_GroupByDefinition as GroupByDefinition, index_d$5_HeaderZoneConfig as HeaderZoneConfig, index_d$5_I18nConfig as I18nConfig, index_d$5_I18nPluginConfig as I18nPluginConfig, index_d$5_I18nProviderProps as I18nProviderProps, index_d$5_ICallableProvider as ICallableProvider, index_d$5_ICrudAdapter as ICrudAdapter, index_d$5_ID as ID, index_d$5_INetworkManager as INetworkManager, index_d$5_IServerAuthAdapter as IServerAuthAdapter, index_d$5_IStorageAdapter as IStorageAdapter, index_d$5_IStorageManager as IStorageManager, index_d$5_IStorageStrategy as IStorageStrategy, index_d$5_Invoice as Invoice, index_d$5_InvoiceItem as InvoiceItem, index_d$5_LanguageInfo as LanguageInfo, index_d$5_LayoutConfig as LayoutConfig, index_d$5_LayoutPreset as LayoutPreset, index_d$5_LegalCompanyInfo as LegalCompanyInfo, index_d$5_LegalConfig as LegalConfig, index_d$5_LegalContactInfo as LegalContactInfo, index_d$5_LegalDirectorInfo as LegalDirectorInfo, index_d$5_LegalHostingInfo as LegalHostingInfo, index_d$5_LegalJurisdictionInfo as LegalJurisdictionInfo, index_d$5_LegalSectionsConfig as LegalSectionsConfig, index_d$5_LegalWebsiteInfo as LegalWebsiteInfo, index_d$5_ListCardLayout as ListCardLayout, index_d$5_ListEntitiesRequest as ListEntitiesRequest, index_d$5_ListEntitiesResponse as ListEntitiesResponse, index_d$5_ListEntityData as ListEntityData, index_d$5_ListOptions as ListOptions, index_d$5_ListResponse as ListResponse, index_d$5_ListSchemaType as ListSchemaType, index_d$5_LoadingActions as LoadingActions, index_d$5_LoadingState as LoadingState, index_d$5_MergedBarConfig as MergedBarConfig, index_d$5_MetricDefinition as MetricDefinition, index_d$5_MobileBehaviorConfig as MobileBehaviorConfig, index_d$5_ModalActions as ModalActions, index_d$5_ModalState as ModalState, index_d$5_MutationResponse as MutationResponse, index_d$5_NavigationRoute as NavigationRoute, index_d$5_NetworkCheckConfig as NetworkCheckConfig, index_d$5_NetworkConnectionType as NetworkConnectionType, index_d$5_NetworkReconnectCallback as NetworkReconnectCallback, NetworkState$1 as NetworkState, index_d$5_NetworkStatus as NetworkStatus, index_d$5_NetworkStatusHookResult as NetworkStatusHookResult, index_d$5_OAuthAPI as OAuthAPI, index_d$5_OAuthApiRequestOptions as OAuthApiRequestOptions, index_d$5_OAuthCallbackHookResult as OAuthCallbackHookResult, index_d$5_OAuthConnection as OAuthConnection, index_d$5_OAuthConnectionInfo as OAuthConnectionInfo, index_d$5_OAuthConnectionRequest as OAuthConnectionRequest, index_d$5_OAuthConnectionStatus as OAuthConnectionStatus, index_d$5_OAuthCredentials as OAuthCredentials, index_d$5_OAuthEventData as OAuthEventData, index_d$5_OAuthEventKey as OAuthEventKey, index_d$5_OAuthEventName as OAuthEventName, index_d$5_OAuthPartner as OAuthPartner, index_d$5_OAuthPartnerButton as OAuthPartnerButton, index_d$5_OAuthPartnerHookResult as OAuthPartnerHookResult, index_d$5_OAuthPartnerId as OAuthPartnerId, index_d$5_OAuthPartnerResult as OAuthPartnerResult, index_d$5_OAuthPartnerState as OAuthPartnerState, index_d$5_OAuthPurpose as OAuthPurpose, index_d$5_OAuthRedirectOperation as OAuthRedirectOperation, index_d$5_OAuthRefreshRequest as OAuthRefreshRequest, index_d$5_OAuthRefreshResponse as OAuthRefreshResponse, index_d$5_OAuthResult as OAuthResult, index_d$5_OAuthStoreActions as OAuthStoreActions, index_d$5_OAuthStoreState as OAuthStoreState, index_d$5_Observable as Observable, index_d$5_OrderByClause as OrderByClause, index_d$5_OrderDirection as OrderDirection, index_d$5_PWAAssetType as PWAAssetType, index_d$5_PWADisplayMode as PWADisplayMode, index_d$5_PWAPluginConfig as PWAPluginConfig, index_d$5_PageAuth as PageAuth, index_d$5_PageMeta as PageMeta, index_d$5_PaginatedQueryResult as PaginatedQueryResult, index_d$5_PaginationOptions as PaginationOptions, index_d$5_PartnerButton as PartnerButton, index_d$5_PartnerConnectionState as PartnerConnectionState, index_d$5_PartnerIconId as PartnerIconId, index_d$5_PartnerId as PartnerId, index_d$5_PartnerResult as PartnerResult, index_d$5_PartnerType as PartnerType, index_d$5_PayloadCacheEventData as PayloadCacheEventData, index_d$5_PayloadDocument as PayloadDocument, index_d$5_PayloadDocumentEventData as PayloadDocumentEventData, index_d$5_PayloadEventKey as PayloadEventKey, index_d$5_PayloadEventName as PayloadEventName, index_d$5_PayloadGlobalEventData as PayloadGlobalEventData, index_d$5_PayloadMediaEventData as PayloadMediaEventData, index_d$5_PayloadPageRegenerationEventData as PayloadPageRegenerationEventData, index_d$5_PayloadRequest as PayloadRequest, index_d$5_PayloadUserEventData as PayloadUserEventData, index_d$5_PaymentEventData as PaymentEventData, index_d$5_PaymentMethod as PaymentMethod, index_d$5_PaymentMethodType as PaymentMethodType, index_d$5_PaymentMode as PaymentMode, index_d$5_Permission as Permission, index_d$5_Picture as Picture, index_d$5_Platform as Platform, index_d$5_PresetConfig as PresetConfig, index_d$5_PresetRegistry as PresetRegistry, index_d$5_ProcessPaymentSuccessRequest as ProcessPaymentSuccessRequest, index_d$5_ProcessPaymentSuccessResponse as ProcessPaymentSuccessResponse, index_d$5_ProductDeclaration as ProductDeclaration, index_d$5_ProviderInstances as ProviderInstances, QueryConfig$1 as QueryConfig, QueryOptions$1 as QueryOptions, index_d$5_QueryOrderBy as QueryOrderBy, index_d$5_QueryWhereClause as QueryWhereClause, index_d$5_RateLimitBackend as RateLimitBackend, index_d$5_RateLimitConfig as RateLimitConfig, index_d$5_RateLimitManager as RateLimitManager, index_d$5_RateLimitResult as RateLimitResult, index_d$5_RateLimitState as RateLimitState, index_d$5_RateLimiter as RateLimiter, index_d$5_ReadCallback as ReadCallback, index_d$5_RedirectOperation as RedirectOperation, index_d$5_RedirectOverlayActions as RedirectOverlayActions, index_d$5_RedirectOverlayConfig as RedirectOverlayConfig, index_d$5_RedirectOverlayPhase as RedirectOverlayPhase, index_d$5_RedirectOverlayState as RedirectOverlayState, index_d$5_Reference as Reference, index_d$5_RefreshSubscriptionRequest as RefreshSubscriptionRequest, index_d$5_RefreshSubscriptionResponse as RefreshSubscriptionResponse, index_d$5_RemoveCustomClaimsResponse as RemoveCustomClaimsResponse, index_d$5_ResolvedLayoutConfig as ResolvedLayoutConfig, index_d$5_RevokeGitHubAccessRequest as RevokeGitHubAccessRequest, index_d$5_RouteMeta as RouteMeta, index_d$5_RouteSource as RouteSource, index_d$5_RoutesPluginConfig as RoutesPluginConfig, index_d$5_SEOConfig as SEOConfig, index_d$5_SchemaMetadata as SchemaMetadata, index_d$5_ScopeConfig as ScopeConfig, index_d$5_SecurityContext as SecurityContext, index_d$5_SecurityEntityConfig as SecurityEntityConfig, index_d$5_ServerRateLimitConfig as ServerRateLimitConfig, index_d$5_ServerRateLimitResult as ServerRateLimitResult, index_d$5_ServerUserRecord as ServerUserRecord, index_d$5_SetCustomClaimsResponse as SetCustomClaimsResponse, index_d$5_SidebarZoneConfig as SidebarZoneConfig, index_d$5_SlotContent as SlotContent, index_d$5_StorageOptions as StorageOptions, index_d$5_StorageScope as StorageScope, index_d$5_StorageType as StorageType, index_d$5_Store as Store, index_d$5_StoreApi as StoreApi, index_d$5_StripeBackConfig as StripeBackConfig, index_d$5_StripeCheckoutRequest as StripeCheckoutRequest, index_d$5_StripeCheckoutResponse as StripeCheckoutResponse, index_d$5_StripeCheckoutSessionEventData as StripeCheckoutSessionEventData, index_d$5_StripeConfig as StripeConfig, index_d$5_StripeCustomer as StripeCustomer, index_d$5_StripeCustomerEventData as StripeCustomerEventData, index_d$5_StripeEventData as StripeEventData, index_d$5_StripeEventKey as StripeEventKey, index_d$5_StripeEventName as StripeEventName, index_d$5_StripeFrontConfig as StripeFrontConfig, index_d$5_StripeInvoice as StripeInvoice, index_d$5_StripeInvoiceEventData as StripeInvoiceEventData, index_d$5_StripePayment as StripePayment, index_d$5_StripePaymentIntentEventData as StripePaymentIntentEventData, index_d$5_StripePaymentMethod as StripePaymentMethod, index_d$5_StripePrice as StripePrice, index_d$5_StripeProduct as StripeProduct, index_d$5_StripeProvider as StripeProvider, index_d$5_StripeSubscription as StripeSubscription, index_d$5_StripeSubscriptionData as StripeSubscriptionData, index_d$5_StripeWebhookEvent as StripeWebhookEvent, index_d$5_StripeWebhookEventData as StripeWebhookEventData, index_d$5_Subscription as Subscription, index_d$5_SubscriptionClaims as SubscriptionClaims, index_d$5_SubscriptionConfig as SubscriptionConfig, index_d$5_SubscriptionData as SubscriptionData, index_d$5_SubscriptionDuration as SubscriptionDuration, index_d$5_SubscriptionEventData as SubscriptionEventData, index_d$5_SubscriptionHookResult as SubscriptionHookResult, index_d$5_SubscriptionInfo as SubscriptionInfo, index_d$5_SubscriptionStatus as SubscriptionStatus, index_d$5_SubscriptionTier as SubscriptionTier, index_d$5_SupportedLanguage as SupportedLanguage, index_d$5_ThemeActions as ThemeActions, index_d$5_ThemeInfo as ThemeInfo, index_d$5_ThemeMode as ThemeMode, index_d$5_ThemeState as ThemeState, index_d$5_ThemesPluginConfig as ThemesPluginConfig, index_d$5_TierAccessHookResult as TierAccessHookResult, index_d$5_Timestamp as Timestamp, index_d$5_TokenInfo as TokenInfo, index_d$5_TokenResponse as TokenResponse, index_d$5_TokenState as TokenState, index_d$5_TokenStatus as TokenStatus, index_d$5_TranslationOptions as TranslationOptions, index_d$5_TranslationResource as TranslationResource, index_d$5_UIFieldOptions as UIFieldOptions, index_d$5_UniqueConstraintValidator as UniqueConstraintValidator, index_d$5_UniqueKeyDefinition as UniqueKeyDefinition, index_d$5_UnsubscribeFn as UnsubscribeFn, index_d$5_UpdateEntityData as UpdateEntityData, index_d$5_UpdateEntityRequest as UpdateEntityRequest, index_d$5_UpdateEntityResponse as UpdateEntityResponse, index_d$5_UploadOptions as UploadOptions, index_d$5_UploadProgressCallback as UploadProgressCallback, index_d$5_UploadResult as UploadResult, index_d$5_UseFunctionsCallResult as UseFunctionsCallResult, index_d$5_UseFunctionsMutationOptions as UseFunctionsMutationOptions, index_d$5_UseFunctionsMutationResult as UseFunctionsMutationResult, index_d$5_UseFunctionsQueryOptions as UseFunctionsQueryOptions, index_d$5_UseFunctionsQueryResult as UseFunctionsQueryResult, index_d$5_UseTranslationOptionsEnhanced as UseTranslationOptionsEnhanced, index_d$5_UserContext as UserContext, index_d$5_UserProfile as UserProfile, index_d$5_UserProviderData as UserProviderData, index_d$5_UserRole as UserRole, index_d$5_UserSubscription as UserSubscription, index_d$5_ValidationRules as ValidationRules, index_d$5_ValueTypeForField as ValueTypeForField, index_d$5_VerifiedToken as VerifiedToken, index_d$5_Visibility as Visibility, index_d$5_WebhookEvent as WebhookEvent, index_d$5_WebhookEventData as WebhookEventData, index_d$5_WhereClause as WhereClause, index_d$5_WhereOperator as WhereOperator, index_d$5_WithMetadata as WithMetadata, index_d$5_dndevSchema as dndevSchema };
|
|
12838
13685
|
}
|
|
12839
13686
|
|
|
12840
13687
|
/**
|
|
@@ -12992,7 +13839,7 @@ declare class TokenManager {
|
|
|
12992
13839
|
* @param authInstance Optional auth instance for automatic refresh
|
|
12993
13840
|
* @param options Configuration options
|
|
12994
13841
|
*/
|
|
12995
|
-
constructor(authInstance?:
|
|
13842
|
+
constructor(authInstance?: unknown, options?: TokenManagerOptions);
|
|
12996
13843
|
/**
|
|
12997
13844
|
* Initialize token management with token information
|
|
12998
13845
|
*
|
|
@@ -15483,39 +16330,28 @@ declare function getPartnerCacheStatus(): {
|
|
|
15483
16330
|
declare function getAuthPartnerIdByFirebaseId(firebaseProviderId: string): AuthPartnerId | null;
|
|
15484
16331
|
|
|
15485
16332
|
/**
|
|
15486
|
-
* Generate a secure encryption key
|
|
16333
|
+
* Generate a secure, non-extractable encryption key.
|
|
16334
|
+
*
|
|
16335
|
+
* The key is marked `extractable: false` so the raw key material can never
|
|
16336
|
+
* be exported by JavaScript code, defeating the C-OLD-2 vulnerability.
|
|
16337
|
+
*
|
|
15487
16338
|
* @returns Promise resolving to the generated key
|
|
15488
16339
|
*
|
|
15489
|
-
* @version 0.0.
|
|
16340
|
+
* @version 0.0.2
|
|
15490
16341
|
* @since 0.0.1
|
|
15491
16342
|
* @author AMBROISE PARK Consulting
|
|
15492
16343
|
*/
|
|
15493
16344
|
declare function generateEncryptionKey(): Promise<CryptoKey>;
|
|
15494
16345
|
/**
|
|
15495
|
-
*
|
|
15496
|
-
* @param key CryptoKey to export
|
|
15497
|
-
* @returns Promise resolving to base64-encoded key
|
|
16346
|
+
* Get or create the encryption key.
|
|
15498
16347
|
*
|
|
15499
|
-
*
|
|
15500
|
-
*
|
|
15501
|
-
*
|
|
15502
|
-
*/
|
|
15503
|
-
declare function exportEncryptionKey(key: CryptoKey): Promise<string>;
|
|
15504
|
-
/**
|
|
15505
|
-
* Import an encryption key from a string
|
|
15506
|
-
* @param keyString Base64-encoded key string
|
|
15507
|
-
* @returns Promise resolving to the imported CryptoKey
|
|
16348
|
+
* Keys are stored in IndexedDB as native CryptoKey objects (not exported raw
|
|
16349
|
+
* bytes), so the key material is never written to localStorage or any
|
|
16350
|
+
* JavaScript-accessible string.
|
|
15508
16351
|
*
|
|
15509
|
-
* @version 0.0.1
|
|
15510
|
-
* @since 0.0.1
|
|
15511
|
-
* @author AMBROISE PARK Consulting
|
|
15512
|
-
*/
|
|
15513
|
-
declare function importEncryptionKey(keyString: string): Promise<CryptoKey>;
|
|
15514
|
-
/**
|
|
15515
|
-
* Get or create the encryption key
|
|
15516
16352
|
* @returns Promise resolving to the encryption key
|
|
15517
16353
|
*
|
|
15518
|
-
* @version 0.0.
|
|
16354
|
+
* @version 0.0.2
|
|
15519
16355
|
* @since 0.0.1
|
|
15520
16356
|
* @author AMBROISE PARK Consulting
|
|
15521
16357
|
*/
|
|
@@ -15529,7 +16365,7 @@ declare function getEncryptionKey(): Promise<CryptoKey>;
|
|
|
15529
16365
|
* @since 0.0.1
|
|
15530
16366
|
* @author AMBROISE PARK Consulting
|
|
15531
16367
|
*/
|
|
15532
|
-
declare function encryptData(data:
|
|
16368
|
+
declare function encryptData(data: string | object | number | boolean): Promise<string>;
|
|
15533
16369
|
/**
|
|
15534
16370
|
* Decrypt data using AES-GCM
|
|
15535
16371
|
* @param encryptedData Encrypted string (base64)
|
|
@@ -15539,7 +16375,7 @@ declare function encryptData(data: any): Promise<string>;
|
|
|
15539
16375
|
* @since 0.0.1
|
|
15540
16376
|
* @author AMBROISE PARK Consulting
|
|
15541
16377
|
*/
|
|
15542
|
-
declare function decryptData(encryptedData: string): Promise<
|
|
16378
|
+
declare function decryptData(encryptedData: string): Promise<string | object | number | boolean | null>;
|
|
15543
16379
|
|
|
15544
16380
|
/**
|
|
15545
16381
|
* @fileoverview Storage manager
|
|
@@ -16550,6 +17386,24 @@ declare function isServer(): boolean;
|
|
|
16550
17386
|
* @returns Framework configuration object with platform information
|
|
16551
17387
|
*/
|
|
16552
17388
|
declare function initializePlatformDetection(): DndevFrameworkConfig;
|
|
17389
|
+
/**
|
|
17390
|
+
* Check if running on Expo platform
|
|
17391
|
+
*
|
|
17392
|
+
* @version 0.0.1
|
|
17393
|
+
* @since 0.0.1
|
|
17394
|
+
* @author AMBROISE PARK Consulting
|
|
17395
|
+
* @returns True if running on Expo
|
|
17396
|
+
*/
|
|
17397
|
+
declare function isExpo(): boolean;
|
|
17398
|
+
/**
|
|
17399
|
+
* Check if running on React Native platform
|
|
17400
|
+
*
|
|
17401
|
+
* @version 0.0.1
|
|
17402
|
+
* @since 0.0.1
|
|
17403
|
+
* @author AMBROISE PARK Consulting
|
|
17404
|
+
* @returns True if running on React Native
|
|
17405
|
+
*/
|
|
17406
|
+
declare function isReactNative(): boolean;
|
|
16553
17407
|
/**
|
|
16554
17408
|
* Debug platform detection
|
|
16555
17409
|
* Development helper to log platform detection details
|
|
@@ -17349,6 +18203,131 @@ declare function shouldShowEmailVerification(): boolean;
|
|
|
17349
18203
|
*/
|
|
17350
18204
|
declare function isEmailVerificationRequired(user: any): boolean;
|
|
17351
18205
|
|
|
18206
|
+
/**
|
|
18207
|
+
* @fileoverview Adapter Error Utilities
|
|
18208
|
+
* @description Utility functions for wrapping errors in adapter implementations.
|
|
18209
|
+
* These utilities help maintain consistent error handling across all adapters without
|
|
18210
|
+
* requiring inheritance or base classes.
|
|
18211
|
+
*
|
|
18212
|
+
* @version 0.0.1
|
|
18213
|
+
* @since 0.0.1
|
|
18214
|
+
* @author AMBROISE PARK Consulting
|
|
18215
|
+
*/
|
|
18216
|
+
|
|
18217
|
+
/**
|
|
18218
|
+
* Wraps an error from a CRUD adapter operation.
|
|
18219
|
+
* Maps common database/API errors to DoNotDevError with appropriate codes.
|
|
18220
|
+
*
|
|
18221
|
+
* @param error - The original error from the adapter
|
|
18222
|
+
* @param context - Context about the operation (e.g., "FirestoreAdapter.get", "SupabaseAdapter.add")
|
|
18223
|
+
* @param operation - The operation name (e.g., "get", "add", "query")
|
|
18224
|
+
* @param collection - The collection/table name
|
|
18225
|
+
* @param id - Optional document ID
|
|
18226
|
+
* @returns A DoNotDevError wrapping the original error
|
|
18227
|
+
*
|
|
18228
|
+
* @example
|
|
18229
|
+
* ```typescript
|
|
18230
|
+
* try {
|
|
18231
|
+
* return await this.client.from('users').select().eq('id', id).single();
|
|
18232
|
+
* } catch (error) {
|
|
18233
|
+
* throw wrapCrudError(error, 'SupabaseCrudAdapter.get', 'get', 'users', id);
|
|
18234
|
+
* }
|
|
18235
|
+
* ```
|
|
18236
|
+
*/
|
|
18237
|
+
declare function wrapCrudError(error: unknown, context: string, operation: string, collection: string, id?: string): DoNotDevError;
|
|
18238
|
+
/**
|
|
18239
|
+
* Wraps an error from a storage adapter operation.
|
|
18240
|
+
*
|
|
18241
|
+
* @param error - The original error from the adapter
|
|
18242
|
+
* @param context - Context about the operation (e.g., "FirebaseStorageAdapter.upload")
|
|
18243
|
+
* @param operation - The operation name (e.g., "upload", "delete", "getUrl")
|
|
18244
|
+
* @param path - The storage path or URL
|
|
18245
|
+
* @returns A DoNotDevError wrapping the original error
|
|
18246
|
+
*
|
|
18247
|
+
* @example
|
|
18248
|
+
* ```typescript
|
|
18249
|
+
* try {
|
|
18250
|
+
* return await this.bucket.upload(file, { destination: path });
|
|
18251
|
+
* } catch (error) {
|
|
18252
|
+
* throw wrapStorageError(error, 'S3StorageAdapter.upload', 'upload', path);
|
|
18253
|
+
* }
|
|
18254
|
+
* ```
|
|
18255
|
+
*/
|
|
18256
|
+
declare function wrapStorageError(error: unknown, context: string, operation: string, path: string): DoNotDevError;
|
|
18257
|
+
/**
|
|
18258
|
+
* Wraps an error from an auth adapter operation.
|
|
18259
|
+
*
|
|
18260
|
+
* @param error - The original error from the adapter
|
|
18261
|
+
* @param context - Context about the operation (e.g., "FirebaseAuth.signInWithEmail")
|
|
18262
|
+
* @param operation - The operation name (e.g., "signInWithEmail", "linkWithPartner")
|
|
18263
|
+
* @param details - Optional additional details (e.g., email, partnerId)
|
|
18264
|
+
* @returns A DoNotDevError wrapping the original error
|
|
18265
|
+
*
|
|
18266
|
+
* @example
|
|
18267
|
+
* ```typescript
|
|
18268
|
+
* try {
|
|
18269
|
+
* return await this.sdk.signInWithEmailAndPassword(email, password);
|
|
18270
|
+
* } catch (error) {
|
|
18271
|
+
* throw wrapAuthError(error, 'CustomAuth.signInWithEmail', 'signInWithEmail', { email });
|
|
18272
|
+
* }
|
|
18273
|
+
* ```
|
|
18274
|
+
*/
|
|
18275
|
+
declare function wrapAuthError(error: unknown, context: string, operation: string, details?: Record<string, unknown>): DoNotDevError;
|
|
18276
|
+
|
|
18277
|
+
/**
|
|
18278
|
+
* Validates data against a schema, throwing a DoNotDevError if validation fails.
|
|
18279
|
+
* Use this in adapter methods to ensure data conforms to expected schemas.
|
|
18280
|
+
*
|
|
18281
|
+
* @param schema - The Valibot schema to validate against
|
|
18282
|
+
* @param data - The data to validate
|
|
18283
|
+
* @param context - Context for error messages (e.g., "FirestoreAdapter.add")
|
|
18284
|
+
* @returns The validated and parsed data
|
|
18285
|
+
* @throws DoNotDevError if validation fails
|
|
18286
|
+
*
|
|
18287
|
+
* @example
|
|
18288
|
+
* ```typescript
|
|
18289
|
+
* async add<T>(collection: string, data: T, schema?: dndevSchema<T>): Promise<{ id: string; data: Record<string, unknown> }> {
|
|
18290
|
+
* if (schema) {
|
|
18291
|
+
* data = validateWithSchema(schema, data, 'MyAdapter.add');
|
|
18292
|
+
* }
|
|
18293
|
+
* // ... proceed with validated data
|
|
18294
|
+
* }
|
|
18295
|
+
* ```
|
|
18296
|
+
*/
|
|
18297
|
+
declare function validateWithSchema<T>(schema: dndevSchema<T>, data: unknown, context: string): T;
|
|
18298
|
+
/**
|
|
18299
|
+
* Safely validates data against a schema, returning null if validation fails instead of throwing.
|
|
18300
|
+
* Useful when you want to handle validation errors gracefully.
|
|
18301
|
+
*
|
|
18302
|
+
* @param schema - The Valibot schema to validate against
|
|
18303
|
+
* @param data - The data to validate
|
|
18304
|
+
* @returns The validated data, or null if validation fails
|
|
18305
|
+
*
|
|
18306
|
+
* @example
|
|
18307
|
+
* ```typescript
|
|
18308
|
+
* const validated = safeValidate(schema, rawData);
|
|
18309
|
+
* if (!validated) {
|
|
18310
|
+
* console.warn('Data validation failed, skipping...');
|
|
18311
|
+
* return null;
|
|
18312
|
+
* }
|
|
18313
|
+
* ```
|
|
18314
|
+
*/
|
|
18315
|
+
declare function safeValidate<T>(schema: dndevSchema<T>, data: unknown): T | null;
|
|
18316
|
+
/**
|
|
18317
|
+
* Creates a spreadable object from validated data, ensuring it can be safely spread.
|
|
18318
|
+
* Use this when you need to spread validated data and add additional properties (like `id`).
|
|
18319
|
+
*
|
|
18320
|
+
* @param data - The validated data (should be an object)
|
|
18321
|
+
* @returns A Record that can be safely spread
|
|
18322
|
+
*
|
|
18323
|
+
* @example
|
|
18324
|
+
* ```typescript
|
|
18325
|
+
* const parsed = validateWithSchema(schema, data, 'MyAdapter.get');
|
|
18326
|
+
* return { ...ensureSpreadable(parsed), id } as T;
|
|
18327
|
+
* ```
|
|
18328
|
+
*/
|
|
18329
|
+
declare function ensureSpreadable<T>(data: T): Record<string, unknown>;
|
|
18330
|
+
|
|
17352
18331
|
/**
|
|
17353
18332
|
* @fileoverview Array translation utilities
|
|
17354
18333
|
* @description Provides utilities for handling array translations with indexed keys
|
|
@@ -18204,6 +19183,78 @@ declare function getRoleFromClaims(claims: Record<string, any>): string;
|
|
|
18204
19183
|
*/
|
|
18205
19184
|
declare function hasTierAccess(userTier: string | undefined, requiredTier: string, tierConfig?: SubscriptionConfig['tiers']): boolean;
|
|
18206
19185
|
|
|
19186
|
+
/**
|
|
19187
|
+
* @fileoverview Provider Registry
|
|
19188
|
+
* @description Central registration point for all pluggable backends (CRUD, auth, storage).
|
|
19189
|
+
* Call `configureProviders()` once at app startup so that `useCrud`, auth, and storage work.
|
|
19190
|
+
* All framework code uses `getProvider()` — no direct backend imports in app code.
|
|
19191
|
+
*
|
|
19192
|
+
* **Required:** Import your `config/providers` module from the root component (e.g. App.tsx)
|
|
19193
|
+
* before any component that uses `useCrud`, auth, or storage.
|
|
19194
|
+
*
|
|
19195
|
+
* @example Firebase (Vite)
|
|
19196
|
+
* ```typescript
|
|
19197
|
+
* // App.tsx
|
|
19198
|
+
* import './config/providers';
|
|
19199
|
+
* // ...
|
|
19200
|
+
* ```
|
|
19201
|
+
* ```typescript
|
|
19202
|
+
* // config/providers.ts
|
|
19203
|
+
* import { configureProviders } from '@donotdev/core';
|
|
19204
|
+
* import { FirestoreAdapter, FirebaseAuth, FirebaseStorageAdapter } from '@donotdev/firebase';
|
|
19205
|
+
* configureProviders({
|
|
19206
|
+
* crud: new FirestoreAdapter(),
|
|
19207
|
+
* auth: new FirebaseAuth(),
|
|
19208
|
+
* storage: new FirebaseStorageAdapter(),
|
|
19209
|
+
* });
|
|
19210
|
+
* ```
|
|
19211
|
+
*
|
|
19212
|
+
* @example Supabase
|
|
19213
|
+
* ```typescript
|
|
19214
|
+
* import { configureProviders } from '@donotdev/core';
|
|
19215
|
+
* import { SupabaseCrudAdapter, SupabaseAuth, SupabaseStorageAdapter } from '@donotdev/supabase';
|
|
19216
|
+
* const supabase = createClient(url, anonKey);
|
|
19217
|
+
* configureProviders({
|
|
19218
|
+
* crud: new SupabaseCrudAdapter(supabase),
|
|
19219
|
+
* auth: new SupabaseAuth(supabase),
|
|
19220
|
+
* storage: new SupabaseStorageAdapter(supabase),
|
|
19221
|
+
* });
|
|
19222
|
+
* ```
|
|
19223
|
+
*
|
|
19224
|
+
* @version 0.0.1
|
|
19225
|
+
* @since 0.5.0
|
|
19226
|
+
* @author AMBROISE PARK Consulting
|
|
19227
|
+
*/
|
|
19228
|
+
|
|
19229
|
+
/**
|
|
19230
|
+
* Configure all providers for the framework.
|
|
19231
|
+
* Must be called once at app startup, before any component uses `useCrud`, auth, or storage.
|
|
19232
|
+
* Typically called from a dedicated module (e.g. `config/providers.ts`) imported by main.tsx.
|
|
19233
|
+
*
|
|
19234
|
+
* @param providers - At least `crud`; optionally `auth`, `storage`, `serverAuth`, `callable`
|
|
19235
|
+
* @throws Does not throw; logs a warning if called more than once (use `resetProviders()` in tests)
|
|
19236
|
+
*/
|
|
19237
|
+
declare function configureProviders(providers: DndevProviders): void;
|
|
19238
|
+
/**
|
|
19239
|
+
* Get a configured provider by key.
|
|
19240
|
+
*
|
|
19241
|
+
* @param key - The provider key ('crud', 'auth', 'storage', 'serverAuth', 'callable')
|
|
19242
|
+
* @returns The provider instance
|
|
19243
|
+
* @throws If provider not configured
|
|
19244
|
+
*/
|
|
19245
|
+
declare function getProvider<K extends keyof DndevProviders>(key: K): NonNullable<DndevProviders[K]>;
|
|
19246
|
+
/**
|
|
19247
|
+
* Check if a provider is configured.
|
|
19248
|
+
*
|
|
19249
|
+
* @param key - The provider key to check
|
|
19250
|
+
* @returns true if the provider is configured
|
|
19251
|
+
*/
|
|
19252
|
+
declare function hasProvider(key: keyof DndevProviders): boolean;
|
|
19253
|
+
/**
|
|
19254
|
+
* Reset all providers. **Only for testing.**
|
|
19255
|
+
*/
|
|
19256
|
+
declare function resetProviders(): void;
|
|
19257
|
+
|
|
18207
19258
|
/**
|
|
18208
19259
|
* @fileoverview Singleton utility functions
|
|
18209
19260
|
* @description Provides singleton pattern implementation for the framework
|
|
@@ -18461,6 +19512,134 @@ type FilterVisibleFieldsOptions = GetVisibleFieldsOptions;
|
|
|
18461
19512
|
*/
|
|
18462
19513
|
declare function filterVisibleFields<T extends Record<string, any>>(data: T | null | undefined, schema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>> | dndevSchema<any>, userRole: UserRole, options?: FilterVisibleFieldsOptions): Partial<T>;
|
|
18463
19514
|
|
|
19515
|
+
/**
|
|
19516
|
+
* @fileoverview Extract flat field names for card queries/schemas.
|
|
19517
|
+
*
|
|
19518
|
+
* @version 0.0.2
|
|
19519
|
+
* @since 0.0.1
|
|
19520
|
+
* @author AMBROISE PARK Consulting
|
|
19521
|
+
*/
|
|
19522
|
+
|
|
19523
|
+
/**
|
|
19524
|
+
* SSOT for card field resolution. Returns a flat, deduplicated field name list.
|
|
19525
|
+
*
|
|
19526
|
+
* Fallback chain: `listCardFields` → `listFields` → all entity field keys.
|
|
19527
|
+
*
|
|
19528
|
+
* - `string[]` → returned as-is
|
|
19529
|
+
* - `ListCardLayout` → all slot arrays merged (deduplicated)
|
|
19530
|
+
* - `undefined` → falls back to `listFields`, then `Object.keys(fields)`
|
|
19531
|
+
*/
|
|
19532
|
+
declare function getListCardFieldNames(entity: {
|
|
19533
|
+
listCardFields?: string[] | ListCardLayout;
|
|
19534
|
+
listFields?: string[];
|
|
19535
|
+
fields?: Record<string, unknown>;
|
|
19536
|
+
}): string[];
|
|
19537
|
+
|
|
19538
|
+
/**
|
|
19539
|
+
* @fileoverview Restricted visibility detection utility
|
|
19540
|
+
* @description Checks if any field in a schema has visibility more restrictive than 'guest'.
|
|
19541
|
+
* Used by CrudService to gate direct adapter access for non-public entities.
|
|
19542
|
+
*
|
|
19543
|
+
* @version 0.0.1
|
|
19544
|
+
* @since 0.0.1
|
|
19545
|
+
* @author AMBROISE PARK Consulting
|
|
19546
|
+
*/
|
|
19547
|
+
|
|
19548
|
+
/**
|
|
19549
|
+
* Returns true if any field in the schema declares a visibility level more
|
|
19550
|
+
* restrictive than 'guest' (i.e. 'user', 'owner', 'admin', 'super', 'technical', 'hidden').
|
|
19551
|
+
* Used by CrudService to gate direct adapter access for non-public entities.
|
|
19552
|
+
*
|
|
19553
|
+
* Handles wrapped schemas (pipe, nullable, optional, union) by traversing the
|
|
19554
|
+
* schema tree to find the underlying object entries. Returns false for schemas
|
|
19555
|
+
* that cannot be introspected (lazy, custom).
|
|
19556
|
+
*
|
|
19557
|
+
* @param schema - A Valibot schema or dndevSchema to inspect
|
|
19558
|
+
* @returns true if any field has restricted visibility
|
|
19559
|
+
*
|
|
19560
|
+
* @example
|
|
19561
|
+
* // Public entity — all fields guest visibility
|
|
19562
|
+
* hasRestrictedVisibility(PublicPostSchema) // false
|
|
19563
|
+
*
|
|
19564
|
+
* @example
|
|
19565
|
+
* // Private entity — email field is 'user' visibility
|
|
19566
|
+
* hasRestrictedVisibility(UserProfileSchema) // true
|
|
19567
|
+
*
|
|
19568
|
+
* @version 0.0.2
|
|
19569
|
+
* @since 0.0.1
|
|
19570
|
+
*/
|
|
19571
|
+
declare function hasRestrictedVisibility(schema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>> | dndevSchema<any>): boolean;
|
|
19572
|
+
|
|
19573
|
+
/**
|
|
19574
|
+
* @fileoverview AuthHardening
|
|
19575
|
+
* @description Brute-force lockout + session timeout enforcement.
|
|
19576
|
+
* Covers SOC2 CC6.1 (authentication), CC6.2 (account lockout).
|
|
19577
|
+
*
|
|
19578
|
+
* @version 0.0.1
|
|
19579
|
+
* @since 0.0.1
|
|
19580
|
+
* @author AMBROISE PARK Consulting
|
|
19581
|
+
*/
|
|
19582
|
+
|
|
19583
|
+
interface LockoutEntry {
|
|
19584
|
+
attempts: number;
|
|
19585
|
+
lastAttempt: number;
|
|
19586
|
+
/** null = not locked; number = locked until this timestamp */
|
|
19587
|
+
lockedUntil: number | null;
|
|
19588
|
+
}
|
|
19589
|
+
interface AuthHardeningConfig {
|
|
19590
|
+
/**
|
|
19591
|
+
* Max consecutive failed sign-in attempts before lockout.
|
|
19592
|
+
* @default 5
|
|
19593
|
+
*/
|
|
19594
|
+
maxAttempts?: number;
|
|
19595
|
+
/**
|
|
19596
|
+
* Lockout duration in milliseconds.
|
|
19597
|
+
* @default 900_000 (15 minutes)
|
|
19598
|
+
*/
|
|
19599
|
+
lockoutMs?: number;
|
|
19600
|
+
/**
|
|
19601
|
+
* Idle session timeout in milliseconds. After this period of inactivity,
|
|
19602
|
+
* the session is considered expired.
|
|
19603
|
+
* @default 28_800_000 (8 hours)
|
|
19604
|
+
*/
|
|
19605
|
+
sessionTimeoutMs?: number;
|
|
19606
|
+
}
|
|
19607
|
+
interface LockoutResult {
|
|
19608
|
+
attempts: number;
|
|
19609
|
+
locked: boolean;
|
|
19610
|
+
lockedUntil: number | null;
|
|
19611
|
+
}
|
|
19612
|
+
declare class AuthHardening implements AuthHardeningContext {
|
|
19613
|
+
private readonly store;
|
|
19614
|
+
private readonly maxAttempts;
|
|
19615
|
+
private readonly lockoutMs;
|
|
19616
|
+
/** Expose for auth adapters to enforce idle session timeout */
|
|
19617
|
+
readonly sessionTimeoutMs: number;
|
|
19618
|
+
constructor(config?: AuthHardeningConfig);
|
|
19619
|
+
/**
|
|
19620
|
+
* Call BEFORE a sign-in attempt.
|
|
19621
|
+
* @throws {Error} if the identifier is currently locked.
|
|
19622
|
+
*/
|
|
19623
|
+
checkLockout(identifier: string): void;
|
|
19624
|
+
/**
|
|
19625
|
+
* Call AFTER a failed sign-in attempt.
|
|
19626
|
+
* @returns current attempt count and whether the account is now locked.
|
|
19627
|
+
*/
|
|
19628
|
+
recordFailure(identifier: string): LockoutResult;
|
|
19629
|
+
private _evictExpired;
|
|
19630
|
+
/**
|
|
19631
|
+
* Call AFTER a successful sign-in — resets the failure counter.
|
|
19632
|
+
*/
|
|
19633
|
+
recordSuccess(identifier: string): void;
|
|
19634
|
+
/**
|
|
19635
|
+
* Check if a session has expired based on last activity timestamp.
|
|
19636
|
+
* @param lastActivityMs - `Date.now()` at last activity
|
|
19637
|
+
*/
|
|
19638
|
+
isSessionExpired(lastActivityMs: number): boolean;
|
|
19639
|
+
/** Current entry for an identifier (for audit logging). */
|
|
19640
|
+
getEntry(identifier: string): LockoutEntry | undefined;
|
|
19641
|
+
}
|
|
19642
|
+
|
|
18464
19643
|
/**
|
|
18465
19644
|
* License validation result
|
|
18466
19645
|
*/
|
|
@@ -18554,6 +19733,9 @@ declare function checkLicense(): LicenseValidationResult;
|
|
|
18554
19733
|
|
|
18555
19734
|
declare const index_d$4_AUTH_COMPUTED_KEYS: typeof AUTH_COMPUTED_KEYS;
|
|
18556
19735
|
declare const index_d$4_AUTH_STORE_KEYS: typeof AUTH_STORE_KEYS;
|
|
19736
|
+
type index_d$4_AuthHardening = AuthHardening;
|
|
19737
|
+
declare const index_d$4_AuthHardening: typeof AuthHardening;
|
|
19738
|
+
type index_d$4_AuthHardeningConfig = AuthHardeningConfig;
|
|
18557
19739
|
declare const index_d$4_BILLING_STORE_KEYS: typeof BILLING_STORE_KEYS;
|
|
18558
19740
|
type index_d$4_BaseStorageStrategy = BaseStorageStrategy;
|
|
18559
19741
|
declare const index_d$4_BaseStorageStrategy: typeof BaseStorageStrategy;
|
|
@@ -18601,6 +19783,7 @@ type index_d$4_IntersectionObserverOptions = IntersectionObserverOptions;
|
|
|
18601
19783
|
type index_d$4_LicenseValidationResult = LicenseValidationResult;
|
|
18602
19784
|
type index_d$4_LocalStorageStrategy = LocalStorageStrategy;
|
|
18603
19785
|
declare const index_d$4_LocalStorageStrategy: typeof LocalStorageStrategy;
|
|
19786
|
+
type index_d$4_LockoutResult = LockoutResult;
|
|
18604
19787
|
declare const index_d$4_OAUTH_STORE_KEYS: typeof OAUTH_STORE_KEYS;
|
|
18605
19788
|
type index_d$4_OS = OS;
|
|
18606
19789
|
type index_d$4_PlatformInfo = PlatformInfo;
|
|
@@ -18630,6 +19813,7 @@ declare const index_d$4_clearLocalStorage: typeof clearLocalStorage;
|
|
|
18630
19813
|
declare const index_d$4_clearPartnerCache: typeof clearPartnerCache;
|
|
18631
19814
|
declare const index_d$4_commonErrorCodeMappings: typeof commonErrorCodeMappings;
|
|
18632
19815
|
declare const index_d$4_compactToISOString: typeof compactToISOString;
|
|
19816
|
+
declare const index_d$4_configureProviders: typeof configureProviders;
|
|
18633
19817
|
declare const index_d$4_cooldown: typeof cooldown;
|
|
18634
19818
|
declare const index_d$4_createAsyncSingleton: typeof createAsyncSingleton;
|
|
18635
19819
|
declare const index_d$4_createErrorHandler: typeof createErrorHandler;
|
|
@@ -18653,7 +19837,7 @@ declare const index_d$4_detectPlatform: typeof detectPlatform;
|
|
|
18653
19837
|
declare const index_d$4_detectPlatformInfo: typeof detectPlatformInfo;
|
|
18654
19838
|
declare const index_d$4_detectStorageError: typeof detectStorageError;
|
|
18655
19839
|
declare const index_d$4_encryptData: typeof encryptData;
|
|
18656
|
-
declare const index_d$
|
|
19840
|
+
declare const index_d$4_ensureSpreadable: typeof ensureSpreadable;
|
|
18657
19841
|
declare const index_d$4_filterVisibleFields: typeof filterVisibleFields;
|
|
18658
19842
|
declare const index_d$4_formatCookieList: typeof formatCookieList;
|
|
18659
19843
|
declare const index_d$4_formatCurrency: typeof formatCurrency;
|
|
@@ -18688,6 +19872,7 @@ declare const index_d$4_getEnabledOAuthPartners: typeof getEnabledOAuthPartners;
|
|
|
18688
19872
|
declare const index_d$4_getEncryptionKey: typeof getEncryptionKey;
|
|
18689
19873
|
declare const index_d$4_getFeatureSummary: typeof getFeatureSummary;
|
|
18690
19874
|
declare const index_d$4_getI18nConfig: typeof getI18nConfig;
|
|
19875
|
+
declare const index_d$4_getListCardFieldNames: typeof getListCardFieldNames;
|
|
18691
19876
|
declare const index_d$4_getLocalStorageItem: typeof getLocalStorageItem;
|
|
18692
19877
|
declare const index_d$4_getNextEnvVar: typeof getNextEnvVar;
|
|
18693
19878
|
declare const index_d$4_getOAuthClientId: typeof getOAuthClientId;
|
|
@@ -18697,6 +19882,7 @@ declare const index_d$4_getOAuthRedirectUrl: typeof getOAuthRedirectUrl;
|
|
|
18697
19882
|
declare const index_d$4_getPartnerCacheStatus: typeof getPartnerCacheStatus;
|
|
18698
19883
|
declare const index_d$4_getPartnerConfig: typeof getPartnerConfig;
|
|
18699
19884
|
declare const index_d$4_getPlatformEnvVar: typeof getPlatformEnvVar;
|
|
19885
|
+
declare const index_d$4_getProvider: typeof getProvider;
|
|
18700
19886
|
declare const index_d$4_getProviderColor: typeof getProviderColor;
|
|
18701
19887
|
declare const index_d$4_getRoleFromClaims: typeof getRoleFromClaims;
|
|
18702
19888
|
declare const index_d$4_getRoutesConfig: typeof getRoutesConfig;
|
|
@@ -18714,9 +19900,10 @@ declare const index_d$4_getWeekFromISOString: typeof getWeekFromISOString;
|
|
|
18714
19900
|
declare const index_d$4_globalEmitter: typeof globalEmitter;
|
|
18715
19901
|
declare const index_d$4_handleError: typeof handleError;
|
|
18716
19902
|
declare const index_d$4_hasOptionalCookies: typeof hasOptionalCookies;
|
|
19903
|
+
declare const index_d$4_hasProvider: typeof hasProvider;
|
|
19904
|
+
declare const index_d$4_hasRestrictedVisibility: typeof hasRestrictedVisibility;
|
|
18717
19905
|
declare const index_d$4_hasRoleAccess: typeof hasRoleAccess;
|
|
18718
19906
|
declare const index_d$4_hasTierAccess: typeof hasTierAccess;
|
|
18719
|
-
declare const index_d$4_importEncryptionKey: typeof importEncryptionKey;
|
|
18720
19907
|
declare const index_d$4_initSentry: typeof initSentry;
|
|
18721
19908
|
declare const index_d$4_initializeConfig: typeof initializeConfig;
|
|
18722
19909
|
declare const index_d$4_initializePlatformDetection: typeof initializePlatformDetection;
|
|
@@ -18727,6 +19914,7 @@ declare const index_d$4_isConfigAvailable: typeof isConfigAvailable;
|
|
|
18727
19914
|
declare const index_d$4_isDev: typeof isDev;
|
|
18728
19915
|
declare const index_d$4_isElementInViewport: typeof isElementInViewport;
|
|
18729
19916
|
declare const index_d$4_isEmailVerificationRequired: typeof isEmailVerificationRequired;
|
|
19917
|
+
declare const index_d$4_isExpo: typeof isExpo;
|
|
18730
19918
|
declare const index_d$4_isFeatureAvailable: typeof isFeatureAvailable;
|
|
18731
19919
|
declare const index_d$4_isFieldVisible: typeof isFieldVisible;
|
|
18732
19920
|
declare const index_d$4_isIntersectionObserverSupported: typeof isIntersectionObserverSupported;
|
|
@@ -18735,6 +19923,7 @@ declare const index_d$4_isNextJs: typeof isNextJs;
|
|
|
18735
19923
|
declare const index_d$4_isOAuthPartnerEnabled: typeof isOAuthPartnerEnabled;
|
|
18736
19924
|
declare const index_d$4_isPKCESupported: typeof isPKCESupported;
|
|
18737
19925
|
declare const index_d$4_isPlatform: typeof isPlatform;
|
|
19926
|
+
declare const index_d$4_isReactNative: typeof isReactNative;
|
|
18738
19927
|
declare const index_d$4_isServer: typeof isServer;
|
|
18739
19928
|
declare const index_d$4_isTest: typeof isTest;
|
|
18740
19929
|
declare const index_d$4_isVite: typeof isVite;
|
|
@@ -18749,9 +19938,11 @@ declare const index_d$4_parseDateToNoonUTC: typeof parseDateToNoonUTC;
|
|
|
18749
19938
|
declare const index_d$4_redirectToExternalUrl: typeof redirectToExternalUrl;
|
|
18750
19939
|
declare const index_d$4_redirectToExternalUrlWithErrorHandling: typeof redirectToExternalUrlWithErrorHandling;
|
|
18751
19940
|
declare const index_d$4_removeLocalStorageItem: typeof removeLocalStorageItem;
|
|
19941
|
+
declare const index_d$4_resetProviders: typeof resetProviders;
|
|
18752
19942
|
declare const index_d$4_resolveAppConfig: typeof resolveAppConfig;
|
|
18753
19943
|
declare const index_d$4_safeLocalStorage: typeof safeLocalStorage;
|
|
18754
19944
|
declare const index_d$4_safeSessionStorage: typeof safeSessionStorage;
|
|
19945
|
+
declare const index_d$4_safeValidate: typeof safeValidate;
|
|
18755
19946
|
declare const index_d$4_setCookie: typeof setCookie;
|
|
18756
19947
|
declare const index_d$4_setLocalStorageItem: typeof setLocalStorageItem;
|
|
18757
19948
|
declare const index_d$4_shouldShowEmailVerification: typeof shouldShowEmailVerification;
|
|
@@ -18772,11 +19963,15 @@ declare const index_d$4_useStorageManager: typeof useStorageManager;
|
|
|
18772
19963
|
declare const index_d$4_validateCodeChallenge: typeof validateCodeChallenge;
|
|
18773
19964
|
declare const index_d$4_validateCodeVerifier: typeof validateCodeVerifier;
|
|
18774
19965
|
declare const index_d$4_validateLicenseKey: typeof validateLicenseKey;
|
|
19966
|
+
declare const index_d$4_validateWithSchema: typeof validateWithSchema;
|
|
18775
19967
|
declare const index_d$4_withErrorHandling: typeof withErrorHandling;
|
|
18776
19968
|
declare const index_d$4_withGracefulDegradation: typeof withGracefulDegradation;
|
|
19969
|
+
declare const index_d$4_wrapAuthError: typeof wrapAuthError;
|
|
19970
|
+
declare const index_d$4_wrapCrudError: typeof wrapCrudError;
|
|
19971
|
+
declare const index_d$4_wrapStorageError: typeof wrapStorageError;
|
|
18777
19972
|
declare namespace index_d$4 {
|
|
18778
|
-
export { index_d$4_AUTH_COMPUTED_KEYS as AUTH_COMPUTED_KEYS, index_d$4_AUTH_STORE_KEYS as AUTH_STORE_KEYS, index_d$4_BILLING_STORE_KEYS as BILLING_STORE_KEYS, index_d$4_BaseStorageStrategy as BaseStorageStrategy, index_d$4_CONSENT_LEVELS as CONSENT_LEVELS, index_d$4_CURRENCY_MAP as CURRENCY_MAP, index_d$4_ClaimsCache as ClaimsCache, index_d$4_DEFAULT_ERROR_MESSAGES as DEFAULT_ERROR_MESSAGES, index_d$4_DEGRADED_AUTH_API as DEGRADED_AUTH_API, index_d$4_DEGRADED_BILLING_API as DEGRADED_BILLING_API, index_d$4_DEGRADED_CRUD_API as DEGRADED_CRUD_API, index_d$4_DEGRADED_OAUTH_API as DEGRADED_OAUTH_API, index_d$4_DoNotDevError as DoNotDevError, index_d$4_EventEmitter as EventEmitter, index_d$4_FRAMEWORK_FEATURES as FRAMEWORK_FEATURES, index_d$4_HybridStorageStrategy as HybridStorageStrategy, index_d$4_LocalStorageStrategy as LocalStorageStrategy, index_d$4_OAUTH_STORE_KEYS as OAUTH_STORE_KEYS, index_d$4_SingletonManager as SingletonManager, index_d$4_StorageManager as StorageManager, index_d$4_TokenManager as TokenManager, index_d$4_ViewportHandler as ViewportHandler, index_d$4_areFeaturesAvailable as areFeaturesAvailable, index_d$4_canRedirectExternally as canRedirectExternally, index_d$4_captureError as captureError, index_d$4_captureErrorToSentry as captureErrorToSentry, index_d$4_captureMessage as captureMessage, index_d$4_checkLicense as checkLicense, index_d$4_cleanupSentry as cleanupSentry, index_d$4_clearFeatureCache as clearFeatureCache, index_d$4_clearLocalStorage as clearLocalStorage, index_d$4_clearPartnerCache as clearPartnerCache, index_d$4_commonErrorCodeMappings as commonErrorCodeMappings, index_d$4_compactToISOString as compactToISOString, index_d$4_cooldown as cooldown, index_d$4_createAsyncSingleton as createAsyncSingleton, index_d$4_createErrorHandler as createErrorHandler, index_d$4_createMetadata as createMetadata, index_d$4_createMethodProxy as createMethodProxy, index_d$4_createProvider as createProvider, index_d$4_createProviders as createProviders, index_d$4_createSingleton as createSingleton, index_d$4_createSingletonWithParams as createSingletonWithParams, index_d$4_createViewportHandler as createViewportHandler, index_d$4_debounce as debounce, index_d$4_debugPlatformDetection as debugPlatformDetection, index_d$4_decryptData as decryptData, index_d$4_delay as delay, index_d$4_deleteCookie as deleteCookie, index_d$4_detectBrowser as detectBrowser, index_d$4_detectErrorSource as detectErrorSource, index_d$4_detectFeatures as detectFeatures, index_d$4_detectLicenseKey as detectLicenseKey, index_d$4_detectPlatform as detectPlatform, index_d$4_detectPlatformInfo as detectPlatformInfo, index_d$4_detectStorageError as detectStorageError, index_d$4_encryptData as encryptData, index_d$
|
|
18779
|
-
export type { index_d$4_BrowserEngine as BrowserEngine, index_d$4_BrowserInfo as BrowserInfo, index_d$4_BrowserType as BrowserType, index_d$4_Claims as Claims, index_d$4_ClaimsCacheOptions as ClaimsCacheOptions, index_d$4_ClaimsCacheResult as ClaimsCacheResult, index_d$4_CleanupFunction as CleanupFunction, index_d$4_CompatibilityReport as CompatibilityReport, index_d$4_ConsentLevel as ConsentLevel, index_d$4_CookieInfo as CookieInfo, index_d$4_CurrencyEntry as CurrencyEntry, index_d$4_DateFormatOptions as DateFormatOptions, index_d$4_DateFormatPreset as DateFormatPreset, index_d$4_ErrorHandlerConfig as ErrorHandlerConfig, index_d$4_ErrorHandlerFunction as ErrorHandlerFunction, index_d$4_EventListener as EventListener, index_d$4_FeatureAvailability as FeatureAvailability, index_d$4_FeatureSupport as FeatureSupport, index_d$4_FilterVisibleFieldsOptions as FilterVisibleFieldsOptions, index_d$4_FrameworkFeature as FrameworkFeature, index_d$4_GetVisibleFieldsOptions as GetVisibleFieldsOptions, index_d$4_HandleErrorOptions as HandleErrorOptions, index_d$4_IStorageManager as IStorageManager, index_d$4_IntersectionObserverCallback as IntersectionObserverCallback, index_d$4_IntersectionObserverOptions as IntersectionObserverOptions, index_d$4_LicenseValidationResult as LicenseValidationResult, index_d$4_OS as OS, index_d$4_PlatformInfo as PlatformInfo, index_d$4_StorageError as StorageError, index_d$4_StorageErrorType as StorageErrorType, index_d$4_StorageOptions as StorageOptions, index_d$4_TokenManagerOptions as TokenManagerOptions, index_d$4_ViewportDetectionOptions as ViewportDetectionOptions, index_d$4_ViewportDetectionResult as ViewportDetectionResult };
|
|
19973
|
+
export { index_d$4_AUTH_COMPUTED_KEYS as AUTH_COMPUTED_KEYS, index_d$4_AUTH_STORE_KEYS as AUTH_STORE_KEYS, index_d$4_AuthHardening as AuthHardening, index_d$4_BILLING_STORE_KEYS as BILLING_STORE_KEYS, index_d$4_BaseStorageStrategy as BaseStorageStrategy, index_d$4_CONSENT_LEVELS as CONSENT_LEVELS, index_d$4_CURRENCY_MAP as CURRENCY_MAP, index_d$4_ClaimsCache as ClaimsCache, index_d$4_DEFAULT_ERROR_MESSAGES as DEFAULT_ERROR_MESSAGES, index_d$4_DEGRADED_AUTH_API as DEGRADED_AUTH_API, index_d$4_DEGRADED_BILLING_API as DEGRADED_BILLING_API, index_d$4_DEGRADED_CRUD_API as DEGRADED_CRUD_API, index_d$4_DEGRADED_OAUTH_API as DEGRADED_OAUTH_API, index_d$4_DoNotDevError as DoNotDevError, index_d$4_EventEmitter as EventEmitter, index_d$4_FRAMEWORK_FEATURES as FRAMEWORK_FEATURES, index_d$4_HybridStorageStrategy as HybridStorageStrategy, index_d$4_LocalStorageStrategy as LocalStorageStrategy, index_d$4_OAUTH_STORE_KEYS as OAUTH_STORE_KEYS, index_d$4_SingletonManager as SingletonManager, index_d$4_StorageManager as StorageManager, index_d$4_TokenManager as TokenManager, index_d$4_ViewportHandler as ViewportHandler, index_d$4_areFeaturesAvailable as areFeaturesAvailable, index_d$4_canRedirectExternally as canRedirectExternally, index_d$4_captureError as captureError, index_d$4_captureErrorToSentry as captureErrorToSentry, index_d$4_captureMessage as captureMessage, index_d$4_checkLicense as checkLicense, index_d$4_cleanupSentry as cleanupSentry, index_d$4_clearFeatureCache as clearFeatureCache, index_d$4_clearLocalStorage as clearLocalStorage, index_d$4_clearPartnerCache as clearPartnerCache, index_d$4_commonErrorCodeMappings as commonErrorCodeMappings, index_d$4_compactToISOString as compactToISOString, index_d$4_configureProviders as configureProviders, index_d$4_cooldown as cooldown, index_d$4_createAsyncSingleton as createAsyncSingleton, index_d$4_createErrorHandler as createErrorHandler, index_d$4_createMetadata as createMetadata, index_d$4_createMethodProxy as createMethodProxy, index_d$4_createProvider as createProvider, index_d$4_createProviders as createProviders, index_d$4_createSingleton as createSingleton, index_d$4_createSingletonWithParams as createSingletonWithParams, index_d$4_createViewportHandler as createViewportHandler, index_d$4_debounce as debounce, index_d$4_debugPlatformDetection as debugPlatformDetection, index_d$4_decryptData as decryptData, index_d$4_delay as delay, index_d$4_deleteCookie as deleteCookie, index_d$4_detectBrowser as detectBrowser, index_d$4_detectErrorSource as detectErrorSource, index_d$4_detectFeatures as detectFeatures, index_d$4_detectLicenseKey as detectLicenseKey, index_d$4_detectPlatform as detectPlatform, index_d$4_detectPlatformInfo as detectPlatformInfo, index_d$4_detectStorageError as detectStorageError, index_d$4_encryptData as encryptData, index_d$4_ensureSpreadable as ensureSpreadable, index_d$4_filterVisibleFields as filterVisibleFields, index_d$4_formatCookieList as formatCookieList, index_d$4_formatCurrency as formatCurrency, index_d$4_formatDate as formatDate, index_d$4_formatRelativeTime as formatRelativeTime, index_d$4_generateCodeChallenge as generateCodeChallenge, index_d$4_generateCodeVerifier as generateCodeVerifier, index_d$4_generateCompatibilityReport as generateCompatibilityReport, index_d$4_generateEncryptionKey as generateEncryptionKey, index_d$4_generateFirestoreRuleCondition as generateFirestoreRuleCondition, index_d$4_generatePKCEPair as generatePKCEPair, index_d$4_getActiveCookies as getActiveCookies, index_d$4_getAppShortName as getAppShortName, index_d$4_getAssetsConfig as getAssetsConfig, index_d$4_getAuthDomain as getAuthDomain, index_d$4_getAuthPartnerConfig as getAuthPartnerConfig, index_d$4_getAuthPartnerIdByFirebaseId as getAuthPartnerIdByFirebaseId, index_d$4_getAvailableFeatures as getAvailableFeatures, index_d$4_getBrowserRecommendations as getBrowserRecommendations, index_d$4_getConfigSection as getConfigSection, index_d$4_getConfigSource as getConfigSource, index_d$4_getCookie as getCookie, index_d$4_getCookieExamples as getCookieExamples, index_d$4_getCookiesByCategory as getCookiesByCategory, index_d$4_getCurrencyLocale as getCurrencyLocale, index_d$4_getCurrencySymbol as getCurrencySymbol, index_d$4_getCurrentOrigin as getCurrentOrigin, index_d$4_getCurrentTimestamp as getCurrentTimestamp, index_d$4_getDndevConfig as getDndevConfig, index_d$4_getEnabledAuthPartners as getEnabledAuthPartners, index_d$4_getEnabledOAuthPartners as getEnabledOAuthPartners, index_d$4_getEncryptionKey as getEncryptionKey, index_d$4_getFeatureSummary as getFeatureSummary, index_d$4_getI18nConfig as getI18nConfig, index_d$4_getListCardFieldNames as getListCardFieldNames, index_d$4_getLocalStorageItem as getLocalStorageItem, index_d$4_getNextEnvVar as getNextEnvVar, index_d$4_getOAuthClientId as getOAuthClientId, index_d$4_getOAuthPartnerConfig as getOAuthPartnerConfig, index_d$4_getOAuthRedirectUri as getOAuthRedirectUri, index_d$4_getOAuthRedirectUrl as getOAuthRedirectUrl, index_d$4_getPartnerCacheStatus as getPartnerCacheStatus, index_d$4_getPartnerConfig as getPartnerConfig, index_d$4_getPlatformEnvVar as getPlatformEnvVar, index_d$4_getProvider as getProvider, index_d$4_getProviderColor as getProviderColor, index_d$4_getRoleFromClaims as getRoleFromClaims, index_d$4_getRoutesConfig as getRoutesConfig, index_d$4_getStorageManager as getStorageManager, index_d$4_getThemesConfig as getThemesConfig, index_d$4_getTokenManager as getTokenManager, index_d$4_getValidAuthPartnerConfig as getValidAuthPartnerConfig, index_d$4_getValidAuthPartnerIds as getValidAuthPartnerIds, index_d$4_getValidOAuthPartnerConfig as getValidOAuthPartnerConfig, index_d$4_getValidOAuthPartnerIds as getValidOAuthPartnerIds, index_d$4_getVisibleFields as getVisibleFields, index_d$4_getVisibleItems as getVisibleItems, index_d$4_getViteEnvVar as getViteEnvVar, index_d$4_getWeekFromISOString as getWeekFromISOString, index_d$4_globalEmitter as globalEmitter, index_d$4_handleError as handleError, index_d$4_hasOptionalCookies as hasOptionalCookies, index_d$4_hasProvider as hasProvider, index_d$4_hasRestrictedVisibility as hasRestrictedVisibility, index_d$4_hasRoleAccess as hasRoleAccess, index_d$4_hasTierAccess as hasTierAccess, index_d$4_initSentry as initSentry, index_d$4_initializeConfig as initializeConfig, index_d$4_initializePlatformDetection as initializePlatformDetection, index_d$4_isAuthPartnerEnabled as isAuthPartnerEnabled, index_d$4_isClient as isClient, index_d$4_isCompactDateString as isCompactDateString, index_d$4_isConfigAvailable as isConfigAvailable, index_d$4_isDev as isDev, index_d$4_isElementInViewport as isElementInViewport, index_d$4_isEmailVerificationRequired as isEmailVerificationRequired, index_d$4_isExpo as isExpo, index_d$4_isFeatureAvailable as isFeatureAvailable, index_d$4_isFieldVisible as isFieldVisible, index_d$4_isIntersectionObserverSupported as isIntersectionObserverSupported, index_d$4_isLocalStorageAvailable as isLocalStorageAvailable, index_d$4_isNextJs as isNextJs, index_d$4_isOAuthPartnerEnabled as isOAuthPartnerEnabled, index_d$4_isPKCESupported as isPKCESupported, index_d$4_isPlatform as isPlatform, index_d$4_isReactNative as isReactNative, index_d$4_isServer as isServer, index_d$4_isTest as isTest, index_d$4_isVite as isVite, index_d$4_isoToCompactString as isoToCompactString, index_d$4_lazyImport as lazyImport, index_d$4_mapToDoNotDevError as mapToDoNotDevError, index_d$4_maybeTranslate as maybeTranslate, index_d$4_normalizeToISOString as normalizeToISOString, index_d$4_observeElement as observeElement, index_d$4_parseDate as parseDate, index_d$4_parseDateToNoonUTC as parseDateToNoonUTC, index_d$4_redirectToExternalUrl as redirectToExternalUrl, index_d$4_redirectToExternalUrlWithErrorHandling as redirectToExternalUrlWithErrorHandling, index_d$4_removeLocalStorageItem as removeLocalStorageItem, index_d$4_resetProviders as resetProviders, index_d$4_resolveAppConfig as resolveAppConfig, index_d$4_safeLocalStorage as safeLocalStorage, index_d$4_safeSessionStorage as safeSessionStorage, index_d$4_safeValidate as safeValidate, index_d$4_setCookie as setCookie, index_d$4_setLocalStorageItem as setLocalStorageItem, index_d$4_shouldShowEmailVerification as shouldShowEmailVerification, index_d$4_showNotification as showNotification, index_d$4_supportsFeature as supportsFeature, index_d$4_throttle as throttle, index_d$4_timestampToISOString as timestampToISOString, index_d$4_timingUtils as timingUtils, index_d$4_toDateOnly as toDateOnly, index_d$4_toISOString as toISOString, index_d$4_translateArray as translateArray, index_d$4_translateArrayRange as translateArrayRange, index_d$4_translateArrayWithIndices as translateArrayWithIndices, index_d$4_translateObjectArray as translateObjectArray, index_d$4_updateMetadata as updateMetadata, index_d$4_useSafeContext as useSafeContext, index_d$4_useStorageManager as useStorageManager, index_d$4_validateCodeChallenge as validateCodeChallenge, index_d$4_validateCodeVerifier as validateCodeVerifier, index_d$4_validateLicenseKey as validateLicenseKey, index_d$4_validateWithSchema as validateWithSchema, index_d$4_withErrorHandling as withErrorHandling, index_d$4_withGracefulDegradation as withGracefulDegradation, index_d$4_wrapAuthError as wrapAuthError, index_d$4_wrapCrudError as wrapCrudError, index_d$4_wrapStorageError as wrapStorageError };
|
|
19974
|
+
export type { index_d$4_AuthHardeningConfig as AuthHardeningConfig, index_d$4_BrowserEngine as BrowserEngine, index_d$4_BrowserInfo as BrowserInfo, index_d$4_BrowserType as BrowserType, index_d$4_Claims as Claims, index_d$4_ClaimsCacheOptions as ClaimsCacheOptions, index_d$4_ClaimsCacheResult as ClaimsCacheResult, index_d$4_CleanupFunction as CleanupFunction, index_d$4_CompatibilityReport as CompatibilityReport, index_d$4_ConsentLevel as ConsentLevel, index_d$4_CookieInfo as CookieInfo, index_d$4_CurrencyEntry as CurrencyEntry, index_d$4_DateFormatOptions as DateFormatOptions, index_d$4_DateFormatPreset as DateFormatPreset, index_d$4_ErrorHandlerConfig as ErrorHandlerConfig, index_d$4_ErrorHandlerFunction as ErrorHandlerFunction, index_d$4_EventListener as EventListener, index_d$4_FeatureAvailability as FeatureAvailability, index_d$4_FeatureSupport as FeatureSupport, index_d$4_FilterVisibleFieldsOptions as FilterVisibleFieldsOptions, index_d$4_FrameworkFeature as FrameworkFeature, index_d$4_GetVisibleFieldsOptions as GetVisibleFieldsOptions, index_d$4_HandleErrorOptions as HandleErrorOptions, index_d$4_IStorageManager as IStorageManager, index_d$4_IntersectionObserverCallback as IntersectionObserverCallback, index_d$4_IntersectionObserverOptions as IntersectionObserverOptions, index_d$4_LicenseValidationResult as LicenseValidationResult, index_d$4_LockoutResult as LockoutResult, index_d$4_OS as OS, index_d$4_PlatformInfo as PlatformInfo, index_d$4_StorageError as StorageError, index_d$4_StorageErrorType as StorageErrorType, index_d$4_StorageOptions as StorageOptions, index_d$4_TokenManagerOptions as TokenManagerOptions, index_d$4_ViewportDetectionOptions as ViewportDetectionOptions, index_d$4_ViewportDetectionResult as ViewportDetectionResult };
|
|
18780
19975
|
}
|
|
18781
19976
|
|
|
18782
19977
|
/**
|
|
@@ -18788,7 +19983,7 @@ declare namespace index_d$4 {
|
|
|
18788
19983
|
*/
|
|
18789
19984
|
interface DoNotDevStore extends BaseStoreActions, BaseStoreState {
|
|
18790
19985
|
readonly isReady: boolean;
|
|
18791
|
-
initialize(data?:
|
|
19986
|
+
initialize(data?: Record<string, unknown>): Promise<boolean>;
|
|
18792
19987
|
cleanup?(): void;
|
|
18793
19988
|
}
|
|
18794
19989
|
/**
|
|
@@ -18800,8 +19995,8 @@ interface DoNotDevStore extends BaseStoreActions, BaseStoreState {
|
|
|
18800
19995
|
*/
|
|
18801
19996
|
interface DoNotDevStoreConfig<T> {
|
|
18802
19997
|
name: string;
|
|
18803
|
-
createStore: (set: (partial: Partial<T & DoNotDevStore> | ((state: T & DoNotDevStore) => Partial<T & DoNotDevStore>)) => void, get: () => T & DoNotDevStore, api:
|
|
18804
|
-
initialize?: (data?:
|
|
19998
|
+
createStore: (set: (partial: Partial<T & DoNotDevStore> | ((state: T & DoNotDevStore) => Partial<T & DoNotDevStore>)) => void, get: () => T & DoNotDevStore, api: StoreApi$1<T & DoNotDevStore>) => T;
|
|
19999
|
+
initialize?: (data?: Record<string, unknown>) => Promise<boolean>;
|
|
18805
20000
|
cleanup?: () => void;
|
|
18806
20001
|
/**
|
|
18807
20002
|
* Optional persist configuration
|
|
@@ -18817,6 +20012,13 @@ interface DoNotDevStoreConfig<T> {
|
|
|
18817
20012
|
/**
|
|
18818
20013
|
* Creates a DoNotDev store with framework conventions
|
|
18819
20014
|
*
|
|
20015
|
+
* @remarks
|
|
20016
|
+
* The `Record<string, any>` constraint on `T` is intentional. Using `unknown` instead of `any`
|
|
20017
|
+
* breaks all consumer store definitions because TypeScript's mapped types and index signatures
|
|
20018
|
+
* are incompatible with `unknown` in this position. Specifically, store state types use index
|
|
20019
|
+
* signatures (e.g., `[key: string]: ...`) that require `any` to satisfy the constraint.
|
|
20020
|
+
* This is a known TypeScript limitation — not a code quality issue.
|
|
20021
|
+
*
|
|
18820
20022
|
* @version 0.0.1
|
|
18821
20023
|
* @since 0.0.1
|
|
18822
20024
|
* @author AMBROISE PARK Consulting
|
|
@@ -18829,7 +20031,7 @@ declare function createDoNotDevStore<T extends Record<string, any>>(config: DoNo
|
|
|
18829
20031
|
* @since 0.0.1
|
|
18830
20032
|
* @author AMBROISE PARK Consulting
|
|
18831
20033
|
*/
|
|
18832
|
-
declare function isDoNotDevStore(store:
|
|
20034
|
+
declare function isDoNotDevStore(store: unknown): store is DoNotDevStore;
|
|
18833
20035
|
/**
|
|
18834
20036
|
* Extract the state type from a DoNotDev store
|
|
18835
20037
|
*
|
|
@@ -18963,50 +20165,6 @@ declare const useAbortControllerStore: zustand.UseBoundStore<zustand.StoreApi<Ab
|
|
|
18963
20165
|
* @author AMBROISE PARK Consulting
|
|
18964
20166
|
*/
|
|
18965
20167
|
declare const useConsentStore: zustand.UseBoundStore<zustand.StoreApi<ConsentAPI & DoNotDevStore>>;
|
|
18966
|
-
/**
|
|
18967
|
-
* Hook for accessing consent store
|
|
18968
|
-
*
|
|
18969
|
-
* @version 0.0.1
|
|
18970
|
-
* @since 0.0.1
|
|
18971
|
-
* @author AMBROISE PARK Consulting
|
|
18972
|
-
*/
|
|
18973
|
-
/**
|
|
18974
|
-
* React hook for consent with property-based access
|
|
18975
|
-
*
|
|
18976
|
-
* Single entry point for all consent operations.
|
|
18977
|
-
* Follows the same pattern as useAuth and useStripeBilling.
|
|
18978
|
-
*
|
|
18979
|
-
* **Property-based access:**
|
|
18980
|
-
* ```typescript
|
|
18981
|
-
* // ✅ State from store (reactive, re-renders on change)
|
|
18982
|
-
* const hasConsented = useConsent('hasConsented');
|
|
18983
|
-
* const categories = useConsent('categories');
|
|
18984
|
-
* const showBanner = useConsent('showBanner');
|
|
18985
|
-
*
|
|
18986
|
-
* // ✅ Methods from store (stable, never re-renders)
|
|
18987
|
-
* const acceptAll = useConsent('acceptAll');
|
|
18988
|
-
* const showCookieBanner = useConsent('showCookieBanner');
|
|
18989
|
-
* ```
|
|
18990
|
-
*
|
|
18991
|
-
* @template K - The property key from ConsentAPI
|
|
18992
|
-
* @param key - Property name to access
|
|
18993
|
-
* @returns The value of the specified property
|
|
18994
|
-
*
|
|
18995
|
-
* @example
|
|
18996
|
-
* ```typescript
|
|
18997
|
-
* // Get consent state (re-renders when consent changes)
|
|
18998
|
-
* const hasConsented = useConsent('hasConsented');
|
|
18999
|
-
* if (!hasConsented) return <ConsentBanner />;
|
|
19000
|
-
*
|
|
19001
|
-
* // Get show banner method (stable, never re-renders)
|
|
19002
|
-
* const showBanner = useConsent('showCookieBanner');
|
|
19003
|
-
* <button onClick={showBanner}>Cookie Settings</button>
|
|
19004
|
-
* ```
|
|
19005
|
-
*
|
|
19006
|
-
* @version 0.0.1
|
|
19007
|
-
* @since 0.0.1
|
|
19008
|
-
* @author AMBROISE PARK Consulting
|
|
19009
|
-
*/
|
|
19010
20168
|
declare function useConsent<K extends keyof ConsentAPI>(key: K): ConsentAPI[K];
|
|
19011
20169
|
/**
|
|
19012
20170
|
* Hook to check if consent store is ready
|
|
@@ -19225,7 +20383,7 @@ interface NavigationCache {
|
|
|
19225
20383
|
routes: NavigationRoute[];
|
|
19226
20384
|
}>;
|
|
19227
20385
|
/** Route manifest metadata */
|
|
19228
|
-
manifest:
|
|
20386
|
+
manifest: Record<string, unknown> | null;
|
|
19229
20387
|
/** Last cache update timestamp */
|
|
19230
20388
|
lastUpdated: number;
|
|
19231
20389
|
}
|
|
@@ -19256,7 +20414,7 @@ interface NavigationState {
|
|
|
19256
20414
|
routes: NavigationRoute[];
|
|
19257
20415
|
}>;
|
|
19258
20416
|
/** Get route manifest metadata */
|
|
19259
|
-
getManifest: () =>
|
|
20417
|
+
getManifest: () => Record<string, unknown> | null;
|
|
19260
20418
|
/** Toggle favorite status for a route */
|
|
19261
20419
|
toggleFavorite: (path: string) => void;
|
|
19262
20420
|
/** Check if a route is favorited */
|
|
@@ -19554,7 +20712,7 @@ interface BreakpointActions {
|
|
|
19554
20712
|
*/
|
|
19555
20713
|
interface LayoutActions {
|
|
19556
20714
|
/** Initialize layout with preset and app config */
|
|
19557
|
-
initializeLayout: (preset: LayoutPreset, app?:
|
|
20715
|
+
initializeLayout: (preset: LayoutPreset, app?: AppMetadata) => Promise<void>;
|
|
19558
20716
|
/** Set the selected layout preset (validates input, keeps current if invalid) */
|
|
19559
20717
|
setLayoutPreset: (preset: string | LayoutPreset) => void;
|
|
19560
20718
|
/** Set layout loading state */
|
|
@@ -19923,7 +21081,7 @@ declare function getSchemaType(field: EntityField<FieldType>): v.BaseSchema<unkn
|
|
|
19923
21081
|
* @since 0.0.1
|
|
19924
21082
|
* @author AMBROISE PARK Consulting
|
|
19925
21083
|
*/
|
|
19926
|
-
declare function validateDates(data: Record<string,
|
|
21084
|
+
declare function validateDates(data: Record<string, unknown> | unknown[], currentPath?: string): void;
|
|
19927
21085
|
|
|
19928
21086
|
/**
|
|
19929
21087
|
* Validates a document against the schema, including uniqueness and custom validations.
|
|
@@ -19937,7 +21095,7 @@ declare function validateDates(data: Record<string, any> | any[], currentPath?:
|
|
|
19937
21095
|
* @since 0.0.1
|
|
19938
21096
|
* @author AMBROISE PARK Consulting
|
|
19939
21097
|
*/
|
|
19940
|
-
declare function validateDocument<T>(schema: dndevSchema<T>, data: Record<string,
|
|
21098
|
+
declare function validateDocument<T>(schema: dndevSchema<T>, data: Record<string, unknown>, operation: 'create' | 'update', currentDocId?: string): Promise<void>;
|
|
19941
21099
|
|
|
19942
21100
|
/**
|
|
19943
21101
|
* @fileoverview Unique field validation utility
|
|
@@ -19968,7 +21126,7 @@ declare function registerUniqueConstraintValidator(validator: UniqueConstraintVa
|
|
|
19968
21126
|
* @since 0.0.1
|
|
19969
21127
|
* @author AMBROISE PARK Consulting
|
|
19970
21128
|
*/
|
|
19971
|
-
declare function validateUniqueFields<T>(schema: dndevSchema<T>, data: Record<string,
|
|
21129
|
+
declare function validateUniqueFields<T>(schema: dndevSchema<T>, data: Record<string, unknown>, currentDocId?: string): Promise<void>;
|
|
19972
21130
|
|
|
19973
21131
|
/**
|
|
19974
21132
|
* @fileoverview Schema Utilities
|
|
@@ -23219,7 +24377,6 @@ declare const index_d$1_QueryClientProvider: typeof QueryClientProvider;
|
|
|
23219
24377
|
type index_d$1_QueryClientProviderProps = QueryClientProviderProps;
|
|
23220
24378
|
type index_d$1_QueryFunction<T = unknown, TQueryKey extends QueryKey = QueryKey, TPageParam = never> = QueryFunction<T, TQueryKey, TPageParam>;
|
|
23221
24379
|
type index_d$1_QueryKey = QueryKey;
|
|
23222
|
-
type index_d$1_QueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = never> = QueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>;
|
|
23223
24380
|
declare const index_d$1_QueryProviders: typeof QueryProviders;
|
|
23224
24381
|
type index_d$1_UseClickOutsideOptions = UseClickOutsideOptions;
|
|
23225
24382
|
type index_d$1_UseClickOutsideReturn = UseClickOutsideReturn;
|
|
@@ -23261,7 +24418,7 @@ declare const index_d$1_useSeoConfig: typeof useSeoConfig;
|
|
|
23261
24418
|
declare const index_d$1_useViewportVisibility: typeof useViewportVisibility;
|
|
23262
24419
|
declare namespace index_d$1 {
|
|
23263
24420
|
export { index_d$1_AppConfigContext as AppConfigContext, index_d$1_AppConfigProvider as AppConfigProvider, index_d$1_QueryClient as QueryClient, index_d$1_QueryClientProvider as QueryClientProvider, index_d$1_QueryProviders as QueryProviders, index_d$1_getQueryClient as getQueryClient, index_d$1_queryClient as queryClient, index_d$1_useAppConfig as useAppConfig, index_d$1_useAuthConfig as useAuthConfig, index_d$1_useBreathingTimer as useBreathingTimer, index_d$1_useClickOutside as useClickOutside, index_d$1_useDebounce as useDebounce, index_d$1_useEventListener as useEventListener, index_d$1_useFaviconConfig as useFaviconConfig, index_d$1_useFeaturesConfig as useFeaturesConfig, index_d$1_useIntersectionObserver as useIntersectionObserver, index_d$1_useIsClient as useIsClient, index_d$1_useLocalStorage as useLocalStorage, index_d$1_useMutation as useMutation, index_d$1_useQuery as useQuery, index_d$1_useQueryClient as useQueryClient, index_d$1_useScriptLoader as useScriptLoader, index_d$1_useSeoConfig as useSeoConfig, index_d$1_useViewportVisibility as useViewportVisibility };
|
|
23264
|
-
export type { index_d$1_AppConfigProviderProps as AppConfigProviderProps, index_d$1_MutationOptions as MutationOptions, index_d$1_QueryClientProviderProps as QueryClientProviderProps, index_d$1_QueryFunction as QueryFunction, index_d$1_QueryKey as QueryKey, index_d$
|
|
24421
|
+
export type { index_d$1_AppConfigProviderProps as AppConfigProviderProps, index_d$1_MutationOptions as MutationOptions, index_d$1_QueryClientProviderProps as QueryClientProviderProps, index_d$1_QueryFunction as QueryFunction, index_d$1_QueryKey as QueryKey, index_d$1_UseClickOutsideOptions as UseClickOutsideOptions, index_d$1_UseClickOutsideReturn as UseClickOutsideReturn, index_d$1_UseDebounceOptions as UseDebounceOptions, index_d$1_UseEventListenerOptions as UseEventListenerOptions, index_d$1_UseEventListenerReturn as UseEventListenerReturn, index_d$1_UseIntersectionObserverOptions as UseIntersectionObserverOptions, index_d$1_UseIntersectionObserverReturn as UseIntersectionObserverReturn, index_d$1_UseLocalStorageOptions as UseLocalStorageOptions, index_d$1_UseLocalStorageReturn as UseLocalStorageReturn, index_d$1_UseMutationOptions as UseMutationOptions, index_d$1_UseMutationOptionsWithErrorHandling as UseMutationOptionsWithErrorHandling, index_d$1_UseMutationResult as UseMutationResult, index_d$1_UseQueryOptions as UseQueryOptions, index_d$1_UseQueryOptionsWithErrorHandling as UseQueryOptionsWithErrorHandling, index_d$1_UseQueryResult as UseQueryResult, index_d$1_UseScriptLoaderOptions as UseScriptLoaderOptions, index_d$1_UseScriptLoaderReturn as UseScriptLoaderReturn, index_d$1_UseViewportVisibilityOptions as UseViewportVisibilityOptions, index_d$1_UseViewportVisibilityReturn as UseViewportVisibilityReturn };
|
|
23265
24422
|
}
|
|
23266
24423
|
|
|
23267
24424
|
/**
|
|
@@ -23947,5 +25104,5 @@ declare namespace index_d {
|
|
|
23947
25104
|
export type { index_d_CountryData as CountryData, index_d_DoNotDevTransProps as DoNotDevTransProps, index_d_FAQSectionProps as FAQSectionProps, index_d_LanguageData as LanguageData, index_d_TransTag as TransTag };
|
|
23948
25105
|
}
|
|
23949
25106
|
|
|
23950
|
-
export { AUTH_COMPUTED_KEYS, AUTH_EVENTS, AUTH_PARTNERS, AUTH_PARTNER_STATE, AUTH_STORE_KEYS, AppConfigContext, AppConfigProvider, AuthUserSchema, BACKEND_GENERATED_FIELD_NAMES, BILLING_EVENTS, BILLING_STORE_KEYS, BREAKPOINT_RANGES, BREAKPOINT_THRESHOLDS, BaseStorageStrategy, COMMON_TIER_CONFIGS, CONFIDENCE_LEVELS, CONSENT_CATEGORY, CONSENT_LEVELS, CONTEXTS, COUNTRIES, CURRENCY_MAP, CheckoutSessionMetadataSchema, ClaimsCache, CreateCheckoutSessionRequestSchema, CreateCheckoutSessionResponseSchema, CustomClaimsSchema, DEFAULT_ENTITY_ACCESS, DEFAULT_ERROR_MESSAGES, DEFAULT_LAYOUT_PRESET, DEFAULT_STATUS_OPTIONS, DEFAULT_STATUS_VALUE, DEFAULT_SUBSCRIPTION, DEGRADED_AUTH_API, DEGRADED_BILLING_API, DEGRADED_CRUD_API, DEGRADED_OAUTH_API, DENSITY, DoNotDevError, ENVIRONMENTS, EntityHookError, EventEmitter, FAQSection, FEATURES, FEATURE_CONSENT_MATRIX, FEATURE_STATUS, FIREBASE_ERROR_MAP, FIRESTORE_ID_PATTERN, FRAMEWORK_FEATURES, Flag, GITHUB_PERMISSION_LEVELS, HIDDEN_STATUSES, index_d$1 as Hooks, HybridStorageStrategy, index_d as I18n, LANGUAGES, LAYOUT_PRESET, LanguageFAB, LanguageSelector, LanguageToggleGroup, LocalStorageStrategy, OAUTH_EVENTS, OAUTH_PARTNERS, OAUTH_STORE_KEYS, PARTNER_ICONS, PAYLOAD_EVENTS, PERMISSIONS, PLATFORMS, PWA_ASSET_TYPES, PWA_DISPLAY_MODES, ProductDeclarationSchema, ProductDeclarationsSchema, QueryClient, QueryClientProvider, QueryProviders, ROUTE_SOURCES, STORAGE_SCOPES, STORAGE_TYPES, STRIPE_EVENTS, STRIPE_MODES, SUBSCRIPTION_DURATIONS, SUBSCRIPTION_STATUS, SUBSCRIPTION_TIERS, index_d$2 as Schemas, SingletonManager, StorageManager, index_d$3 as Stores, StripeBackConfigSchema, StripeFrontConfigSchema, StripePaymentSchema, StripeSubscriptionSchema, SubscriptionClaimsSchema, SubscriptionDataSchema, TECHNICAL_FIELD_NAMES, TRANS_TAGS, TokenManager, Trans, TranslatedText, index_d$5 as Types, USER_ROLES, UserSubscriptionSchema, index_d$4 as Utils, ViewportHandler, WebhookEventSchema, addressSchema, applyTheme, areFeaturesAvailable, arraySchema, baseFields, booleanSchema, buildRoutePath, canRedirectExternally, captureError, captureErrorToSentry, captureMessage, checkGitHubAccessSchema, checkLicense, cleanupSentry, clearFeatureCache, clearLocalStorage, clearPartnerCache, clearSchemaGenerators, clearScopeProviders, commonErrorCodeMappings, compactToISOString, cooldown, createAsyncSingleton, createDefaultSubscriptionClaims, createDefaultUserProfile, createDoNotDevStore, createEntitySchema, createErrorHandler, createMetadata, createMethodProxy, createProvider, createProviders, createSchemas, createSingleton, createSingletonWithParams, createViewportHandler, dateSchema, debounce, debugPlatformDetection, decryptData, defineEntity, delay, deleteCookie, deleteEntitySchema, detectBrowser, detectErrorSource, detectFeatures, detectLicenseKey, detectPlatform, detectPlatformInfo, detectStorageError, disconnectOAuthSchema, emailSchema, encryptData, enhanceSchema,
|
|
23951
|
-
export type { AccountLinkResult, AccountLinkingInfo, AdminCheckHookResult, AdminClaims, AggregateConfig, AggregateFilterOperator, AggregateOperation, AggregateRequest, AggregateResponse, AnyFieldValue, ApiResponse, AppConfig, AppConfigProviderProps, AppCookieCategories, AppMetadata, AppProvidersProps, AssetsPluginConfig, AttemptRecord, AuthAPI, AuthActions, AuthConfig, AuthContextValue, AuthCoreHookResult, AuthError, AuthEventData, AuthEventKey, AuthEventName, AuthMethod, AuthPartner, AuthPartnerButton, AuthPartnerHookResult, AuthPartnerId, AuthPartnerResult, AuthPartnerState, AuthProvider, AuthProviderProps, AuthRedirectHookResult, AuthRedirectOperation, AuthRedirectOptions, AuthResult, AuthState, AuthStateStore, AuthStatus, AuthTokenHookResult, AuthUser, BackendGeneratedField, BaseActions, BaseCredentials, BaseDocument, BaseEntityFields, BasePartnerState, BaseState, BaseStoreActions, BaseStoreState, BaseUserProfile, BasicUserInfo, BillingAPI, BillingAdapter, BillingErrorCode, BillingEvent, BillingEventData, BillingEventKey, BillingEventName, BillingProvider, BillingProviderConfig, BillingRedirectOperation, Breakpoint, BreakpointAPI, BreakpointUtils, BrowserEngine, BrowserInfo, BrowserType, BusinessEntity, CachedError, CanAPI, CheckGitHubAccessRequest, CheckoutMode, CheckoutOptions, CheckoutSessionMetadata, Claims, ClaimsCacheOptions, ClaimsCacheResult, CleanupFunction, ColumnDef, CommonSubscriptionFeatures, CommonTranslations, CompatibilityReport, ConfidenceLevel, ConsentAPI, ConsentActions, ConsentCategory, ConsentLevel, ConsentState, Context, CookieInfo, CookieOptions, CountryData, CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreateEntityData, CreateEntityRequest, CreateEntityResponse, CrudAPI, CrudConfig, CurrencyEntry, CustomClaims, CustomSchemaGenerator, CustomStoreConfig, DateFormatOptions, DateFormatPreset, DateValue, DeleteEntityRequest, DeleteEntityResponse, Density, DnDevOverride, DndevFrameworkConfig, DoNotDevCookieCategories, DoNotDevStore, DoNotDevStoreConfig, DoNotDevStoreState, DoNotDevTransProps, DynamicFormRule, Editable, EffectiveConnectionType, EmailVerificationHookResult, EmailVerificationStatus, Entity, EntityAccessConfig, EntityAccessDefaults, EntityCardListProps, EntityDisplayRendererProps, EntityField, EntityFormRendererProps, EntityHookErrors, EntityListProps, EntityMetadata, EntityOwnershipConfig, EntityOwnershipPublicCondition, EntityRecord, EntityTemplateProps, EntityTranslations, EnvironmentMode, ErrorCode, ErrorHandlerConfig, ErrorHandlerFunction, ErrorSeverity, ErrorSource, EventListener, ExchangeTokenParams, ExchangeTokenRequest, FAQSectionProps, FaviconConfig, Feature, FeatureAccessHookResult, FeatureAvailability, FeatureConsentRequirement, FeatureHookResult, FeatureId, FeatureName, FeatureStatus, FeatureSupport, FeaturesConfig, FeaturesPluginConfig, FeaturesRequiringAnyConsent, FeaturesRequiringConsent, FeaturesWithoutConsent, FieldCondition, FieldType, FieldTypeToValue, FileAsset, FilterVisibleFieldsOptions, FirebaseCallOptions, FirebaseConfig, FirestoreTimestamp, FirestoreUniqueConstraintValidator, FooterConfig, FooterZoneConfig, FormConfig, FormStep, FrameworkFeature, FunctionCallConfig, FunctionCallContext, FunctionCallOptions, FunctionCallResult, FunctionClient, FunctionClientFactoryOptions, FunctionDefaults, FunctionEndpoint, FunctionError, FunctionLoader, FunctionMemory, FunctionMeta, FunctionPlatform, FunctionResponse, FunctionSchema, FunctionSchemas, FunctionSystem, FunctionTrigger, FunctionsConfig, GetCustomClaimsResponse, GetEntityData, GetEntityRequest, GetEntityResponse, GetUserAuthStatusResponse, GetVisibleFieldsOptions, GitHubPermission, GitHubRepoConfig, GrantGitHubAccessRequest, GroupByDefinition, HandleErrorOptions, HeaderZoneConfig, I18nConfig, I18nPluginConfig, I18nProviderProps, ID, INetworkManager, IStorageManager, IStorageStrategy, IntersectionObserverCallback, IntersectionObserverOptions, Invoice, InvoiceItem, LanguageData, LanguageInfo, LayoutAPI, LayoutConfig, LayoutPreset, LegalCompanyInfo, LegalConfig, LegalContactInfo, LegalDirectorInfo, LegalHostingInfo, LegalJurisdictionInfo, LegalSectionsConfig, LegalWebsiteInfo, LicenseValidationResult, ListEntitiesRequest, ListEntitiesResponse, ListEntityData, ListOptions, ListResponse, LoadingActions, LoadingState, MergedBarConfig, MetricDefinition, MobileBehaviorConfig, ModalActions, ModalState, MutationOptions, MutationResponse, NavigationRoute, NetworkCheckConfig, NetworkConnectionType, NetworkReconnectCallback, NetworkState$1 as NetworkState, NetworkStatus, NetworkStatusHookResult, OAuthAPI, OAuthApiRequestOptions, OAuthCallbackHookResult, OAuthConnection, OAuthConnectionInfo, OAuthConnectionRequest, OAuthConnectionStatus, OAuthCredentials, OAuthEventData, OAuthEventKey, OAuthEventName, OAuthPartner, OAuthPartnerButton, OAuthPartnerHookResult, OAuthPartnerId, OAuthPartnerResult, OAuthPartnerState, OAuthPurpose, OAuthRedirectOperation, OAuthRefreshRequest, OAuthRefreshResponse, OAuthResult, OAuthStoreActions, OAuthStoreState, OS, Observable, OperationSchemas, OrderByClause, OverlayAPI, PWAAssetType, PWADisplayMode, PWAPluginConfig, PageAuth, PageMeta, PaginationOptions, PartnerButton, PartnerConnectionState, PartnerIconId, PartnerId, PartnerResult, PartnerType, PayloadCacheEventData, PayloadDocument, PayloadDocumentEventData, PayloadEventKey, PayloadEventName, PayloadGlobalEventData, PayloadMediaEventData, PayloadPageRegenerationEventData, PayloadRequest, PayloadUserEventData, PaymentEventData, PaymentMethod, PaymentMethodType, PaymentMode, Permission, Picture, Platform, PlatformInfo, PresetConfig, PresetRegistry, ProcessPaymentSuccessRequest, ProcessPaymentSuccessResponse, ProductDeclaration, ProviderInstances, QueryClientProviderProps, QueryConfig$1 as QueryConfig, QueryFunction, QueryKey, QueryOptions, RateLimitConfig, RateLimitManager, RateLimitResult, RateLimitState, RateLimiter, ReadCallback, RedirectOperation, RedirectOverlayActions, RedirectOverlayConfig, RedirectOverlayPhase, RedirectOverlayState, Reference, RefreshSubscriptionRequest, RefreshSubscriptionResponse, RemoveCustomClaimsResponse, ResolvedLayoutConfig, RevokeGitHubAccessRequest, RouteData, RouteManifest, RouteMeta, RouteSource, RoutesPluginConfig, SEOConfig, SchemaMetadata, SchemaWithVisibility, ScopeConfig, ScopeProviderFn, SelectOption, SetCustomClaimsResponse, SidebarZoneConfig, SlotContent, StatusField, StorageError, StorageErrorType, StorageOptions, StorageScope, StorageType, Store, StoreApi, StripeBackConfig, StripeCheckoutRequest, StripeCheckoutResponse, StripeCheckoutSessionEventData, StripeConfig, StripeCustomer, StripeCustomerEventData, StripeEventData, StripeEventKey, StripeEventName, StripeFrontConfig, StripeInvoice, StripeInvoiceEventData, StripePayment, StripePaymentIntentEventData, StripePaymentMethod, StripePrice, StripeProduct, StripeProvider, StripeSubscription, StripeSubscriptionData, StripeWebhookEvent, StripeWebhookEventData, Subscription, SubscriptionClaims, SubscriptionConfig, SubscriptionData, SubscriptionDuration, SubscriptionEventData, SubscriptionHookResult, SubscriptionInfo, SubscriptionStatus, SubscriptionTier, SupportedLanguage, TechnicalField, ThemeAPI, ThemeActions, ThemeInfo, ThemeMode, ThemeState, ThemesPluginConfig, TierAccessHookResult, Timestamp, TokenInfo, TokenManagerOptions, TokenResponse, TokenState, TokenStatus, TransTag, TranslationOptions, TranslationResource, TypedBaseFields, UIFieldOptions, UniqueConstraintValidator, UniqueKeyDefinition, UnsubscribeFn, UpdateEntityData, UpdateEntityRequest, UpdateEntityResponse, UseClickOutsideOptions, UseClickOutsideReturn, UseDebounceOptions, UseEventListenerOptions, UseEventListenerReturn, UseFunctionsMutationOptions, UseFunctionsQueryOptions, UseIntersectionObserverOptions, UseIntersectionObserverReturn, UseLocalStorageOptions, UseLocalStorageReturn, UseMutationOptions, UseMutationOptionsWithErrorHandling, UseMutationResult, UseQueryOptions, UseQueryOptionsWithErrorHandling, UseQueryResult, UseScriptLoaderOptions, UseScriptLoaderReturn, UseTranslationOptionsEnhanced, UseViewportVisibilityOptions, UseViewportVisibilityReturn, UserContext, UserProfile, UserProviderData, UserRole, UserSubscription, ValidationRules, ValueTypeForField, ViewportDetectionOptions, ViewportDetectionResult, Visibility, WebhookEvent, WebhookEventData, WhereClause, WhereOperator, WithMetadata, dndevSchema };
|
|
25107
|
+
export { AGGREGATE_FILTER_OPERATORS, AGGREGATE_OPERATIONS, AUTH_COMPUTED_KEYS, AUTH_EVENTS, AUTH_PARTNERS, AUTH_PARTNER_STATE, AUTH_STORE_KEYS, AppConfigContext, AppConfigProvider, AuthHardening, AuthUserSchema, BACKEND_GENERATED_FIELD_NAMES, BILLING_EVENTS, BILLING_STORE_KEYS, BREAKPOINT_RANGES, BREAKPOINT_THRESHOLDS, BaseStorageStrategy, COMMON_TIER_CONFIGS, CONFIDENCE_LEVELS, CONSENT_CATEGORY, CONSENT_LEVELS, CONTEXTS, COUNTRIES, CRUD_OPERATORS, CURRENCY_MAP, CheckoutSessionMetadataSchema, ClaimsCache, CreateCheckoutSessionRequestSchema, CreateCheckoutSessionResponseSchema, CustomClaimsSchema, DEFAULT_ENTITY_ACCESS, DEFAULT_ERROR_MESSAGES, DEFAULT_LAYOUT_PRESET, DEFAULT_STATUS_OPTIONS, DEFAULT_STATUS_VALUE, DEFAULT_SUBSCRIPTION, DEGRADED_AUTH_API, DEGRADED_BILLING_API, DEGRADED_CRUD_API, DEGRADED_OAUTH_API, DENSITY, DoNotDevError, EDITABLE, ENTITY_HOOK_ERRORS, ENVIRONMENTS, ERROR_CODES, ERROR_SEVERITY, ERROR_SOURCE, EntityHookError, EventEmitter, FAQSection, FEATURES, FEATURE_CONSENT_MATRIX, FEATURE_STATUS, FIELD_TYPES, FIREBASE_ERROR_MAP, FIRESTORE_ID_PATTERN, FRAMEWORK_FEATURES, Flag, GITHUB_PERMISSION_LEVELS, HIDDEN_STATUSES, index_d$1 as Hooks, HybridStorageStrategy, index_d as I18n, LANGUAGES, LAYOUT_PRESET, LIST_SCHEMA_TYPE, LanguageFAB, LanguageSelector, LanguageToggleGroup, LocalStorageStrategy, OAUTH_EVENTS, OAUTH_PARTNERS, OAUTH_STORE_KEYS, ORDER_DIRECTION, PARTNER_ICONS, PAYLOAD_EVENTS, PERMISSIONS, PLATFORMS, PWA_ASSET_TYPES, PWA_DISPLAY_MODES, ProductDeclarationSchema, ProductDeclarationsSchema, QueryClient, QueryClientProvider, QueryProviders, ROUTE_SOURCES, STORAGE_SCOPES, STORAGE_TYPES, STRIPE_EVENTS, STRIPE_MODES, SUBSCRIPTION_DURATIONS, SUBSCRIPTION_STATUS, SUBSCRIPTION_TIERS, index_d$2 as Schemas, SingletonManager, StorageManager, index_d$3 as Stores, StripeBackConfigSchema, StripeFrontConfigSchema, StripePaymentSchema, StripeSubscriptionSchema, SubscriptionClaimsSchema, SubscriptionDataSchema, TECHNICAL_FIELD_NAMES, TRANS_TAGS, TokenManager, Trans, TranslatedText, index_d$5 as Types, USER_ROLES, UserSubscriptionSchema, index_d$4 as Utils, VISIBILITY, ViewportHandler, WebhookEventSchema, addressSchema, applyTheme, areFeaturesAvailable, arraySchema, baseFields, booleanSchema, buildRoutePath, canRedirectExternally, captureError, captureErrorToSentry, captureMessage, checkGitHubAccessSchema, checkLicense, cleanupSentry, clearFeatureCache, clearLocalStorage, clearPartnerCache, clearSchemaGenerators, clearScopeProviders, commonErrorCodeMappings, compactToISOString, configureProviders, cooldown, createAsyncSingleton, createDefaultSubscriptionClaims, createDefaultUserProfile, createDoNotDevStore, createEntitySchema, createErrorHandler, createMetadata, createMethodProxy, createProvider, createProviders, createSchemas, createSingleton, createSingletonWithParams, createViewportHandler, dateSchema, debounce, debugPlatformDetection, decryptData, defineEntity, delay, deleteCookie, deleteEntitySchema, detectBrowser, detectErrorSource, detectFeatures, detectLicenseKey, detectPlatform, detectPlatformInfo, detectStorageError, disconnectOAuthSchema, emailSchema, encryptData, enhanceSchema, ensureSpreadable, exchangeTokenSchema, extractRoutePath, fileSchema, filesSchema, filterVisibleFields, formatCookieList, formatCurrency, formatDate, formatRelativeTime, gdprConsentSchema, generateCodeChallenge, generateCodeVerifier, generateCompatibilityReport, generateEncryptionKey, generateFirestoreRuleCondition, generatePKCEPair, geopointSchema, getActiveCookies, getAppShortName, getAssetsConfig, getAuthDomain, getAuthPartnerConfig, getAuthPartnerIdByFirebaseId, getAvailableFeatures, getAvailableThemeNames, getAvailableThemes, getBreakpointFromWidth, getBreakpointUtils, getBrowserRecommendations, getCollectionName, getConfigSection, getConfigSource, getConnectionsSchema, getCookie, getCookieExamples, getCookiesByCategory, getCountries, getCurrencyLocale, getCurrencySymbol, getCurrentOrigin, getCurrentTimestamp, getDndevConfig, getEnabledAuthPartners, getEnabledOAuthPartners, getEncryptionKey, getEntitySchema, getFeatureSummary, getFlagCodes, getI18nConfig, getI18nInstance, getListCardFieldNames, getLocalStorageItem, getNextEnvVar, getOAuthClientId, getOAuthPartnerConfig, getOAuthRedirectUri, getOAuthRedirectUrl, getPartnerCacheStatus, getPartnerConfig, getPlatformEnvVar, getProvider, getProviderColor, getQueryClient, getRegisteredSchemaTypes, getRegisteredScopeProviders, getRoleFromClaims, getRouteManifest, getRouteSource, getRoutes, getRoutesConfig, getSchemaType, getScopeValue, getSmartDefaults, getStorageManager, getThemeInfo, getThemesConfig, getTokenManager, getValidAuthPartnerConfig, getValidAuthPartnerIds, getValidOAuthPartnerConfig, getValidOAuthPartnerIds, getVisibleFields, getVisibleItems, getViteEnvVar, getWeekFromISOString, githubPermissionSchema, githubRepoConfigSchema, globalEmitter, grantGitHubAccessSchema, handleError, hasCustomSchemaGenerator, hasFlag, hasMetadata, hasOptionalCookies, hasProvider, hasRestrictedVisibility, hasRoleAccess, hasScopeProvider, hasTierAccess, ibanSchema, initSentry, initializeConfig, initializePlatformDetection, isAuthPartnerEnabled, isAuthPartnerId, isBackendGeneratedField, isBreakpoint, isClient, isCompactDateString, isConfigAvailable, isDev, isDoNotDevStore, isElementInViewport, isEmailVerificationRequired, isExpo, isFeatureAvailable, isFieldVisible, isFrameworkField, isIntersectionObserverSupported, isLocalStorageAvailable, isNextJs, isOAuthPartnerEnabled, isOAuthPartnerId, isPKCESupported, isPlatform, isReactNative, isServer, isTest, isValidTheme, isVite, isoToCompactString, lazyImport, listEntitiesSchema, mapSchema, mapToDoNotDevError, maybeTranslate, multiselectSchema, neverSchema, normalizeToISOString, numberSchema, observeElement, overrideFeatures, overridePaymentModes, overridePermissions, overrideSubscriptionStatus, overrideSubscriptionTiers, overrideUserRoles, parseDate, parseDateToNoonUTC, passwordSchema, pictureSchema, picturesSchema, priceSchema, queryClient, rangeOptions, redirectToExternalUrl, redirectToExternalUrlWithErrorHandling, referenceSchema, refreshTokenSchema, registerSchemaGenerator, registerScopeProvider, registerUniqueConstraintValidator, removeLocalStorageItem, resetProviders, resolveAppConfig, resolveAuthConfig, resolvePageMeta, revokeGitHubAccessSchema, safeLocalStorage, safeSessionStorage, safeValidate, selectSchema, setCookie, setLocalStorageItem, shouldShowEmailVerification, showNotification, stringSchema, supportsFeature, switchSchema, telSchema, textSchema, throttle, timestampToISOString, timingUtils, toDateOnly, toISOString, translateArray, translateArrayRange, translateArrayWithIndices, translateObjectArray, unregisterScopeProvider, updateEntitySchema, updateMetadata, urlSchema, useAbortControllerStore, useAnalyticsConsent, useAppConfig, useAuthConfig, useBreakpoint, useBreathingTimer, useClickOutside, useConsent, useConsentReady, useConsentStore, useDebounce, useEventListener, useFaviconConfig, useFeatureConsent, useFeaturesConfig, useFunctionalConsent, useHasConsented, useI18nReady, useIntersectionObserver, useIsClient, useLanguageSelector, useLayout, useLocalStorage, useMarketingConsent, useMutation, useNavigationStore, useNetwork, useNetworkConnectionType, useNetworkOnline, useNetworkStatus, useNetworkStore, useOverlay, useOverlayStore, useQuery, useQueryClient, useRateLimit, useSafeContext, useScriptLoader, useSeoConfig, useStorageManager, useTheme, useThemeReady, useThemeStore, useTranslation, useViewportVisibility, validateAuthPartners, validateAuthSchemas, validateAuthUser, validateBillingSchemas, validateCheckoutSessionMetadata, validateCodeChallenge, validateCodeVerifier, validateCreateCheckoutSessionRequest, validateCreateCheckoutSessionResponse, validateCustomClaims, validateDates, validateDocument, validateLicenseKey, validateOAuthPartners, validateStripeBackConfig, validateStripeFrontConfig, validateSubscriptionClaims, validateSubscriptionData, validateUniqueFields, validateUserSubscription, validateWebhookEvent, validateWithSchema, withErrorHandling, withGracefulDegradation, wrapAuthError, wrapCrudError, wrapStorageError };
|
|
25108
|
+
export type { AccountLinkResult, AccountLinkingInfo, AdminCheckHookResult, AdminClaims, AggregateConfig, AggregateFilterOperator, AggregateOperation, AggregateRequest, AggregateResponse, AnyFieldValue, ApiResponse, AppConfig, AppConfigProviderProps, AppCookieCategories, AppMetadata, AppProvidersProps, AssetsPluginConfig, AttemptRecord, AuditEvent, AuditEventType, AuthAPI, AuthActions, AuthConfig, AuthContextValue, AuthCoreHookResult, AuthError, AuthEventData, AuthEventKey, AuthEventName, AuthHardeningConfig, AuthHardeningContext, AuthMethod, AuthPartner, AuthPartnerButton, AuthPartnerHookResult, AuthPartnerId, AuthPartnerResult, AuthPartnerState, AuthProvider, AuthProviderProps, AuthRedirectHookResult, AuthRedirectOperation, AuthRedirectOptions, AuthResult, AuthState, AuthStateStore, AuthStatus, AuthTokenHookResult, AuthUser, BackendGeneratedField, BaseActions, BaseCredentials, BaseDocument, BaseEntityFields, BasePartnerState, BaseState, BaseStoreActions, BaseStoreState, BaseUserProfile, BasicUserInfo, BillingAPI, BillingAdapter, BillingErrorCode, BillingEvent, BillingEventData, BillingEventKey, BillingEventName, BillingProvider, BillingProviderConfig, BillingRedirectOperation, Breakpoint, BreakpointAPI, BreakpointUtils, BrowserEngine, BrowserInfo, BrowserType, BuiltInFieldType, BusinessEntity, CachedError, CanAPI, CheckGitHubAccessRequest, CheckoutMode, CheckoutOptions, CheckoutSessionMetadata, Claims, ClaimsCacheOptions, ClaimsCacheResult, CleanupFunction, CollectionSubscriptionCallback, ColumnDef, CommonSubscriptionFeatures, CommonTranslations, CompatibilityReport, ConfidenceLevel, ConsentAPI, ConsentActions, ConsentCategory, ConsentLevel, ConsentState, Context, CookieInfo, CookieOptions, CountryData, CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreateEntityData, CreateEntityRequest, CreateEntityResponse, CrudAPI, CrudCardProps, CrudConfig, CrudOperator, CurrencyEntry, CustomClaims, CustomFieldOptionsMap, CustomSchemaGenerator, CustomStoreConfig, DateFormatOptions, DateFormatPreset, DateValue, DeleteEntityRequest, DeleteEntityResponse, Density, DnDevOverride, DndevFrameworkConfig, DndevProviders, DoNotDevCookieCategories, DoNotDevStore, DoNotDevStoreConfig, DoNotDevStoreState, DoNotDevTransProps, DocumentSubscriptionCallback, DynamicFormRule, Editable, EffectiveConnectionType, EmailVerificationHookResult, EmailVerificationStatus, Entity, EntityAccessConfig, EntityAccessDefaults, EntityCardListProps, EntityDisplayRendererProps, EntityField, EntityFormRendererProps, EntityHookErrors, EntityListProps, EntityMetadata, EntityOwnershipConfig, EntityOwnershipPublicCondition, EntityRecommendationsProps, EntityRecord, EntityTemplateProps, EntityTranslations, EnvironmentMode, ErrorCode, ErrorHandlerConfig, ErrorHandlerFunction, ErrorSeverity, ErrorSource, EventListener, ExchangeTokenParams, ExchangeTokenRequest, FAQSectionProps, FaviconConfig, Feature, FeatureAccessHookResult, FeatureAvailability, FeatureConsentRequirement, FeatureHookResult, FeatureId, FeatureName, FeatureStatus, FeatureSupport, FeaturesConfig, FeaturesPluginConfig, FeaturesRequiringAnyConsent, FeaturesRequiringConsent, FeaturesWithoutConsent, FieldCondition, FieldType, FieldTypeToValue, FileAsset, FilterVisibleFieldsOptions, FirebaseCallOptions, FirebaseConfig, FirestoreTimestamp, FirestoreUniqueConstraintValidator, FooterConfig, FooterZoneConfig, FormConfig, FormStep, FrameworkFeature, FunctionCallConfig, FunctionCallContext, FunctionCallOptions, FunctionCallResult, FunctionClient, FunctionClientFactoryOptions, FunctionDefaults, FunctionEndpoint, FunctionError, FunctionLoader, FunctionMemory, FunctionMeta, FunctionPlatform, FunctionResponse, FunctionSchema, FunctionSchemas, FunctionSystem, FunctionTrigger, FunctionsConfig, GetCustomClaimsResponse, GetEntityData, GetEntityRequest, GetEntityResponse, GetUserAuthStatusResponse, GetVisibleFieldsOptions, GitHubPermission, GitHubRepoConfig, GrantGitHubAccessRequest, GroupByDefinition, HandleErrorOptions, HeaderZoneConfig, I18nConfig, I18nPluginConfig, I18nProviderProps, ICallableProvider, ICrudAdapter, ID, INetworkManager, IServerAuthAdapter, IStorageAdapter, IStorageManager, IStorageStrategy, IntersectionObserverCallback, IntersectionObserverOptions, Invoice, InvoiceItem, LanguageData, LanguageInfo, LayoutAPI, LayoutConfig, LayoutPreset, LegalCompanyInfo, LegalConfig, LegalContactInfo, LegalDirectorInfo, LegalHostingInfo, LegalJurisdictionInfo, LegalSectionsConfig, LegalWebsiteInfo, LicenseValidationResult, ListCardLayout, ListEntitiesRequest, ListEntitiesResponse, ListEntityData, ListOptions, ListResponse, ListSchemaType, LoadingActions, LoadingState, LockoutResult, MergedBarConfig, MetricDefinition, MobileBehaviorConfig, ModalActions, ModalState, MutationOptions, MutationResponse, NavigationRoute, NetworkCheckConfig, NetworkConnectionType, NetworkReconnectCallback, NetworkState$1 as NetworkState, NetworkStatus, NetworkStatusHookResult, OAuthAPI, OAuthApiRequestOptions, OAuthCallbackHookResult, OAuthConnection, OAuthConnectionInfo, OAuthConnectionRequest, OAuthConnectionStatus, OAuthCredentials, OAuthEventData, OAuthEventKey, OAuthEventName, OAuthPartner, OAuthPartnerButton, OAuthPartnerHookResult, OAuthPartnerId, OAuthPartnerResult, OAuthPartnerState, OAuthPurpose, OAuthRedirectOperation, OAuthRefreshRequest, OAuthRefreshResponse, OAuthResult, OAuthStoreActions, OAuthStoreState, OS, Observable, OperationSchemas, OrderByClause, OrderDirection, OverlayAPI, PWAAssetType, PWADisplayMode, PWAPluginConfig, PageAuth, PageMeta, PaginatedQueryResult, PaginationOptions, PartnerButton, PartnerConnectionState, PartnerIconId, PartnerId, PartnerResult, PartnerType, PayloadCacheEventData, PayloadDocument, PayloadDocumentEventData, PayloadEventKey, PayloadEventName, PayloadGlobalEventData, PayloadMediaEventData, PayloadPageRegenerationEventData, PayloadRequest, PayloadUserEventData, PaymentEventData, PaymentMethod, PaymentMethodType, PaymentMode, Permission, Picture, Platform, PlatformInfo, PresetConfig, PresetRegistry, ProcessPaymentSuccessRequest, ProcessPaymentSuccessResponse, ProductDeclaration, ProviderInstances, QueryClientProviderProps, QueryConfig$1 as QueryConfig, QueryFunction, QueryKey, QueryOptions$1 as QueryOptions, QueryOrderBy, QueryWhereClause, RateLimitBackend, RateLimitConfig, RateLimitManager, RateLimitResult, RateLimitState, RateLimiter, ReadCallback, RedirectOperation, RedirectOverlayActions, RedirectOverlayConfig, RedirectOverlayPhase, RedirectOverlayState, Reference, RefreshSubscriptionRequest, RefreshSubscriptionResponse, RemoveCustomClaimsResponse, ResolvedLayoutConfig, RevokeGitHubAccessRequest, RouteData, RouteManifest, RouteMeta, RouteSource, RoutesPluginConfig, SEOConfig, SchemaMetadata, SchemaWithVisibility, ScopeConfig, ScopeProviderFn, SecurityContext, SecurityEntityConfig, SelectOption, ServerRateLimitConfig, ServerRateLimitResult, ServerUserRecord, SetCustomClaimsResponse, SidebarZoneConfig, SlotContent, StatusField, StorageError, StorageErrorType, StorageOptions, StorageScope, StorageType, Store, StoreApi, StripeBackConfig, StripeCheckoutRequest, StripeCheckoutResponse, StripeCheckoutSessionEventData, StripeConfig, StripeCustomer, StripeCustomerEventData, StripeEventData, StripeEventKey, StripeEventName, StripeFrontConfig, StripeInvoice, StripeInvoiceEventData, StripePayment, StripePaymentIntentEventData, StripePaymentMethod, StripePrice, StripeProduct, StripeProvider, StripeSubscription, StripeSubscriptionData, StripeWebhookEvent, StripeWebhookEventData, Subscription, SubscriptionClaims, SubscriptionConfig, SubscriptionData, SubscriptionDuration, SubscriptionEventData, SubscriptionHookResult, SubscriptionInfo, SubscriptionStatus, SubscriptionTier, SupportedLanguage, TechnicalField, ThemeAPI, ThemeActions, ThemeInfo, ThemeMode, ThemeState, ThemesPluginConfig, TierAccessHookResult, Timestamp, TokenInfo, TokenManagerOptions, TokenResponse, TokenState, TokenStatus, TransTag, TranslationOptions, TranslationResource, TypedBaseFields, UIFieldOptions, UniqueConstraintValidator, UniqueKeyDefinition, UnsubscribeFn, UpdateEntityData, UpdateEntityRequest, UpdateEntityResponse, UploadOptions, UploadProgressCallback, UploadResult, UseClickOutsideOptions, UseClickOutsideReturn, UseDebounceOptions, UseEventListenerOptions, UseEventListenerReturn, UseFunctionsCallResult, UseFunctionsMutationOptions, UseFunctionsMutationResult, UseFunctionsQueryOptions, UseFunctionsQueryResult, UseIntersectionObserverOptions, UseIntersectionObserverReturn, UseLocalStorageOptions, UseLocalStorageReturn, UseMutationOptions, UseMutationOptionsWithErrorHandling, UseMutationResult, UseQueryOptions, UseQueryOptionsWithErrorHandling, UseQueryResult, UseScriptLoaderOptions, UseScriptLoaderReturn, UseTranslationOptionsEnhanced, UseViewportVisibilityOptions, UseViewportVisibilityReturn, UserContext, UserProfile, UserProviderData, UserRole, UserSubscription, ValidationRules, ValueTypeForField, VerifiedToken, ViewportDetectionOptions, ViewportDetectionResult, Visibility, WebhookEvent, WebhookEventData, WhereClause, WhereOperator, WithMetadata, dndevSchema };
|