@donotdev/core 0.0.24 → 0.0.26
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.js +1 -1
- package/index.d.ts +168 -98
- package/index.js +24 -24
- package/package.json +4 -15
- package/server.d.ts +130 -72
- package/server.js +1 -1
- package/vite/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donotdev/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"sideEffects": false,
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@donotdev/components": "^0.0.
|
|
54
|
+
"@donotdev/components": "^0.0.19",
|
|
55
55
|
"@sentry/react": "^10.39.0",
|
|
56
56
|
"lucide-react": "^0.574.0",
|
|
57
57
|
"react": "^19.2.4",
|
|
@@ -78,29 +78,18 @@
|
|
|
78
78
|
"scripts": {
|
|
79
79
|
"dev": "tsc --noEmit --watch",
|
|
80
80
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
81
|
-
"type-check": "tsc --noEmit"
|
|
81
|
+
"type-check": "bunx tsc --noEmit"
|
|
82
82
|
},
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"registry": "https://registry.npmjs.org",
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@clack/prompts": "^1.0.1",
|
|
89
|
-
"@rollup/plugin-strip": "^3.0.4",
|
|
90
88
|
"@tanstack/react-query": "^5.90.21",
|
|
91
|
-
"@vitejs/plugin-basic-ssl": "^2.1.0",
|
|
92
|
-
"autoprefixer": "^10.4.23",
|
|
93
|
-
"fast-glob": "^3.3.3",
|
|
94
89
|
"i18next": "^25.8.11",
|
|
95
90
|
"i18next-browser-languagedetector": "^8.2.1",
|
|
96
91
|
"i18next-http-backend": "3.0.2",
|
|
97
|
-
"
|
|
98
|
-
"postcss-import": "^16.1.1",
|
|
99
|
-
"postcss-nesting": "^14.0.0",
|
|
100
|
-
"react-i18next": "^16.5.4",
|
|
101
|
-
"rollup-plugin-visualizer": "6.0.5",
|
|
102
|
-
"vite-plugin-pwa": "1.2.0",
|
|
103
|
-
"vite-tsconfig-paths": "^6.0.3"
|
|
92
|
+
"react-i18next": "^16.5.4"
|
|
104
93
|
},
|
|
105
94
|
"peerDependenciesMeta": {}
|
|
106
95
|
}
|
package/server.d.ts
CHANGED
|
@@ -2436,7 +2436,7 @@ declare const DEFAULT_SUBSCRIPTION: SubscriptionClaims;
|
|
|
2436
2436
|
* @author AMBROISE PARK Consulting
|
|
2437
2437
|
*/
|
|
2438
2438
|
declare const CreateCheckoutSessionRequestSchema: v.ObjectSchema<{
|
|
2439
|
-
readonly userId: v.StringSchema<undefined>;
|
|
2439
|
+
readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2440
2440
|
readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2441
2441
|
readonly priceId: v.StringSchema<undefined>;
|
|
2442
2442
|
readonly successUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
@@ -2614,7 +2614,7 @@ type ProductDeclaration = v.InferOutput<typeof ProductDeclarationSchema> & {
|
|
|
2614
2614
|
* @author AMBROISE PARK Consulting
|
|
2615
2615
|
*/
|
|
2616
2616
|
declare function validateCreateCheckoutSessionRequest(data: unknown): v.SafeParseResult<v.ObjectSchema<{
|
|
2617
|
-
readonly userId: v.StringSchema<undefined>;
|
|
2617
|
+
readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2618
2618
|
readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2619
2619
|
readonly priceId: v.StringSchema<undefined>;
|
|
2620
2620
|
readonly successUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
@@ -2884,7 +2884,7 @@ declare function validateBillingSchemas(): {
|
|
|
2884
2884
|
success: boolean;
|
|
2885
2885
|
results: {
|
|
2886
2886
|
createCheckoutSessionRequest: v.SafeParseResult<v.ObjectSchema<{
|
|
2887
|
-
readonly userId: v.StringSchema<undefined>;
|
|
2887
|
+
readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2888
2888
|
readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2889
2889
|
readonly priceId: v.StringSchema<undefined>;
|
|
2890
2890
|
readonly successUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
@@ -4596,7 +4596,7 @@ declare const LIST_SCHEMA_TYPE: {
|
|
|
4596
4596
|
readonly LIST_CARD: "listCard";
|
|
4597
4597
|
};
|
|
4598
4598
|
type ListSchemaType = (typeof LIST_SCHEMA_TYPE)[keyof typeof LIST_SCHEMA_TYPE];
|
|
4599
|
-
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"];
|
|
4599
|
+
declare const FIELD_TYPES: readonly ["address", "array", "avatar", "badge", "boolean", "checkbox", "color", "combobox", "date", "datetime-local", "document", "documents", "duration", "email", "field-array", "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"];
|
|
4600
4600
|
|
|
4601
4601
|
/**
|
|
4602
4602
|
* @fileoverview Schema-Related Type Definitions
|
|
@@ -4906,6 +4906,7 @@ type FieldTypeToValue = {
|
|
|
4906
4906
|
document: FileAsset | null;
|
|
4907
4907
|
documents: FileAsset[];
|
|
4908
4908
|
email: string;
|
|
4909
|
+
'field-array': Record<string, unknown>[];
|
|
4909
4910
|
file: FileAsset | null;
|
|
4910
4911
|
files: FileAsset[];
|
|
4911
4912
|
geopoint: {
|
|
@@ -5590,6 +5591,32 @@ interface BusinessEntity {
|
|
|
5590
5591
|
* ```
|
|
5591
5592
|
*/
|
|
5592
5593
|
security?: SecurityEntityConfig;
|
|
5594
|
+
/**
|
|
5595
|
+
* Client-side search config for `useCrudList`/`useCrudCardList` `searchQuery` option.
|
|
5596
|
+
* If omitted, all text-like visible fields are searched automatically.
|
|
5597
|
+
*
|
|
5598
|
+
* @example
|
|
5599
|
+
* ```typescript
|
|
5600
|
+
* search: { fields: ['name', 'description', 'sku'] }
|
|
5601
|
+
* ```
|
|
5602
|
+
*/
|
|
5603
|
+
search?: {
|
|
5604
|
+
fields?: string[];
|
|
5605
|
+
};
|
|
5606
|
+
/**
|
|
5607
|
+
* Default client-side sort for list hooks.
|
|
5608
|
+
* Applied when no explicit `clientSort` option is passed and no `orderBy` in `queryOptions`.
|
|
5609
|
+
* Pass `clientSort: null` in hook options to disable.
|
|
5610
|
+
*
|
|
5611
|
+
* @example
|
|
5612
|
+
* ```typescript
|
|
5613
|
+
* defaultSort: { field: 'createdAt', direction: 'desc' }
|
|
5614
|
+
* ```
|
|
5615
|
+
*/
|
|
5616
|
+
defaultSort?: {
|
|
5617
|
+
field: string;
|
|
5618
|
+
direction?: 'asc' | 'desc';
|
|
5619
|
+
};
|
|
5593
5620
|
}
|
|
5594
5621
|
/**
|
|
5595
5622
|
* Complete entity definition including base fields
|
|
@@ -6150,6 +6177,36 @@ interface EntityCardListProps {
|
|
|
6150
6177
|
}) => boolean;
|
|
6151
6178
|
/** Hide filters section (default: false) */
|
|
6152
6179
|
hideFilters?: boolean;
|
|
6180
|
+
/**
|
|
6181
|
+
* Custom label for the results section title.
|
|
6182
|
+
* Receives the current item count so you can handle pluralization and empty state.
|
|
6183
|
+
* When not provided, defaults to the built-in i18n label ("Found N occurrences").
|
|
6184
|
+
*
|
|
6185
|
+
* @param count - Number of items after all filters are applied
|
|
6186
|
+
* @returns The string to display as the results section title
|
|
6187
|
+
*
|
|
6188
|
+
* @example
|
|
6189
|
+
* ```tsx
|
|
6190
|
+
* // Simple override
|
|
6191
|
+
* <EntityCardList
|
|
6192
|
+
* entity={apartmentEntity}
|
|
6193
|
+
* resultLabel={(count) =>
|
|
6194
|
+
* count === 0
|
|
6195
|
+
* ? 'No apartments available'
|
|
6196
|
+
* : count === 1
|
|
6197
|
+
* ? 'Your future home is right here'
|
|
6198
|
+
* : `Your future home is among these ${count} apartments`
|
|
6199
|
+
* }
|
|
6200
|
+
* />
|
|
6201
|
+
* ```
|
|
6202
|
+
*/
|
|
6203
|
+
resultLabel?: (count: number) => string;
|
|
6204
|
+
/**
|
|
6205
|
+
* Tone for the filter and results Section wrappers.
|
|
6206
|
+
* Use 'base' or 'muted' when the app has an image background so sections are readable.
|
|
6207
|
+
* @default 'ghost' (transparent — inherits parent background)
|
|
6208
|
+
*/
|
|
6209
|
+
tone?: 'ghost' | 'base' | 'muted' | 'contrast' | 'accent';
|
|
6153
6210
|
}
|
|
6154
6211
|
/**
|
|
6155
6212
|
* Props for CrudCard — presentational card built from entity + item + field slots.
|
|
@@ -6227,11 +6284,6 @@ interface EntityFormRendererProps<T extends EntityRecord = EntityRecord> {
|
|
|
6227
6284
|
* @default 'create' (or 'edit' if defaultValues provided)
|
|
6228
6285
|
*/
|
|
6229
6286
|
operation?: 'create' | 'edit';
|
|
6230
|
-
/**
|
|
6231
|
-
* Enable auto-save to localStorage for crash recovery.
|
|
6232
|
-
* @default true for create mode
|
|
6233
|
-
*/
|
|
6234
|
-
autoSave?: boolean;
|
|
6235
6287
|
/**
|
|
6236
6288
|
* Optional form ID for tracking loading state.
|
|
6237
6289
|
* If not provided, one will be generated automatically.
|
|
@@ -6308,6 +6360,11 @@ interface EntityDisplayRendererProps<T extends EntityRecord = EntityRecord> {
|
|
|
6308
6360
|
* Fallback chain: prop → useAuthSafe('userRole') → 'guest'
|
|
6309
6361
|
*/
|
|
6310
6362
|
viewerRole?: string;
|
|
6363
|
+
/**
|
|
6364
|
+
* Field names to exclude from rendering.
|
|
6365
|
+
* Use when the page already displays certain fields in a custom hero/header section.
|
|
6366
|
+
*/
|
|
6367
|
+
excludeFields?: string[];
|
|
6311
6368
|
}
|
|
6312
6369
|
|
|
6313
6370
|
type FieldValues = Record<string, any>;
|
|
@@ -12389,14 +12446,15 @@ interface RateLimitManager {
|
|
|
12389
12446
|
*/
|
|
12390
12447
|
|
|
12391
12448
|
/**
|
|
12392
|
-
*
|
|
12449
|
+
* DoNotDev store API interface without direct Zustand dependency.
|
|
12450
|
+
* Renamed from StoreApi to avoid shadowing Zustand's StoreApi.
|
|
12393
12451
|
* @template T - The store state type
|
|
12394
12452
|
*
|
|
12395
|
-
* @version 0.0.
|
|
12453
|
+
* @version 0.0.2
|
|
12396
12454
|
* @since 0.0.1
|
|
12397
12455
|
* @author AMBROISE PARK Consulting
|
|
12398
12456
|
*/
|
|
12399
|
-
interface
|
|
12457
|
+
interface DndevStoreApi<T> {
|
|
12400
12458
|
/** Returns the current state */
|
|
12401
12459
|
getState: () => T;
|
|
12402
12460
|
/** Updates the store state */
|
|
@@ -14953,65 +15011,6 @@ declare namespace index_d {
|
|
|
14953
15011
|
export type { index_d_AuthHardeningConfig as AuthHardeningConfig, index_d_CurrencyEntry as CurrencyEntry, index_d_DateFormatOptions as DateFormatOptions, index_d_DateFormatPreset as DateFormatPreset, index_d_ErrorHandlerConfig as ErrorHandlerConfig, index_d_ErrorHandlerFunction as ErrorHandlerFunction, index_d_FilterVisibleFieldsOptions as FilterVisibleFieldsOptions, index_d_GetVisibleFieldsOptions as GetVisibleFieldsOptions, index_d_HandleErrorOptions as HandleErrorOptions, index_d_LockoutResult as LockoutResult };
|
|
14954
15012
|
}
|
|
14955
15013
|
|
|
14956
|
-
/**
|
|
14957
|
-
* @fileoverview Unified Schema Generation
|
|
14958
|
-
* @description Creates Valibot schemas from entity definitions with visibility metadata.
|
|
14959
|
-
*
|
|
14960
|
-
* Entity → Schema (with visibility) → Used everywhere (frontend + backend)
|
|
14961
|
-
*
|
|
14962
|
-
* Isomorphic code (works in both client and server environments).
|
|
14963
|
-
*
|
|
14964
|
-
* @version 0.0.2
|
|
14965
|
-
* @since 0.0.1
|
|
14966
|
-
* @author AMBROISE PARK Consulting
|
|
14967
|
-
*/
|
|
14968
|
-
|
|
14969
|
-
/**
|
|
14970
|
-
* Valibot schema with visibility metadata attached
|
|
14971
|
-
*/
|
|
14972
|
-
interface SchemaWithVisibility extends v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>> {
|
|
14973
|
-
visibility?: Visibility;
|
|
14974
|
-
}
|
|
14975
|
-
/**
|
|
14976
|
-
* Operation-specific schemas generated from entity
|
|
14977
|
-
*/
|
|
14978
|
-
interface OperationSchemas {
|
|
14979
|
-
/** Create: excludes technical fields, enforces required */
|
|
14980
|
-
create: dndevSchema<unknown>;
|
|
14981
|
-
/** Draft: excludes technical fields, all optional except status='draft' */
|
|
14982
|
-
draft: dndevSchema<unknown>;
|
|
14983
|
-
/** Update: excludes technical fields, all optional */
|
|
14984
|
-
update: dndevSchema<unknown>;
|
|
14985
|
-
/** Get: includes all fields with visibility metadata */
|
|
14986
|
-
get: dndevSchema<unknown>;
|
|
14987
|
-
/** List: optimized for admin table (uses listFields) */
|
|
14988
|
-
list: dndevSchema<unknown>;
|
|
14989
|
-
/** ListCard: optimized for public cards (uses listCardFields, falls back to listFields) */
|
|
14990
|
-
listCard: dndevSchema<unknown>;
|
|
14991
|
-
/** Delete: just { id: string } */
|
|
14992
|
-
delete: dndevSchema<unknown>;
|
|
14993
|
-
}
|
|
14994
|
-
/**
|
|
14995
|
-
* Creates all operation-specific schemas from an entity definition
|
|
14996
|
-
*
|
|
14997
|
-
* Each schema field has `.visibility` attached for backend filtering.
|
|
14998
|
-
*
|
|
14999
|
-
* @param entity - Entity definition
|
|
15000
|
-
* @returns Operation-specific schemas with visibility metadata
|
|
15001
|
-
*
|
|
15002
|
-
* @example
|
|
15003
|
-
* ```typescript
|
|
15004
|
-
* const schemas = createSchemas(carEntity);
|
|
15005
|
-
* // schemas.create - for creating documents
|
|
15006
|
-
* // schemas.draft - for saving incomplete
|
|
15007
|
-
* // schemas.update - for partial updates
|
|
15008
|
-
* // schemas.get - for reading (includes technical fields)
|
|
15009
|
-
* // schemas.list - array of get
|
|
15010
|
-
* // schemas.delete - just { id }
|
|
15011
|
-
* ```
|
|
15012
|
-
*/
|
|
15013
|
-
declare function createSchemas(entity: Entity): OperationSchemas;
|
|
15014
|
-
|
|
15015
15014
|
/**
|
|
15016
15015
|
* @fileoverview Schema enhancement utility
|
|
15017
15016
|
* @description Enhances a Valibot schema with additional metadata
|
|
@@ -15447,6 +15446,65 @@ declare const baseFields: TypedBaseFields;
|
|
|
15447
15446
|
*/
|
|
15448
15447
|
declare function defineEntity(entity: BusinessEntity): Entity;
|
|
15449
15448
|
|
|
15449
|
+
/**
|
|
15450
|
+
* @fileoverview Unified Schema Generation
|
|
15451
|
+
* @description Creates Valibot schemas from entity definitions with visibility metadata.
|
|
15452
|
+
*
|
|
15453
|
+
* Entity → Schema (with visibility) → Used everywhere (frontend + backend)
|
|
15454
|
+
*
|
|
15455
|
+
* Isomorphic code (works in both client and server environments).
|
|
15456
|
+
*
|
|
15457
|
+
* @version 0.0.2
|
|
15458
|
+
* @since 0.0.1
|
|
15459
|
+
* @author AMBROISE PARK Consulting
|
|
15460
|
+
*/
|
|
15461
|
+
|
|
15462
|
+
/**
|
|
15463
|
+
* Valibot schema with visibility metadata attached
|
|
15464
|
+
*/
|
|
15465
|
+
interface SchemaWithVisibility extends v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>> {
|
|
15466
|
+
visibility?: Visibility;
|
|
15467
|
+
}
|
|
15468
|
+
/**
|
|
15469
|
+
* Operation-specific schemas generated from entity
|
|
15470
|
+
*/
|
|
15471
|
+
interface OperationSchemas {
|
|
15472
|
+
/** Create: excludes technical fields, enforces required */
|
|
15473
|
+
create: dndevSchema<unknown>;
|
|
15474
|
+
/** Draft: excludes technical fields, all optional except status='draft' */
|
|
15475
|
+
draft: dndevSchema<unknown>;
|
|
15476
|
+
/** Update: excludes technical fields, all optional */
|
|
15477
|
+
update: dndevSchema<unknown>;
|
|
15478
|
+
/** Get: includes all fields with visibility metadata */
|
|
15479
|
+
get: dndevSchema<unknown>;
|
|
15480
|
+
/** List: optimized for admin table (uses listFields) */
|
|
15481
|
+
list: dndevSchema<unknown>;
|
|
15482
|
+
/** ListCard: optimized for public cards (uses listCardFields, falls back to listFields) */
|
|
15483
|
+
listCard: dndevSchema<unknown>;
|
|
15484
|
+
/** Delete: just { id: string } */
|
|
15485
|
+
delete: dndevSchema<unknown>;
|
|
15486
|
+
}
|
|
15487
|
+
/**
|
|
15488
|
+
* Creates all operation-specific schemas from an entity definition
|
|
15489
|
+
*
|
|
15490
|
+
* Each schema field has `.visibility` attached for backend filtering.
|
|
15491
|
+
*
|
|
15492
|
+
* @param entity - Entity definition
|
|
15493
|
+
* @returns Operation-specific schemas with visibility metadata
|
|
15494
|
+
*
|
|
15495
|
+
* @example
|
|
15496
|
+
* ```typescript
|
|
15497
|
+
* const schemas = createSchemas(carEntity);
|
|
15498
|
+
* // schemas.create - for creating documents
|
|
15499
|
+
* // schemas.draft - for saving incomplete
|
|
15500
|
+
* // schemas.update - for partial updates
|
|
15501
|
+
* // schemas.get - for reading (includes technical fields)
|
|
15502
|
+
* // schemas.list - array of get
|
|
15503
|
+
* // schemas.delete - just { id }
|
|
15504
|
+
* ```
|
|
15505
|
+
*/
|
|
15506
|
+
declare function createSchemas(entity: Entity): OperationSchemas;
|
|
15507
|
+
|
|
15450
15508
|
/**
|
|
15451
15509
|
* @fileoverview Option generation helpers for select fields
|
|
15452
15510
|
* @description Simple utilities to generate options arrays for select/dropdown fields.
|
|
@@ -15607,4 +15665,4 @@ declare function getRegisteredScopeProviders(): string[];
|
|
|
15607
15665
|
declare function clearScopeProviders(): void;
|
|
15608
15666
|
|
|
15609
15667
|
export { AGGREGATE_FILTER_OPERATORS, AGGREGATE_OPERATIONS, AUTH_EVENTS, AUTH_PARTNERS, AUTH_PARTNER_STATE, AuthHardening, AuthUserSchema, BACKEND_GENERATED_FIELD_NAMES, BILLING_EVENTS, BREAKPOINT_RANGES, BREAKPOINT_THRESHOLDS, COMMON_TIER_CONFIGS, CONFIDENCE_LEVELS, CONSENT_CATEGORY, CONTEXTS, CRUD_OPERATORS, CURRENCY_MAP, CheckoutSessionMetadataSchema, CreateCheckoutSessionRequestSchema, CreateCheckoutSessionResponseSchema, CustomClaimsSchema, DEFAULT_ENTITY_ACCESS, DEFAULT_ERROR_MESSAGES, DEFAULT_LAYOUT_PRESET, DEFAULT_STATUS_OPTIONS, DEFAULT_STATUS_VALUE, DEFAULT_SUBSCRIPTION, DENSITY, DoNotDevError, EDITABLE, ENTITY_HOOK_ERRORS, ENVIRONMENTS, ERROR_CODES, ERROR_SEVERITY, ERROR_SOURCE, EntityHookError, FEATURES, FEATURE_CONSENT_MATRIX, FEATURE_STATUS, FIELD_TYPES, FIREBASE_ERROR_MAP, FIRESTORE_ID_PATTERN, GITHUB_PERMISSION_LEVELS, HIDDEN_STATUSES, LAYOUT_PRESET, LIST_SCHEMA_TYPE, OAUTH_EVENTS, OAUTH_PARTNERS, ORDER_DIRECTION, PARTNER_ICONS, PAYLOAD_EVENTS, PERMISSIONS, PLATFORMS, PWA_ASSET_TYPES, PWA_DISPLAY_MODES, ProductDeclarationSchema, ProductDeclarationsSchema, ROUTE_SOURCES, STORAGE_SCOPES, STORAGE_TYPES, STRIPE_EVENTS, STRIPE_MODES, SUBSCRIPTION_DURATIONS, SUBSCRIPTION_STATUS, SUBSCRIPTION_TIERS, index_d as ServerUtils, SingletonManager, StripeBackConfigSchema, StripeFrontConfigSchema, StripePaymentSchema, StripeSubscriptionSchema, SubscriptionClaimsSchema, SubscriptionDataSchema, TECHNICAL_FIELD_NAMES, USER_ROLES, UserSubscriptionSchema, VISIBILITY, WebhookEventSchema, addMonths, addYears, addressSchema, arraySchema, baseFields, booleanSchema, calculateSubscriptionEndDate, captureErrorToSentry, checkGitHubAccessSchema, clearSchemaGenerators, clearScopeProviders, commonErrorCodeMappings, compactToISOString, configureProviders, createAsyncSingleton, createDefaultSubscriptionClaims, createDefaultUserProfile, createEntitySchema, createErrorHandler, createMetadata, createMethodProxy, createSchemas, createSingleton, createSingletonWithParams, dateSchema, defineEntity, deleteEntitySchema, detectErrorSource, disconnectOAuthSchema, emailSchema, enhanceSchema, ensureSpreadable, exchangeTokenSchema, fileSchema, filesSchema, filterVisibleFields, formatCurrency, formatDate, formatRelativeTime, gdprConsentSchema, generateCodeChallenge, generateCodeVerifier, generateFirestoreRuleCondition, generatePKCEPair, geopointSchema, getBreakpointFromWidth, getBreakpointUtils, getCollectionName, getConnectionsSchema, getCurrencyLocale, getCurrencySymbol, getCurrentTimestamp, getEntitySchema, getListCardFieldNames, getProvider, getRegisteredSchemaTypes, getRegisteredScopeProviders, getRoleFromClaims, getSchemaType, getScopeValue, getVisibleFields, getWeekFromISOString, githubPermissionSchema, githubRepoConfigSchema, grantGitHubAccessSchema, handleError, hasCustomSchemaGenerator, hasMetadata, hasProvider, hasRestrictedVisibility, hasRoleAccess, hasScopeProvider, hasTierAccess, ibanSchema, isAuthPartnerId, isBackendGeneratedField, isBreakpoint, isCompactDateString, isFieldVisible, isFrameworkField, isOAuthPartnerId, isPKCESupported, isoToCompactString, lazyImport, listEntitiesSchema, mapSchema, mapToDoNotDevError, maybeTranslate, multiselectSchema, neverSchema, normalizeToISOString, numberSchema, overrideFeatures, overridePaymentModes, overridePermissions, overrideSubscriptionStatus, overrideSubscriptionTiers, overrideUserRoles, parseDate, parseDateToNoonUTC, parseISODate, parseServerCookie, passwordSchema, pictureSchema, picturesSchema, priceSchema, rangeOptions, referenceSchema, refreshTokenSchema, registerSchemaGenerator, registerScopeProvider, registerUniqueConstraintValidator, resetProviders, revokeGitHubAccessSchema, safeValidate, selectSchema, showNotification, stringSchema, switchSchema, telSchema, textSchema, timestampToISOString, toDateOnly, toISOString, translateArray, translateArrayRange, translateArrayWithIndices, translateObjectArray, unregisterScopeProvider, updateEntitySchema, updateMetadata, urlSchema, validateAuthPartners, validateAuthSchemas, validateAuthUser, validateBillingSchemas, validateCheckoutSessionMetadata, validateCodeChallenge, validateCodeVerifier, validateCreateCheckoutSessionRequest, validateCreateCheckoutSessionResponse, validateCustomClaims, validateDates, validateDocument, validateEnvVar, validateMetadata, validateOAuthPartners, validateStripeBackConfig, validateStripeFrontConfig, validateSubscriptionClaims, validateSubscriptionData, validateUniqueFields, validateUrl, validateUserSubscription, validateWebhookEvent, validateWithSchema, withErrorHandling, withGracefulDegradation, wrapAuthError, wrapCrudError, wrapStorageError };
|
|
15610
|
-
export type { AccountLinkResult, AccountLinkingInfo, AdminCheckHookResult, AdminClaims, AggregateConfig, AggregateFilterOperator, AggregateOperation, AggregateRequest, AggregateResponse, AnyFieldValue, ApiResponse, AppConfig, 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, BreakpointUtils, BuiltInFieldType, BusinessEntity, CachedError, CanAPI, CheckGitHubAccessRequest, CheckoutMode, CheckoutOptions, CheckoutSessionMetadata, CollectionSubscriptionCallback, ColumnDef, CommonSubscriptionFeatures, CommonTranslations, ConfidenceLevel, ConsentAPI, ConsentActions, ConsentCategory, ConsentState, Context, CookieOptions, CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreateEntityData, CreateEntityRequest, CreateEntityResponse, CrudAPI, CrudCardProps, CrudConfig, CrudOperator, CurrencyEntry, CustomClaims, CustomFieldOptionsMap, CustomSchemaGenerator, CustomStoreConfig, DateFormatOptions, DateFormatPreset, DateValue, DeleteEntityRequest, DeleteEntityResponse, Density, DnDevOverride, DndevFrameworkConfig, DndevProviders, DoNotDevCookieCategories, 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, ExchangeTokenParams, ExchangeTokenRequest, FaviconConfig, Feature, FeatureAccessHookResult, FeatureConsentRequirement, FeatureHookResult, FeatureId, FeatureName, FeatureStatus, FeaturesConfig, FeaturesPluginConfig, FeaturesRequiringAnyConsent, FeaturesRequiringConsent, FeaturesWithoutConsent, FieldCondition, FieldType, FieldTypeToValue, FileAsset, FilterVisibleFieldsOptions, FirebaseCallOptions, FirebaseConfig, FirestoreTimestamp, FirestoreUniqueConstraintValidator, FooterConfig, FooterZoneConfig, FormConfig, FormStep, 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, Invoice, InvoiceItem, LanguageInfo, LayoutConfig, LayoutPreset, LegalCompanyInfo, LegalConfig, LegalContactInfo, LegalDirectorInfo, LegalHostingInfo, LegalJurisdictionInfo, LegalSectionsConfig, LegalWebsiteInfo, ListCardLayout, ListEntitiesRequest, ListEntitiesResponse, ListEntityData, ListOptions, ListResponse, ListSchemaType, LoadingActions, LoadingState, LockoutResult, MergedBarConfig, MetricDefinition, MobileBehaviorConfig, ModalActions, ModalState, MutationResponse, NavigationRoute, NetworkCheckConfig, NetworkConnectionType, NetworkReconnectCallback, 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, Observable, OperationSchemas, OrderByClause, OrderDirection, 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, PresetConfig, PresetRegistry, ProcessPaymentSuccessRequest, ProcessPaymentSuccessResponse, ProductDeclaration, ProviderInstances, QueryConfig, QueryOptions, QueryOrderBy, QueryWhereClause, RateLimitBackend, RateLimitConfig, RateLimitManager, RateLimitResult, RateLimitState, RateLimiter, ReadCallback, RedirectOperation, RedirectOverlayActions, RedirectOverlayConfig, RedirectOverlayPhase, RedirectOverlayState, Reference, RefreshSubscriptionRequest, RefreshSubscriptionResponse, RemoveCustomClaimsResponse, ResolvedLayoutConfig, RevokeGitHubAccessRequest, RouteMeta, RouteSource, RoutesPluginConfig, SEOConfig, SchemaMetadata, SchemaWithVisibility, ScopeConfig, ScopeProviderFn, SecurityContext, SecurityEntityConfig, SelectOption, ServerRateLimitConfig, ServerRateLimitResult, ServerUserRecord, SetCustomClaimsResponse, SidebarZoneConfig, SlotContent, StatusField, StorageOptions, StorageScope, StorageType, Store,
|
|
15668
|
+
export type { AccountLinkResult, AccountLinkingInfo, AdminCheckHookResult, AdminClaims, AggregateConfig, AggregateFilterOperator, AggregateOperation, AggregateRequest, AggregateResponse, AnyFieldValue, ApiResponse, AppConfig, 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, BreakpointUtils, BuiltInFieldType, BusinessEntity, CachedError, CanAPI, CheckGitHubAccessRequest, CheckoutMode, CheckoutOptions, CheckoutSessionMetadata, CollectionSubscriptionCallback, ColumnDef, CommonSubscriptionFeatures, CommonTranslations, ConfidenceLevel, ConsentAPI, ConsentActions, ConsentCategory, ConsentState, Context, CookieOptions, CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreateEntityData, CreateEntityRequest, CreateEntityResponse, CrudAPI, CrudCardProps, CrudConfig, CrudOperator, CurrencyEntry, CustomClaims, CustomFieldOptionsMap, CustomSchemaGenerator, CustomStoreConfig, DateFormatOptions, DateFormatPreset, DateValue, DeleteEntityRequest, DeleteEntityResponse, Density, DnDevOverride, DndevFrameworkConfig, DndevProviders, DndevStoreApi, DoNotDevCookieCategories, 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, ExchangeTokenParams, ExchangeTokenRequest, FaviconConfig, Feature, FeatureAccessHookResult, FeatureConsentRequirement, FeatureHookResult, FeatureId, FeatureName, FeatureStatus, FeaturesConfig, FeaturesPluginConfig, FeaturesRequiringAnyConsent, FeaturesRequiringConsent, FeaturesWithoutConsent, FieldCondition, FieldType, FieldTypeToValue, FileAsset, FilterVisibleFieldsOptions, FirebaseCallOptions, FirebaseConfig, FirestoreTimestamp, FirestoreUniqueConstraintValidator, FooterConfig, FooterZoneConfig, FormConfig, FormStep, 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, Invoice, InvoiceItem, LanguageInfo, LayoutConfig, LayoutPreset, LegalCompanyInfo, LegalConfig, LegalContactInfo, LegalDirectorInfo, LegalHostingInfo, LegalJurisdictionInfo, LegalSectionsConfig, LegalWebsiteInfo, ListCardLayout, ListEntitiesRequest, ListEntitiesResponse, ListEntityData, ListOptions, ListResponse, ListSchemaType, LoadingActions, LoadingState, LockoutResult, MergedBarConfig, MetricDefinition, MobileBehaviorConfig, ModalActions, ModalState, MutationResponse, NavigationRoute, NetworkCheckConfig, NetworkConnectionType, NetworkReconnectCallback, 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, Observable, OperationSchemas, OrderByClause, OrderDirection, 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, PresetConfig, PresetRegistry, ProcessPaymentSuccessRequest, ProcessPaymentSuccessResponse, ProductDeclaration, ProviderInstances, QueryConfig, QueryOptions, QueryOrderBy, QueryWhereClause, RateLimitBackend, RateLimitConfig, RateLimitManager, RateLimitResult, RateLimitState, RateLimiter, ReadCallback, RedirectOperation, RedirectOverlayActions, RedirectOverlayConfig, RedirectOverlayPhase, RedirectOverlayState, Reference, RefreshSubscriptionRequest, RefreshSubscriptionResponse, RemoveCustomClaimsResponse, ResolvedLayoutConfig, RevokeGitHubAccessRequest, RouteMeta, RouteSource, RoutesPluginConfig, SEOConfig, SchemaMetadata, SchemaWithVisibility, ScopeConfig, ScopeProviderFn, SecurityContext, SecurityEntityConfig, SelectOption, ServerRateLimitConfig, ServerRateLimitResult, ServerUserRecord, SetCustomClaimsResponse, SidebarZoneConfig, SlotContent, StatusField, StorageOptions, StorageScope, StorageType, Store, 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, ThemeActions, ThemeInfo, ThemeMode, ThemeState, ThemesPluginConfig, TierAccessHookResult, Timestamp, TokenInfo, TokenResponse, TokenState, TokenStatus, TranslationOptions, TranslationResource, TypedBaseFields, UIFieldOptions, UniqueConstraintValidator, UniqueKeyDefinition, UnsubscribeFn, UpdateEntityData, UpdateEntityRequest, UpdateEntityResponse, UploadOptions, UploadProgressCallback, UploadResult, UseFunctionsCallResult, UseFunctionsMutationOptions, UseFunctionsMutationResult, UseFunctionsQueryOptions, UseFunctionsQueryResult, UseTranslationOptionsEnhanced, UserContext, UserProfile, UserProviderData, UserRole, UserSubscription, ValidationRules, ValueTypeForField, VerifiedToken, Visibility, WebhookEvent, WebhookEventData, WhereClause, WhereOperator, WithMetadata, dndevSchema };
|