@zenstackhq/orm 3.4.1 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -608,6 +608,10 @@ type ClientOptions<Schema extends SchemaDef> = QueryOptions<Schema> & {
608
608
  * Defaults to `true`.
609
609
  */
610
610
  useCompactAliasNames?: boolean;
611
+ /**
612
+ * Whether to skip validation for computed fields.
613
+ */
614
+ skipValidationForComputedFields?: boolean;
611
615
  } & (HasComputedFields<Schema> extends true ? {
612
616
  /**
613
617
  * Computed field definitions.
package/dist/index.d.ts CHANGED
@@ -608,6 +608,10 @@ type ClientOptions<Schema extends SchemaDef> = QueryOptions<Schema> & {
608
608
  * Defaults to `true`.
609
609
  */
610
610
  useCompactAliasNames?: boolean;
611
+ /**
612
+ * Whether to skip validation for computed fields.
613
+ */
614
+ skipValidationForComputedFields?: boolean;
611
615
  } & (HasComputedFields<Schema> extends true ? {
612
616
  /**
613
617
  * Computed field definitions.
package/dist/index.js CHANGED
@@ -8558,7 +8558,7 @@ var ClientImpl = class _ClientImpl {
8558
8558
  ...functions_exports,
8559
8559
  ...this.$options.functions
8560
8560
  };
8561
- if (!baseClient) {
8561
+ if (!baseClient && !options.skipValidationForComputedFields) {
8562
8562
  this.validateComputedFieldsConfig();
8563
8563
  }
8564
8564
  if (baseClient) {