@donotdev/core 0.2.1 → 0.2.3
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 +13 -13
- package/i18n/locales/eager/dndev_ar.json +4 -0
- package/i18n/locales/eager/dndev_da.json +4 -0
- package/i18n/locales/eager/dndev_de.json +4 -0
- package/i18n/locales/eager/dndev_en.json +4 -0
- package/i18n/locales/eager/dndev_es.json +4 -0
- package/i18n/locales/eager/dndev_fr.json +4 -0
- package/i18n/locales/eager/dndev_it.json +4 -0
- package/i18n/locales/eager/dndev_ja.json +4 -0
- package/i18n/locales/eager/dndev_ko.json +4 -0
- package/i18n/locales/eager/dndev_nl.json +4 -0
- package/i18n/locales/eager/dndev_pl.json +636 -0
- package/i18n/locales/eager/dndev_pt.json +4 -0
- package/i18n/locales/eager/dndev_zh.json +4 -0
- package/i18n/locales/lazy/auth_ar.json +5 -2
- package/i18n/locales/lazy/auth_da.json +5 -2
- package/i18n/locales/lazy/auth_de.json +5 -2
- package/i18n/locales/lazy/auth_en.json +5 -2
- package/i18n/locales/lazy/auth_es.json +5 -2
- package/i18n/locales/lazy/auth_fr.json +5 -2
- package/i18n/locales/lazy/auth_it.json +5 -2
- package/i18n/locales/lazy/auth_ja.json +5 -2
- package/i18n/locales/lazy/auth_ko.json +5 -2
- package/i18n/locales/lazy/auth_nl.json +5 -2
- package/i18n/locales/lazy/auth_pl.json +195 -0
- package/i18n/locales/lazy/auth_pt.json +5 -2
- package/i18n/locales/lazy/auth_zh.json +5 -2
- package/i18n/locales/lazy/billing_pl.json +93 -0
- package/i18n/locales/lazy/blog_pl.json +9 -0
- package/i18n/locales/lazy/cookies_pl.json +35 -0
- package/i18n/locales/lazy/crud_ar.json +40 -3
- package/i18n/locales/lazy/crud_da.json +39 -4
- package/i18n/locales/lazy/crud_de.json +40 -3
- package/i18n/locales/lazy/crud_en.json +38 -4
- package/i18n/locales/lazy/crud_es.json +40 -3
- package/i18n/locales/lazy/crud_fr.json +39 -3
- package/i18n/locales/lazy/crud_it.json +40 -3
- package/i18n/locales/lazy/crud_ja.json +40 -3
- package/i18n/locales/lazy/crud_ko.json +40 -3
- package/i18n/locales/lazy/crud_nl.json +39 -4
- package/i18n/locales/lazy/crud_pl.json +582 -0
- package/i18n/locales/lazy/crud_pt.json +39 -4
- package/i18n/locales/lazy/crud_zh.json +39 -4
- package/i18n/locales/lazy/homeTemplate_pl.json +52 -0
- package/i18n/locales/lazy/legalNotice_de.json +55 -0
- package/i18n/locales/lazy/legalNotice_pl.json +55 -0
- package/i18n/locales/lazy/oauth_pl.json +11 -0
- package/i18n/locales/lazy/privacy_pl.json +178 -0
- package/i18n/locales/lazy/terms_pl.json +200 -0
- package/index.d.ts +899 -165
- package/index.js +6 -6
- package/next/index.d.ts +129 -4
- package/next/index.js +527 -152
- package/next/runtime.js +3 -0
- package/package.json +5 -3
- package/server.d.ts +759 -139
- package/server.js +1 -1
- package/symbol-index.json +1 -1
- package/vite/index.js +68 -68
package/server.d.ts
CHANGED
|
@@ -3213,6 +3213,22 @@ interface PageMeta {
|
|
|
3213
3213
|
* ```
|
|
3214
3214
|
*/
|
|
3215
3215
|
hideFromMenu?: boolean;
|
|
3216
|
+
/**
|
|
3217
|
+
* Signed-in visitors of this page are sent to this path (e.g. a landing page whose
|
|
3218
|
+
* members work from `/catalogue`). A same-site app path (`/x`), never the page itself.
|
|
3219
|
+
* @description Next + Supabase cookie session: the generated proxy redirects before
|
|
3220
|
+
* render (no flash). Every app: the page renders inside `SignedInRedirect`, which
|
|
3221
|
+
* navigates (replace) once the user is known, for sign-ins on the page itself and
|
|
3222
|
+
* sessions the server cannot read. A pending return-to (`?returnTo=` or the saved
|
|
3223
|
+
* `dndev.auth.returnTo`) skips the redirect.
|
|
3224
|
+
* @example
|
|
3225
|
+
* ```tsx
|
|
3226
|
+
* export const meta: PageMeta = {
|
|
3227
|
+
* signedInRedirect: '/catalogue',
|
|
3228
|
+
* };
|
|
3229
|
+
* ```
|
|
3230
|
+
*/
|
|
3231
|
+
signedInRedirect?: string;
|
|
3216
3232
|
/**
|
|
3217
3233
|
* Hide breadcrumbs on this page (default: false)
|
|
3218
3234
|
* @description Set to true to hide framework breadcrumbs on this route
|
|
@@ -3959,10 +3975,9 @@ declare const CheckoutLineItemInputSchema: v.ObjectSchema<{
|
|
|
3959
3975
|
*
|
|
3960
3976
|
* 0.1.x requests keep working unchanged: the key may come from
|
|
3961
3977
|
* `metadata.billingConfigKey`, `lineItems` defaults to the single product, and
|
|
3962
|
-
* the 0.1.x fields (`priceId`, `
|
|
3978
|
+
* the 0.1.x fields (`priceId`, `currency`, `mode`)
|
|
3963
3979
|
* are kept and honoured for StripePayment/StripeSubscription items exactly as in
|
|
3964
|
-
* 0.1.x (priceId checked against the back config
|
|
3965
|
-
* `maxUnitAmount`). StripeOrder ignores them. `userId` is never trusted by the
|
|
3980
|
+
* 0.1.x (priceId checked against the back config). StripeOrder ignores them. `userId` is never trusted by the
|
|
3966
3981
|
* framework providers: they pass the authenticated user.
|
|
3967
3982
|
* The output is always normalized (`billingConfigKey` + `lineItems` set).
|
|
3968
3983
|
*
|
|
@@ -3994,11 +4009,7 @@ declare const CreateCheckoutSessionRequestSchema: v.SchemaWithPipe<readonly [v.O
|
|
|
3994
4009
|
readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3995
4010
|
/** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */
|
|
3996
4011
|
readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3997
|
-
/** 0.1.x:
|
|
3998
|
-
readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
3999
|
-
/** 0.1.x: product name shown on Stripe checkout (dynamic pricing) */
|
|
4000
|
-
readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
4001
|
-
/** 0.1.x: currency code (dynamic pricing), defaults to the back config currency */
|
|
4012
|
+
/** 0.1.x: currency code, defaults to the back config currency */
|
|
4002
4013
|
readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, undefined>;
|
|
4003
4014
|
readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
4004
4015
|
/** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */
|
|
@@ -4019,8 +4030,6 @@ declare const CreateCheckoutSessionRequestSchema: v.SchemaWithPipe<readonly [v.O
|
|
|
4019
4030
|
userId?: string | undefined;
|
|
4020
4031
|
productId?: string | undefined;
|
|
4021
4032
|
priceId?: string | undefined;
|
|
4022
|
-
unitAmount?: number | undefined;
|
|
4023
|
-
productName?: string | undefined;
|
|
4024
4033
|
currency?: string | undefined;
|
|
4025
4034
|
userEmail?: string | undefined;
|
|
4026
4035
|
mode?: "payment" | "subscription" | undefined;
|
|
@@ -4040,8 +4049,6 @@ declare const CreateCheckoutSessionRequestSchema: v.SchemaWithPipe<readonly [v.O
|
|
|
4040
4049
|
userId?: string | undefined;
|
|
4041
4050
|
productId?: string | undefined;
|
|
4042
4051
|
priceId?: string | undefined;
|
|
4043
|
-
unitAmount?: number | undefined;
|
|
4044
|
-
productName?: string | undefined;
|
|
4045
4052
|
currency?: string | undefined;
|
|
4046
4053
|
userEmail?: string | undefined;
|
|
4047
4054
|
mode?: "payment" | "subscription" | undefined;
|
|
@@ -4244,11 +4251,7 @@ declare function validateCreateCheckoutSessionRequest(data: unknown): v.SafePars
|
|
|
4244
4251
|
readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4245
4252
|
/** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */
|
|
4246
4253
|
readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4247
|
-
/** 0.1.x:
|
|
4248
|
-
readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4249
|
-
/** 0.1.x: product name shown on Stripe checkout (dynamic pricing) */
|
|
4250
|
-
readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
4251
|
-
/** 0.1.x: currency code (dynamic pricing), defaults to the back config currency */
|
|
4254
|
+
/** 0.1.x: currency code, defaults to the back config currency */
|
|
4252
4255
|
readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, undefined>;
|
|
4253
4256
|
readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
4254
4257
|
/** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */
|
|
@@ -4269,8 +4272,6 @@ declare function validateCreateCheckoutSessionRequest(data: unknown): v.SafePars
|
|
|
4269
4272
|
userId?: string | undefined;
|
|
4270
4273
|
productId?: string | undefined;
|
|
4271
4274
|
priceId?: string | undefined;
|
|
4272
|
-
unitAmount?: number | undefined;
|
|
4273
|
-
productName?: string | undefined;
|
|
4274
4275
|
currency?: string | undefined;
|
|
4275
4276
|
userEmail?: string | undefined;
|
|
4276
4277
|
mode?: "payment" | "subscription" | undefined;
|
|
@@ -4290,8 +4291,6 @@ declare function validateCreateCheckoutSessionRequest(data: unknown): v.SafePars
|
|
|
4290
4291
|
userId?: string | undefined;
|
|
4291
4292
|
productId?: string | undefined;
|
|
4292
4293
|
priceId?: string | undefined;
|
|
4293
|
-
unitAmount?: number | undefined;
|
|
4294
|
-
productName?: string | undefined;
|
|
4295
4294
|
currency?: string | undefined;
|
|
4296
4295
|
userEmail?: string | undefined;
|
|
4297
4296
|
mode?: "payment" | "subscription" | undefined;
|
|
@@ -4382,14 +4381,8 @@ declare const StripePaymentSchema: v.ObjectSchema<{
|
|
|
4382
4381
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4383
4382
|
readonly price: v.StringSchema<undefined>;
|
|
4384
4383
|
readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, "EUR">;
|
|
4385
|
-
/** Stripe price ID
|
|
4384
|
+
/** Stripe price ID. */
|
|
4386
4385
|
readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Stripe price ID is required">]>, undefined>;
|
|
4387
|
-
/** Default amount in cents (dynamic pricing). Used when no priceId. */
|
|
4388
|
-
readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4389
|
-
/** Product name for Stripe checkout (dynamic pricing). */
|
|
4390
|
-
readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
4391
|
-
/** Maximum allowed unit amount in cents. Security cap for client-provided amounts. */
|
|
4392
|
-
readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4393
4386
|
readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Tier is required">]>;
|
|
4394
4387
|
readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Duration is required">]>;
|
|
4395
4388
|
readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -4429,14 +4422,8 @@ declare const ProductDeclarationSchema: v.VariantSchema<"type", [v.ObjectSchema<
|
|
|
4429
4422
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4430
4423
|
readonly price: v.StringSchema<undefined>;
|
|
4431
4424
|
readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, "EUR">;
|
|
4432
|
-
/** Stripe price ID
|
|
4425
|
+
/** Stripe price ID. */
|
|
4433
4426
|
readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Stripe price ID is required">]>, undefined>;
|
|
4434
|
-
/** Default amount in cents (dynamic pricing). Used when no priceId. */
|
|
4435
|
-
readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4436
|
-
/** Product name for Stripe checkout (dynamic pricing). */
|
|
4437
|
-
readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
4438
|
-
/** Maximum allowed unit amount in cents. Security cap for client-provided amounts. */
|
|
4439
|
-
readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4440
4427
|
readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Tier is required">]>;
|
|
4441
4428
|
readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Duration is required">]>;
|
|
4442
4429
|
readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -4467,14 +4454,8 @@ declare const ProductDeclarationsSchema: v.RecordSchema<v.StringSchema<undefined
|
|
|
4467
4454
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4468
4455
|
readonly price: v.StringSchema<undefined>;
|
|
4469
4456
|
readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, "EUR">;
|
|
4470
|
-
/** Stripe price ID
|
|
4457
|
+
/** Stripe price ID. */
|
|
4471
4458
|
readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Stripe price ID is required">]>, undefined>;
|
|
4472
|
-
/** Default amount in cents (dynamic pricing). Used when no priceId. */
|
|
4473
|
-
readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4474
|
-
/** Product name for Stripe checkout (dynamic pricing). */
|
|
4475
|
-
readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
4476
|
-
/** Maximum allowed unit amount in cents. Security cap for client-provided amounts. */
|
|
4477
|
-
readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4478
4459
|
readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Tier is required">]>;
|
|
4479
4460
|
readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Duration is required">]>;
|
|
4480
4461
|
readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -4505,12 +4486,8 @@ declare const StripeFrontConfigSchema: v.RecordSchema<v.StringSchema<undefined>,
|
|
|
4505
4486
|
readonly currency: v.StringSchema<undefined>;
|
|
4506
4487
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4507
4488
|
readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
4508
|
-
/** Stripe price ID
|
|
4489
|
+
/** Stripe price ID. */
|
|
4509
4490
|
readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4510
|
-
/** Amount in cents (dynamic pricing). For display purposes. */
|
|
4511
|
-
readonly unitAmount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
4512
|
-
/** Product name (dynamic pricing). For display purposes. */
|
|
4513
|
-
readonly productName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4514
4491
|
readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4515
4492
|
}, undefined>, undefined>;
|
|
4516
4493
|
/**
|
|
@@ -4599,9 +4576,6 @@ declare const StripeBackConfigSchema: v.RecordSchema<v.StringSchema<undefined>,
|
|
|
4599
4576
|
readonly price: v.NumberSchema<undefined>;
|
|
4600
4577
|
readonly currency: v.StringSchema<undefined>;
|
|
4601
4578
|
readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4602
|
-
readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4603
|
-
readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
4604
|
-
readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4605
4579
|
readonly tier: v.StringSchema<undefined>;
|
|
4606
4580
|
readonly duration: v.StringSchema<undefined>;
|
|
4607
4581
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -4613,9 +4587,6 @@ declare const StripeBackConfigSchema: v.RecordSchema<v.StringSchema<undefined>,
|
|
|
4613
4587
|
readonly price: v.NumberSchema<undefined>;
|
|
4614
4588
|
readonly currency: v.StringSchema<undefined>;
|
|
4615
4589
|
readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4616
|
-
readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4617
|
-
readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
4618
|
-
readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4619
4590
|
readonly tier: v.StringSchema<undefined>;
|
|
4620
4591
|
readonly duration: v.StringSchema<undefined>;
|
|
4621
4592
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -4666,8 +4637,6 @@ declare function validateStripeFrontConfig(config: unknown): {
|
|
|
4666
4637
|
description?: string | undefined;
|
|
4667
4638
|
features?: string[] | undefined;
|
|
4668
4639
|
priceId?: string | undefined;
|
|
4669
|
-
unitAmount?: number | undefined;
|
|
4670
|
-
productName?: string | undefined;
|
|
4671
4640
|
allowPromotionCodes?: boolean | undefined;
|
|
4672
4641
|
};
|
|
4673
4642
|
};
|
|
@@ -4684,9 +4653,6 @@ declare function validateStripeBackConfig(config: unknown): {
|
|
|
4684
4653
|
price: number;
|
|
4685
4654
|
currency: string;
|
|
4686
4655
|
priceId?: string | undefined;
|
|
4687
|
-
unitAmount?: number | undefined;
|
|
4688
|
-
productName?: string | undefined;
|
|
4689
|
-
maxUnitAmount?: number | undefined;
|
|
4690
4656
|
tier: string;
|
|
4691
4657
|
duration: string;
|
|
4692
4658
|
description?: string | undefined;
|
|
@@ -4700,9 +4666,6 @@ declare function validateStripeBackConfig(config: unknown): {
|
|
|
4700
4666
|
price: number;
|
|
4701
4667
|
currency: string;
|
|
4702
4668
|
priceId?: string | undefined;
|
|
4703
|
-
unitAmount?: number | undefined;
|
|
4704
|
-
productName?: string | undefined;
|
|
4705
|
-
maxUnitAmount?: number | undefined;
|
|
4706
4669
|
tier: string;
|
|
4707
4670
|
duration: string;
|
|
4708
4671
|
description?: string | undefined;
|
|
@@ -4771,11 +4734,7 @@ declare function validateBillingSchemas(): {
|
|
|
4771
4734
|
readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4772
4735
|
/** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */
|
|
4773
4736
|
readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4774
|
-
/** 0.1.x:
|
|
4775
|
-
readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
4776
|
-
/** 0.1.x: product name shown on Stripe checkout (dynamic pricing) */
|
|
4777
|
-
readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
4778
|
-
/** 0.1.x: currency code (dynamic pricing), defaults to the back config currency */
|
|
4737
|
+
/** 0.1.x: currency code, defaults to the back config currency */
|
|
4779
4738
|
readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, "Currency must be 3-letter ISO code">]>, undefined>;
|
|
4780
4739
|
readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
4781
4740
|
/** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */
|
|
@@ -4796,8 +4755,6 @@ declare function validateBillingSchemas(): {
|
|
|
4796
4755
|
userId?: string | undefined;
|
|
4797
4756
|
productId?: string | undefined;
|
|
4798
4757
|
priceId?: string | undefined;
|
|
4799
|
-
unitAmount?: number | undefined;
|
|
4800
|
-
productName?: string | undefined;
|
|
4801
4758
|
currency?: string | undefined;
|
|
4802
4759
|
userEmail?: string | undefined;
|
|
4803
4760
|
mode?: "payment" | "subscription" | undefined;
|
|
@@ -4817,8 +4774,6 @@ declare function validateBillingSchemas(): {
|
|
|
4817
4774
|
userId?: string | undefined;
|
|
4818
4775
|
productId?: string | undefined;
|
|
4819
4776
|
priceId?: string | undefined;
|
|
4820
|
-
unitAmount?: number | undefined;
|
|
4821
|
-
productName?: string | undefined;
|
|
4822
4777
|
currency?: string | undefined;
|
|
4823
4778
|
userEmail?: string | undefined;
|
|
4824
4779
|
mode?: "payment" | "subscription" | undefined;
|
|
@@ -5058,10 +5013,6 @@ interface RefreshSubscriptionRequest {
|
|
|
5058
5013
|
interface StripeProvider {
|
|
5059
5014
|
createCheckoutSession(params: {
|
|
5060
5015
|
priceId?: string;
|
|
5061
|
-
/** Amount in cents (dynamic pricing mode, used with price_data) */
|
|
5062
|
-
unitAmount?: number;
|
|
5063
|
-
/** Product name for Stripe checkout (dynamic pricing mode) */
|
|
5064
|
-
productName?: string;
|
|
5065
5016
|
/** Currency code, defaults to 'eur' */
|
|
5066
5017
|
currency?: string;
|
|
5067
5018
|
userId: string;
|
|
@@ -5128,10 +5079,6 @@ type BillingErrorCode = 'unknown' | 'unauthenticated' | 'invalid_request' | 'str
|
|
|
5128
5079
|
interface StripeCheckoutRequest {
|
|
5129
5080
|
/** Stripe price ID (fixed pricing mode) */
|
|
5130
5081
|
priceId?: string;
|
|
5131
|
-
/** Amount in cents (dynamic pricing mode, used with price_data) */
|
|
5132
|
-
unitAmount?: number;
|
|
5133
|
-
/** Product name for Stripe checkout (dynamic pricing mode) */
|
|
5134
|
-
productName?: string;
|
|
5135
5082
|
/** Currency code, defaults to 'eur' (dynamic pricing mode) */
|
|
5136
5083
|
currency?: string;
|
|
5137
5084
|
/** User email for the subscription */
|
|
@@ -5510,16 +5457,6 @@ interface BeforeCheckoutResult {
|
|
|
5510
5457
|
allowed: boolean;
|
|
5511
5458
|
/** Reason for blocking (shown in error response) */
|
|
5512
5459
|
reason?: string;
|
|
5513
|
-
/**
|
|
5514
|
-
* 0.1.x dynamic pricing only (request `unitAmount` + `productName`, no
|
|
5515
|
-
* `priceId`): replaces the amount/name before session creation. The amount
|
|
5516
|
-
* stays capped by the back config `maxUnitAmount`. Ignored otherwise.
|
|
5517
|
-
* @deprecated Prefer StripeOrder `resolveLineItems` for server-priced lines.
|
|
5518
|
-
*/
|
|
5519
|
-
overrides?: {
|
|
5520
|
-
unitAmount?: number;
|
|
5521
|
-
productName?: string;
|
|
5522
|
-
};
|
|
5523
5460
|
}
|
|
5524
5461
|
/**
|
|
5525
5462
|
* Second argument of a `beforeCheckout` hook: the normalized request plus the
|
|
@@ -5588,6 +5525,13 @@ interface ResolvedLineItem {
|
|
|
5588
5525
|
/** Unit price excl. VAT, in the smallest currency unit (cents) */
|
|
5589
5526
|
unitAmount: number;
|
|
5590
5527
|
quantity: number;
|
|
5528
|
+
/**
|
|
5529
|
+
* Automatic tax only: Stripe tax code of this line (`price_data.product_data.tax_code`),
|
|
5530
|
+
* e.g. `txcd_92010001` for a shipping line sent as an order line. Omit to use the
|
|
5531
|
+
* account's default product tax code.
|
|
5532
|
+
* @since 0.2.3
|
|
5533
|
+
*/
|
|
5534
|
+
taxCode?: string;
|
|
5591
5535
|
}
|
|
5592
5536
|
/**
|
|
5593
5537
|
* Output of `resolveLineItems`: the server-side order and its priced lines.
|
|
@@ -5623,6 +5567,15 @@ interface ResolvedOrderSession {
|
|
|
5623
5567
|
expiresAt?: number;
|
|
5624
5568
|
/** Footer printed on the post-payment invoice (e.g. a legal mention). Needs `invoiceCreation`. */
|
|
5625
5569
|
invoiceFooter?: string;
|
|
5570
|
+
/**
|
|
5571
|
+
* Existing Stripe Customer ID (`cus_...`) the session is created for. Its tax IDs and
|
|
5572
|
+
* address then drive Stripe Tax and the invoice. Replaces `customer_email` and
|
|
5573
|
+
* `customerCreation` (Stripe only applies those when it creates a Customer). Checkout
|
|
5574
|
+
* updates the Customer from the session: address under automatic tax, shipping when
|
|
5575
|
+
* shipping is collected, name when tax ID collection is enabled (Stripe requirement).
|
|
5576
|
+
* @since 0.2.3
|
|
5577
|
+
*/
|
|
5578
|
+
customerId?: string;
|
|
5626
5579
|
}
|
|
5627
5580
|
/**
|
|
5628
5581
|
* Context passed to `resolveLineItems`.
|
|
@@ -5730,6 +5683,48 @@ interface OrderHookContext {
|
|
|
5730
5683
|
*/
|
|
5731
5684
|
eventId: string;
|
|
5732
5685
|
}
|
|
5686
|
+
/**
|
|
5687
|
+
* Provider-neutral snapshot of a Stripe customer tax ID (`customer.tax_id.updated`).
|
|
5688
|
+
*
|
|
5689
|
+
* @version 0.2.0
|
|
5690
|
+
* @since 0.2.3
|
|
5691
|
+
* @author AMBROISE PARK Consulting
|
|
5692
|
+
*/
|
|
5693
|
+
interface TaxIdSnapshot {
|
|
5694
|
+
/** Stripe TaxId ID (`txi_...`) */
|
|
5695
|
+
id: string;
|
|
5696
|
+
/** Stripe Customer ID (`cus_...`) owning the tax ID, null when not owned by a Customer */
|
|
5697
|
+
customerId: string | null;
|
|
5698
|
+
/** Stripe tax ID type, e.g. `eu_vat` */
|
|
5699
|
+
type: string;
|
|
5700
|
+
/** Tax ID value, e.g. `DE123456789` */
|
|
5701
|
+
value: string;
|
|
5702
|
+
/** ISO 3166-1 alpha-2 country of the tax ID */
|
|
5703
|
+
country: string | null;
|
|
5704
|
+
/** Government verification (null when Stripe does not verify this type) */
|
|
5705
|
+
verification: {
|
|
5706
|
+
/** 'pending' | 'verified' | 'unverified' | 'unavailable' */
|
|
5707
|
+
status: 'pending' | 'verified' | 'unverified' | 'unavailable';
|
|
5708
|
+
verifiedName: string | null;
|
|
5709
|
+
verifiedAddress: string | null;
|
|
5710
|
+
} | null;
|
|
5711
|
+
}
|
|
5712
|
+
/**
|
|
5713
|
+
* Context passed to `onTaxIdUpdated`.
|
|
5714
|
+
*
|
|
5715
|
+
* @version 0.2.0
|
|
5716
|
+
* @since 0.2.3
|
|
5717
|
+
* @author AMBROISE PARK Consulting
|
|
5718
|
+
*/
|
|
5719
|
+
interface TaxIdHookContext {
|
|
5720
|
+
/** Back config key of the StripeOrder item whose hook runs */
|
|
5721
|
+
billingConfigKey: string;
|
|
5722
|
+
/**
|
|
5723
|
+
* Stripe event ID. Delivery is at-least-once: key side effects on `taxId.id` +
|
|
5724
|
+
* `verification.status` (or `eventId`) so a replay is a no-op.
|
|
5725
|
+
*/
|
|
5726
|
+
eventId: string;
|
|
5727
|
+
}
|
|
5733
5728
|
/**
|
|
5734
5729
|
* Client checkout options (useStripeBilling `checkout`).
|
|
5735
5730
|
*
|
|
@@ -5749,10 +5744,6 @@ interface CheckoutOptions {
|
|
|
5749
5744
|
allowPromotionCodes?: boolean;
|
|
5750
5745
|
/** Stripe price ID (single-price items). Must match the back config priceId when it has one; defaults to it. */
|
|
5751
5746
|
priceId?: string;
|
|
5752
|
-
/** Dynamic pricing amount in cents (with `productName`, no `priceId`). Capped by the back config `maxUnitAmount`. */
|
|
5753
|
-
unitAmount?: number;
|
|
5754
|
-
/** Product name for dynamic pricing. */
|
|
5755
|
-
productName?: string;
|
|
5756
5747
|
/** Currency for dynamic pricing (default 'eur'). */
|
|
5757
5748
|
currency?: string;
|
|
5758
5749
|
/** Stripe mode for single-price items. Defaults to the back config item type. */
|
|
@@ -5870,6 +5861,16 @@ type StripeOrderBackItem = Extract<StripeBackConfigItemData, {
|
|
|
5870
5861
|
onOrderPaymentFailed?: (session: CheckoutSessionSnapshot, ctx: OrderHookContext) => Promise<void>;
|
|
5871
5862
|
/** Checkout session expired without payment. */
|
|
5872
5863
|
onOrderExpired?: (session: CheckoutSessionSnapshot, ctx: OrderHookContext) => Promise<void>;
|
|
5864
|
+
/**
|
|
5865
|
+
* Stripe event `customer.tax_id.updated` (e.g. government verification finished:
|
|
5866
|
+
* `taxId.verification.status` became `verified` / `unverified` / `unavailable`).
|
|
5867
|
+
* Not tied to an order: it runs once per event for every StripeOrder item that
|
|
5868
|
+
* defines it (one function shared by several items runs once). Errors propagate:
|
|
5869
|
+
* the webhook answers non-2xx and Stripe retries. Subscribe the webhook endpoint
|
|
5870
|
+
* to `customer.tax_id.updated`.
|
|
5871
|
+
* @since 0.2.3
|
|
5872
|
+
*/
|
|
5873
|
+
onTaxIdUpdated?: (taxId: TaxIdSnapshot, ctx: TaxIdHookContext) => Promise<void>;
|
|
5873
5874
|
};
|
|
5874
5875
|
/**
|
|
5875
5876
|
* Backend billing configuration type with hooks
|
|
@@ -5971,10 +5972,6 @@ interface CheckoutSessionResult {
|
|
|
5971
5972
|
*/
|
|
5972
5973
|
interface CheckoutSessionParams {
|
|
5973
5974
|
priceId?: string;
|
|
5974
|
-
/** Amount in cents (dynamic pricing mode) */
|
|
5975
|
-
unitAmount?: number;
|
|
5976
|
-
/** Product name for Stripe checkout (dynamic pricing mode) */
|
|
5977
|
-
productName?: string;
|
|
5978
5975
|
/** Currency code, defaults to 'eur' */
|
|
5979
5976
|
currency?: string;
|
|
5980
5977
|
customerEmail?: string;
|
|
@@ -6717,7 +6714,14 @@ interface AuthProvider {
|
|
|
6717
6714
|
* Used to build the redirect URL in password reset emails.
|
|
6718
6715
|
*/
|
|
6719
6716
|
getPasswordResetRedirectUrl?(): string;
|
|
6720
|
-
|
|
6717
|
+
/**
|
|
6718
|
+
* Send (again) the address-confirmation email.
|
|
6719
|
+
*
|
|
6720
|
+
* @param email - Address to confirm. Needed when nobody is signed in (sign-up with
|
|
6721
|
+
* email confirmation leaves no session); providers that can only resend to the
|
|
6722
|
+
* signed-in user ignore it.
|
|
6723
|
+
*/
|
|
6724
|
+
sendEmailVerification(email?: string): Promise<void>;
|
|
6721
6725
|
sendSignInLinkToEmail(email: string, actionCodeSettings?: {
|
|
6722
6726
|
url: string;
|
|
6723
6727
|
handleCodeInApp: boolean;
|
|
@@ -6732,14 +6736,19 @@ interface AuthProvider {
|
|
|
6732
6736
|
reauthenticateWithProvider(partnerId: AuthPartnerId, method?: AuthMethod): Promise<void>;
|
|
6733
6737
|
deleteAccount(password?: string): Promise<void>;
|
|
6734
6738
|
/**
|
|
6735
|
-
* Set session persistence (remember me).
|
|
6739
|
+
* Set session persistence (remember me) for the next sign-in.
|
|
6736
6740
|
* Provider-specific: Firebase uses browserLocal/browserSession persistence,
|
|
6737
|
-
* Supabase uses
|
|
6738
|
-
*
|
|
6741
|
+
* Supabase uses persistent or session cookies.
|
|
6742
|
+
* Throws when this provider instance cannot honour it (see `supportsRememberMe`).
|
|
6739
6743
|
*
|
|
6740
6744
|
* @param remember - true for persistent session, false for session-only
|
|
6741
6745
|
*/
|
|
6742
6746
|
setRememberMe?(remember: boolean): Promise<void>;
|
|
6747
|
+
/**
|
|
6748
|
+
* Whether `setRememberMe` works on this instance (e.g. Supabase only with the cookie
|
|
6749
|
+
* client). Omitted = it works whenever `setRememberMe` exists.
|
|
6750
|
+
*/
|
|
6751
|
+
supportsRememberMe?(): boolean;
|
|
6743
6752
|
/**
|
|
6744
6753
|
* Signed-in state read synchronously from the request cookies, without the auth
|
|
6745
6754
|
* service. Lets the server render, and the client's hydration pass, show the real
|
|
@@ -6842,7 +6851,7 @@ interface AuthAPI {
|
|
|
6842
6851
|
updatePassword: (newPassword: string) => Promise<void>;
|
|
6843
6852
|
verifyPasswordResetCode: (code: string) => Promise<string | null>;
|
|
6844
6853
|
confirmPasswordReset: (code: string, newPassword: string) => Promise<void>;
|
|
6845
|
-
sendEmailVerification: () => Promise<void>;
|
|
6854
|
+
sendEmailVerification: (email?: string) => Promise<void>;
|
|
6846
6855
|
getEmailVerificationStatus: () => Promise<{
|
|
6847
6856
|
status: string;
|
|
6848
6857
|
}>;
|
|
@@ -6854,7 +6863,10 @@ interface AuthAPI {
|
|
|
6854
6863
|
reauthenticateWithPassword: (password: string) => Promise<void>;
|
|
6855
6864
|
reauthenticateWithProvider: (partnerId: AuthPartnerId, method?: AuthMethod) => Promise<void>;
|
|
6856
6865
|
deleteAccount: (password?: string) => Promise<void>;
|
|
6866
|
+
/** Choose persistent vs session-only for the next sign-in. Throws when unsupported. */
|
|
6857
6867
|
setRememberMe: (remember: boolean) => Promise<void>;
|
|
6868
|
+
/** Whether the provider can honour `setRememberMe` (render the checkbox only then). */
|
|
6869
|
+
canRememberMe: () => boolean;
|
|
6858
6870
|
isAuthenticated: boolean;
|
|
6859
6871
|
userRole: string;
|
|
6860
6872
|
userTier: string;
|
|
@@ -7734,7 +7746,17 @@ interface EntityField<T extends string = FieldType> {
|
|
|
7734
7746
|
editable?: Editable;
|
|
7735
7747
|
/** Validation rules for this field. For select/multiselect/radio fields, include `options` array here. */
|
|
7736
7748
|
validation?: ValidationRules<T>;
|
|
7737
|
-
/**
|
|
7749
|
+
/**
|
|
7750
|
+
* Translated field (types: text, textarea, richtext, field-array).
|
|
7751
|
+
* The field keeps the default language; the other languages live in the companion
|
|
7752
|
+
* field `<name>I18n` (`{ en: '…', de: '…' }`, Supabase column `<name>_i18n jsonb`).
|
|
7753
|
+
* `useCrudDoc`, `useCrudList` and `useCrudCardList` return the current language,
|
|
7754
|
+
* falling back to the default-language value when a translation is missing or empty.
|
|
7755
|
+
* Edit forms read with `translate: false` so they never save a translation as the
|
|
7756
|
+
* default-language value.
|
|
7757
|
+
*
|
|
7758
|
+
* @since 0.2.3
|
|
7759
|
+
*/
|
|
7738
7760
|
i18n?: boolean;
|
|
7739
7761
|
/** Display label for the field */
|
|
7740
7762
|
label: string;
|
|
@@ -7838,6 +7860,10 @@ type EntityFieldMapDefault = Record<string, EntityField> & BaseEntityFields;
|
|
|
7838
7860
|
*/
|
|
7839
7861
|
type EntityRowFromFields<F extends Record<string, EntityField>> = {
|
|
7840
7862
|
[K in keyof F]: F[K] extends EntityField<infer FT> ? FT extends keyof FieldTypeToValue ? FieldTypeToValue[FT] : unknown : unknown;
|
|
7863
|
+
} & {
|
|
7864
|
+
[K in keyof F as F[K] extends {
|
|
7865
|
+
i18n: true;
|
|
7866
|
+
} ? `${K & string}I18n` : never]?: F[K] extends EntityField<infer FT> ? FT extends keyof FieldTypeToValue ? Partial<Record<string, FieldTypeToValue[FT]>> | null : unknown : unknown;
|
|
7841
7867
|
} & Record<string, unknown>;
|
|
7842
7868
|
/**
|
|
7843
7869
|
* Unique key constraint definition for entity deduplication
|
|
@@ -7988,6 +8014,42 @@ interface ListCardLayout {
|
|
|
7988
8014
|
/** Fields rendered in the card footer */
|
|
7989
8015
|
footer?: string[];
|
|
7990
8016
|
}
|
|
8017
|
+
/**
|
|
8018
|
+
* schema.org `ItemAvailability` member (https://schema.org/ItemAvailability).
|
|
8019
|
+
*
|
|
8020
|
+
* @version 0.1.0
|
|
8021
|
+
* @since 0.2.3
|
|
8022
|
+
*/
|
|
8023
|
+
type SchemaOrgAvailability = 'BackOrder' | 'Discontinued' | 'InStock' | 'InStoreOnly' | 'LimitedAvailability' | 'MadeToOrder' | 'OnlineOnly' | 'OutOfStock' | 'PreOrder' | 'PreSale' | 'Reserved' | 'SoldOut';
|
|
8024
|
+
/**
|
|
8025
|
+
* Entity-level SEO options (`deriveEntitySeo`, `<Seo entity data>`, llms.txt).
|
|
8026
|
+
* By default the title and description come from the card fields (`listCardFields`),
|
|
8027
|
+
* formatted like the card shows them; these options override that.
|
|
8028
|
+
*
|
|
8029
|
+
* @version 0.1.0
|
|
8030
|
+
* @since 0.2.3
|
|
8031
|
+
*/
|
|
8032
|
+
interface EntitySeoConfig {
|
|
8033
|
+
/**
|
|
8034
|
+
* Record title (no site name). Return `null` to have no title.
|
|
8035
|
+
* Replaces the `listCardFields.title` text.
|
|
8036
|
+
*/
|
|
8037
|
+
title?: (item: Record<string, unknown>, t: (key: string, options?: Record<string, unknown>) => string) => string | null;
|
|
8038
|
+
/**
|
|
8039
|
+
* Plain-text description (truncated to 160 characters). Return `null` to have none.
|
|
8040
|
+
* Replaces the long-text / card subtitle and content text.
|
|
8041
|
+
*/
|
|
8042
|
+
description?: (item: Record<string, unknown>, t: (key: string, options?: Record<string, unknown>) => string) => string | null;
|
|
8043
|
+
/**
|
|
8044
|
+
* schema.org availability of the Product offer, by record `status`. Merged over the
|
|
8045
|
+
* base mapping `{ available: 'InStock' }`. A status without a mapping emits no
|
|
8046
|
+
* `availability`. Read from the record the page renders: needs a guest-visible `status`
|
|
8047
|
+
* field (the base `status` is `visibility: 'admin'`, so crawlers get none without it).
|
|
8048
|
+
*
|
|
8049
|
+
* @example `{ promoted: 'InStock', reserved: 'SoldOut', signed: 'SoldOut' }`
|
|
8050
|
+
*/
|
|
8051
|
+
availability?: Readonly<Record<string, SchemaOrgAvailability>>;
|
|
8052
|
+
}
|
|
7991
8053
|
/**
|
|
7992
8054
|
* Definition of a business entity without base fields
|
|
7993
8055
|
*
|
|
@@ -8156,6 +8218,21 @@ interface BusinessEntity<out F extends Record<string, EntityField> = Record<stri
|
|
|
8156
8218
|
field: string;
|
|
8157
8219
|
direction?: 'asc' | 'desc';
|
|
8158
8220
|
};
|
|
8221
|
+
/**
|
|
8222
|
+
* SEO overrides and schema.org availability for this entity's records.
|
|
8223
|
+
* Without it, the title and description are the card's text (`listCardFields`).
|
|
8224
|
+
*
|
|
8225
|
+
* @example
|
|
8226
|
+
* ```typescript
|
|
8227
|
+
* seo: {
|
|
8228
|
+
* title: (item, t) => t('seo.title', { district: item.district_code }),
|
|
8229
|
+
* availability: { promoted: 'InStock', reserved: 'SoldOut', signed: 'SoldOut' },
|
|
8230
|
+
* }
|
|
8231
|
+
* ```
|
|
8232
|
+
*
|
|
8233
|
+
* @since 0.2.3
|
|
8234
|
+
*/
|
|
8235
|
+
seo?: EntitySeoConfig;
|
|
8159
8236
|
}
|
|
8160
8237
|
/**
|
|
8161
8238
|
* Complete entity definition including base fields
|
|
@@ -8228,6 +8305,11 @@ interface SchemaMetadata {
|
|
|
8228
8305
|
* Used by backend CRUD functions for deduplication
|
|
8229
8306
|
*/
|
|
8230
8307
|
uniqueKeys?: UniqueKeyDefinition[];
|
|
8308
|
+
/**
|
|
8309
|
+
* SOC2 security configuration copied from the entity definition.
|
|
8310
|
+
* CrudService reads `security.piiFields` from here to encrypt on write and decrypt on read.
|
|
8311
|
+
*/
|
|
8312
|
+
security?: SecurityEntityConfig;
|
|
8231
8313
|
/** Custom validation function (for function validation) */
|
|
8232
8314
|
customValidate?: (data: Record<string, any>, operation: 'create' | 'update') => Promise<void>;
|
|
8233
8315
|
}
|
|
@@ -8477,8 +8559,6 @@ interface CrudAPI<T = unknown> {
|
|
|
8477
8559
|
* - `error`: CRUD encountered error
|
|
8478
8560
|
*/
|
|
8479
8561
|
status: FeatureStatus;
|
|
8480
|
-
/** Current data (from get/subscribe) */
|
|
8481
|
-
data: T | null;
|
|
8482
8562
|
/** Loading state for async operations */
|
|
8483
8563
|
loading: boolean;
|
|
8484
8564
|
/** Last error encountered */
|
|
@@ -8555,8 +8635,10 @@ interface ColumnDef<T extends FieldValues> {
|
|
|
8555
8635
|
* include only the buckets they need. Items are processed in input order per
|
|
8556
8636
|
* bucket and returned in the same order in {@link BulkResult}.
|
|
8557
8637
|
*
|
|
8558
|
-
* Semantics
|
|
8559
|
-
* -
|
|
8638
|
+
* Semantics:
|
|
8639
|
+
* - Partial success: each row succeeds or fails on its own. Rows that worked
|
|
8640
|
+
* stay written (no rollback); rows that failed are listed in
|
|
8641
|
+
* {@link BulkResult.failed} with the reason.
|
|
8560
8642
|
* - Collision rejection: an id appearing in both `updates` and `deletes`, or both
|
|
8561
8643
|
* `inserts` and `updates`, fails up-front with {@link BulkCollisionError}.
|
|
8562
8644
|
* - Empty bulk (`{}`) is a no-op that returns a zeroed {@link BulkResult}
|
|
@@ -8589,28 +8671,47 @@ interface BulkOperations<T extends Record<string, unknown>> {
|
|
|
8589
8671
|
deletes?: string[];
|
|
8590
8672
|
}
|
|
8591
8673
|
/**
|
|
8592
|
-
*
|
|
8593
|
-
*
|
|
8674
|
+
* One row of a bulk operation that was not written.
|
|
8675
|
+
*
|
|
8676
|
+
* @version 0.1.0
|
|
8677
|
+
* @since 0.2.3
|
|
8678
|
+
* @author AMBROISE PARK Consulting
|
|
8679
|
+
*/
|
|
8680
|
+
interface BulkFailure {
|
|
8681
|
+
/** Bucket the row came from. */
|
|
8682
|
+
op: 'insert' | 'update' | 'delete';
|
|
8683
|
+
/** Record id (updates and deletes). */
|
|
8684
|
+
id?: string;
|
|
8685
|
+
/** Position in `inserts` (inserted rows have no id yet). */
|
|
8686
|
+
index?: number;
|
|
8687
|
+
/** Why the row was not written (backend message, or access denied / not found). */
|
|
8688
|
+
error: string;
|
|
8689
|
+
}
|
|
8690
|
+
/**
|
|
8691
|
+
* Result of a bulk CRUD operation: partial success. Rows that were written are
|
|
8692
|
+
* listed per bucket in input order; rows that were not are in `failed`. Nothing
|
|
8693
|
+
* that succeeded is rolled back.
|
|
8594
8694
|
*
|
|
8595
8695
|
* @example
|
|
8596
|
-
* const r: BulkResult = await adapter.bulk('
|
|
8597
|
-
*
|
|
8598
|
-
* deletes: ['x'],
|
|
8696
|
+
* const r: BulkResult = await adapter.bulk('products', {
|
|
8697
|
+
* updates: [{ id: 'p1', patch: { size: '50 ml' } }, { id: 'p2', patch: { size: '50 ml' } }],
|
|
8599
8698
|
* });
|
|
8600
|
-
* r.
|
|
8601
|
-
* r.
|
|
8699
|
+
* r.updatedIds; // ['p1']
|
|
8700
|
+
* r.failed; // [{ op: 'update', id: 'p2', error: 'Update affected 0 rows: …' }]
|
|
8602
8701
|
*
|
|
8603
|
-
* @version 0.
|
|
8702
|
+
* @version 0.2.0
|
|
8604
8703
|
* @since 0.2.0
|
|
8605
8704
|
* @author AMBROISE PARK Consulting
|
|
8606
8705
|
*/
|
|
8607
8706
|
interface BulkResult {
|
|
8608
|
-
/** Server-assigned IDs
|
|
8707
|
+
/** Server-assigned IDs of the inserted rows, in input order of the inserts that succeeded. */
|
|
8609
8708
|
insertedIds: string[];
|
|
8610
8709
|
/** IDs that were updated, in input order. */
|
|
8611
8710
|
updatedIds: string[];
|
|
8612
8711
|
/** IDs that were deleted, in input order. */
|
|
8613
8712
|
deletedIds: string[];
|
|
8713
|
+
/** Rows that were not written, with the reason. Empty when everything succeeded. */
|
|
8714
|
+
failed: BulkFailure[];
|
|
8614
8715
|
}
|
|
8615
8716
|
/**
|
|
8616
8717
|
* One collection's worth of operations inside a {@link bulkAcross} call.
|
|
@@ -8761,7 +8862,13 @@ interface CrudListQuery<T> {
|
|
|
8761
8862
|
*/
|
|
8762
8863
|
interface CrudDocQuery<T> {
|
|
8763
8864
|
readonly queryKey: readonly ['crud', string, 'get', string];
|
|
8764
|
-
|
|
8865
|
+
/**
|
|
8866
|
+
* Receives TanStack's query context; `client` (the request's QueryClient on the
|
|
8867
|
+
* server) selects a request-scoped adapter when one is bound.
|
|
8868
|
+
*/
|
|
8869
|
+
readonly queryFn: (context: {
|
|
8870
|
+
client: object;
|
|
8871
|
+
}) => Promise<T | null>;
|
|
8765
8872
|
readonly staleTime: number;
|
|
8766
8873
|
}
|
|
8767
8874
|
/** Callback for single-document subscriptions */
|
|
@@ -8829,11 +8936,12 @@ interface ICrudAdapter {
|
|
|
8829
8936
|
data: Record<string, unknown>;
|
|
8830
8937
|
}>;
|
|
8831
8938
|
/**
|
|
8832
|
-
* Execute a bulk
|
|
8833
|
-
* -
|
|
8834
|
-
*
|
|
8939
|
+
* Execute a bulk operation: many rows in as few round-trips as the backend allows.
|
|
8940
|
+
* - Partial success: rows that are written stay written; rows that fail are
|
|
8941
|
+
* returned in `BulkResult.failed` with the reason (no rollback).
|
|
8835
8942
|
* - Empty ops returns a zeroed BulkResult without wire contact.
|
|
8836
|
-
* - Throws
|
|
8943
|
+
* - Throws only when the batch cannot be attempted at all (invalid input,
|
|
8944
|
+
* id collision, no session).
|
|
8837
8945
|
*
|
|
8838
8946
|
* @example
|
|
8839
8947
|
* const r = await adapter.bulk('events', { inserts: [{ title: 'A' }], deletes: ['x'] });
|
|
@@ -9072,6 +9180,39 @@ interface EntityListProps extends EntityBrowseBaseProps {
|
|
|
9072
9180
|
* @default true (admin tables typically need export)
|
|
9073
9181
|
*/
|
|
9074
9182
|
exportable?: boolean;
|
|
9183
|
+
/**
|
|
9184
|
+
* Edit the list in place, spreadsheet-style: list fields of type text, email,
|
|
9185
|
+
* url, tel, textarea, number, select, radio and reference are edited in their
|
|
9186
|
+
* cells (references and selects as dropdowns), checked rows take one value
|
|
9187
|
+
* for a field at once, blocks paste from Excel / Sheets. Fields the viewer may
|
|
9188
|
+
* not edit (`editable`) stay read-only. Save writes every change in one
|
|
9189
|
+
* `useCrud().bulk({ updates })`. Rows open from the leading open-link icon
|
|
9190
|
+
* (a row click edits). Opt out with `editable={false}` (read-only cells, row
|
|
9191
|
+
* click opens the record).
|
|
9192
|
+
* @default true
|
|
9193
|
+
* @since 0.2.3
|
|
9194
|
+
*/
|
|
9195
|
+
editable?: boolean;
|
|
9196
|
+
/**
|
|
9197
|
+
* Nested list of one parent's children (e.g. the products of a brand on the
|
|
9198
|
+
* brand page): lists only rows whose `field` equals `value`, hides that column
|
|
9199
|
+
* and filter, and the add button opens the create form with `field` prefilled
|
|
9200
|
+
* (`EntityFormRenderer` reads it from the URL). `field` must be a `reference`
|
|
9201
|
+
* field of the entity.
|
|
9202
|
+
* @example
|
|
9203
|
+
* ```tsx
|
|
9204
|
+
* <EntityList entity={productEntity} basePath="/produits" parent={{ field: 'brandId', value: brandId }} />
|
|
9205
|
+
* ```
|
|
9206
|
+
* @since 0.2.3
|
|
9207
|
+
*/
|
|
9208
|
+
parent?: EntityListParent;
|
|
9209
|
+
}
|
|
9210
|
+
/** Parent of a nested `EntityList`: the reference field and the parent record id. */
|
|
9211
|
+
interface EntityListParent {
|
|
9212
|
+
/** Reference field of the listed entity pointing at the parent (e.g. `'brandId'`) */
|
|
9213
|
+
field: string;
|
|
9214
|
+
/** Parent record id */
|
|
9215
|
+
value: string;
|
|
9075
9216
|
}
|
|
9076
9217
|
/** Props for the entity card grid component with filtering and sorting. */
|
|
9077
9218
|
interface EntityCardListProps extends EntityBrowseBaseProps {
|
|
@@ -9121,8 +9262,7 @@ interface EntityCardListProps extends EntityBrowseBaseProps {
|
|
|
9121
9262
|
}
|
|
9122
9263
|
/**
|
|
9123
9264
|
* Props for CrudCard — presentational card built from entity + item + field slots.
|
|
9124
|
-
* Not route-aware: parent (e.g. EntityCardList)
|
|
9125
|
-
* For a11y/SEO prefer detailHref so the card is wrapped in a Link.
|
|
9265
|
+
* Not route-aware: parent (e.g. EntityCardList) passes `href` (real link, a11y/SEO) or onClick.
|
|
9126
9266
|
*/
|
|
9127
9267
|
interface CrudCardProps {
|
|
9128
9268
|
/** The list item (must have id) */
|
|
@@ -9136,6 +9276,11 @@ interface CrudCardProps {
|
|
|
9136
9276
|
* Navigation via Link is handled by the parent wrapper (CrudCardLink), not by CrudCard itself.
|
|
9137
9277
|
*/
|
|
9138
9278
|
onClick?: (id: string) => void;
|
|
9279
|
+
/**
|
|
9280
|
+
* Detail page URL: the card renders a real `<a href>` (crawlable, client-side
|
|
9281
|
+
* navigation through the app router). Takes precedence over `onClick`.
|
|
9282
|
+
*/
|
|
9283
|
+
href?: string;
|
|
9139
9284
|
/** Field names for card title (values joined with space) */
|
|
9140
9285
|
titleFields?: string[];
|
|
9141
9286
|
/** Field names for subtitle */
|
|
@@ -9749,8 +9894,14 @@ interface RateLimitBackend {
|
|
|
9749
9894
|
interface AuthHardeningContext {
|
|
9750
9895
|
/** @throws if identifier is currently locked out */
|
|
9751
9896
|
checkLockout(identifier: string): void;
|
|
9752
|
-
/**
|
|
9753
|
-
|
|
9897
|
+
/**
|
|
9898
|
+
* Record a failed auth attempt; may trigger lockout.
|
|
9899
|
+
* @returns Failure count for the identifier and whether this attempt locked it
|
|
9900
|
+
*/
|
|
9901
|
+
recordFailure(identifier: string): {
|
|
9902
|
+
locked: boolean;
|
|
9903
|
+
attempts: number;
|
|
9904
|
+
};
|
|
9754
9905
|
/** Clear failure counter on successful auth */
|
|
9755
9906
|
recordSuccess(identifier: string): void;
|
|
9756
9907
|
}
|
|
@@ -14395,6 +14546,215 @@ declare function parseDateToNoonUTC(dateString: string): string | undefined;
|
|
|
14395
14546
|
*/
|
|
14396
14547
|
declare function toDateOnly(date: DateValue | number | string | null | undefined): string;
|
|
14397
14548
|
|
|
14549
|
+
/**
|
|
14550
|
+
* @fileoverview Field values as text
|
|
14551
|
+
* @description How an entity field value reads as plain text: the text CRUD cards show
|
|
14552
|
+
* (title, subtitle) and entity-derived SEO uses (`deriveEntitySeo`). One implementation
|
|
14553
|
+
* for both: `@donotdev/crud` display formatters delegate their text output here. Pure,
|
|
14554
|
+
* no React: same output on the server (Next route handlers) and in the browser.
|
|
14555
|
+
*
|
|
14556
|
+
* Order (same as the CRUD display): entity `options.displayValue` (needs the record),
|
|
14557
|
+
* empty value, type formatter, then `options.displayKey` interpolation.
|
|
14558
|
+
*
|
|
14559
|
+
* @version 0.1.0
|
|
14560
|
+
* @since 0.2.3
|
|
14561
|
+
* @author AMBROISE PARK Consulting
|
|
14562
|
+
*/
|
|
14563
|
+
|
|
14564
|
+
/**
|
|
14565
|
+
* Translation function used for field text. Pass an i18next `t` bound to the entity
|
|
14566
|
+
* namespace first, then `crud` (what CRUD cards use: `useTranslation([entity.namespace, 'crud'])`).
|
|
14567
|
+
*
|
|
14568
|
+
* @version 0.1.0
|
|
14569
|
+
* @since 0.2.3
|
|
14570
|
+
*/
|
|
14571
|
+
type FieldTextTranslate = (key: string, options?: Record<string, unknown>) => string;
|
|
14572
|
+
/**
|
|
14573
|
+
* Formats one non-empty field value as text.
|
|
14574
|
+
*
|
|
14575
|
+
* @version 0.1.0
|
|
14576
|
+
* @since 0.2.3
|
|
14577
|
+
*/
|
|
14578
|
+
type FieldTextFormatter = (value: unknown, field: EntityField, t: FieldTextTranslate, options: {
|
|
14579
|
+
locale?: string;
|
|
14580
|
+
}) => string;
|
|
14581
|
+
/**
|
|
14582
|
+
* Options of {@link formatFieldText}.
|
|
14583
|
+
*
|
|
14584
|
+
* @version 0.1.0
|
|
14585
|
+
* @since 0.2.3
|
|
14586
|
+
*/
|
|
14587
|
+
interface FieldTextOptions {
|
|
14588
|
+
/** Locale for dates and numbers (i18next language) */
|
|
14589
|
+
locale?: string;
|
|
14590
|
+
/** The whole record: enables the field's `options.displayValue` resolver */
|
|
14591
|
+
item?: Record<string, unknown>;
|
|
14592
|
+
/**
|
|
14593
|
+
* Type formatter to use instead of the built-in one ({@link FIELD_TEXT_FORMATTERS}).
|
|
14594
|
+
* `@donotdev/crud` passes its field type registry formatter (custom field types).
|
|
14595
|
+
*/
|
|
14596
|
+
formatter?: FieldTextFormatter;
|
|
14597
|
+
}
|
|
14598
|
+
/**
|
|
14599
|
+
* Whether a field value is empty (`null`, `undefined` or `''`).
|
|
14600
|
+
*
|
|
14601
|
+
* @param value - Field value
|
|
14602
|
+
* @returns true when the value has nothing to show
|
|
14603
|
+
*
|
|
14604
|
+
* @version 0.1.0
|
|
14605
|
+
* @since 0.2.3
|
|
14606
|
+
*/
|
|
14607
|
+
declare function isEmptyFieldValue(value: unknown): boolean;
|
|
14608
|
+
/**
|
|
14609
|
+
* Translates a label with `namespace:key` support (option labels, field labels).
|
|
14610
|
+
* `ns:status.*` keys try the `t` default namespaces first (entity overrides), then `ns`.
|
|
14611
|
+
*
|
|
14612
|
+
* @param label - Label or i18n key (`'crud:status.draft'`, `'status.available'`)
|
|
14613
|
+
* @param t - Translation function (entity namespace first, then `crud`)
|
|
14614
|
+
* @returns Translated label
|
|
14615
|
+
*
|
|
14616
|
+
* @example
|
|
14617
|
+
* ```ts
|
|
14618
|
+
* translateEntityLabel('crud:status.draft', t); // entity "status.draft" if any, else crud's
|
|
14619
|
+
* ```
|
|
14620
|
+
*
|
|
14621
|
+
* @version 0.1.0
|
|
14622
|
+
* @since 0.2.3
|
|
14623
|
+
*/
|
|
14624
|
+
declare function translateEntityLabel(label: string, t: FieldTextTranslate): string;
|
|
14625
|
+
/**
|
|
14626
|
+
* Plain text of an HTML string: tags become spaces, whitespace collapsed.
|
|
14627
|
+
*
|
|
14628
|
+
* @param value - HTML
|
|
14629
|
+
* @returns Text content
|
|
14630
|
+
*
|
|
14631
|
+
* @version 0.1.0
|
|
14632
|
+
* @since 0.2.3
|
|
14633
|
+
*/
|
|
14634
|
+
declare function stripHtmlTags(value: string): string;
|
|
14635
|
+
/**
|
|
14636
|
+
* Built-in text formatters, by field type. Types that only render visually
|
|
14637
|
+
* (images, files, rating, map) have none.
|
|
14638
|
+
*
|
|
14639
|
+
* @version 0.1.0
|
|
14640
|
+
* @since 0.2.3
|
|
14641
|
+
*/
|
|
14642
|
+
declare const FIELD_TEXT_FORMATTERS: Readonly<Record<string, FieldTextFormatter>>;
|
|
14643
|
+
/**
|
|
14644
|
+
* A field value as text, formatted like the CRUD card shows it.
|
|
14645
|
+
*
|
|
14646
|
+
* 1. `options.displayValue(value, item, t)` when `item` is given (`null` hides the field)
|
|
14647
|
+
* 2. empty value → `null`
|
|
14648
|
+
* 3. type formatter: `options.formatter`, else {@link FIELD_TEXT_FORMATTERS}; a type
|
|
14649
|
+
* without one shows its primitive value as is (objects: `null`). `''` → `null`
|
|
14650
|
+
* 4. `options.displayKey` → `t(displayKey, { value: <formatted> })`
|
|
14651
|
+
*
|
|
14652
|
+
* @param value - Field value
|
|
14653
|
+
* @param field - Entity field definition
|
|
14654
|
+
* @param t - Translation function (entity namespace first, then `crud`)
|
|
14655
|
+
* @param options - Locale, record, formatter override
|
|
14656
|
+
* @returns The text, or `null` when the field has nothing to show
|
|
14657
|
+
*
|
|
14658
|
+
* @example
|
|
14659
|
+
* ```ts
|
|
14660
|
+
* // size: { type: 'number', options: { displayKey: 'fields.size_display' } }, "{{value}}m²"
|
|
14661
|
+
* formatFieldText(16, entity.fields.size, t); // "16m²"
|
|
14662
|
+
* ```
|
|
14663
|
+
*
|
|
14664
|
+
* @version 0.1.0
|
|
14665
|
+
* @since 0.2.3
|
|
14666
|
+
*/
|
|
14667
|
+
declare function formatFieldText(value: unknown, field: EntityField, t: FieldTextTranslate, options?: FieldTextOptions): string | null;
|
|
14668
|
+
|
|
14669
|
+
/**
|
|
14670
|
+
* @fileoverview Entity-derived SEO
|
|
14671
|
+
* @description Builds a page's SEO identity (title, description, image, JSON-LD) from an
|
|
14672
|
+
* entity definition and one of its records. The entity already says which fields are the
|
|
14673
|
+
* card title (listCardFields), which are long text, images and prices, so pages do not
|
|
14674
|
+
* repeat that mapping. Title and description text is formatted like the CRUD card shows
|
|
14675
|
+
* it (`formatFieldText`, the same implementation the card uses); the entity's `seo`
|
|
14676
|
+
* option overrides it. Pure: same output on the server (Next SSR) and in the browser (Vite).
|
|
14677
|
+
*
|
|
14678
|
+
* @version 0.1.0
|
|
14679
|
+
* @since 0.2.3
|
|
14680
|
+
* @author AMBROISE PARK Consulting
|
|
14681
|
+
*/
|
|
14682
|
+
|
|
14683
|
+
/** Record shape accepted by {@link deriveEntitySeo}. */
|
|
14684
|
+
type EntitySeoRecord = Record<string, unknown>;
|
|
14685
|
+
/** SEO identity of one record. */
|
|
14686
|
+
interface EntitySeo {
|
|
14687
|
+
/** Record title (no site name) */
|
|
14688
|
+
title?: string;
|
|
14689
|
+
/** Plain-text description, at most 160 characters */
|
|
14690
|
+
description?: string;
|
|
14691
|
+
/** Absolute or root-relative URL of the main image */
|
|
14692
|
+
image?: string;
|
|
14693
|
+
/** All image URLs, main first */
|
|
14694
|
+
images: string[];
|
|
14695
|
+
/** Price, when the entity has a price/currency field with a positive value */
|
|
14696
|
+
price?: {
|
|
14697
|
+
amount: number;
|
|
14698
|
+
currency: string;
|
|
14699
|
+
};
|
|
14700
|
+
/**
|
|
14701
|
+
* schema.org availability URL (`https://schema.org/InStock`) of the record's `status`,
|
|
14702
|
+
* from `entity.seo.availability` over `{ available: 'InStock' }`; absent when unmapped
|
|
14703
|
+
*/
|
|
14704
|
+
availability?: string;
|
|
14705
|
+
}
|
|
14706
|
+
/**
|
|
14707
|
+
* How {@link deriveEntitySeo} formats text.
|
|
14708
|
+
*
|
|
14709
|
+
* @version 0.1.0
|
|
14710
|
+
* @since 0.2.3
|
|
14711
|
+
*/
|
|
14712
|
+
interface EntitySeoOptions {
|
|
14713
|
+
/**
|
|
14714
|
+
* Translation function with the entity namespace first, then `crud`, in the page
|
|
14715
|
+
* language (what the CRUD card uses: `useTranslation([entity.namespace, 'crud'])`)
|
|
14716
|
+
*/
|
|
14717
|
+
t: FieldTextTranslate;
|
|
14718
|
+
/** Locale for dates and numbers (i18next language) */
|
|
14719
|
+
locale?: string;
|
|
14720
|
+
}
|
|
14721
|
+
/**
|
|
14722
|
+
* Derive a record's SEO identity from its entity definition.
|
|
14723
|
+
*
|
|
14724
|
+
* - title: `entity.seo.title`, else the `listCardFields.title` texts formatted like the
|
|
14725
|
+
* card (joined with `titleSeparator`), else the first text field
|
|
14726
|
+
* - description: `entity.seo.description`, else the first long-text field
|
|
14727
|
+
* (textarea/richtext, HTML stripped, card order first), else the card subtitle and
|
|
14728
|
+
* content texts (joined with ` · `); at most 160 characters
|
|
14729
|
+
* - images: first image/images field with a value, card order first
|
|
14730
|
+
* - price: first price/currency field with a positive value
|
|
14731
|
+
* - availability: schema.org URL of the record `status` (`entity.seo.availability`
|
|
14732
|
+
* over `{ available: 'InStock' }`); absent for an unmapped status
|
|
14733
|
+
*
|
|
14734
|
+
* @param entity - Entity definition (from defineEntity)
|
|
14735
|
+
* @param data - One record of that entity
|
|
14736
|
+
* @param options - Translation function (entity namespace, then `crud`) and locale
|
|
14737
|
+
* @returns The record's SEO identity; fields without a value are omitted
|
|
14738
|
+
*
|
|
14739
|
+
* @example
|
|
14740
|
+
* ```ts
|
|
14741
|
+
* const { t, i18n } = useTranslation([productEntity.namespace, 'crud']);
|
|
14742
|
+
* deriveEntitySeo(productEntity, product, { t, locale: i18n.language });
|
|
14743
|
+
* // { title: 'Bakuchiol Ampoule Cream', description: 'Crème…', image: 'https://…', images: [...], price: { amount: 32, currency: 'EUR' }, availability: 'https://schema.org/InStock' }
|
|
14744
|
+
* ```
|
|
14745
|
+
*/
|
|
14746
|
+
declare function deriveEntitySeo(entity: AnyEntity, data: EntitySeoRecord, options: EntitySeoOptions): EntitySeo;
|
|
14747
|
+
/**
|
|
14748
|
+
* schema.org Product JSON-LD for a record.
|
|
14749
|
+
* `offers` only when a positive price exists (an Offer needs a price); its
|
|
14750
|
+
* `availability` only when the record status is mapped ({@link EntitySeo.availability}).
|
|
14751
|
+
*
|
|
14752
|
+
* @param seo - Output of {@link deriveEntitySeo}
|
|
14753
|
+
* @param url - Absolute canonical URL of the page
|
|
14754
|
+
* @returns JSON-LD object, or null when the record has no title
|
|
14755
|
+
*/
|
|
14756
|
+
declare function buildProductJsonLd(seo: EntitySeo, url: string): Record<string, unknown> | null;
|
|
14757
|
+
|
|
14398
14758
|
/**
|
|
14399
14759
|
* @fileoverview Firestore rule condition generator for stakeholder ownership
|
|
14400
14760
|
* @description Given EntityOwnershipConfig, returns a rule condition string suitable for
|
|
@@ -14856,6 +15216,224 @@ declare function hasProvider(key: keyof DndevProviders): boolean;
|
|
|
14856
15216
|
*/
|
|
14857
15217
|
declare function resetProviders(): void;
|
|
14858
15218
|
|
|
15219
|
+
/**
|
|
15220
|
+
* @fileoverview Translated entity fields
|
|
15221
|
+
* @description A field defined with `i18n: true` keeps the default language in its own
|
|
15222
|
+
* column and every other language in a companion map field `<name>I18n`
|
|
15223
|
+
* (`{ en: '…', de: '…' }`, jsonb column `<name>_i18n` on Supabase). Reads swap in the
|
|
15224
|
+
* current language; a missing or empty translation keeps the default-language value.
|
|
15225
|
+
* Shared by the schema builder (companion schemas), the SQL generator (companion
|
|
15226
|
+
* columns) and the crud read hooks (resolution).
|
|
15227
|
+
*
|
|
15228
|
+
* @version 0.1.0
|
|
15229
|
+
* @since 0.2.3
|
|
15230
|
+
* @author AMBROISE PARK Consulting
|
|
15231
|
+
*/
|
|
15232
|
+
/**
|
|
15233
|
+
* Field types that can be translated (`i18n: true`).
|
|
15234
|
+
*
|
|
15235
|
+
* @version 0.1.0
|
|
15236
|
+
* @since 0.2.3
|
|
15237
|
+
* @author AMBROISE PARK Consulting
|
|
15238
|
+
*/
|
|
15239
|
+
declare const TRANSLATABLE_FIELD_TYPES: readonly string[];
|
|
15240
|
+
/**
|
|
15241
|
+
* Name of the companion field holding the translations of `field`.
|
|
15242
|
+
*
|
|
15243
|
+
* @param field - Translated field name (`description`)
|
|
15244
|
+
* @returns Companion field name (`descriptionI18n`)
|
|
15245
|
+
*
|
|
15246
|
+
* @version 0.1.0
|
|
15247
|
+
* @since 0.2.3
|
|
15248
|
+
* @author AMBROISE PARK Consulting
|
|
15249
|
+
*/
|
|
15250
|
+
declare function i18nFieldName(field: string): string;
|
|
15251
|
+
/**
|
|
15252
|
+
* Names of the translated fields (`i18n: true`) of an entity field map.
|
|
15253
|
+
*
|
|
15254
|
+
* @param fields - Entity field map
|
|
15255
|
+
*
|
|
15256
|
+
* @version 0.1.0
|
|
15257
|
+
* @since 0.2.3
|
|
15258
|
+
* @author AMBROISE PARK Consulting
|
|
15259
|
+
*/
|
|
15260
|
+
declare function getTranslatedFieldNames(fields: Record<string, {
|
|
15261
|
+
i18n?: boolean;
|
|
15262
|
+
}>): string[];
|
|
15263
|
+
/**
|
|
15264
|
+
* Row with its translated fields in `language`. A field keeps its stored value when its
|
|
15265
|
+
* companion has no non-empty entry for `language` (the default language never has one).
|
|
15266
|
+
* Returns the same object when nothing changes.
|
|
15267
|
+
*
|
|
15268
|
+
* @param row - Stored row (companion fields included)
|
|
15269
|
+
* @param fieldNames - Translated field names ({@link getTranslatedFieldNames})
|
|
15270
|
+
* @param language - Language to show
|
|
15271
|
+
*
|
|
15272
|
+
* @version 0.1.0
|
|
15273
|
+
* @since 0.2.3
|
|
15274
|
+
* @author AMBROISE PARK Consulting
|
|
15275
|
+
*/
|
|
15276
|
+
declare function translateRow<T extends Record<string, unknown>>(row: T, fieldNames: readonly string[], language: string): T;
|
|
15277
|
+
|
|
15278
|
+
/**
|
|
15279
|
+
* Languages of an app and the one served at the root.
|
|
15280
|
+
*
|
|
15281
|
+
* @version 0.1.0
|
|
15282
|
+
* @since 0.2.3
|
|
15283
|
+
* @author AMBROISE PARK Consulting
|
|
15284
|
+
*/
|
|
15285
|
+
interface LanguageRouting {
|
|
15286
|
+
/** Language codes the app ships */
|
|
15287
|
+
languages: readonly string[];
|
|
15288
|
+
/** Language served without prefix (the i18n fallback language) */
|
|
15289
|
+
defaultLanguage: string;
|
|
15290
|
+
}
|
|
15291
|
+
/**
|
|
15292
|
+
* A pathname split into its language and the route path behind the prefix.
|
|
15293
|
+
*
|
|
15294
|
+
* @version 0.1.0
|
|
15295
|
+
* @since 0.2.3
|
|
15296
|
+
* @author AMBROISE PARK Consulting
|
|
15297
|
+
*/
|
|
15298
|
+
interface LanguagePath {
|
|
15299
|
+
/** Language of the URL (the default language when unprefixed) */
|
|
15300
|
+
language: string;
|
|
15301
|
+
/** Route path without the language prefix, always starting with `/` */
|
|
15302
|
+
path: string;
|
|
15303
|
+
/** Whether the pathname carried a language prefix */
|
|
15304
|
+
prefixed: boolean;
|
|
15305
|
+
}
|
|
15306
|
+
/**
|
|
15307
|
+
* Whether the app has a URL per language (2+ languages). One language ⇒ no prefix.
|
|
15308
|
+
*
|
|
15309
|
+
* @param languages - Language codes the app ships
|
|
15310
|
+
*
|
|
15311
|
+
* @version 0.1.0
|
|
15312
|
+
* @since 0.2.3
|
|
15313
|
+
* @author AMBROISE PARK Consulting
|
|
15314
|
+
*/
|
|
15315
|
+
declare function isMultilingual(languages: readonly string[]): boolean;
|
|
15316
|
+
/**
|
|
15317
|
+
* URL segment of the internal Next tree that renders pages per request with the
|
|
15318
|
+
* visitor's cookies (personalized SSR): first segment with one language, after the
|
|
15319
|
+
* language with 2+ (`/fr/${SESSION_RENDER_SEGMENT}/…`). The generated proxy rewrites
|
|
15320
|
+
* requests carrying an auth cookie to it and answers 404 on a direct hit; the server
|
|
15321
|
+
* render of those pages reads that internal pathname, the browser the public one.
|
|
15322
|
+
* Reserved: no app path may use it as its first or second segment. Same value as
|
|
15323
|
+
* NEXT_RENDER.sessionSegment in @donotdev/core/config.
|
|
15324
|
+
*
|
|
15325
|
+
* @version 0.1.0
|
|
15326
|
+
* @since 0.2.3
|
|
15327
|
+
* @author AMBROISE PARK Consulting
|
|
15328
|
+
*/
|
|
15329
|
+
declare const SESSION_RENDER_SEGMENT = "dndev-session";
|
|
15330
|
+
/**
|
|
15331
|
+
* Public pathname of a pathname read during a Next server render: drops the internal
|
|
15332
|
+
* per-request tree segment, first or after the language (`/dndev-session/produits` →
|
|
15333
|
+
* `/produits`, `/en/dndev-session/produits` → `/en/produits`), so the server HTML and
|
|
15334
|
+
* the browser's hydration pass compute the same paths, links, canonical and hreflang
|
|
15335
|
+
* URLs. Any other pathname is returned unchanged.
|
|
15336
|
+
*
|
|
15337
|
+
* @param pathname - URL pathname
|
|
15338
|
+
* @returns The pathname as the browser shows it
|
|
15339
|
+
*
|
|
15340
|
+
* @version 0.1.0
|
|
15341
|
+
* @since 0.2.3
|
|
15342
|
+
* @author AMBROISE PARK Consulting
|
|
15343
|
+
*/
|
|
15344
|
+
declare function publicPathname(pathname: string): string;
|
|
15345
|
+
/**
|
|
15346
|
+
* Split a pathname into its language and route path.
|
|
15347
|
+
*
|
|
15348
|
+
* @param pathname - URL pathname (`/en/produits`, `/produits`)
|
|
15349
|
+
* @param routing - App languages
|
|
15350
|
+
* @returns `/en/produits` → `{ language: 'en', path: '/produits', prefixed: true }`;
|
|
15351
|
+
* `/produits` → the default language, unprefixed
|
|
15352
|
+
*
|
|
15353
|
+
* @version 0.1.0
|
|
15354
|
+
* @since 0.2.3
|
|
15355
|
+
* @author AMBROISE PARK Consulting
|
|
15356
|
+
*/
|
|
15357
|
+
declare function splitLanguagePath(pathname: string, routing: LanguageRouting): LanguagePath;
|
|
15358
|
+
/**
|
|
15359
|
+
* The URL of an app path in a language. Absolute paths only (`/…`): relative paths,
|
|
15360
|
+
* hashes, queries and external URLs are returned unchanged. A path that already
|
|
15361
|
+
* carries a language prefix keeps that language (an explicit link to another
|
|
15362
|
+
* language); `/<default>/x` becomes `/x`.
|
|
15363
|
+
*
|
|
15364
|
+
* @param path - App path, optionally with query and hash (`/produits?page=2`)
|
|
15365
|
+
* @param language - Language to link in
|
|
15366
|
+
* @param routing - App languages
|
|
15367
|
+
* @returns `/produits` in `en` → `/en/produits`; in the default language → `/produits`
|
|
15368
|
+
*
|
|
15369
|
+
* @version 0.1.0
|
|
15370
|
+
* @since 0.2.3
|
|
15371
|
+
* @author AMBROISE PARK Consulting
|
|
15372
|
+
*/
|
|
15373
|
+
declare function localizePath(path: string, language: string, routing: LanguageRouting): string;
|
|
15374
|
+
/**
|
|
15375
|
+
* Absolute URL of an app path in every language (hreflang alternates, sitemap).
|
|
15376
|
+
*
|
|
15377
|
+
* @param path - App path without language prefix (`/produits`)
|
|
15378
|
+
* @param baseUrl - Absolute site URL, no trailing slash
|
|
15379
|
+
* @param routing - App languages
|
|
15380
|
+
* @returns `{ fr: 'https://x/produits', en: 'https://x/en/produits' }`
|
|
15381
|
+
*
|
|
15382
|
+
* @version 0.1.0
|
|
15383
|
+
* @since 0.2.3
|
|
15384
|
+
* @author AMBROISE PARK Consulting
|
|
15385
|
+
*/
|
|
15386
|
+
declare function languageUrls(path: string, baseUrl: string, routing: LanguageRouting): Record<string, string>;
|
|
15387
|
+
/**
|
|
15388
|
+
* How to serve a request for a pathname (Next proxy; Vite on the first load).
|
|
15389
|
+
*
|
|
15390
|
+
* - `pass`: a prefixed URL of another language, served as is
|
|
15391
|
+
* - `rewrite`: an unprefixed URL served internally as `destination` (`/<default>/…`,
|
|
15392
|
+
* the app/[lang] route of the default language); the browser keeps the URL
|
|
15393
|
+
* - `redirect`: `/<default>/…` → the unprefixed URL (`permanent`), or a first visit
|
|
15394
|
+
* to an unprefixed URL → the visitor's language
|
|
15395
|
+
*
|
|
15396
|
+
* @version 0.1.0
|
|
15397
|
+
* @since 0.2.3
|
|
15398
|
+
* @author AMBROISE PARK Consulting
|
|
15399
|
+
*/
|
|
15400
|
+
type LanguageRouteDecision = {
|
|
15401
|
+
type: 'pass';
|
|
15402
|
+
language: string;
|
|
15403
|
+
path: string;
|
|
15404
|
+
} | {
|
|
15405
|
+
type: 'rewrite';
|
|
15406
|
+
language: string;
|
|
15407
|
+
path: string;
|
|
15408
|
+
destination: string;
|
|
15409
|
+
} | {
|
|
15410
|
+
type: 'redirect';
|
|
15411
|
+
language: string;
|
|
15412
|
+
path: string;
|
|
15413
|
+
location: string;
|
|
15414
|
+
permanent: boolean;
|
|
15415
|
+
};
|
|
15416
|
+
/**
|
|
15417
|
+
* Decide how to serve a pathname. An unprefixed URL is the default language unless
|
|
15418
|
+
* the visitor prefers another one: their language cookie first, then their browser
|
|
15419
|
+
* languages (`Accept-Language` / `navigator.languages`). Crawlers send neither, so
|
|
15420
|
+
* they always get the default language at the root.
|
|
15421
|
+
*
|
|
15422
|
+
* Single-language apps always `pass`.
|
|
15423
|
+
*
|
|
15424
|
+
* @param pathname - Request pathname (no query)
|
|
15425
|
+
* @param visitor - Stored language (language cookie) and browser languages
|
|
15426
|
+
* @param routing - App languages
|
|
15427
|
+
*
|
|
15428
|
+
* @version 0.1.0
|
|
15429
|
+
* @since 0.2.3
|
|
15430
|
+
* @author AMBROISE PARK Consulting
|
|
15431
|
+
*/
|
|
15432
|
+
declare function resolveLanguageRoute(pathname: string, visitor: {
|
|
15433
|
+
stored?: string | null;
|
|
15434
|
+
preferred?: readonly string[];
|
|
15435
|
+
}, routing: LanguageRouting): LanguageRouteDecision;
|
|
15436
|
+
|
|
14859
15437
|
/**
|
|
14860
15438
|
* @fileoverview Request language resolution
|
|
14861
15439
|
* @description One rule for the language of a render, shared by the server (cookie
|
|
@@ -15629,17 +16207,30 @@ type index_d_DateFormatOptions = DateFormatOptions;
|
|
|
15629
16207
|
type index_d_DateFormatPreset = DateFormatPreset;
|
|
15630
16208
|
type index_d_DoNotDevError = DoNotDevError;
|
|
15631
16209
|
declare const index_d_DoNotDevError: typeof DoNotDevError;
|
|
16210
|
+
type index_d_EntitySeo = EntitySeo;
|
|
16211
|
+
type index_d_EntitySeoOptions = EntitySeoOptions;
|
|
16212
|
+
type index_d_EntitySeoRecord = EntitySeoRecord;
|
|
15632
16213
|
type index_d_ErrorHandlerConfig = ErrorHandlerConfig;
|
|
15633
16214
|
type index_d_ErrorHandlerFunction = ErrorHandlerFunction;
|
|
16215
|
+
declare const index_d_FIELD_TEXT_FORMATTERS: typeof FIELD_TEXT_FORMATTERS;
|
|
16216
|
+
type index_d_FieldTextFormatter = FieldTextFormatter;
|
|
16217
|
+
type index_d_FieldTextOptions = FieldTextOptions;
|
|
16218
|
+
type index_d_FieldTextTranslate = FieldTextTranslate;
|
|
15634
16219
|
type index_d_FilterVisibleFieldsOptions = FilterVisibleFieldsOptions;
|
|
15635
16220
|
type index_d_GetVisibleFieldsOptions = GetVisibleFieldsOptions;
|
|
15636
16221
|
type index_d_HandleErrorOptions = HandleErrorOptions;
|
|
15637
16222
|
declare const index_d_LANGUAGE_COOKIE: typeof LANGUAGE_COOKIE;
|
|
16223
|
+
type index_d_LanguagePath = LanguagePath;
|
|
16224
|
+
type index_d_LanguageRouteDecision = LanguageRouteDecision;
|
|
16225
|
+
type index_d_LanguageRouting = LanguageRouting;
|
|
15638
16226
|
type index_d_LockoutResult = LockoutResult;
|
|
16227
|
+
declare const index_d_SESSION_RENDER_SEGMENT: typeof SESSION_RENDER_SEGMENT;
|
|
15639
16228
|
type index_d_SingletonManager = SingletonManager;
|
|
15640
16229
|
declare const index_d_SingletonManager: typeof SingletonManager;
|
|
16230
|
+
declare const index_d_TRANSLATABLE_FIELD_TYPES: typeof TRANSLATABLE_FIELD_TYPES;
|
|
15641
16231
|
declare const index_d_addMonths: typeof addMonths;
|
|
15642
16232
|
declare const index_d_addYears: typeof addYears;
|
|
16233
|
+
declare const index_d_buildProductJsonLd: typeof buildProductJsonLd;
|
|
15643
16234
|
declare const index_d_calculateSubscriptionEndDate: typeof calculateSubscriptionEndDate;
|
|
15644
16235
|
declare const index_d_captureErrorToSentry: typeof captureErrorToSentry;
|
|
15645
16236
|
declare const index_d_clearGlobalSingleton: typeof clearGlobalSingleton;
|
|
@@ -15652,6 +16243,7 @@ declare const index_d_createMetadata: typeof createMetadata;
|
|
|
15652
16243
|
declare const index_d_createMethodProxy: typeof createMethodProxy;
|
|
15653
16244
|
declare const index_d_createSingleton: typeof createSingleton;
|
|
15654
16245
|
declare const index_d_createSingletonWithParams: typeof createSingletonWithParams;
|
|
16246
|
+
declare const index_d_deriveEntitySeo: typeof deriveEntitySeo;
|
|
15655
16247
|
declare const index_d_detectErrorSource: typeof detectErrorSource;
|
|
15656
16248
|
declare const index_d_ensureSpreadable: typeof ensureSpreadable;
|
|
15657
16249
|
declare const index_d_evaluateCondition: typeof evaluateCondition;
|
|
@@ -15659,6 +16251,7 @@ declare const index_d_evaluateFieldConditions: typeof evaluateFieldConditions;
|
|
|
15659
16251
|
declare const index_d_filterVisibleFields: typeof filterVisibleFields;
|
|
15660
16252
|
declare const index_d_formatCurrency: typeof formatCurrency;
|
|
15661
16253
|
declare const index_d_formatDate: typeof formatDate;
|
|
16254
|
+
declare const index_d_formatFieldText: typeof formatFieldText;
|
|
15662
16255
|
declare const index_d_formatRelativeTime: typeof formatRelativeTime;
|
|
15663
16256
|
declare const index_d_generateCodeChallenge: typeof generateCodeChallenge;
|
|
15664
16257
|
declare const index_d_generateCodeVerifier: typeof generateCodeVerifier;
|
|
@@ -15673,6 +16266,7 @@ declare const index_d_getGlobalSingleton: typeof getGlobalSingleton;
|
|
|
15673
16266
|
declare const index_d_getListCardFieldNames: typeof getListCardFieldNames;
|
|
15674
16267
|
declare const index_d_getProvider: typeof getProvider;
|
|
15675
16268
|
declare const index_d_getRoleFromClaims: typeof getRoleFromClaims;
|
|
16269
|
+
declare const index_d_getTranslatedFieldNames: typeof getTranslatedFieldNames;
|
|
15676
16270
|
declare const index_d_getVisibleFields: typeof getVisibleFields;
|
|
15677
16271
|
declare const index_d_getWeekFromISOString: typeof getWeekFromISOString;
|
|
15678
16272
|
declare const index_d_handleError: typeof handleError;
|
|
@@ -15680,11 +16274,16 @@ declare const index_d_hasProvider: typeof hasProvider;
|
|
|
15680
16274
|
declare const index_d_hasRestrictedVisibility: typeof hasRestrictedVisibility;
|
|
15681
16275
|
declare const index_d_hasRoleAccess: typeof hasRoleAccess;
|
|
15682
16276
|
declare const index_d_hasTierAccess: typeof hasTierAccess;
|
|
16277
|
+
declare const index_d_i18nFieldName: typeof i18nFieldName;
|
|
15683
16278
|
declare const index_d_isCompactDateString: typeof isCompactDateString;
|
|
16279
|
+
declare const index_d_isEmptyFieldValue: typeof isEmptyFieldValue;
|
|
15684
16280
|
declare const index_d_isFieldVisible: typeof isFieldVisible;
|
|
16281
|
+
declare const index_d_isMultilingual: typeof isMultilingual;
|
|
15685
16282
|
declare const index_d_isPKCESupported: typeof isPKCESupported;
|
|
15686
16283
|
declare const index_d_isoToCompactString: typeof isoToCompactString;
|
|
16284
|
+
declare const index_d_languageUrls: typeof languageUrls;
|
|
15687
16285
|
declare const index_d_lazyImport: typeof lazyImport;
|
|
16286
|
+
declare const index_d_localizePath: typeof localizePath;
|
|
15688
16287
|
declare const index_d_mapToDoNotDevError: typeof mapToDoNotDevError;
|
|
15689
16288
|
declare const index_d_maybeTranslate: typeof maybeTranslate;
|
|
15690
16289
|
declare const index_d_normalizeToISOString: typeof normalizeToISOString;
|
|
@@ -15693,19 +16292,25 @@ declare const index_d_parseDate: typeof parseDate;
|
|
|
15693
16292
|
declare const index_d_parseDateToNoonUTC: typeof parseDateToNoonUTC;
|
|
15694
16293
|
declare const index_d_parseISODate: typeof parseISODate;
|
|
15695
16294
|
declare const index_d_parseServerCookie: typeof parseServerCookie;
|
|
16295
|
+
declare const index_d_publicPathname: typeof publicPathname;
|
|
15696
16296
|
declare const index_d_readCookieValue: typeof readCookieValue;
|
|
15697
16297
|
declare const index_d_resetProviders: typeof resetProviders;
|
|
15698
16298
|
declare const index_d_resolveLanguage: typeof resolveLanguage;
|
|
16299
|
+
declare const index_d_resolveLanguageRoute: typeof resolveLanguageRoute;
|
|
15699
16300
|
declare const index_d_safeValidate: typeof safeValidate;
|
|
15700
16301
|
declare const index_d_sanitizeHref: typeof sanitizeHref;
|
|
15701
16302
|
declare const index_d_showNotification: typeof showNotification;
|
|
16303
|
+
declare const index_d_splitLanguagePath: typeof splitLanguagePath;
|
|
16304
|
+
declare const index_d_stripHtmlTags: typeof stripHtmlTags;
|
|
15702
16305
|
declare const index_d_timestampToISOString: typeof timestampToISOString;
|
|
15703
16306
|
declare const index_d_toDateOnly: typeof toDateOnly;
|
|
15704
16307
|
declare const index_d_toISOString: typeof toISOString;
|
|
15705
16308
|
declare const index_d_translateArray: typeof translateArray;
|
|
15706
16309
|
declare const index_d_translateArrayRange: typeof translateArrayRange;
|
|
15707
16310
|
declare const index_d_translateArrayWithIndices: typeof translateArrayWithIndices;
|
|
16311
|
+
declare const index_d_translateEntityLabel: typeof translateEntityLabel;
|
|
15708
16312
|
declare const index_d_translateObjectArray: typeof translateObjectArray;
|
|
16313
|
+
declare const index_d_translateRow: typeof translateRow;
|
|
15709
16314
|
declare const index_d_updateMetadata: typeof updateMetadata;
|
|
15710
16315
|
declare const index_d_validateCodeChallenge: typeof validateCodeChallenge;
|
|
15711
16316
|
declare const index_d_validateCodeVerifier: typeof validateCodeVerifier;
|
|
@@ -15721,8 +16326,8 @@ declare const index_d_wrapAuthError: typeof wrapAuthError;
|
|
|
15721
16326
|
declare const index_d_wrapCrudError: typeof wrapCrudError;
|
|
15722
16327
|
declare const index_d_wrapStorageError: typeof wrapStorageError;
|
|
15723
16328
|
declare namespace index_d {
|
|
15724
|
-
export { index_d_AuthHardening as AuthHardening, index_d_CURRENCY_MAP as CURRENCY_MAP, index_d_ConditionBuilder as ConditionBuilder, index_d_DEFAULT_CRUD_TIMEOUT as DEFAULT_CRUD_TIMEOUT, index_d_DEFAULT_ERROR_MESSAGES as DEFAULT_ERROR_MESSAGES, index_d_DEFAULT_UPLOAD_TIMEOUT as DEFAULT_UPLOAD_TIMEOUT, index_d_DoNotDevError as DoNotDevError, index_d_LANGUAGE_COOKIE as LANGUAGE_COOKIE, index_d_SingletonManager as SingletonManager, index_d_addMonths as addMonths, index_d_addYears as addYears, index_d_calculateSubscriptionEndDate as calculateSubscriptionEndDate, index_d_captureErrorToSentry as captureErrorToSentry, index_d_clearGlobalSingleton as clearGlobalSingleton, index_d_commonErrorCodeMappings as commonErrorCodeMappings, index_d_compactToISOString as compactToISOString, index_d_configureProviders as configureProviders, index_d_createAsyncSingleton as createAsyncSingleton, index_d_createErrorHandler as createErrorHandler, index_d_createMetadata as createMetadata, index_d_createMethodProxy as createMethodProxy, index_d_createSingleton as createSingleton, index_d_createSingletonWithParams as createSingletonWithParams, index_d_detectErrorSource as detectErrorSource, index_d_ensureSpreadable as ensureSpreadable, index_d_evaluateCondition as evaluateCondition, index_d_evaluateFieldConditions as evaluateFieldConditions, index_d_filterVisibleFields as filterVisibleFields, index_d_formatCurrency as formatCurrency, index_d_formatDate as formatDate, index_d_formatRelativeTime as formatRelativeTime, index_d_generateCodeChallenge as generateCodeChallenge, index_d_generateCodeVerifier as generateCodeVerifier, index_d_generateFirestoreRuleCondition as generateFirestoreRuleCondition, index_d_generatePKCEPair as generatePKCEPair, index_d_generateUUID as generateUUID, index_d_getConditionDependencies as getConditionDependencies, index_d_getCurrencyLocale as getCurrencyLocale, index_d_getCurrencySymbol as getCurrencySymbol, index_d_getCurrentTimestamp as getCurrentTimestamp, index_d_getGlobalSingleton as getGlobalSingleton, index_d_getListCardFieldNames as getListCardFieldNames, index_d_getProvider as getProvider, index_d_getRoleFromClaims as getRoleFromClaims, index_d_getVisibleFields as getVisibleFields, index_d_getWeekFromISOString as getWeekFromISOString, index_d_handleError as handleError, index_d_hasProvider as hasProvider, index_d_hasRestrictedVisibility as hasRestrictedVisibility, index_d_hasRoleAccess as hasRoleAccess, index_d_hasTierAccess as hasTierAccess, index_d_isCompactDateString as isCompactDateString, index_d_isFieldVisible as isFieldVisible, index_d_isPKCESupported as isPKCESupported, index_d_isoToCompactString as isoToCompactString, index_d_lazyImport as lazyImport, index_d_mapToDoNotDevError as mapToDoNotDevError, index_d_maybeTranslate as maybeTranslate, index_d_normalizeToISOString as normalizeToISOString, index_d_parseAcceptLanguage as parseAcceptLanguage, index_d_parseDate as parseDate, index_d_parseDateToNoonUTC as parseDateToNoonUTC, index_d_parseISODate as parseISODate, index_d_parseServerCookie as parseServerCookie, index_d_readCookieValue as readCookieValue, index_d_resetProviders as resetProviders, index_d_resolveLanguage as resolveLanguage, index_d_safeValidate as safeValidate, index_d_sanitizeHref as sanitizeHref, index_d_showNotification as showNotification, index_d_timestampToISOString as timestampToISOString, index_d_toDateOnly as toDateOnly, index_d_toISOString as toISOString, index_d_translateArray as translateArray, index_d_translateArrayRange as translateArrayRange, index_d_translateArrayWithIndices as translateArrayWithIndices, index_d_translateObjectArray as translateObjectArray, index_d_updateMetadata as updateMetadata, index_d_validateCodeChallenge as validateCodeChallenge, index_d_validateCodeVerifier as validateCodeVerifier, index_d_validateEnvVar as validateEnvVar, index_d_validateMetadata as validateMetadata, index_d_validateUrl as validateUrl, index_d_validateWithSchema as validateWithSchema, index_d_when as when, index_d_withErrorHandling as withErrorHandling, index_d_withGracefulDegradation as withGracefulDegradation, index_d_withTimeout as withTimeout, index_d_wrapAuthError as wrapAuthError, index_d_wrapCrudError as wrapCrudError, index_d_wrapStorageError as wrapStorageError };
|
|
15725
|
-
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 };
|
|
16329
|
+
export { index_d_AuthHardening as AuthHardening, index_d_CURRENCY_MAP as CURRENCY_MAP, index_d_ConditionBuilder as ConditionBuilder, index_d_DEFAULT_CRUD_TIMEOUT as DEFAULT_CRUD_TIMEOUT, index_d_DEFAULT_ERROR_MESSAGES as DEFAULT_ERROR_MESSAGES, index_d_DEFAULT_UPLOAD_TIMEOUT as DEFAULT_UPLOAD_TIMEOUT, index_d_DoNotDevError as DoNotDevError, index_d_FIELD_TEXT_FORMATTERS as FIELD_TEXT_FORMATTERS, index_d_LANGUAGE_COOKIE as LANGUAGE_COOKIE, index_d_SESSION_RENDER_SEGMENT as SESSION_RENDER_SEGMENT, index_d_SingletonManager as SingletonManager, index_d_TRANSLATABLE_FIELD_TYPES as TRANSLATABLE_FIELD_TYPES, index_d_addMonths as addMonths, index_d_addYears as addYears, index_d_buildProductJsonLd as buildProductJsonLd, index_d_calculateSubscriptionEndDate as calculateSubscriptionEndDate, index_d_captureErrorToSentry as captureErrorToSentry, index_d_clearGlobalSingleton as clearGlobalSingleton, index_d_commonErrorCodeMappings as commonErrorCodeMappings, index_d_compactToISOString as compactToISOString, index_d_configureProviders as configureProviders, index_d_createAsyncSingleton as createAsyncSingleton, index_d_createErrorHandler as createErrorHandler, index_d_createMetadata as createMetadata, index_d_createMethodProxy as createMethodProxy, index_d_createSingleton as createSingleton, index_d_createSingletonWithParams as createSingletonWithParams, index_d_deriveEntitySeo as deriveEntitySeo, index_d_detectErrorSource as detectErrorSource, index_d_ensureSpreadable as ensureSpreadable, index_d_evaluateCondition as evaluateCondition, index_d_evaluateFieldConditions as evaluateFieldConditions, index_d_filterVisibleFields as filterVisibleFields, index_d_formatCurrency as formatCurrency, index_d_formatDate as formatDate, index_d_formatFieldText as formatFieldText, index_d_formatRelativeTime as formatRelativeTime, index_d_generateCodeChallenge as generateCodeChallenge, index_d_generateCodeVerifier as generateCodeVerifier, index_d_generateFirestoreRuleCondition as generateFirestoreRuleCondition, index_d_generatePKCEPair as generatePKCEPair, index_d_generateUUID as generateUUID, index_d_getConditionDependencies as getConditionDependencies, index_d_getCurrencyLocale as getCurrencyLocale, index_d_getCurrencySymbol as getCurrencySymbol, index_d_getCurrentTimestamp as getCurrentTimestamp, index_d_getGlobalSingleton as getGlobalSingleton, index_d_getListCardFieldNames as getListCardFieldNames, index_d_getProvider as getProvider, index_d_getRoleFromClaims as getRoleFromClaims, index_d_getTranslatedFieldNames as getTranslatedFieldNames, index_d_getVisibleFields as getVisibleFields, index_d_getWeekFromISOString as getWeekFromISOString, index_d_handleError as handleError, index_d_hasProvider as hasProvider, index_d_hasRestrictedVisibility as hasRestrictedVisibility, index_d_hasRoleAccess as hasRoleAccess, index_d_hasTierAccess as hasTierAccess, index_d_i18nFieldName as i18nFieldName, index_d_isCompactDateString as isCompactDateString, index_d_isEmptyFieldValue as isEmptyFieldValue, index_d_isFieldVisible as isFieldVisible, index_d_isMultilingual as isMultilingual, index_d_isPKCESupported as isPKCESupported, index_d_isoToCompactString as isoToCompactString, index_d_languageUrls as languageUrls, index_d_lazyImport as lazyImport, index_d_localizePath as localizePath, index_d_mapToDoNotDevError as mapToDoNotDevError, index_d_maybeTranslate as maybeTranslate, index_d_normalizeToISOString as normalizeToISOString, index_d_parseAcceptLanguage as parseAcceptLanguage, index_d_parseDate as parseDate, index_d_parseDateToNoonUTC as parseDateToNoonUTC, index_d_parseISODate as parseISODate, index_d_parseServerCookie as parseServerCookie, index_d_publicPathname as publicPathname, index_d_readCookieValue as readCookieValue, index_d_resetProviders as resetProviders, index_d_resolveLanguage as resolveLanguage, index_d_resolveLanguageRoute as resolveLanguageRoute, index_d_safeValidate as safeValidate, index_d_sanitizeHref as sanitizeHref, index_d_showNotification as showNotification, index_d_splitLanguagePath as splitLanguagePath, index_d_stripHtmlTags as stripHtmlTags, index_d_timestampToISOString as timestampToISOString, index_d_toDateOnly as toDateOnly, index_d_toISOString as toISOString, index_d_translateArray as translateArray, index_d_translateArrayRange as translateArrayRange, index_d_translateArrayWithIndices as translateArrayWithIndices, index_d_translateEntityLabel as translateEntityLabel, index_d_translateObjectArray as translateObjectArray, index_d_translateRow as translateRow, index_d_updateMetadata as updateMetadata, index_d_validateCodeChallenge as validateCodeChallenge, index_d_validateCodeVerifier as validateCodeVerifier, index_d_validateEnvVar as validateEnvVar, index_d_validateMetadata as validateMetadata, index_d_validateUrl as validateUrl, index_d_validateWithSchema as validateWithSchema, index_d_when as when, index_d_withErrorHandling as withErrorHandling, index_d_withGracefulDegradation as withGracefulDegradation, index_d_withTimeout as withTimeout, index_d_wrapAuthError as wrapAuthError, index_d_wrapCrudError as wrapCrudError, index_d_wrapStorageError as wrapStorageError };
|
|
16330
|
+
export type { index_d_AuthHardeningConfig as AuthHardeningConfig, index_d_CurrencyEntry as CurrencyEntry, index_d_DateFormatOptions as DateFormatOptions, index_d_DateFormatPreset as DateFormatPreset, index_d_EntitySeo as EntitySeo, index_d_EntitySeoOptions as EntitySeoOptions, index_d_EntitySeoRecord as EntitySeoRecord, index_d_ErrorHandlerConfig as ErrorHandlerConfig, index_d_ErrorHandlerFunction as ErrorHandlerFunction, index_d_FieldTextFormatter as FieldTextFormatter, index_d_FieldTextOptions as FieldTextOptions, index_d_FieldTextTranslate as FieldTextTranslate, index_d_FilterVisibleFieldsOptions as FilterVisibleFieldsOptions, index_d_GetVisibleFieldsOptions as GetVisibleFieldsOptions, index_d_HandleErrorOptions as HandleErrorOptions, index_d_LanguagePath as LanguagePath, index_d_LanguageRouteDecision as LanguageRouteDecision, index_d_LanguageRouting as LanguageRouting, index_d_LockoutResult as LockoutResult };
|
|
15726
16331
|
}
|
|
15727
16332
|
|
|
15728
16333
|
/**
|
|
@@ -15814,17 +16419,6 @@ declare const priceSchema: CustomSchemaGenerator;
|
|
|
15814
16419
|
*/
|
|
15815
16420
|
declare function getSchemaType(field: EntityField<FieldType>): v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>;
|
|
15816
16421
|
|
|
15817
|
-
/**
|
|
15818
|
-
* Recursively validates that all string values that look like potential dates
|
|
15819
|
-
* within an object adhere to the ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ).
|
|
15820
|
-
*
|
|
15821
|
-
* @param data - The object or data structure to validate
|
|
15822
|
-
* @param {string} [currentPath=''] - Internal tracking of the object path for error messages
|
|
15823
|
-
* @throws Error if any string resembling a date is not in the correct ISO format
|
|
15824
|
-
* @version 0.1.0
|
|
15825
|
-
* @since 0.0.1
|
|
15826
|
-
* @author AMBROISE PARK Consulting
|
|
15827
|
-
*/
|
|
15828
16422
|
declare function validateDates(data: Record<string, unknown> | unknown[], currentPath?: string): void;
|
|
15829
16423
|
|
|
15830
16424
|
/**
|
|
@@ -16163,6 +16757,32 @@ declare function defineEntity<const F extends Record<string, EntityField>>(entit
|
|
|
16163
16757
|
fields: F;
|
|
16164
16758
|
}): Entity<MutableMergedEntityFieldMap<F>>;
|
|
16165
16759
|
|
|
16760
|
+
/**
|
|
16761
|
+
* @fileoverview Entity registry (collection → entity)
|
|
16762
|
+
* @description `defineEntity()` records every entity here under its collection, so the
|
|
16763
|
+
* framework can resolve a reference field (`validation.reference: 'brands'`) to the full
|
|
16764
|
+
* referenced entity without any app wiring. Pure module (no React, no browser APIs):
|
|
16765
|
+
* safe on server and client. Backed by a global singleton so duplicated module
|
|
16766
|
+
* instances (HMR, bundler splits) share one map.
|
|
16767
|
+
*
|
|
16768
|
+
* @version 0.1.0
|
|
16769
|
+
* @since 0.2.3
|
|
16770
|
+
* @author AMBROISE PARK Consulting
|
|
16771
|
+
*/
|
|
16772
|
+
|
|
16773
|
+
/**
|
|
16774
|
+
* Entity defined for a collection, if the app defined one.
|
|
16775
|
+
*
|
|
16776
|
+
* @param collection - Collection name (e.g. a reference field's `validation.reference`)
|
|
16777
|
+
* @returns The entity, or `undefined` when no entity was defined for that collection
|
|
16778
|
+
*
|
|
16779
|
+
* @example
|
|
16780
|
+
* ```typescript
|
|
16781
|
+
* const brandEntity = getEntityByCollection('brands');
|
|
16782
|
+
* ```
|
|
16783
|
+
*/
|
|
16784
|
+
declare function getEntityByCollection(collection: string): AnyEntity | undefined;
|
|
16785
|
+
|
|
16166
16786
|
/**
|
|
16167
16787
|
* @fileoverview Unified Schema Generation
|
|
16168
16788
|
* @description Creates Valibot schemas from entity definitions with visibility metadata.
|
|
@@ -16637,5 +17257,5 @@ type ValidateResult<T> = {
|
|
|
16637
17257
|
declare function validateBlock(block: unknown, opts?: ValidateBlockOptions): ValidateResult<CanvasBlock>;
|
|
16638
17258
|
declare function validateEvent(event: unknown, widgetKind: string): ValidateResult<CanvasEvent>;
|
|
16639
17259
|
|
|
16640
|
-
export { AGGREGATE_FILTER_OPERATORS, AGGREGATE_OPERATIONS, AIChatRequestSchema, AIChatResponseSchema, AIMessageSchema, AIProviderConfigSchema, AIToolCallSchema, AIToolDefinitionSchema, AIUsageSchema, AI_ERROR_CODES, AI_MODELS, AI_PROVIDERS, AI_ROLES, AI_TIERS, AI_TOKEN_PRICING, AUTH_EVENTS, AUTH_PARTNERS, AUTH_PARTNER_STATE, AuthHardening, AuthUserSchema, BACKEND_GENERATED_FIELD_NAMES, BILLING_EVENTS, BREAKPOINT_RANGES, BREAKPOINT_THRESHOLDS, BulkAcrossCycleError, BulkCollisionError, BulkDeleteIdSchema, BulkInsertSchema, BulkNotImplementedError, BulkRequestSchema, BulkResponseSchema, BulkUpdateSchema, COMMON_TIER_CONFIGS, CONFIDENCE_LEVELS, CONSENT_CATEGORY, CONTEXTS, CRUD_OPERATORS, CURRENCY_MAP, CanvasBlockSchema, CanvasEventSchema, CanvasLifetimeSchema, CanvasWidgetMetadataSchema, CheckoutLineItemInputSchema, CheckoutSessionMetadataSchema, ConditionBuilder, CreateCheckoutSessionRequestSchema, CreateCheckoutSessionResponseSchema, CustomClaimsSchema, DEFAULT_AI_CONFIG, DEFAULT_AI_MARKUP, DEFAULT_CRUD_TIMEOUT, DEFAULT_ENTITY_ACCESS, DEFAULT_ERROR_MESSAGES, DEFAULT_LAYOUT_PRESET, DEFAULT_STATUS_OPTIONS, DEFAULT_STATUS_VALUE, DEFAULT_SUBSCRIPTION, DEFAULT_UPLOAD_TIMEOUT, DENSITY, DoNotDevError, EDITABLE, EMAIL_ERROR_CODES, EMAIL_PROVIDERS, EMAIL_VERIFICATION_STATUS, ENTITY_HOOK_ERRORS, ENVIRONMENTS, ERROR_CODES, ERROR_SEVERITY, ERROR_SOURCE, EntityHookError, FEATURES, FEATURE_CONSENT_MATRIX, FEATURE_STATUS, FIELD_TYPES, FIREBASE_ERROR_MAP, FOOTER_MODE, GITHUB_PERMISSION_LEVELS, HIDDEN_STATUSES, LANGUAGE_COOKIE, LAYOUT_PRESET, LIST_SCHEMA_TYPE, MAX_CHECKOUT_LINE_ITEMS, MAX_SHIPPING_RATE_IDS, OAUTH_EVENTS, OAUTH_PARTNERS, ORDER_DIRECTION, PARTNER_ICONS, PAYLOAD_EVENTS, PERMISSIONS, PLATFORMS, PWA_ASSET_TYPES, PWA_DISPLAY_MODES, ProductDeclarationSchema, ProductDeclarationsSchema, ProxiedImageUrlSchema, ROUTE_SOURCES, STORAGE_SCOPES, STORAGE_TYPES, STRIPE_EVENTS, STRIPE_MODES, SUBSCRIPTION_DURATIONS, SUBSCRIPTION_STATUS, SUBSCRIPTION_TIERS, SendEmailRequestSchema, SendEmailResponseSchema, index_d as ServerUtils, SingletonManager, StripeBackConfigSchema, StripeFrontConfigSchema, StripeOrderBackSchema, StripeOrderShippingSchema, StripeOrderTaxSchema, StripePaymentSchema, StripeSubscriptionSchema, SubscriptionClaimsSchema, SubscriptionDataSchema, TECHNICAL_FIELD_NAMES, USER_ROLES, UserSubscriptionSchema, VISIBILITY, WebhookEventSchema, addMonths, addYears, addressSchema, arraySchema, baseFields, booleanSchema, calculateSubscriptionEndDate, captureErrorToSentry, checkGitHubAccessSchema, clearGlobalSingleton, clearSchemaGenerators, clearScopeProviders, commonErrorCodeMappings, compactToISOString, configureProviders, createAsyncSingleton, createDefaultSubscriptionClaims, createDefaultUserProfile, createEntitySchema, createErrorHandler, createMetadata, createMethodProxy, createSchemas, createSingleton, createSingletonWithParams, dateSchema, defineEntity, deleteEntitySchema, detectBulkCollisions, detectErrorSource, disconnectOAuthSchema, emailSchema, enhanceSchema, ensureSpreadable, evaluateCondition, evaluateFieldConditions, exchangeTokenSchema, fileSchema, filesSchema, filterVisibleFields, formatCurrency, formatDate, formatRelativeTime, gdprConsentSchema, generateCodeChallenge, generateCodeVerifier, generateFirestoreRuleCondition, generatePKCEPair, generateUUID, geopointSchema, getBreakpointFromWidth, getBreakpointUtils, getCollectionName, getConditionDependencies, getConnectionsSchema, getCurrencyLocale, getCurrencySymbol, getCurrentTimestamp, getEntitySchema, getGlobalSingleton, getListCardFieldNames, getProvider, getRegisteredSchemaTypes, getRegisteredScopeProviders, getRoleFromClaims, getSchemaType, getScopeValue, getVisibleFields, getWeekFromISOString, getWidget, githubPermissionSchema, githubRepoConfigSchema, grantGitHubAccessSchema, handleError, hasCustomSchemaGenerator, hasMetadata, hasProvider, hasRestrictedVisibility, hasRoleAccess, hasScopeProvider, hasTierAccess, ibanSchema, isAuthPartnerId, isBackendGeneratedField, isBreakpoint, isCompactDateString, isFieldVisible, isFrameworkField, isOAuthPartnerId, isPKCESupported, isoToCompactString, lazyImport, listEntitiesSchema, listWidgets, mapSchema, mapToDoNotDevError, maybeTranslate, multiselectSchema, neverSchema, normalizeToISOString, numberSchema, overrideFeatures, overridePaymentModes, overridePermissions, overrideSubscriptionStatus, overrideSubscriptionTiers, overrideUserRoles, parseAcceptLanguage, parseDate, parseDateToNoonUTC, parseISODate, parseServerCookie, passwordSchema, pictureSchema, picturesSchema, priceSchema, rangeOptions, readCookieValue, referenceSchema, refreshTokenSchema, registerSchemaGenerator, registerScopeProvider, registerUniqueConstraintValidator, registerWidget, resetProviders, resolveLanguage, revokeGitHubAccessSchema, safeValidate, sanitizeHref, selectSchema, showNotification, stringSchema, switchSchema, telSchema, textSchema, timestampToISOString, toDateOnly, toISOString, translateArray, translateArrayRange, translateArrayWithIndices, translateObjectArray, unregisterScopeProvider, updateEntitySchema, updateMetadata, urlSchema, validateAIChatRequest, validateAIChatResponse, validateAuthPartners, validateAuthSchemas, validateAuthUser, validateBillingSchemas, validateBlock, validateCheckoutSessionMetadata, validateCodeChallenge, validateCodeVerifier, validateCreateCheckoutSessionRequest, validateCreateCheckoutSessionResponse, validateCustomClaims, validateDates, validateDocument, validateEnvVar, validateEvent, validateMetadata, validateOAuthPartners, validateSendEmailRequest, validateSendEmailResponse, validateStripeBackConfig, validateStripeFrontConfig, validateSubscriptionClaims, validateSubscriptionData, validateUniqueFields, validateUrl, validateUserSubscription, validateWebhookEvent, validateWithSchema, when, withErrorHandling, withGracefulDegradation, withTimeout, wrapAuthError, wrapCrudError, wrapStorageError };
|
|
16641
|
-
export type { AIAPI, AIChatRequest, AIChatResponse, AIConfig, AICostConfig, AICostEvent, AICostRecord, AICostResult, AIErrorCode, AIMessage, AIModelPricing, AIProvider, AIProviderConfig, AIRateLimitConfig, AIRouteConfig, AITierId, AIToolCall, AIToolDefinition, AIToolParameter, AIUsage, AccountLinkResult, AccountLinkingInfo, AdminCheckHookResult, AdminClaims, AggregateConfig, AggregateFilterOperator, AggregateOperation, AggregateRequest, AggregateResponse, AnyEntity, AnyFieldValue, AnyValibotSchema, ApiResponse, AppConfig, AppCookieCategories, AppMetadata, AppProvidersProps, AssetsPluginConfig, AttemptRecord, AuditEvent, AuditEventType, AuthAPI, AuthActions, AuthConfig, AuthContextValue, AuthCoreHookResult, AuthError, AuthEventData, AuthEventKey, AuthEventName, AuthHardeningConfig, AuthHardeningContext, AuthMethod, AuthPartner, AuthPartnerHookResult, AuthPartnerId, AuthPartnerResult, AuthPartnerState, AuthProvider, AuthProviderProps, AuthRedirectHookResult, AuthRedirectOperation, AuthRedirectOptions, AuthResult, AuthSessionSnapshot, AuthState, AuthStateStore, AuthStatus, AuthTokenHookResult, AuthUser, BackendGeneratedField, BaseActions, BaseCredentials, BaseDocument, BaseEntityFields, BasePartnerState, BaseState, BaseStoreActions, BaseStoreState, BaseUserProfile, BasicUserInfo, BeforeCheckoutHook, BeforeCheckoutOptions, BeforeCheckoutResult, BillingAPI, BillingAdapter, BillingAuthProvider, BillingErrorCode, BillingEvent, BillingEventData, BillingEventKey, BillingEventName, BillingProvider, BillingProviderConfig, BillingRedirectOperation, Breakpoint, BreakpointUtils, BuiltInFieldType, BulkAcrossBatch, BulkAcrossResult, BulkCollisionReport, BulkOperations, BulkRequest, BulkResponse, BulkResult, BusinessEntity, CachedError, CanAPI, CanvasBlock, CanvasCallerAccess, CanvasEvent, CanvasLifetime, CanvasSurface, CanvasWidgetMetadata, CanvasWidgetProps, CheckGitHubAccessRequest, CheckoutAddress, CheckoutLineItemInput, CheckoutMode, CheckoutOptions, CheckoutSessionMetadata, CheckoutSessionParams, CheckoutSessionResult, CheckoutSessionSnapshot, CollectionSubscriptionCallback, ColumnDef, CommonSubscriptionFeatures, CommonTranslations, ConditionBuilderLike, ConditionExpression, ConditionGroup, ConditionInput, ConditionNode, ConditionOperator, ConditionResult, ConditionalBehavior, ConfidenceLevel, ConnectOptions, ConsentAPI, ConsentActions, ConsentCategory, ConsentState, Context, CookieOptions, CreateCheckoutSessionRequest, CreateCheckoutSessionRequestInput, CreateCheckoutSessionResponse, CreateEntityData, CreateEntityRequest, CreateEntityResponse, CrudAPI, CrudCardProps, CrudConfig, CrudCreateInput, CrudDocQuery, CrudListQuery, CrudOperationOptions, CrudOperator, CurrencyEntry, CustomClaims, CustomFieldOptionsMap, CustomSchemaGenerator, CustomStoreConfig, DateFormatOptions, DateFormatPreset, DateValue, DeleteEntityRequest, DeleteEntityResponse, Density, DnDevOverride, DnDevWrapper, DndevFrameworkConfig, DndevProviders, DndevStoreApi, DoNotDevCookieCategories, DocumentSubscriptionCallback, DynamicFormRule, Editable, EffectiveConnectionType, EmailConfig, EmailErrorCode, EmailProvider, EmailRouteConfig, EmailTemplate, EmailTemplateRegistry, EmailVerificationHookResult, EmailVerificationStatus, Entity, EntityAccessConfig, EntityAccessDefaults, EntityBrowseBaseProps, EntityCardListProps, EntityDisplayRendererProps, EntityField, EntityFieldMapDefault, EntityFormRendererProps, EntityHookErrors, EntityListProps, EntityMetadata, EntityOwnershipConfig, EntityOwnershipPublicCondition, EntityRecommendationsProps, EntityRecord, EntityRowFromFields, EntityTemplateProps, EntityTranslations, EnvironmentMode, ErrorCode, ErrorHandlerConfig, ErrorHandlerFunction, ErrorSeverity, ErrorSource, ExchangeTokenParams, ExchangeTokenRequest, ExchangeTokenResponse, FaviconConfig, Feature, FeatureAccessHookResult, FeatureConsentRequirement, FeatureHookResult, FeatureId, FeatureName, FeatureStatus, FeaturesConfig, FeaturesPluginConfig, FeaturesRequiringAnyConsent, FeaturesRequiringConsent, FeaturesWithoutConsent, FieldCondition, FieldType, FieldTypeToValue, FileAsset, FilterVisibleFieldsOptions, FirebaseCallOptions, FirebaseConfig, FirestoreTimestamp, FirestoreUniqueConstraintValidator, FooterConfig, FooterMode, 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, InferEntityRow, Invoice, InvoiceItem, LanguageData, LanguageInfo, LayoutConfig, LayoutPreset, LegalCompanyInfo, LegalConfig, LegalContactInfo, LegalDirectorInfo, LegalHostingInfo, LegalJurisdictionInfo, LegalSectionsConfig, LegalWebsiteInfo, ListCardLayout, ListEntitiesRequest, ListEntitiesResponse, ListEntityData, ListOptions, ListResponse, ListSchemaType, LoadingActions, LoadingState, LockoutResult, MergedBarConfig, MergedEntityFieldMap, MetricDefinition, MobileBehaviorConfig, ModalActions, ModalState, MutableMergedEntityFieldMap, MutationResponse, NavigationRoute, NetworkCheckConfig, NetworkConnectionType, NetworkReconnectCallback, NetworkState, NetworkStatus, NetworkStatusHookResult, OAuthAPI, OAuthApiRequestOptions, OAuthCallbackHookResult, OAuthConnection, OAuthConnectionInfo, OAuthConnectionRequest, OAuthConnectionStatus, OAuthCredentials, OAuthEventData, OAuthEventKey, OAuthEventName, OAuthPartner, OAuthPartnerHookResult, OAuthPartnerId, OAuthPartnerResult, OAuthPartnerState, OAuthPurpose, OAuthRedirectOperation, OAuthRefreshRequest, OAuthRefreshResponse, OAuthResult, OAuthStoreActions, OAuthStoreState, Observable, OperationSchemas, OrderByClause, OrderDirection, OrderHookContext, PWAAssetType, PWADisplayMode, PWAPluginConfig, PageAuth, PageMeta, PaginatedQueryResult, PaginationOptions, PaidLineItem, 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, RegisteredWidgetBase, RemoveCustomClaimsResponse, ResolveLineItemsContext, ResolvedLayoutConfig, ResolvedLineItem, ResolvedOrder, ResolvedOrderSession, RevokeGitHubAccessRequest, RouteMeta, RouteSource, RoutesPluginConfig, SEOConfig, SchemaMetadata, SchemaWithVisibility, ScopeConfig, ScopeProviderFn, SecurityContext, SecurityEntityConfig, SelectOption, SendEmailRequest, SendEmailResponse, SeoMeta, ServerRateLimitConfig, ServerRateLimitResult, ServerUserRecord, SetCustomClaimsResponse, SidebarZoneConfig, SignUpMetadata, SlotContent, StatusField, StorageOptions, StorageScope, StorageType, Store, StripeBackConfig, StripeCheckoutProvider, StripeCheckoutRequest, StripeCheckoutResponse, StripeCheckoutSessionEventData, StripeConfig, StripeCustomer, StripeCustomerEventData, StripeEventData, StripeEventKey, StripeEventName, StripeFrontConfig, StripeInvoice, StripeInvoiceEventData, StripeOrderBackItem, StripePayment, StripePaymentBackItem, StripePaymentIntentEventData, StripePaymentMethod, StripePrice, StripeProduct, StripeProvider, StripeSubscription, StripeSubscriptionBackItem, StripeSubscriptionData, StripeWebhookEvent, StripeWebhookEventData, Subscription, SubscriptionClaims, SubscriptionConfig, SubscriptionData, SubscriptionDuration, SubscriptionEventData, SubscriptionHookResult, SubscriptionInfo, SubscriptionStatus, SubscriptionTier, SubscriptionUpdate, SupportedLanguage, TechnicalField, ThemeActions, ThemeInfo, ThemeMode, ThemeState, ThemesPluginConfig, TierAccessHookResult, Timestamp, TokenInfo, TokenResponse, TokenState, TokenStatus, TranslationOptions, TranslationResource, TypedBaseFields, UIFieldOptions, UniqueConstraintValidator, UniqueKeyDefinition, UnsubscribeFn, UpdateEntityData, UpdateEntityRequest, UpdateEntityResponse, UpdateSubscriptionFn, UploadOptions, UploadProgressCallback, UploadResult, UseFunctionsCallResult, UseFunctionsMutationOptions, UseFunctionsMutationResult, UseFunctionsQueryOptions, UseFunctionsQueryResult, UseTranslationOptionsEnhanced, UserContext, UserProfile, UserProviderData, UserRole, UserSubscription, ValidateBlockOptions, ValidateResult, ValidationRules, ValueTypeForField, VerifiedToken, Visibility, WebhookEvent, WebhookEventData, WhereClause, WhereOperator, WidgetDef, WithMetadata, dndevSchema };
|
|
17260
|
+
export { AGGREGATE_FILTER_OPERATORS, AGGREGATE_OPERATIONS, AIChatRequestSchema, AIChatResponseSchema, AIMessageSchema, AIProviderConfigSchema, AIToolCallSchema, AIToolDefinitionSchema, AIUsageSchema, AI_ERROR_CODES, AI_MODELS, AI_PROVIDERS, AI_ROLES, AI_TIERS, AI_TOKEN_PRICING, AUTH_EVENTS, AUTH_PARTNERS, AUTH_PARTNER_STATE, AuthHardening, AuthUserSchema, BACKEND_GENERATED_FIELD_NAMES, BILLING_EVENTS, BREAKPOINT_RANGES, BREAKPOINT_THRESHOLDS, BulkAcrossCycleError, BulkCollisionError, BulkDeleteIdSchema, BulkInsertSchema, BulkNotImplementedError, BulkRequestSchema, BulkResponseSchema, BulkUpdateSchema, COMMON_TIER_CONFIGS, CONFIDENCE_LEVELS, CONSENT_CATEGORY, CONTEXTS, CRUD_OPERATORS, CURRENCY_MAP, CanvasBlockSchema, CanvasEventSchema, CanvasLifetimeSchema, CanvasWidgetMetadataSchema, CheckoutLineItemInputSchema, CheckoutSessionMetadataSchema, ConditionBuilder, CreateCheckoutSessionRequestSchema, CreateCheckoutSessionResponseSchema, CustomClaimsSchema, DEFAULT_AI_CONFIG, DEFAULT_AI_MARKUP, DEFAULT_CRUD_TIMEOUT, DEFAULT_ENTITY_ACCESS, DEFAULT_ERROR_MESSAGES, DEFAULT_LAYOUT_PRESET, DEFAULT_STATUS_OPTIONS, DEFAULT_STATUS_VALUE, DEFAULT_SUBSCRIPTION, DEFAULT_UPLOAD_TIMEOUT, DENSITY, DoNotDevError, EDITABLE, EMAIL_ERROR_CODES, EMAIL_PROVIDERS, EMAIL_VERIFICATION_STATUS, ENTITY_HOOK_ERRORS, ENVIRONMENTS, ERROR_CODES, ERROR_SEVERITY, ERROR_SOURCE, EntityHookError, FEATURES, FEATURE_CONSENT_MATRIX, FEATURE_STATUS, FIELD_TEXT_FORMATTERS, FIELD_TYPES, FIREBASE_ERROR_MAP, FOOTER_MODE, GITHUB_PERMISSION_LEVELS, HIDDEN_STATUSES, LANGUAGE_COOKIE, LAYOUT_PRESET, LIST_SCHEMA_TYPE, MAX_CHECKOUT_LINE_ITEMS, MAX_SHIPPING_RATE_IDS, OAUTH_EVENTS, OAUTH_PARTNERS, ORDER_DIRECTION, PARTNER_ICONS, PAYLOAD_EVENTS, PERMISSIONS, PLATFORMS, PWA_ASSET_TYPES, PWA_DISPLAY_MODES, ProductDeclarationSchema, ProductDeclarationsSchema, ProxiedImageUrlSchema, ROUTE_SOURCES, SESSION_RENDER_SEGMENT, STORAGE_SCOPES, STORAGE_TYPES, STRIPE_EVENTS, STRIPE_MODES, SUBSCRIPTION_DURATIONS, SUBSCRIPTION_STATUS, SUBSCRIPTION_TIERS, SendEmailRequestSchema, SendEmailResponseSchema, index_d as ServerUtils, SingletonManager, StripeBackConfigSchema, StripeFrontConfigSchema, StripeOrderBackSchema, StripeOrderShippingSchema, StripeOrderTaxSchema, StripePaymentSchema, StripeSubscriptionSchema, SubscriptionClaimsSchema, SubscriptionDataSchema, TECHNICAL_FIELD_NAMES, TRANSLATABLE_FIELD_TYPES, USER_ROLES, UserSubscriptionSchema, VISIBILITY, WebhookEventSchema, addMonths, addYears, addressSchema, arraySchema, baseFields, booleanSchema, buildProductJsonLd, calculateSubscriptionEndDate, captureErrorToSentry, checkGitHubAccessSchema, clearGlobalSingleton, clearSchemaGenerators, clearScopeProviders, commonErrorCodeMappings, compactToISOString, configureProviders, createAsyncSingleton, createDefaultSubscriptionClaims, createDefaultUserProfile, createEntitySchema, createErrorHandler, createMetadata, createMethodProxy, createSchemas, createSingleton, createSingletonWithParams, dateSchema, defineEntity, deleteEntitySchema, deriveEntitySeo, detectBulkCollisions, detectErrorSource, disconnectOAuthSchema, emailSchema, enhanceSchema, ensureSpreadable, evaluateCondition, evaluateFieldConditions, exchangeTokenSchema, fileSchema, filesSchema, filterVisibleFields, formatCurrency, formatDate, formatFieldText, formatRelativeTime, gdprConsentSchema, generateCodeChallenge, generateCodeVerifier, generateFirestoreRuleCondition, generatePKCEPair, generateUUID, geopointSchema, getBreakpointFromWidth, getBreakpointUtils, getCollectionName, getConditionDependencies, getConnectionsSchema, getCurrencyLocale, getCurrencySymbol, getCurrentTimestamp, getEntityByCollection, getEntitySchema, getGlobalSingleton, getListCardFieldNames, getProvider, getRegisteredSchemaTypes, getRegisteredScopeProviders, getRoleFromClaims, getSchemaType, getScopeValue, getTranslatedFieldNames, getVisibleFields, getWeekFromISOString, getWidget, githubPermissionSchema, githubRepoConfigSchema, grantGitHubAccessSchema, handleError, hasCustomSchemaGenerator, hasMetadata, hasProvider, hasRestrictedVisibility, hasRoleAccess, hasScopeProvider, hasTierAccess, i18nFieldName, ibanSchema, isAuthPartnerId, isBackendGeneratedField, isBreakpoint, isCompactDateString, isEmptyFieldValue, isFieldVisible, isFrameworkField, isMultilingual, isOAuthPartnerId, isPKCESupported, isoToCompactString, languageUrls, lazyImport, listEntitiesSchema, listWidgets, localizePath, mapSchema, mapToDoNotDevError, maybeTranslate, multiselectSchema, neverSchema, normalizeToISOString, numberSchema, overrideFeatures, overridePaymentModes, overridePermissions, overrideSubscriptionStatus, overrideSubscriptionTiers, overrideUserRoles, parseAcceptLanguage, parseDate, parseDateToNoonUTC, parseISODate, parseServerCookie, passwordSchema, pictureSchema, picturesSchema, priceSchema, publicPathname, rangeOptions, readCookieValue, referenceSchema, refreshTokenSchema, registerSchemaGenerator, registerScopeProvider, registerUniqueConstraintValidator, registerWidget, resetProviders, resolveLanguage, resolveLanguageRoute, revokeGitHubAccessSchema, safeValidate, sanitizeHref, selectSchema, showNotification, splitLanguagePath, stringSchema, stripHtmlTags, switchSchema, telSchema, textSchema, timestampToISOString, toDateOnly, toISOString, translateArray, translateArrayRange, translateArrayWithIndices, translateEntityLabel, translateObjectArray, translateRow, unregisterScopeProvider, updateEntitySchema, updateMetadata, urlSchema, validateAIChatRequest, validateAIChatResponse, validateAuthPartners, validateAuthSchemas, validateAuthUser, validateBillingSchemas, validateBlock, validateCheckoutSessionMetadata, validateCodeChallenge, validateCodeVerifier, validateCreateCheckoutSessionRequest, validateCreateCheckoutSessionResponse, validateCustomClaims, validateDates, validateDocument, validateEnvVar, validateEvent, validateMetadata, validateOAuthPartners, validateSendEmailRequest, validateSendEmailResponse, validateStripeBackConfig, validateStripeFrontConfig, validateSubscriptionClaims, validateSubscriptionData, validateUniqueFields, validateUrl, validateUserSubscription, validateWebhookEvent, validateWithSchema, when, withErrorHandling, withGracefulDegradation, withTimeout, wrapAuthError, wrapCrudError, wrapStorageError };
|
|
17261
|
+
export type { AIAPI, AIChatRequest, AIChatResponse, AIConfig, AICostConfig, AICostEvent, AICostRecord, AICostResult, AIErrorCode, AIMessage, AIModelPricing, AIProvider, AIProviderConfig, AIRateLimitConfig, AIRouteConfig, AITierId, AIToolCall, AIToolDefinition, AIToolParameter, AIUsage, AccountLinkResult, AccountLinkingInfo, AdminCheckHookResult, AdminClaims, AggregateConfig, AggregateFilterOperator, AggregateOperation, AggregateRequest, AggregateResponse, AnyEntity, AnyFieldValue, AnyValibotSchema, ApiResponse, AppConfig, AppCookieCategories, AppMetadata, AppProvidersProps, AssetsPluginConfig, AttemptRecord, AuditEvent, AuditEventType, AuthAPI, AuthActions, AuthConfig, AuthContextValue, AuthCoreHookResult, AuthError, AuthEventData, AuthEventKey, AuthEventName, AuthHardeningConfig, AuthHardeningContext, AuthMethod, AuthPartner, AuthPartnerHookResult, AuthPartnerId, AuthPartnerResult, AuthPartnerState, AuthProvider, AuthProviderProps, AuthRedirectHookResult, AuthRedirectOperation, AuthRedirectOptions, AuthResult, AuthSessionSnapshot, AuthState, AuthStateStore, AuthStatus, AuthTokenHookResult, AuthUser, BackendGeneratedField, BaseActions, BaseCredentials, BaseDocument, BaseEntityFields, BasePartnerState, BaseState, BaseStoreActions, BaseStoreState, BaseUserProfile, BasicUserInfo, BeforeCheckoutHook, BeforeCheckoutOptions, BeforeCheckoutResult, BillingAPI, BillingAdapter, BillingAuthProvider, BillingErrorCode, BillingEvent, BillingEventData, BillingEventKey, BillingEventName, BillingProvider, BillingProviderConfig, BillingRedirectOperation, Breakpoint, BreakpointUtils, BuiltInFieldType, BulkAcrossBatch, BulkAcrossResult, BulkCollisionReport, BulkFailure, BulkOperations, BulkRequest, BulkResponse, BulkResult, BusinessEntity, CachedError, CanAPI, CanvasBlock, CanvasCallerAccess, CanvasEvent, CanvasLifetime, CanvasSurface, CanvasWidgetMetadata, CanvasWidgetProps, CheckGitHubAccessRequest, CheckoutAddress, CheckoutLineItemInput, CheckoutMode, CheckoutOptions, CheckoutSessionMetadata, CheckoutSessionParams, CheckoutSessionResult, CheckoutSessionSnapshot, CollectionSubscriptionCallback, ColumnDef, CommonSubscriptionFeatures, CommonTranslations, ConditionBuilderLike, ConditionExpression, ConditionGroup, ConditionInput, ConditionNode, ConditionOperator, ConditionResult, ConditionalBehavior, ConfidenceLevel, ConnectOptions, ConsentAPI, ConsentActions, ConsentCategory, ConsentState, Context, CookieOptions, CreateCheckoutSessionRequest, CreateCheckoutSessionRequestInput, CreateCheckoutSessionResponse, CreateEntityData, CreateEntityRequest, CreateEntityResponse, CrudAPI, CrudCardProps, CrudConfig, CrudCreateInput, CrudDocQuery, CrudListQuery, CrudOperationOptions, CrudOperator, CurrencyEntry, CustomClaims, CustomFieldOptionsMap, CustomSchemaGenerator, CustomStoreConfig, DateFormatOptions, DateFormatPreset, DateValue, DeleteEntityRequest, DeleteEntityResponse, Density, DnDevOverride, DnDevWrapper, DndevFrameworkConfig, DndevProviders, DndevStoreApi, DoNotDevCookieCategories, DocumentSubscriptionCallback, DynamicFormRule, Editable, EffectiveConnectionType, EmailConfig, EmailErrorCode, EmailProvider, EmailRouteConfig, EmailTemplate, EmailTemplateRegistry, EmailVerificationHookResult, EmailVerificationStatus, Entity, EntityAccessConfig, EntityAccessDefaults, EntityBrowseBaseProps, EntityCardListProps, EntityDisplayRendererProps, EntityField, EntityFieldMapDefault, EntityFormRendererProps, EntityHookErrors, EntityListParent, EntityListProps, EntityMetadata, EntityOwnershipConfig, EntityOwnershipPublicCondition, EntityRecommendationsProps, EntityRecord, EntityRowFromFields, EntitySeo, EntitySeoConfig, EntitySeoOptions, EntitySeoRecord, EntityTemplateProps, EntityTranslations, EnvironmentMode, ErrorCode, ErrorHandlerConfig, ErrorHandlerFunction, ErrorSeverity, ErrorSource, ExchangeTokenParams, ExchangeTokenRequest, ExchangeTokenResponse, FaviconConfig, Feature, FeatureAccessHookResult, FeatureConsentRequirement, FeatureHookResult, FeatureId, FeatureName, FeatureStatus, FeaturesConfig, FeaturesPluginConfig, FeaturesRequiringAnyConsent, FeaturesRequiringConsent, FeaturesWithoutConsent, FieldCondition, FieldTextFormatter, FieldTextOptions, FieldTextTranslate, FieldType, FieldTypeToValue, FileAsset, FilterVisibleFieldsOptions, FirebaseCallOptions, FirebaseConfig, FirestoreTimestamp, FirestoreUniqueConstraintValidator, FooterConfig, FooterMode, 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, InferEntityRow, Invoice, InvoiceItem, LanguageData, LanguageInfo, LanguagePath, LanguageRouteDecision, LanguageRouting, LayoutConfig, LayoutPreset, LegalCompanyInfo, LegalConfig, LegalContactInfo, LegalDirectorInfo, LegalHostingInfo, LegalJurisdictionInfo, LegalSectionsConfig, LegalWebsiteInfo, ListCardLayout, ListEntitiesRequest, ListEntitiesResponse, ListEntityData, ListOptions, ListResponse, ListSchemaType, LoadingActions, LoadingState, LockoutResult, MergedBarConfig, MergedEntityFieldMap, MetricDefinition, MobileBehaviorConfig, ModalActions, ModalState, MutableMergedEntityFieldMap, MutationResponse, NavigationRoute, NetworkCheckConfig, NetworkConnectionType, NetworkReconnectCallback, NetworkState, NetworkStatus, NetworkStatusHookResult, OAuthAPI, OAuthApiRequestOptions, OAuthCallbackHookResult, OAuthConnection, OAuthConnectionInfo, OAuthConnectionRequest, OAuthConnectionStatus, OAuthCredentials, OAuthEventData, OAuthEventKey, OAuthEventName, OAuthPartner, OAuthPartnerHookResult, OAuthPartnerId, OAuthPartnerResult, OAuthPartnerState, OAuthPurpose, OAuthRedirectOperation, OAuthRefreshRequest, OAuthRefreshResponse, OAuthResult, OAuthStoreActions, OAuthStoreState, Observable, OperationSchemas, OrderByClause, OrderDirection, OrderHookContext, PWAAssetType, PWADisplayMode, PWAPluginConfig, PageAuth, PageMeta, PaginatedQueryResult, PaginationOptions, PaidLineItem, 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, RegisteredWidgetBase, RemoveCustomClaimsResponse, ResolveLineItemsContext, ResolvedLayoutConfig, ResolvedLineItem, ResolvedOrder, ResolvedOrderSession, RevokeGitHubAccessRequest, RouteMeta, RouteSource, RoutesPluginConfig, SEOConfig, SchemaMetadata, SchemaOrgAvailability, SchemaWithVisibility, ScopeConfig, ScopeProviderFn, SecurityContext, SecurityEntityConfig, SelectOption, SendEmailRequest, SendEmailResponse, SeoMeta, ServerRateLimitConfig, ServerRateLimitResult, ServerUserRecord, SetCustomClaimsResponse, SidebarZoneConfig, SignUpMetadata, SlotContent, StatusField, StorageOptions, StorageScope, StorageType, Store, StripeBackConfig, StripeCheckoutProvider, StripeCheckoutRequest, StripeCheckoutResponse, StripeCheckoutSessionEventData, StripeConfig, StripeCustomer, StripeCustomerEventData, StripeEventData, StripeEventKey, StripeEventName, StripeFrontConfig, StripeInvoice, StripeInvoiceEventData, StripeOrderBackItem, StripePayment, StripePaymentBackItem, StripePaymentIntentEventData, StripePaymentMethod, StripePrice, StripeProduct, StripeProvider, StripeSubscription, StripeSubscriptionBackItem, StripeSubscriptionData, StripeWebhookEvent, StripeWebhookEventData, Subscription, SubscriptionClaims, SubscriptionConfig, SubscriptionData, SubscriptionDuration, SubscriptionEventData, SubscriptionHookResult, SubscriptionInfo, SubscriptionStatus, SubscriptionTier, SubscriptionUpdate, SupportedLanguage, TaxIdHookContext, TaxIdSnapshot, TechnicalField, ThemeActions, ThemeInfo, ThemeMode, ThemeState, ThemesPluginConfig, TierAccessHookResult, Timestamp, TokenInfo, TokenResponse, TokenState, TokenStatus, TranslationOptions, TranslationResource, TypedBaseFields, UIFieldOptions, UniqueConstraintValidator, UniqueKeyDefinition, UnsubscribeFn, UpdateEntityData, UpdateEntityRequest, UpdateEntityResponse, UpdateSubscriptionFn, UploadOptions, UploadProgressCallback, UploadResult, UseFunctionsCallResult, UseFunctionsMutationOptions, UseFunctionsMutationResult, UseFunctionsQueryOptions, UseFunctionsQueryResult, UseTranslationOptionsEnhanced, UserContext, UserProfile, UserProviderData, UserRole, UserSubscription, ValidateBlockOptions, ValidateResult, ValidationRules, ValueTypeForField, VerifiedToken, Visibility, WebhookEvent, WebhookEventData, WhereClause, WhereOperator, WidgetDef, WithMetadata, dndevSchema };
|